Move lsi into new subdir to be reused as static lib

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2017-10-10 22:59:33 +01:00
parent d983f8ebdf
commit 38ec05ce98
7 changed files with 25 additions and 2 deletions
+2
View File
@@ -58,6 +58,8 @@ if with_libintercept == true
cdata.set('HAVE_LIBINTERCEPT', '1')
endif
with_frontend = get_option('with-frontend')
config_h = configure_file(
configuration: cdata,
output: 'config.h',
+1 -1
View File
@@ -1,4 +1,4 @@
if get_option('with-frontend') == true
if with_frontend == true
dep_gtk3 = dependency('gtk+-3.0', version: '>= 3.4.0')
frontend_sources = [
View File
View File
+18
View File
@@ -0,0 +1,18 @@
# Only build liblsi if told to!
if shim_behaviour != 'none' or with_frontend == true
lsi_sources = [
'lsi.c',
]
lib_lsi = static_library(
'lsi-lsi',
sources: lsi_sources + nica_sources,
include_directories: nica_includes,
)
link_lsi = declare_dependency(
link_with: lib_lsi,
include_directories: include_directories('.'),
)
endif
+1
View File
@@ -16,6 +16,7 @@ nica_includes = [
config_h_dir,
]
subdir('lsi')
subdir('frontend')
subdir('intercept')
subdir('shim')
+3 -1
View File
@@ -6,7 +6,6 @@ endif
if shim_behaviour != 'none'
shim_sources = [
'lsi.c',
'shim.c',
]
@@ -14,6 +13,9 @@ if shim_behaviour != 'none'
shim_target_name,
sources: shim_sources + nica_sources,
include_directories: nica_includes,
dependencies: [
link_lsi,
],
install: true,
)
endif