OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'target_defaults': { | 9 'target_defaults': { |
10 'sources/': [ | 10 'sources/': [ |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 # ipc_tests into an android apk for execution. | 97 # ipc_tests into an android apk for execution. |
98 # See base.gyp for TODO(jrg)s about this strategy. | 98 # See base.gyp for TODO(jrg)s about this strategy. |
99 ['OS=="android" and "<(gtest_target_type)"=="shared_library"', { | 99 ['OS=="android" and "<(gtest_target_type)"=="shared_library"', { |
100 'targets': [ | 100 'targets': [ |
101 { | 101 { |
102 'target_name': 'ipc_tests_apk', | 102 'target_name': 'ipc_tests_apk', |
103 'type': 'none', | 103 'type': 'none', |
104 'dependencies': [ | 104 'dependencies': [ |
105 'ipc_tests', | 105 'ipc_tests', |
106 ], | 106 ], |
107 'actions': [ | 107 'variables': { |
108 { | 108 'test_suite_name': 'ipc_tests', |
109 # Generate apk files (including source and antfile) from | 109 'jar_name': 'chromium_base.jar', |
110 # a template, and builds them. | 110 }, |
111 'action_name': 'generate_and_build', | 111 'includes': [ '../build/apk_test.gypi' ], |
112 'inputs': [ | |
113 '../testing/android/AndroidManifest.xml', | |
114 '../testing/android/generate_native_test.py', | |
115 '<(PRODUCT_DIR)/lib.target/libipc_tests.so', | |
116 '<(PRODUCT_DIR)/lib.java/chromium_base.jar' | |
117 ], | |
118 'outputs': [ | |
119 '<(PRODUCT_DIR)/ipc_tests_apk/ipc_tests-debug.apk', | |
120 ], | |
121 'action': [ | |
122 '../testing/android/generate_native_test.py', | |
123 '--native_library', | |
124 '<(PRODUCT_DIR)/lib.target/libipc_tests.so', | |
125 # TODO(jrg): find a better way to specify jar | |
126 # dependencies. Hard coding seems fragile. | |
127 '--jar', | |
128 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', | |
129 '--output', | |
130 '<(PRODUCT_DIR)/ipc_tests_apk', | |
131 '--ant-args', | |
132 '-DPRODUCT_DIR=<(PRODUCT_DIR)', | |
133 '--ant-compile' | |
134 ], | |
135 }, | |
136 ], | |
137 }], | 112 }], |
138 }], | 113 }], |
139 ], | 114 ], |
140 } | 115 } |
OLD | NEW |