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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 'ipc_tests', | 105 'ipc_tests', |
106 ], | 106 ], |
107 'actions': [ | 107 'actions': [ |
108 { | 108 { |
109 # Generate apk files (including source and antfile) from | 109 # Generate apk files (including source and antfile) from |
110 # a template, and builds them. | 110 # a template, and builds them. |
111 'action_name': 'generate_and_build', | 111 'action_name': 'generate_and_build', |
112 'inputs': [ | 112 'inputs': [ |
113 '../testing/android/AndroidManifest.xml', | 113 '../testing/android/AndroidManifest.xml', |
114 '../testing/android/generate_native_test.py', | 114 '../testing/android/generate_native_test.py', |
115 '<(PRODUCT_DIR)/lib.target/libipc_tests.so', | 115 '<(SHARED_LIB_DIR)/libipc_tests.so', |
116 '<(PRODUCT_DIR)/lib.java/chromium_base.jar' | 116 '<(PRODUCT_DIR)/lib.java/chromium_base.jar' |
117 ], | 117 ], |
118 'outputs': [ | 118 'outputs': [ |
119 '<(PRODUCT_DIR)/ipc_tests_apk/ipc_tests-debug.apk', | 119 '<(PRODUCT_DIR)/ipc_tests_apk/ipc_tests-debug.apk', |
120 ], | 120 ], |
121 'action': [ | 121 'action': [ |
122 '../testing/android/generate_native_test.py', | 122 '../testing/android/generate_native_test.py', |
123 '--native_library', | 123 '--native_library', |
124 '<(PRODUCT_DIR)/lib.target/libipc_tests.so', | 124 '<(SHARED_LIB_DIR)/libipc_tests.so', |
125 # TODO(jrg): find a better way to specify jar | 125 # TODO(jrg): find a better way to specify jar |
126 # dependencies. Hard coding seems fragile. | 126 # dependencies. Hard coding seems fragile. |
127 '--jar', | 127 '--jar', |
128 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', | 128 '<(PRODUCT_DIR)/lib.java/chromium_base.jar', |
129 '--output', | 129 '--output', |
130 '<(PRODUCT_DIR)/ipc_tests_apk', | 130 '<(PRODUCT_DIR)/ipc_tests_apk', |
131 '--ant-args', | 131 '--ant-args', |
132 '-DPRODUCT_DIR=<(PRODUCT_DIR)', | 132 '-DPRODUCT_DIR=<(absolute_product_dir)', |
133 '--ant-compile' | 133 '--ant-compile' |
134 ], | 134 ], |
135 }, | 135 }, |
136 ], | 136 ], |
137 }], | 137 }], |
138 }], | 138 }], |
139 ], | 139 ], |
140 } | 140 } |
OLD | NEW |