Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: third_party/leveldatabase/leveldatabase.gyp

Issue 213843002: Building env_chromium_unittests for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Eliminated redundant condition Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/leveldatabase/env_chromium_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/leveldatabase/leveldatabase.gyp
diff --git a/third_party/leveldatabase/leveldatabase.gyp b/third_party/leveldatabase/leveldatabase.gyp
index 3cb88693af6b1651ad48ef46aa3faa5662602781..f6956edbc7f288c25105eac5a42a255cdb2b1858 100644
--- a/third_party/leveldatabase/leveldatabase.gyp
+++ b/third_party/leveldatabase/leveldatabase.gyp
@@ -14,6 +14,22 @@
'use_snappy': 0,
},
}],
+ ['OS=="android" and gtest_target_type == "shared_library"', {
+ # Wrap env_chromium_unittests into an android apk for execution.
+ 'targets': [{
+ 'target_name': 'env_chromium_unittests_apk',
+ 'type': 'none',
+ 'dependencies': [
+ '<(DEPTH)/base/base.gyp:base_java',
+ 'env_chromium_unittests',
+ ],
+ 'variables': {
+ 'test_suite_name': 'env_chromium_unittests',
+ 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)env_chromium_unittests<(SHARED_LIB_SUFFIX)',
+ },
+ 'includes': [ '../../build/apk_test.gypi' ],
+ }],
+ }],
],
'target_defaults': {
'defines': [
@@ -180,6 +196,15 @@
'sources': [
'env_chromium_unittest.cc',
],
+ 'conditions': [
+ ['OS=="android" and gtest_target_type == "shared_library"', {
+ 'type': 'shared_library',
+ 'dependencies': [
+ '../../testing/android/native_test.gyp:native_test_native_code',
+ '../../tools/android/forwarder2/forwarder.gyp:forwarder2',
+ ],
+ }],
+ ],
},
{
'target_name': 'leveldb_testutil',
« no previous file with comments | « third_party/leveldatabase/env_chromium_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698