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
3 # found in the LICENSE file.
10 'target_name': 'native_test_apk',
11 'message': 'building native test apk',
14 'native_test_native_code',
15 '<(DEPTH)/base/base.gyp:base_java',
19 'action_name': 'native_test_apk',
21 '<(DEPTH)/testing/android/native_test_apk.xml',
22 '<!@(find <(DEPTH)/testing/android -name "*.java")',
23 '>@(input_jars_paths)',
24 'native_test_launcher.cc'
27 # Awkwardly, we build a Debug APK even when gyp is in
28 # Release mode. I don't think it matters (e.g. we're
29 # probably happy to not codesign) but naming should be
30 # fixed. The -debug name is an aspect of the android
31 # SDK antfiles (e.g. ${sdk.dir}/tools/ant/build.xml)
32 '<(PRODUCT_DIR)/replaceme_apk/replaceme-debug.apk',
36 # TODO: All of these paths are absolute paths right now, while
37 # we really should be using relative paths for anything that is
38 # checked in to the Chromium tree (among which the SDK).
39 '-DPRODUCT_DIR=<(ant_build_out)',
40 '-DANDROID_SDK=<(android_sdk)',
41 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
42 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
43 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
44 '-DANDROID_GDBSERVER=<(android_gdbserver)',
45 '-DCHROMIUM_SRC=<(ant_build_out)/../..',
46 '-DINPUT_JARS_PATHS=>(input_jars_paths)',
48 '<(DEPTH)/testing/android/native_test_apk.xml',
54 'target_name': 'native_test_native_code',
55 'message': 'building native pieces of native test package',
56 'type': 'static_library',
58 'native_test_launcher.cc',
60 'direct_dependent_settings': {
62 # JNI_OnLoad is implemented in a .a and we need to
63 # re-export in the .so.
64 '-Wl,--exclude-libs=ALL',
68 '../../base/base.gyp:base',
69 '../../base/base.gyp:test_support_base',
71 'native_test_jni_headers',
75 'target_name': 'native_test_jni_headers',
78 'java/src/org/chromium/native_test/ChromeNativeTestActivity.java'
81 'jni_gen_dir': 'testing',
83 'includes': [ '../../build/jni_generator.gypi' ],
84 # So generated jni headers can be found by targets that
86 'direct_dependent_settings': {
88 '<(SHARED_INTERMEDIATE_DIR)',