summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-08-24 21:16:22 +0300
committerGitHub <noreply@github.com>2017-08-24 21:16:22 +0300
commitcad020f9da4d52e52577926570b68bf9decef4ca (patch)
treede66734127764c753a2a79896a302e1ee5f91efd /test cases
parent90c7b5ea58c7d1fea83236cd05b0680dc1c52cac (diff)
parent44dc02849995188f8b25158d2c71009aeb264910 (diff)
downloadmeson-cad020f9da4d52e52577926570b68bf9decef4ca.tar.gz
Merge pull request #2243 from thiblahute/csharp
Patchset to allow using meson for gstreamer-sharp
Diffstat (limited to 'test cases')
-rw-r--r--test cases/csharp/2 library/meson.build12
1 files changed, 11 insertions, 1 deletions
diff --git a/test cases/csharp/2 library/meson.build b/test cases/csharp/2 library/meson.build
index 2082e0375..6b246a4bd 100644
--- a/test cases/csharp/2 library/meson.build
+++ b/test cases/csharp/2 library/meson.build
@@ -1,5 +1,15 @@
project('C# library', 'cs')
-l = shared_library('helper', 'helper.cs', install : true)
+python3 = import('python3').find_python()
+generated_sources = custom_target('gen_sources',
+ input: 'helper.cs',
+ output: 'helper.cs',
+ command: [python3, '-c',
+ 'import shutil, sys; shutil.copyfile(sys.argv[1], sys.argv[2])',
+ '@INPUT@', '@OUTPUT@']
+)
+
+l = shared_library('helper', generated_sources, install : true)
+
e = executable('prog', 'prog.cs', link_with : l, install : true)
test('libtest', e)