meson: add some config definitions

Some config definitions used in source code could not be defined during build config process.
  - HAVE_XATTR
  - HAVE_CIPHER
  - HAVE_SIGNATURE
  - BUILD_ECORE_EVAS_EWS

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9192
This commit is contained in:
Jongmin Lee 2019-06-27 08:26:55 +00:00 committed by Marcel Hollerbach
parent f8aa44eef7
commit 3edf75c319
3 changed files with 11 additions and 0 deletions

View File

@ -194,6 +194,10 @@ if (cc.has_header('sys/mman.h'))
config_h.set10('HAVE_MMAN_H', true)
endif
if config_h.has('HAVE_LISTXATTR') and config_h.has('HAVE_SETXATTR') and config_h.has('HAVE_GETXATTR')
config_h.set10('HAVE_XATTR', true)
endif
regexp = []
if sys_windows == true
regexp = cc.find_library('regex',

View File

@ -225,6 +225,11 @@ elif (get_option('crypto') == 'openssl')
config_h.set('HAVE_OPENSSL', '1')
endif
if get_option('crypto') != ''
config_h.set('HAVE_CIPHER', '1')
config_h.set('HAVE_SIGNATURE', '1')
endif
config_h.set_quoted('SHARED_LIB_SUFFIX', '.'+sys_lib_extension)
config_h.set_quoted('MOD_SUFFIX', '.'+sys_mod_extension)
config_h.set_quoted('EXE_SUFFIX', '.'+sys_exe_extension)

View File

@ -44,3 +44,5 @@ if get_option('vnc-server')
subdir(join_paths('vnc_server'))
endif
config_h.set('BUILD_ECORE_EVAS_EWS', '1')