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

Unified Diff: ipc/ipc.gyp

Issue 10399126: Add APK targets for content_unittests and net_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | « content/content_tests.gypi ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc.gyp
diff --git a/ipc/ipc.gyp b/ipc/ipc.gyp
index 0e72df59beefed280f3253730dc589b68205400f..f8bacddee9c8970b9e52c7a57610bb084867125c 100644
--- a/ipc/ipc.gyp
+++ b/ipc/ipc.gyp
@@ -63,7 +63,7 @@
'../build/linux/system.gyp:gtk',
],
}],
- ['OS=="android" and "<(gtest_target_type)"=="shared_library"', {
+ ['OS == "android" and gtest_target_type == "shared_library"', {
'dependencies': [
'../testing/android/native_test.gyp:native_test_native_code',
],
@@ -93,47 +93,24 @@
},
],
'conditions': [
- # Special target to wrap a <(gtest_target_type)==shared_library
+ # Special target to wrap a gtest_target_type==shared_library
# ipc_tests into an android apk for execution.
# See base.gyp for TODO(jrg)s about this strategy.
- ['OS=="android" and "<(gtest_target_type)"=="shared_library"', {
+ ['OS == "android" and gtest_target_type == "shared_library"', {
'targets': [
{
'target_name': 'ipc_tests_apk',
'type': 'none',
'dependencies': [
+ '../base/base.gyp:base_java',
'ipc_tests',
],
- 'actions': [
- {
- # Generate apk files (including source and antfile) from
- # a template, and builds them.
- 'action_name': 'generate_and_build',
- 'inputs': [
- '../testing/android/AndroidManifest.xml',
- '../testing/android/generate_native_test.py',
- '<(PRODUCT_DIR)/lib.target/libipc_tests.so',
- '<(PRODUCT_DIR)/lib.java/chromium_base.jar'
- ],
- 'outputs': [
- '<(PRODUCT_DIR)/ipc_tests_apk/ipc_tests-debug.apk',
- ],
- 'action': [
- '../testing/android/generate_native_test.py',
- '--native_library',
- '<(PRODUCT_DIR)/lib.target/libipc_tests.so',
- # TODO(jrg): find a better way to specify jar
- # dependencies. Hard coding seems fragile.
- '--jar',
- '<(PRODUCT_DIR)/lib.java/chromium_base.jar',
- '--output',
- '<(PRODUCT_DIR)/ipc_tests_apk',
- '--ant-args',
- '-DPRODUCT_DIR=<(PRODUCT_DIR)',
- '--ant-compile'
- ],
- },
- ],
+ 'variables': {
+ 'test_suite_name': 'ipc_tests',
+ 'input_shlib_path': '<(PRODUCT_DIR)/lib.target/<(SHARED_LIB_PREFIX)ipc_tests<(SHARED_LIB_SUFFIX)',
+ 'input_jars_paths': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar',],
+ },
+ 'includes': [ '../build/apk_test.gypi' ],
}],
}],
],
« no previous file with comments | « content/content_tests.gypi ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698