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

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

Issue 10051021: apk-based test runner work for android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
(Empty)
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.
4
5 {
6 'conditions': [
7 ['OS=="android"', {
8 'targets': [
9 {
10 'target_name': 'native_test_apk',
11 'message': 'building native test apk',
12 'type': 'none',
13 'dependencies': [
14 'native_test_native_code',
15 ],
16 'actions': [
17 {
18 'action_name': 'native_test_apk',
19 'inputs': [
20 '<(DEPTH)/testing/android/native_test_apk.xml',
21 '<!@(find <(DEPTH)/testing/android -name "*.java")',
22 'native_test_launcher.cc'
23 ],
24 'outputs': [
25 # Awkwardly, we build a Debug APK even when gyp is in
26 # Release mode. I don't think it matters (e.g. we're
27 # probably happy to not codesign) but naming should be
28 # fixed. The -debug name is an aspect of the android
29 # SDK antfiles (e.g. ${sdk.dir}/tools/ant/build.xml)
30 '<(PRODUCT_DIR)/ChromeNativeTests-debug.apk',
31 ],
32 'action': [
33 'ant',
34 '-DPRODUCT_DIR=<(PRODUCT_DIR)',
35 '-buildfile',
36 '<(DEPTH)/testing/android/native_test_apk.xml',
37 ]
38 }
39 ],
40 },
41 {
42 'target_name': 'native_test_native_code',
43 'message': 'building native pieces of native test package',
44 'type': 'static_library',
45 'sources': [
46 'native_test_launcher.cc',
47 ],
48 'direct_dependent_settings': {
49 'ldflags!': [
50 # JNI_OnLoad is implemented in a .a and we need to
51 # re-export in the .so.
52 '-Wl,--exclude-libs=ALL',
53 ],
54 },
55 'dependencies': [
56 'jni_headers',
57 '../../base/base.gyp:base',
58 '../../base/base.gyp:test_support_base',
59 '../gtest.gyp:gtest',
60 ],
61 },
62 {
63 'target_name': 'jni_headers',
64 'type': 'none',
65 'actions': [
66 {
67 'action_name': 'generate_jni_headers',
68 'inputs': [
69 '../../base/android/jni_generator/jni_generator.py',
70 'java/src/org/chromium/native_test/ChromeNativeTestActivity.java '
71 ],
72 'outputs': [
73 '<(SHARED_INTERMEDIATE_DIR)/testing/android/jni/'
74 'chrome_native_test_activity_jni.h',
75 ],
76 'action': [
77 'python',
78 '../../base/android/jni_generator/jni_generator.py',
79 '-o',
80 '<@(_inputs)',
81 '<@(_outputs)',
82 ],
83 }
84 ],
85 # So generated jni headers can be found by targets that
86 # depend on this.
87 'direct_dependent_settings': {
88 'include_dirs': [
89 '<(SHARED_INTERMEDIATE_DIR)',
90 ],
91 },
92 },
93 ],
94 }]
95 ],
96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698