qulogic/gplugin
Clone
Summary
Browse
Changes
Graph
Add public headers to gplugin_dep.
feature/meson
2016-12-18, Elliott Sales de Andrade
67310e92c974
Add public headers to gplugin_dep.
This ensures that they are built before anything that uses them, such
as tests.
if
get_option
(
'tcc'
)
GPLUGIN_TCC_SOURCES
=
[
'gplugin-tcc-core.c'
,
'gplugin-tcc-loader.c'
,
'gplugin-tcc-plugin.c'
,
]
GPLUGIN_TCC_HEADERS
=
[
'gplugin-tcc-loader.h'
,
'gplugin-tcc-plugin.h'
,
]
if
not
compiler
.
has_header
(
'libtcc.h'
)
error
(
'LibTcc header not found'
)
endif
TCC
=
compiler
.
find_library
(
'tcc'
)
gplugin_tcc
=
shared_library
(
'gplugin-tcc'
,
GPLUGIN_TCC_SOURCES
,
GPLUGIN_TCC_HEADERS
,
name_prefix
:
''
,
dependencies
:
[
TCC
,
gplugin_dep
],
install
:
true
,
install_dir
:
get_option
(
'libdir'
)
+
'/gplugin'
)
endif
# tcc
if
get_option
(
'testing'
)
subdir
(
'tests'
)
endif