| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # Running gtests on a remote device via am instrument requires both an "app" | |
| 6 # APK and a "test" APK with different package names. Our gtests only use one | |
| 7 # APK, so we build a dummy APK to upload as the app. | |
| 8 | |
| 9 { | |
| 10 'variables': { | |
| 11 'remote_device_dummy_apk_name': 'remote_device_dummy', | |
| 12 'remote_device_dummy_apk_path': '<(PRODUCT_DIR)/apks/<(remote_device_dummy_a
pk_name).apk', | |
| 13 }, | |
| 14 'targets': [ | |
| 15 { | |
| 16 # GN: //build/android/pylib/remote/device/dummy:remote_device_dummy_apk | |
| 17 'target_name': 'remote_device_dummy_apk', | |
| 18 'type': 'none', | |
| 19 'variables': { | |
| 20 'apk_name': '<(remote_device_dummy_apk_name)', | |
| 21 'final_apk_path': '<(remote_device_dummy_apk_path)', | |
| 22 'java_in_dir': '.', | |
| 23 'never_lint': 1, | |
| 24 'android_manifest_path': '../../../../../../build/android/AndroidManifes
t.xml', | |
| 25 }, | |
| 26 'includes': [ | |
| 27 '../../../../../../build/java_apk.gypi', | |
| 28 ] | |
| 29 }, | |
| 30 { | |
| 31 'target_name': 'require_remote_device_dummy_apk', | |
| 32 'message': 'Making sure <(remote_device_dummy_apk_path) has been built.', | |
| 33 'type': 'none', | |
| 34 'variables': { | |
| 35 'required_file': '<(PRODUCT_DIR)/remote_device_dummy_apk/<(remote_device
_dummy_apk_name).apk.required', | |
| 36 }, | |
| 37 'inputs': [ | |
| 38 '<(remote_device_dummy_apk_path)', | |
| 39 ], | |
| 40 'outputs': [ | |
| 41 '<(required_file)', | |
| 42 ], | |
| 43 'action': [ | |
| 44 'python', '../../build/android/gyp/touch.py', '<(required_file)', | |
| 45 ], | |
| 46 } | |
| 47 ] | |
| 48 } | |
| OLD | NEW |