diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-04-06 14:29:23 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-04-19 17:57:34 +0300 |
commit | 3c64ecaf866ca611b40287c78f622e370f90f272 (patch) | |
tree | f9d39368fe36c75295ed2d60d045392a98da166e /run_unittests.py | |
parent | 8f6ad8e52e7ad7663b7737f32cb6c624971830fe (diff) | |
download | meson-3c64ecaf866ca611b40287c78f622e370f90f272.zip meson-3c64ecaf866ca611b40287c78f622e370f90f272.tar.gz meson-3c64ecaf866ca611b40287c78f622e370f90f272.tar.bz2 |
pkgconfig: Add support for CustomTarget objects in generator
Fixes: #8618.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 2a2fb4c..b6e349d 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -6486,6 +6486,13 @@ class LinuxlikeTests(BasePlatformTests): self.assertEqual(libhello_nolib.get_pkgconfig_variable('foo', {}), 'bar') self.assertEqual(libhello_nolib.get_pkgconfig_variable('prefix', {}), self.prefix) + cc = env.detect_c_compiler(MachineChoice.HOST) + if cc.get_id() in {'gcc', 'clang'}: + for name in {'ct', 'ct0'}: + ct_dep = PkgConfigDependency(name, env, kwargs) + self.assertTrue(ct_dep.found()) + self.assertIn('-lct', ct_dep.get_link_args()) + def test_pkgconfig_gen_deps(self): ''' Test that generated pkg-config files correctly handle dependencies |