diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-10-04 18:29:56 +0200 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-10-05 13:40:29 +0200 |
commit | 347dc66ba9c841f5e1dfda778ea79757acbdd621 (patch) | |
tree | b60f3a6d8afa9411a5f405ebbf993152c71a012b /src/lib/eina/meson.build | |
parent | 124fbd3fa3464a4fe8cb436666f2cdc09d793162 (diff) |
meson: unify system properties
this unifies the system types into 4 boolean flags
This fixes the fact that meson changed the system string accross
versions.
Differential Revision: https://phab.enlightenment.org/D7144
Diffstat (limited to '')
-rw-r--r-- | src/lib/eina/meson.build | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build index dcd51b2bfc..13750b8070 100644 --- a/src/lib/eina/meson.build +++ b/src/lib/eina/meson.build | |||
@@ -185,7 +185,7 @@ sources = [ | |||
185 | 'eina_vpath_xdg.c' | 185 | 'eina_vpath_xdg.c' |
186 | ] | 186 | ] |
187 | 187 | ||
188 | if target_machine.system() == 'cygwin' | 188 | if sys_windows == true |
189 | sources += 'eina_file_win32.c' | 189 | sources += 'eina_file_win32.c' |
190 | else | 190 | else |
191 | sources += 'eina_file.c' | 191 | sources += 'eina_file.c' |
@@ -273,7 +273,7 @@ if cc.has_header_symbol('pthread.h', 'pthread_barrier_init') | |||
273 | eina_config.set('EINA_HAVE_PTHREAD_BARRIER', '1') | 273 | eina_config.set('EINA_HAVE_PTHREAD_BARRIER', '1') |
274 | endif | 274 | endif |
275 | 275 | ||
276 | if target_machine.system() == 'linux' | 276 | if sys_linux == true |
277 | pthread_np_header_file = 'pthread.h' | 277 | pthread_np_header_file = 'pthread.h' |
278 | pthread_setname_np_api = 'pthread_setname_np' | 278 | pthread_setname_np_api = 'pthread_setname_np' |
279 | pthread_args = '-D_GNU_SOURCE' | 279 | pthread_args = '-D_GNU_SOURCE' |
@@ -335,7 +335,7 @@ if cc.has_header_symbol('pthread.h', 'pthread_spin_init') | |||
335 | eina_config.set('EINA_HAVE_POSIX_SPINLOCK', '1') | 335 | eina_config.set('EINA_HAVE_POSIX_SPINLOCK', '1') |
336 | endif | 336 | endif |
337 | 337 | ||
338 | if target_machine.system() == 'darwin' | 338 | if sys_osx == true |
339 | if cc.has_header_symbol('libkern/OSAtomic.h', 'OSSpinLockTry') | 339 | if cc.has_header_symbol('libkern/OSAtomic.h', 'OSSpinLockTry') |
340 | eina_config.set('EINA_HAVE_OSX_SPINLOCK', 1) | 340 | eina_config.set('EINA_HAVE_OSX_SPINLOCK', 1) |
341 | endif | 341 | endif |