@@ -99,7 +99,7 @@ for android: [optional]
libexif-dev libjpeg-dev libyaml-dev
for lc-compliance: [optional]
- libevent-dev libgtest-dev
+ libevent-dev
Using GStreamer plugin
~~~~~~~~~~~~~~~~~~~~~~
@@ -1,15 +1,27 @@
# SPDX-License-Identifier: CC0-1.0
libevent = dependency('libevent_pthreads', required : get_option('lc-compliance'))
-libgtest = dependency('gtest', required : get_option('lc-compliance'))
-if not (libevent.found() and libgtest.found())
+if not libevent.found()
lc_compliance_enabled = false
subdir_done()
endif
lc_compliance_enabled = true
+if get_option('android_platform') == 'cros'
+ libgtest = dependency('gtest', required : get_option('lc-compliance'))
+
+ if not libgtest.found()
+ lc_compliance_enabled = false
+ subdir_done()
+ endif
+
+else
+ libgtest_sp = subproject('gtest')
+ libgtest = libgtest_sp.get_variable('gtest_dep')
+endif
+
lc_compliance_sources = files([
'../cam/event_loop.cpp',
'../cam/options.cpp',
@@ -1 +1,3 @@
-/libyuv
\ No newline at end of file
+/googletest-release*
+/libyuv
+/packagecache
\ No newline at end of file
new file mode 100644
@@ -0,0 +1,14 @@
+[wrap-file]
+directory = googletest-release-1.11.0
+source_url = https://github.com/google/googletest/archive/release-1.11.0.zip
+source_filename = gtest-1.11.0.zip
+source_hash = 353571c2440176ded91c2de6d6cd88ddd41401d14692ec1f99e35d013feda55a
+patch_filename = gtest_1.11.0-1_patch.zip
+patch_url = https://wrapdb.mesonbuild.com/v2/gtest_1.11.0-1/get_patch
+patch_hash = d38c39184384608b08419be52aed1d0f9d9d1b5ed71c0c35e51cccbdddab7084
+
+[provide]
+gtest = gtest_dep
+gtest_main = gtest_main_dep
+gmock = gmock_dep
+gmock_main = gmock_main_dep