The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
592 B

project('native dep pkgconfig test')
if get_option('start_native')
dep_native = dependency('dep_tester', native: true, method: 'pkg-config')
dep_cross = dependency('dep_tester', native: false, method: 'pkg-config')
else
dep_cross = dependency('dep_tester', native: false, method: 'pkg-config')
dep_native = dependency('dep_tester', native: true, method: 'pkg-config')
endif
dep_type = dep_native.get_pkgconfig_variable('dep_type')
assert(dep_type == 'native', 'Expected native')
dep_type = dep_cross.get_pkgconfig_variable('dep_type')
assert(dep_type == 'cross', 'Expected cross')