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

Unified Diff: build/apk_test.gypi

Issue 10399126: Add APK targets for content_unittests and net_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added dependency on input jars, other minor issues fixed. 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 | « base/base.gyp ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/apk_test.gypi
diff --git a/build/apk_test.gypi b/build/apk_test.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..1a0c46511abca0693912edbad62f6fcb712e0a93
--- /dev/null
+++ b/build/apk_test.gypi
@@ -0,0 +1,55 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# This file is meant to be included into a target to provide a rule
+# to build APK based test suites.
+#
+# To use this, create a gyp target with the following form:
+# {
+# 'target_name': 'test_suite_name_apk',
+# 'type': 'none',
+# 'variables': {
+# 'test_suite_name': 'test_suite_name', # string
+# 'input_shlib_path' : '/path/to/test_suite.so', # string
+# 'input_jars_paths': ['/path/to/test_suite.jar', ... ], # list
+# },
+# 'includes': ['path/to/this/gypi/file'],
+# }
+#
+
+{
+ 'target_conditions': [
+ ['_toolset == "target"', {
+ 'conditions': [
+ ['OS == "android" and "<(gtest_target_type)" == "shared_library"', {
Ryan Sleevi 2012/05/23 23:58:33 Looks like there's still one place here (and line
nilesh 2012/05/24 00:05:35 Done.
+ 'actions': [{
+ 'action_name': 'apk_<(test_suite_name)',
+ 'message': 'Building <(test_suite_name) test apk.',
+ 'inputs': [
+ '<(DEPTH)/testing/android/AndroidManifest.xml',
+ '<(DEPTH)/testing/android/generate_native_test.py',
+ '<(input_shlib_path)',
+ '<@(input_jars_paths)',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/<(test_suite_name)_apk/<(test_suite_name)-debug.apk',
+ ],
+ 'action': [
+ '<(DEPTH)/testing/android/generate_native_test.py',
+ '--native_library',
+ '<(input_shlib_path)',
+ '--jars',
+ '"<@(input_jars_paths)"',
+ '--output',
+ '<(PRODUCT_DIR)/<(test_suite_name)_apk',
+ '--ant-args',
+ '-DPRODUCT_DIR=<(PRODUCT_DIR)',
+ '--ant-compile'
+ ],
+ }],
+ }], # 'OS == "android" and "<(gtest_target_type)" == "shared_library"
+ ], # conditions
+ }],
+ ], # target_conditions
+}
« no previous file with comments | « base/base.gyp ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698