| 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 'conditions': [ | 6 'conditions': [ |
| 7 ['OS=="android"', { | 7 ['OS=="android"', { |
| 8 'targets': [ | 8 'targets': [ |
| 9 { | 9 { |
| 10 'target_name': 'native_test_apk', | 10 'target_name': 'native_test_apk', |
| 11 'message': 'building native test apk', | 11 'message': 'building native test apk', |
| 12 'type': 'none', | 12 'type': 'none', |
| 13 'dependencies': [ | 13 'dependencies': [ |
| 14 'native_test_native_code', | 14 'native_test_native_code', |
| 15 '<(DEPTH)/base/base.gyp:base_java', |
| 15 ], | 16 ], |
| 16 'actions': [ | 17 'actions': [ |
| 17 { | 18 { |
| 18 'action_name': 'copy_base_jar', | |
| 19 'inputs': ['<(PRODUCT_DIR)/lib.java/chromium_base.jar'], | |
| 20 'outputs': ['<(PRODUCT_DIR)/replaceme_apk/java/libs/chromium_base.
jar'], | |
| 21 'action': ['cp', '<@(_inputs)', '<@(_outputs)'], | |
| 22 }, | |
| 23 { | |
| 24 'action_name': 'native_test_apk', | 19 'action_name': 'native_test_apk', |
| 25 'inputs': [ | 20 'inputs': [ |
| 26 '<(DEPTH)/testing/android/native_test_apk.xml', | 21 '<(DEPTH)/testing/android/native_test_apk.xml', |
| 27 '<!@(find <(DEPTH)/testing/android -name "*.java")', | 22 '<!@(find <(DEPTH)/testing/android -name "*.java")', |
| 28 '<(PRODUCT_DIR)/replaceme_apk/java/libs/chromium_base.jar', | 23 '>@(input_jars_paths)', |
| 29 'native_test_launcher.cc' | 24 'native_test_launcher.cc' |
| 30 ], | 25 ], |
| 31 'outputs': [ | 26 'outputs': [ |
| 32 # Awkwardly, we build a Debug APK even when gyp is in | 27 # Awkwardly, we build a Debug APK even when gyp is in |
| 33 # Release mode. I don't think it matters (e.g. we're | 28 # Release mode. I don't think it matters (e.g. we're |
| 34 # probably happy to not codesign) but naming should be | 29 # probably happy to not codesign) but naming should be |
| 35 # fixed. The -debug name is an aspect of the android | 30 # fixed. The -debug name is an aspect of the android |
| 36 # SDK antfiles (e.g. ${sdk.dir}/tools/ant/build.xml) | 31 # SDK antfiles (e.g. ${sdk.dir}/tools/ant/build.xml) |
| 37 '<(PRODUCT_DIR)/replaceme_apk/replaceme-debug.apk', | 32 '<(PRODUCT_DIR)/replaceme_apk/replaceme-debug.apk', |
| 38 ], | 33 ], |
| 39 'action': [ | 34 'action': [ |
| 40 'ant', | 35 'ant', |
| 41 # TODO: All of these paths are absolute paths right now, while | 36 # TODO: All of these paths are absolute paths right now, while |
| 42 # we really should be using relative paths for anything that is | 37 # we really should be using relative paths for anything that is |
| 43 # checked in to the Chromium tree (among which the SDK). | 38 # checked in to the Chromium tree (among which the SDK). |
| 44 '-DPRODUCT_DIR=<(ant_build_out)', | 39 '-DPRODUCT_DIR=<(ant_build_out)', |
| 45 '-DANDROID_SDK=<(android_sdk)', | 40 '-DANDROID_SDK=<(android_sdk)', |
| 46 '-DANDROID_SDK_ROOT=<(android_sdk_root)', | 41 '-DANDROID_SDK_ROOT=<(android_sdk_root)', |
| 47 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', | 42 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)', |
| 48 '-DANDROID_SDK_VERSION=<(android_sdk_version)', | 43 '-DANDROID_SDK_VERSION=<(android_sdk_version)', |
| 49 '-DANDROID_GDBSERVER=<(android_gdbserver)', | 44 '-DANDROID_GDBSERVER=<(android_gdbserver)', |
| 50 '-DCHROMIUM_SRC=<(ant_build_out)/../..', | 45 '-DCHROMIUM_SRC=<(ant_build_out)/../..', |
| 46 '-DINPUT_JARS_PATHS=>(input_jars_paths)', |
| 51 '-buildfile', | 47 '-buildfile', |
| 52 '<(DEPTH)/testing/android/native_test_apk.xml', | 48 '<(DEPTH)/testing/android/native_test_apk.xml', |
| 53 ] | 49 ] |
| 54 } | 50 } |
| 55 ], | 51 ], |
| 56 }, | 52 }, |
| 57 { | 53 { |
| 58 'target_name': 'native_test_native_code', | 54 'target_name': 'native_test_native_code', |
| 59 'message': 'building native pieces of native test package', | 55 'message': 'building native pieces of native test package', |
| 60 'type': 'static_library', | 56 'type': 'static_library', |
| (...skipping 29 matching lines...) Expand all Loading... |
| 90 'direct_dependent_settings': { | 86 'direct_dependent_settings': { |
| 91 'include_dirs': [ | 87 'include_dirs': [ |
| 92 '<(SHARED_INTERMEDIATE_DIR)', | 88 '<(SHARED_INTERMEDIATE_DIR)', |
| 93 ], | 89 ], |
| 94 }, | 90 }, |
| 95 }, | 91 }, |
| 96 ], | 92 ], |
| 97 }] | 93 }] |
| 98 ], | 94 ], |
| 99 } | 95 } |
| OLD | NEW |