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

Side by Side Diff: chrome/chrome_android.gypi

Issue 10918113: Add initial Chromium TestShell support for Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Yaron's Comments Created 8 years, 3 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 'variables': {
6 'chromium_code': 1,
7 },
8 'includes': [
9 'chrome_android_paks.gypi', # Included for the list of pak resources.
10 ],
11 'targets': [
12 {
13 'target_name': 'libchromiumtestshell',
14 'type': 'shared_library',
15 'dependencies': [
16 'chrome_android_core',
17 ],
18 'sources': [
19 'android/testshell/chrome_main_delegate_testshell_android.cc',
20 'android/testshell/chrome_main_delegate_testshell_android.h',
21 'android/testshell/testshell_entry_point.cc',
22 'android/testshell/testshell_stubs.cc',
23 ],
24 'include_dirs': [
25 '<(SHARED_INTERMEDIATE_DIR)/android',
26 '../skia/config',
27 ],
28 'conditions': [
29 [ 'order_profiling!=0', {
30 'conditions': [
31 [ 'OS="android"', {
32 'dependencies': [ '../tools/cygprofile/cygprofile.gyp:cygprofile', ],
33 }],
34 ],
35 }],
36 ],
37 },
38 {
39 'target_name': 'chromium_testshell',
40 'type': 'none',
41 'dependencies': [
42 'chrome_android_paks',
43 'libchromiumtestshell',
44 ],
45 'actions': [
46 {
47 'action_name': 'copy_and_strip_so',
48 'inputs': ['<(SHARED_LIB_DIR)/libchromiumtestshell.so'],
49 'outputs': ['<(PRODUCT_DIR)/chromium_testshell/libs/<(android_app_abi) /libchromiumtestshell.so'],
50 'action': [
51 '<(android_strip)',
52 '--strip-unneeded',
53 '<@(_inputs)',
54 '-o',
55 '<@(_outputs)',
56 ],
57 },
58 {
59 'action_name': 'chromium_testshell_generate_apk',
60 'inputs': [
61 '<@(chrome_android_pak_output_resources)',
62 '<!@(find android/testshell/java/src -name "*.java")',
63 '<!@(find android/testshell/java/src -name "*.png")',
64 '<!@(find android/testshell/java/src -name "*.xml")',
shashi 2012/09/10 18:37:29 android/testshell/java/res -name '*.png' android/t
David Trainor- moved to gerrit 2012/09/10 21:26:16 Good catch thanks! On 2012/09/10 18:37:29, shashi
65 '<(PRODUCT_DIR)/lib.java/chromium_base.jar',
66 '<(PRODUCT_DIR)/lib.java/chromium_net.jar',
67 '<(PRODUCT_DIR)/lib.java/chromium_media.jar',
68 '<(PRODUCT_DIR)/lib.java/chromium_content.jar',
69 '<(PRODUCT_DIR)/lib.java/chromium_chrome.jar',
70 '<(PRODUCT_DIR)/lib.java/chromium_web_contents_delegate_android.jar' ,
71 '<(PRODUCT_DIR)/chromium_testshell/libs/<(android_app_abi)/libchromi umtestshell.so'
72 ],
73 'outputs': [
74 '<(PRODUCT_DIR)/chromium_testshell/ChromiumTestShell-debug.apk',
75 ],
76 'action': [
77 'ant',
78 '-DPRODUCT_DIR=<(ant_build_out)',
79 '-DAPP_ABI=<(android_app_abi)',
80 '-DANDROID_SDK=<(android_sdk)',
81 '-DANDROID_SDK_ROOT=<(android_sdk_root)',
82 '-DANDROID_SDK_TOOLS=<(android_sdk_tools)',
83 '-DANDROID_SDK_VERSION=<(android_sdk_version)',
84 '-DANDROID_GDBSERVER=<(android_gdbserver)',
85 '-DCONFIGURATION_NAME=<(CONFIGURATION_NAME)',
86 '-buildfile',
87 '<(DEPTH)/chrome/android/testshell/java/chromium_testshell_apk.xml',
88 ],
89 },
90 ],
91 },
92 {
93 'target_name': 'chrome_android_core',
94 'type': 'static_library',
95 'dependencies': [
96 'chrome.gyp:browser',
97 'chrome.gyp:plugin',
98 'chrome.gyp:renderer',
99 'chrome.gyp:utility',
100 '../content/content.gyp:content',
101 '../skia/skia.gyp:skia',
102 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit',
103 '../v8/tools/gyp/v8.gyp:v8',
104 ],
105 'include_dirs': [
106 '..',
107 '<(SHARED_INTERMEDIATE_DIR)/android',
108 '<(SHARED_INTERMEDIATE_DIR)/chrome',
109 '<(android_ndk_include)',
110 ],
111 'sources': [
112 'app/android/chrome_android_initializer.cc',
113 'app/android/chrome_android_initializer.h',
114 'app/android/chrome_main_delegate_android.cc',
115 'app/android/chrome_main_delegate_android.h',
116 'app/chrome_main_delegate.cc',
117 'app/chrome_main_delegate.h',
118 'browser/android/tab_android.h',
119 ],
120 'link_settings': {
121 'libraries': [
122 '-landroid',
123 '-ljnigraphics',
124 ],
125 },
126 'conditions': [
127 [ 'java_bridge==1', {
128 'defines': [ 'ENABLE_JAVA_BRIDGE', ],
129 }],
130 ],
131 },
132 {
133 'target_name': 'chrome_android_paks',
134 'type': 'none',
135 'dependencies': [
136 '<(DEPTH)/chrome/chrome_resources.gyp:packed_resources',
137 '<(DEPTH)/chrome/chrome_resources.gyp:packed_extra_resources',
138 ],
139 'copies': [
140 {
141 'destination': '<(chrome_android_pak_output_folder)',
142 'files': [ '<@(chrome_android_pak_input_resources)' ],
143 }
144 ],
145 },
146 ],
147 }
148
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698