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

Side by Side Diff: mojo/mojo.gyp

Issue 38993002: Build mojo_shell on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Darin's comments Created 7 years, 1 month 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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'target_defaults': { 9 'target_defaults': {
10 'defines': ['MOJO_IMPLEMENTATION'], 10 'defines': ['MOJO_IMPLEMENTATION'],
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 'system/raw_channel_posix_unittest.cc', 124 'system/raw_channel_posix_unittest.cc',
125 'system/simple_dispatcher_unittest.cc', 125 'system/simple_dispatcher_unittest.cc',
126 'system/test_utils.h', 126 'system/test_utils.h',
127 'system/waiter_list_unittest.cc', 127 'system/waiter_list_unittest.cc',
128 'system/waiter_test_utils.cc', 128 'system/waiter_test_utils.cc',
129 'system/waiter_test_utils.h', 129 'system/waiter_test_utils.h',
130 'system/waiter_unittest.cc', 130 'system/waiter_unittest.cc',
131 ], 131 ],
132 }, 132 },
133 { 133 {
134 'target_name': 'mojo_shell', 134 'target_name': 'mojo_shell_lib',
135 'type': 'executable', 135 'type': 'static_library',
136 'dependencies': [ 136 'dependencies': [
137 '../base/base.gyp:base', 137 '../base/base.gyp:base',
138 '../net/net.gyp:net', 138 '../net/net.gyp:net',
139 'mojo_system', 139 'mojo_system',
140 ], 140 ],
141 'sources': [ 141 'sources': [
142 'loader/job.cc', 142 'loader/job.cc',
143 'loader/job.h', 143 'loader/job.h',
144 'loader/loader.cc', 144 'loader/loader.cc',
145 'loader/loader.h', 145 'loader/loader.h',
146 'loader/url_request_context_getter.cc', 146 'loader/url_request_context_getter.cc',
147 'loader/url_request_context_getter.h', 147 'loader/url_request_context_getter.h',
148 'shell/app_container.cc', 148 'shell/app_container.cc',
149 'shell/app_container.h', 149 'shell/app_container.h',
150 'shell/shell.cc',
151 'shell/storage.cc', 150 'shell/storage.cc',
152 'shell/storage.h', 151 'shell/storage.h',
153 'shell/switches.cc', 152 'shell/switches.cc',
154 'shell/switches.h', 153 'shell/switches.h',
155 'shell/task_runners.cc', 154 'shell/task_runners.cc',
156 'shell/task_runners.h', 155 'shell/task_runners.h',
157 ], 156 ],
158 'conditions': [ 157 'conditions': [
159 ['OS == "win"', { 158 ['OS == "win"', {
160 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 159 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
161 'msvs_disabled_warnings': [ 160 'msvs_disabled_warnings': [
162 4267, 161 4267,
163 ], 162 ],
164 }], 163 }],
165 ], 164 ],
166 }, 165 },
167 { 166 {
167 'target_name': 'mojo_shell',
168 'type': 'executable',
169 'dependencies': [
170 '../base/base.gyp:base',
171 '../url/url.gyp:url_lib',
172 'mojo_shell_lib',
173 'mojo_system',
174 ],
175 'sources': [
176 'shell/shell.cc',
177 ],
178 'conditions': [
179 ['OS == "win"', {
180 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
181 'msvs_disabled_warnings': [
182 4267,
183 ],
184 }],
185 ],
186 },
187 {
168 'target_name': 'sample_app', 188 'target_name': 'sample_app',
169 'type': '<(component)', 189 'type': '<(component)',
170 'dependencies': [ 190 'dependencies': [
171 '../base/base.gyp:base', 191 '../base/base.gyp:base',
172 'mojo_system', 192 'mojo_system',
173 ], 193 ],
174 'sources': [ 194 'sources': [
175 'shell/sample_app.cc', 195 'shell/sample_app.cc',
176 ], 196 ],
177 }, 197 },
(...skipping 27 matching lines...) Expand all
205 ], 225 ],
206 'sources': [ 226 'sources': [
207 'public/bindings/sample/generated/sample_service.h', 227 'public/bindings/sample/generated/sample_service.h',
208 'public/bindings/sample/generated/sample_service_proxy.cc', 228 'public/bindings/sample/generated/sample_service_proxy.cc',
209 'public/bindings/sample/generated/sample_service_serialization.h', 229 'public/bindings/sample/generated/sample_service_serialization.h',
210 'public/bindings/sample/generated/sample_service_stub.cc', 230 'public/bindings/sample/generated/sample_service_stub.cc',
211 'public/bindings/sample/sample_test.cc', 231 'public/bindings/sample/sample_test.cc',
212 ], 232 ],
213 }, 233 },
214 ], 234 ],
235 'conditions': [
236 ['OS=="android"', {
237 'targets': [
238 {
239 'target_name': 'libmojo_shell',
240 'type': 'shared_library',
241 'dependencies': [
242 '../base/base.gyp:base',
243 'mojo_shell_lib',
244 ],
245 'sources': [
246 'shell/android/shell_library_loader.cc',
247 ],
248 },
249 {
250 'target_name': 'mojo_shell_apk',
251 'type': 'none',
252 'dependencies': [
253 '../base/base.gyp:base_java',
254 '../net/net.gyp:net_java',
255 'libmojo_shell',
256 ],
257 'variables': {
258 'apk_name': 'MojoShell',
259 'java_in_dir': '<(DEPTH)/mojo/shell/android/shell_apk',
260 'resource_dir': '<(DEPTH)/mojo/shell/android/shell_apk/res',
261 'native_lib_target': 'libmojo_shell',
262 },
263 'includes': [ '../build/java_apk.gypi' ],
264 }
265 ],
266 }],
267 ],
215 } 268 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698