meson.build

changeset 39032
068fd7f93fda
parent 39021
6593789ca155
child 39049
65706fd79d19
equal deleted inserted replaced
39025:aafe2eb76e91 39032:068fd7f93fda
903 ####################################################################### 903 #######################################################################
904 if get_option('plugins') 904 if get_option('plugins')
905 gplugin = dependency('gplugin', version : '>= 0.0.17') 905 gplugin = dependency('gplugin', version : '>= 0.0.17')
906 # GPLUGIN_REQ sets pkg-config requirements in the .pc file 906 # GPLUGIN_REQ sets pkg-config requirements in the .pc file
907 GPLUGIN_REQ = ['gplugin'] 907 GPLUGIN_REQ = ['gplugin']
908 enable_introspection = dependency('gobject-introspection-1.0',
909 version : '>= 1.30.0', required : false).found()
910 else 908 else
911 gplugin = [] 909 gplugin = []
912 GPLUGIN_REQ = [] 910 GPLUGIN_REQ = []
913 enable_introspection = false 911 endif
914 endif 912
915 913 #######################################################################
914 # Check for GObject Introspection
915 #######################################################################
916
917 enable_introspection = get_option('introspection')
916 if enable_introspection 918 if enable_introspection
917 conf.set('ENABLE_INTROSPECTION', true) 919 if dependency('gobject-introspection-1.0', version : '>= 1.30.0',
920 required : force_deps).found()
921 conf.set('ENABLE_INTROSPECTION', true)
922 else
923 enable_introspection = false
924 endif
918 endif 925 endif
919 926
920 ####################################################################### 927 #######################################################################
921 # Check for Python 928 # Check for Python
922 ####################################################################### 929 #######################################################################

mercurial