Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: testing/android/native_test.gyp

Issue 13828003: [Android] Build gtest APKs like other APKs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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',
11 'message': 'building native test apk',
12 'type': 'none',
13 'dependencies': [
14 'native_test_native_code',
15 '<(DEPTH)/base/base.gyp:base_java',
16 ],
17 'actions': [
18 {
19 'action_name': 'native_test_apk',
20 'inputs': [
21 '<(DEPTH)/testing/android/native_test_apk.xml',
22 '<!@(find <(DEPTH)/testing/android -name "*.java")',
23 '>@(input_jars_paths)',
24 'native_test_launcher.cc'
25 ],
26 'outputs': [
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',
33 ],
34 'action': [
35 'ant', '-q',
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)',
47 '-buildfile',
48 '<(DEPTH)/testing/android/native_test_apk.xml',
49 ]
50 }
51 ],
52 },
53 {
54 'target_name': 'native_test_native_code', 10 'target_name': 'native_test_native_code',
55 'message': 'building native pieces of native test package', 11 'message': 'building native pieces of native test package',
56 'type': 'static_library', 12 'type': 'static_library',
57 'sources': [ 13 'sources': [
58 'native_test_launcher.cc', 14 'native_test_launcher.cc',
59 ], 15 ],
60 'direct_dependent_settings': { 16 'direct_dependent_settings': {
61 'ldflags!': [ 17 'ldflags!': [
62 # JNI_OnLoad is implemented in a .a and we need to 18 # JNI_OnLoad is implemented in a .a and we need to
63 # re-export in the .so. 19 # re-export in the .so.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 'native_test_util.h', 55 'native_test_util.h',
100 ], 56 ],
101 'dependencies': [ 57 'dependencies': [
102 '../../base/base.gyp:base', 58 '../../base/base.gyp:base',
103 ], 59 ],
104 }, 60 },
105 ], 61 ],
106 }] 62 }]
107 ], 63 ],
108 } 64 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698