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

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: Addressed nit 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
Index: ipc/ipc.gyp
diff --git a/ipc/ipc.gyp b/ipc/ipc.gyp
index 0e72df59beefed280f3253730dc589b68205400f..421f633130039a755ccff1944fe59a9eccbbecea 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',
],
@@ -96,7 +96,7 @@
# 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',
@@ -104,36 +104,12 @@
'dependencies': [
'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': '<(PRODUCT_DIR)/lib.target/<(SHARED_LIB_PREFIX)ipc_tests<(SHARED_LIB_SUFFIX)',
+ 'input_jars': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar',],
+ },
+ 'includes': [ '../build/apk_test.gypi' ],
}],
}],
],
« content/content_tests.gypi ('K') | « content/content_tests.gypi ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698