diff options
author | John Ericson <git@JohnEricson.me> | 2019-04-15 01:23:10 -0400 |
---|---|---|
committer | John Ericson <git@JohnEricson.me> | 2019-06-05 23:05:34 -0400 |
commit | af2d7af9983a04fa2dd6c073bdc41847a23012c8 (patch) | |
tree | aa84b24acb247df40bc924557f92934e3e3776f3 /test cases | |
parent | 126100b1666bfd75db37a0a9aaeee5dbfd11e53a (diff) | |
download | meson-af2d7af9983a04fa2dd6c073bdc41847a23012c8.zip meson-af2d7af9983a04fa2dd6c073bdc41847a23012c8.tar.gz meson-af2d7af9983a04fa2dd6c073bdc41847a23012c8.tar.bz2 |
Per machine do 'build.' and '' option prefixes
See the docs/ changes for details.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/unit/55 pkg_config_path option/build_extra_path/totally_made_up_dep.pc | 7 | ||||
-rw-r--r-- | test cases/unit/55 pkg_config_path option/host_extra_path/totally_made_up_dep.pc (renamed from test cases/unit/55 pkg_config_path option/extra_path/totally_made_up_dep.pc) | 0 | ||||
-rw-r--r-- | test cases/unit/55 pkg_config_path option/meson.build | 11 |
3 files changed, 17 insertions, 1 deletions
diff --git a/test cases/unit/55 pkg_config_path option/build_extra_path/totally_made_up_dep.pc b/test cases/unit/55 pkg_config_path option/build_extra_path/totally_made_up_dep.pc new file mode 100644 index 0000000..5b149f6 --- /dev/null +++ b/test cases/unit/55 pkg_config_path option/build_extra_path/totally_made_up_dep.pc @@ -0,0 +1,7 @@ +prefix=/ +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: totally_made_up_dep +Description: completely and totally made up for a test case +Version: 4.5.6 diff --git a/test cases/unit/55 pkg_config_path option/extra_path/totally_made_up_dep.pc b/test cases/unit/55 pkg_config_path option/host_extra_path/totally_made_up_dep.pc index 6d08687..6d08687 100644 --- a/test cases/unit/55 pkg_config_path option/extra_path/totally_made_up_dep.pc +++ b/test cases/unit/55 pkg_config_path option/host_extra_path/totally_made_up_dep.pc diff --git a/test cases/unit/55 pkg_config_path option/meson.build b/test cases/unit/55 pkg_config_path option/meson.build index 623c3a2..3af6164 100644 --- a/test cases/unit/55 pkg_config_path option/meson.build +++ b/test cases/unit/55 pkg_config_path option/meson.build @@ -1,3 +1,12 @@ project('pkg_config_path option') -dependency('totally_made_up_dep', method : 'pkg-config') +build = dependency('totally_made_up_dep', native: true, method : 'pkg-config') +host = dependency('totally_made_up_dep', native: false, method : 'pkg-config') + +# TODO always test we can do this separately +if meson.is_cross_build() + assert(build.version() == '4.5.6', 'wrong version for build machine dependency') +else + assert(host.version() == '1.2.3', 'wrong version for host machine dependency') +endif +assert(host.version() == '1.2.3', 'wrong version for host machine dependency') |