summaryrefslogtreecommitdiff
path: root/src/lib/eina/meson.build
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-05-10 14:41:57 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-05-27 11:06:46 +0200
commit8e3606698eb439eecd7302a885504365aca7e564 (patch)
tree6bb354ae72ab277548fafaab00a52aeaac5e61bb /src/lib/eina/meson.build
parent2d105a7e597a38a31ea88fefc02ac84b8b6e5543 (diff)
refactor build
libraries are split into deps, external deps, and pub deps. Evas engines are refactored to use the predefined engine deps. this is preparation work for efl-one. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11806
Diffstat (limited to '')
-rw-r--r--src/lib/eina/meson.build19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build
index 53e1b6120b..8df3660f31 100644
--- a/src/lib/eina/meson.build
+++ b/src/lib/eina/meson.build
@@ -1,5 +1,6 @@
1eina_deps = [dl] 1eina_deps = [dl]
2eina_pub_deps = [thread_dep] 2eina_pub_deps = [thread_dep]
3eina_ext_deps = [m, rt, dl, thread_dep]
3 4
4if sys_windows == true 5if sys_windows == true
5 eina_pub_deps += [evil] 6 eina_pub_deps += [evil]
@@ -114,7 +115,7 @@ public_headers = [
114 'Eina.h' 115 'Eina.h'
115] 116]
116 117
117sources = [ 118eina_src = files([
118'eina_abi.c', 119'eina_abi.c',
119'eina_accessor.c', 120'eina_accessor.c',
120'eina_array.c', 121'eina_array.c',
@@ -191,12 +192,12 @@ sources = [
191'eina_vpath.c', 192'eina_vpath.c',
192'eina_vpath_xdg.c', 193'eina_vpath_xdg.c',
193'eina_abstract_content.c', 194'eina_abstract_content.c',
194] 195]) + eina_mp_sources
195 196
196if sys_windows == true 197if sys_windows == true
197 sources += 'eina_file_win32.c' 198 eina_src += files('eina_file_win32.c')
198else 199else
199 sources += 'eina_file.c' 200 eina_src += files('eina_file.c')
200endif 201endif
201 202
202eina_config = configuration_data() 203eina_config = configuration_data()
@@ -242,7 +243,7 @@ if use_valgrind
242 else 243 else
243 config_h.set('HAVE_VALGRIND', 1) 244 config_h.set('HAVE_VALGRIND', 1)
244 endif 245 endif
245 eina_deps += valgrind 246 eina_ext_deps += valgrind
246else 247else
247 config_h.set('NVALGRIND', 1) 248 config_h.set('NVALGRIND', 1)
248 valgrind = [] 249 valgrind = []
@@ -349,7 +350,7 @@ public_headers += eina_config_file
349unwind = dependency('libunwind-generic', required: false) 350unwind = dependency('libunwind-generic', required: false)
350if unwind.found() 351if unwind.found()
351 config_h.set('HAVE_UNWIND', 1) 352 config_h.set('HAVE_UNWIND', 1)
352 eina_deps += unwind 353 eina_ext_deps += unwind
353 config_h.set('EINA_LOG_BACKTRACE_ENABLE', 1) 354 config_h.set('EINA_LOG_BACKTRACE_ENABLE', 1)
354endif 355endif
355 356
@@ -358,13 +359,15 @@ iconv = dependency('iconv', required: false)
358if iconv.found() == false 359if iconv.found() == false
359 iconv = cc.find_library('iconv', required: false) 360 iconv = cc.find_library('iconv', required: false)
360endif 361endif
362eina_ext_deps += [iconv]
361 363
362execinfo = cc.find_library('execinfo', required: false) 364execinfo = cc.find_library('execinfo', required: false)
365eina_ext_deps += [execinfo]
363 366
364eina_lib = library('eina', sources, 367eina_lib = library('eina', eina_src,
365 c_args : package_c_args, 368 c_args : package_c_args,
366 include_directories : config_dir, 369 include_directories : config_dir,
367 dependencies: [m, rt, dl, execinfo, iconv, eina_deps, thread_dep, eina_mem_pools, evil], 370 dependencies: eina_ext_deps + [eina_deps, evil],
368 install: true, 371 install: true,
369 version : meson.project_version() 372 version : meson.project_version()
370) 373)