diff options
author | Rohan Garg <rohan.garg@collabora.com> | 2019-08-06 17:40:35 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2020-02-20 10:19:19 -0500 |
commit | 73f03e6093114e5ae42bd52a358d6e65af72aba6 (patch) | |
tree | 0a39f1f67318671da4bbc6511430095f1c2cdb96 /run_unittests.py | |
parent | 8d63b6340b4da7d42ac571ea7c94b81b409421ef (diff) | |
download | meson-73f03e6093114e5ae42bd52a358d6e65af72aba6.zip meson-73f03e6093114e5ae42bd52a358d6e65af72aba6.tar.gz meson-73f03e6093114e5ae42bd52a358d6e65af72aba6.tar.bz2 |
Introduce dataonly for the pkgconfig module
This allows users to disable writing out the inbuilt variables to
the pkg-config file as they might actualy not be required.
One reason to have this is for architecture-independent pkg-config
files in projects which also have architecture-dependent outputs.
For example : https://gitlab.freedesktop.org/wayland/weston/issues/269
Fixes #4011
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 7c2ae05..69de23a 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -4969,6 +4969,11 @@ class LinuxlikeTests(BasePlatformTests): self.assertEqual(foo_dep.get_pkgconfig_variable('foo', {}), 'bar') self.assertPathEqual(foo_dep.get_pkgconfig_variable('datadir', {}), '/usr/data') + libhello_nolib = PkgConfigDependency('libhello_nolib', env, kwargs) + self.assertTrue(libhello_nolib.found()) + self.assertEqual(libhello_nolib.get_link_args(), []) + self.assertEqual(libhello_nolib.get_compile_args(), []) + def test_pkgconfig_gen_deps(self): ''' Test that generated pkg-config files correctly handle dependencies |