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

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

Issue 10798010: Uses gyp "rules" rather than "actions" templates for the JNI generator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo on content_jni.gypi Created 8 years, 5 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
« no previous file with comments | « net/proxy/proxy_config_service_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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', 10 'target_name': 'native_test_apk',
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 'sources': [ 52 'sources': [
53 'native_test_launcher.cc', 53 'native_test_launcher.cc',
54 ], 54 ],
55 'direct_dependent_settings': { 55 'direct_dependent_settings': {
56 'ldflags!': [ 56 'ldflags!': [
57 # JNI_OnLoad is implemented in a .a and we need to 57 # JNI_OnLoad is implemented in a .a and we need to
58 # re-export in the .so. 58 # re-export in the .so.
59 '-Wl,--exclude-libs=ALL', 59 '-Wl,--exclude-libs=ALL',
60 ], 60 ],
61 }, 61 },
62 'dependencies': [ 62 'dependencies': [
63 '../../base/base.gyp:base', 63 '../../base/base.gyp:base',
64 '../../base/base.gyp:test_support_base', 64 '../../base/base.gyp:test_support_base',
65 '../gtest.gyp:gtest', 65 '../gtest.gyp:gtest',
66 'native_test_jni_headers', 66 'native_test_jni_headers',
67 ], 67 ],
68 }, 68 },
69 { 69 {
70 'target_name': 'native_test_jni_headers', 70 'target_name': 'native_test_jni_headers',
71 'type': 'none', 71 'type': 'none',
72 'actions': [ 72 'sources': [
73 { 73 'java/src/org/chromium/native_test/ChromeNativeTestActivity.java'
74 'action_name': 'generate_jni_headers',
75 'inputs': [
76 '../../base/android/jni_generator/jni_generator.py',
77 'java/src/org/chromium/native_test/ChromeNativeTestActivity.java '
78 ],
79 'outputs': [
80 '<(SHARED_INTERMEDIATE_DIR)/testing/android/jni/'
81 'chrome_native_test_activity_jni.h',
82 ],
83 'action': [
84 'python',
85 '../../base/android/jni_generator/jni_generator.py',
86 '-o',
87 '<@(_inputs)',
88 '<@(_outputs)',
89 ],
90 }
91 ], 74 ],
75 'variables': {
76 'jni_gen_dir': 'testing',
77 },
78 'includes': [ '../../build/jni_generator.gypi' ],
92 # So generated jni headers can be found by targets that 79 # So generated jni headers can be found by targets that
93 # depend on this. 80 # depend on this.
94 'direct_dependent_settings': { 81 'direct_dependent_settings': {
95 'include_dirs': [ 82 'include_dirs': [
96 '<(SHARED_INTERMEDIATE_DIR)', 83 '<(SHARED_INTERMEDIATE_DIR)',
97 ], 84 ],
98 }, 85 },
99 }, 86 },
100 ], 87 ],
101 }] 88 }]
102 ], 89 ],
103 } 90 }
OLDNEW
« no previous file with comments | « net/proxy/proxy_config_service_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698