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 { |
| 6 'conditions': [ |
| 7 ['OS=="android"', { |
| 8 'variables' : { |
| 9 'driver_apk_name': 'OnDeviceInstrumentationDriver', |
| 10 'driver_apk_path': '<(PRODUCT_DIR)/apks/<(driver_apk_name).apk' |
| 11 }, |
| 12 'targets': [ |
| 13 { |
| 14 'target_name': 'reporter_java', |
| 15 'type': 'none', |
| 16 'dependencies': ['../../base/base.gyp:base_java'], |
| 17 'variables': { |
| 18 'java_in_dir': '../../testing/android/reporter/java', |
| 19 }, |
| 20 'includes': [ |
| 21 '../../build/java.gypi', |
| 22 ], |
| 23 }, |
| 24 { |
| 25 'target_name': 'broker_java', |
| 26 'type': 'none', |
| 27 'variables': { |
| 28 'java_in_dir': '../../testing/android/broker/java', |
| 29 }, |
| 30 'includes': [ |
| 31 '../../build/java.gypi', |
| 32 ], |
| 33 }, |
| 34 { |
| 35 'target_name': 'driver_apk', |
| 36 'type': 'none', |
| 37 'dependencies': [ |
| 38 'broker_java', |
| 39 'reporter_java', |
| 40 'appurify_support.gyp:appurify_support_java', |
| 41 ], |
| 42 'variables': { |
| 43 'apk_name': '<(driver_apk_name)', |
| 44 'final_apk_path': '<(driver_apk_path)', |
| 45 'java_in_dir': '../../testing/android/driver/java', |
| 46 }, |
| 47 'includes': [ |
| 48 '../../build/java_apk.gypi', |
| 49 ], |
| 50 }, |
| 51 { |
| 52 # This emulates gn's datadeps fields, allowing other APKs to declare |
| 53 # that they require that this APK be built without including the |
| 54 # driver's code. |
| 55 'target_name': 'require_driver_apk', |
| 56 'type': 'none', |
| 57 'actions': [ |
| 58 { |
| 59 'action_name': 'require_<(driver_apk_name)', |
| 60 'message': 'Making sure <(driver_apk_path) has been built.', |
| 61 'variables': { |
| 62 'required_file': '<(PRODUCT_DIR)/driver_apk/<(driver_apk_name).a
pk.required', |
| 63 }, |
| 64 'inputs': [ |
| 65 '<(driver_apk_path)', |
| 66 ], |
| 67 'outputs': [ |
| 68 '<(required_file)', |
| 69 ], |
| 70 'action': [ |
| 71 'python', '../../build/android/gyp/touch.py', '<(required_file)'
, |
| 72 ], |
| 73 }, |
| 74 ], |
| 75 }, |
| 76 ], |
| 77 }], |
| 78 ], |
| 79 } |
OLD | NEW |