aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2018-11-17 19:45:52 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2018-11-21 21:36:39 +0200
commit443a4a8c78a41653abc78dabbb664739c2811d02 (patch)
tree5115aa7337b71ffb2d938836ee2ee82c9e8d93c3 /run_unittests.py
parent5e91eb3d0c6750bc70504c02ca942f69aeb46178 (diff)
downloadmeson-443a4a8c78a41653abc78dabbb664739c2811d02.zip
meson-443a4a8c78a41653abc78dabbb664739c2811d02.tar.gz
meson-443a4a8c78a41653abc78dabbb664739c2811d02.tar.bz2
pkgconfig: add support for pkgconfig generation for c#
this adds support for generating pkgconfig files for c#. The difference to c and cpp is that the -I flag is not known to the c# compiler, but rather the -r flag which is used to link a .dll file into the compiled library. However this opens the question of validating which pkgconfig files can be generated (depending on the language). This implements 4409.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index bf912f2..ecd6b6e 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -4162,6 +4162,17 @@ endian = 'little'
deps.append(b'-lintl')
self.assertEqual(set(deps), set(stdo.split()))
+ @skipIfNoPkgconfig
+ @skip_if_not_language('cs')
+ def test_pkgconfig_csharp_library(self):
+ testdir = os.path.join(self.unit_test_dir, '48 pkgconfig csharp library')
+ self.init(testdir)
+ myenv = os.environ.copy()
+ myenv['PKG_CONFIG_PATH'] = self.privatedir
+ stdo = subprocess.check_output(['pkg-config', '--libs', 'libsomething'], env=myenv)
+
+ self.assertEqual("-r/usr/lib/libsomething.dll", str(stdo.decode('ascii')).strip())
+
def test_deterministic_dep_order(self):
'''
Test that the dependencies are always listed in a deterministic order.