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

Unified Diff: sql/sql.gyp

Issue 10443068: Add APK targets for sql_unittests and sync_unit_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ninja build fix. Created 8 years, 7 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 | « no previous file | sync/sync.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/sql.gyp
diff --git a/sql/sql.gyp b/sql/sql.gyp
index f16f91a484ee255c26c3e640c2dd01abe875b112..0b1cbbd04ab79716727e79428effdbdf81754684 100644
--- a/sql/sql.gyp
+++ b/sql/sql.gyp
@@ -30,7 +30,7 @@
},
{
'target_name': 'sql_unittests',
- 'type': 'executable',
+ 'type': '<(gtest_target_type)',
'dependencies': [
'sql',
'../base/base.gyp:test_support_base',
@@ -56,7 +56,34 @@
}],
],
}],
+ ['OS == "android" and gtest_target_type == "shared_library"', {
+ 'dependencies': [
+ '../testing/android/native_test.gyp:native_test_native_code',
+ ],
+ }],
],
},
],
+ 'conditions': [
+ # Special target to wrap a gtest_target_type==shared_library
+ # sql_unittests into an android apk for execution.
+ ['OS == "android" and gtest_target_type == "shared_library"', {
+ 'targets': [
+ {
+ 'target_name': 'sql_unittests_apk',
+ 'type': 'none',
+ 'dependencies': [
+ '../base/base.gyp:base_java',
+ 'sql_unittests',
+ ],
+ 'variables': {
+ 'test_suite_name': 'sql_unittests',
+ 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)sql_unittests<(SHARED_LIB_SUFFIX)',
+ 'input_jars_paths': [ '<(PRODUCT_DIR)/lib.java/chromium_base.jar', ],
+ },
+ 'includes': [ '../build/apk_test.gypi' ],
+ },
+ ],
+ }],
+ ],
}
« no previous file with comments | « no previous file | sync/sync.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698