diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lc-compliance/meson.build | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/lc-compliance/meson.build b/src/lc-compliance/meson.build index 130ddbb5..8b57474b 100644 --- a/src/lc-compliance/meson.build +++ b/src/lc-compliance/meson.build @@ -1,25 +1,14 @@ # SPDX-License-Identifier: CC0-1.0 libevent = dependency('libevent_pthreads', required : get_option('lc-compliance')) +libgtest = dependency('gtest', required : get_option('lc-compliance'), + fallback : ['gtest', 'gtest_dep']) -if not libevent.found() +if not (libevent.found() and libgtest.found()) lc_compliance_enabled = false subdir_done() endif -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_enabled = true lc_compliance_sources = files([ |