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
devs/bu5hm4n/make_doc_cop_happy
Jongmin Lee 3 years ago committed by Marcel Hollerbach
parent f8aa44eef7
commit 3edf75c319
  1. 4
      header_checks/meson.build
  2. 5
      meson.build
  3. 2
      src/modules/ecore_evas/meson.build

@ -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',

@ -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)

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

Loading…
Cancel
Save