diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-03 22:53:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-03 22:53:44 +0200 |
commit | 018deb48feee88a1de73f8bcaea4d944dade7827 (patch) | |
tree | 684c53ed5a3938ddb5eaa00e6731b6e5a0aba350 /test cases/linuxlike | |
parent | 312bc2ca810e333e7d8dd42e55ae9bd348757a07 (diff) | |
parent | f8aab2f011afc93767a487cb68e856e21f9786d8 (diff) | |
download | meson-018deb48feee88a1de73f8bcaea4d944dade7827.zip meson-018deb48feee88a1de73f8bcaea4d944dade7827.tar.gz meson-018deb48feee88a1de73f8bcaea4d944dade7827.tar.bz2 |
Merge pull request #2663 from inigomartinez/pkg-config-define-variable
dependencies: Allow pkg-config to define variables
Diffstat (limited to 'test cases/linuxlike')
-rw-r--r-- | test cases/linuxlike/1 pkg-config/meson.build | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test cases/linuxlike/1 pkg-config/meson.build b/test cases/linuxlike/1 pkg-config/meson.build index 17feb21..30e5d25 100644 --- a/test cases/linuxlike/1 pkg-config/meson.build +++ b/test cases/linuxlike/1 pkg-config/meson.build @@ -17,6 +17,8 @@ test('zlibtest', exe) zprefix = dep.get_pkgconfig_variable('prefix') # Always set but we can't be sure what the value is. # pkg-config returns empty string for not defined variables assert(dep.get_pkgconfig_variable('nonexisting') == '', 'Value of unknown variable is not empty.') +# pkg-config is able to replace variables +assert(dep.get_pkgconfig_variable('prefix', define_variable: ['prefix', '/tmp']) == '/tmp', 'prefix variable has not been replaced.') # Test that dependencies of dependencies work. dep2 = declare_dependency(dependencies : dep) |