]> git.zndr.dk Git - meson-test.git/commitdiff
Add gtest.wrap
authorJannik Zander <59698@grundfos.com>
Tue, 17 Jul 2018 09:02:11 +0000 (11:02 +0200)
committerJannik Zander <59698@grundfos.com>
Tue, 17 Jul 2018 09:02:11 +0000 (11:02 +0200)
meson.build
subprojects/gtest.wrap [new file with mode: 0644]

index 1dc970754308b528a68b337367b021864d52117d..5d2eae0e51f680c4a98ccaa4a773c253d1da8252 100644 (file)
@@ -1,5 +1,11 @@
 project('meson_test','cpp', 'c')
-gtest = dependency('gtest', main : true, required : false)
+
+
+gtest_sub = subproject('gtest')
+gtest = gtest_sub.get_variable('gtest_main_dep')
+
+
+subproject('gtest')
 subdir('folder1')
 subdir('folder1_test')
 subdir('folder2')
diff --git a/subprojects/gtest.wrap b/subprojects/gtest.wrap
new file mode 100644 (file)
index 0000000..773a713
--- /dev/null
@@ -0,0 +1,10 @@
+[wrap-file]
+directory = googletest-release-1.8.0
+
+source_url = https://github.com/google/googletest/archive/release-1.8.0.zip
+source_filename = gtest-1.8.0.zip
+source_hash = f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf
+
+patch_url = https://wrapdb.mesonbuild.com/v1/projects/gtest/1.8.0/5/get_zip
+patch_filename = gtest-1.8.0-5-wrap.zip
+patch_hash = 7eeaede4aa2610a403313b74e04baf91ccfbaef03203d8f56312e22df1834ec5