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

Side by Side Diff: chromecast/chromecast.gyp

Issue 490603002: Chromecast: initial checkin of Android-based cast shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed a spot Created 6 years, 4 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 'chromecast_branding%': 'Chromium', 8 'chromecast_branding%': 'Chromium',
9 }, 9 },
10 'target_defaults': { 10 'target_defaults': {
(...skipping 24 matching lines...) Expand all
35 'internal/chromecast_internal.gyp:cast_common_internal', 35 'internal/chromecast_internal.gyp:cast_common_internal',
36 ], 36 ],
37 }, { 37 }, {
38 'sources': [ 38 'sources': [
39 'common/chromecast_config_simple.cc', 39 'common/chromecast_config_simple.cc',
40 ], 40 ],
41 }], 41 }],
42 ], 42 ],
43 }, 43 },
44 { 44 {
45 'target_name': 'cast_net',
46 'type': '<(component)',
47 'sources': [
48 'net/network_change_notifier_cast.cc',
49 'net/network_change_notifier_cast.h',
50 'net/network_change_notifier_factory_cast.cc',
51 'net/network_change_notifier_factory_cast.h',
52 ],
53 },
54 {
45 'target_name': 'cast_service', 55 'target_name': 'cast_service',
46 'type': '<(component)', 56 'type': '<(component)',
47 'dependencies': [ 57 'dependencies': [
48 '../skia/skia.gyp:skia', 58 '../skia/skia.gyp:skia',
49 ], 59 ],
50 'sources': [ 60 'sources': [
51 'service/cast_service.cc', 61 'service/cast_service.cc',
52 'service/cast_service.h', 62 'service/cast_service.h',
53 ], 63 ],
54 'conditions': [ 64 'conditions': [
55 ['chromecast_branding=="Chrome"', { 65 ['chromecast_branding=="Chrome"', {
56 'dependencies': [ 66 'dependencies': [
57 'internal/chromecast_internal.gyp:cast_service_internal', 67 'internal/chromecast_internal.gyp:cast_service_internal',
58 ], 68 ],
59 }, { 69 }, {
60 'dependencies': [ 70 'dependencies': [
61 '../base/base.gyp:base', 71 '../base/base.gyp:base',
62 '../content/content.gyp:content', 72 '../content/content.gyp:content',
63 ], 73 ],
64 'sources': [ 74 'conditions': [
65 'service/cast_service_simple.cc', 75 ['OS=="android"', {
66 'service/cast_service_simple.h', 76 'sources': [
77 'service/cast_service_android.cc',
78 'service/cast_service_android.h',
79 ],
80 }, {
81 'sources': [
82 'service/cast_service_simple.cc',
83 'service/cast_service_simple.h',
84 ],
85 }],
67 ], 86 ],
68 }], 87 }],
69 ], 88 ],
70 }, 89 },
71 { 90 {
72 'target_name': 'cast_shell_resources', 91 'target_name': 'cast_shell_resources',
73 'type': 'none', 92 'type': 'none',
74 'variables': { 93 'variables': {
75 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast', 94 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast',
76 }, 95 },
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak', 135 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
117 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak', 136 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
118 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pa k', 137 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources_100_percent.pa k',
119 ], 138 ],
120 'pak_output': '<(PRODUCT_DIR)/assets/cast_shell.pak', 139 'pak_output': '<(PRODUCT_DIR)/assets/cast_shell.pak',
121 }, 140 },
122 'includes': [ '../build/repack_action.gypi' ], 141 'includes': [ '../build/repack_action.gypi' ],
123 }, 142 },
124 ], 143 ],
125 }, 144 },
145 # This target contains all content-embedder implementation that is
146 # non-platform-specific.
126 { 147 {
127 'target_name': 'cast_shell', 148 'target_name': 'cast_shell_common',
128 'type': 'executable', 149 'type': '<(component)',
129 'dependencies': [ 150 'dependencies': [
130 'cast_common', 151 'cast_common',
131 'cast_service', 152 'cast_service',
132 'cast_shell_pak', 153 'cast_shell_pak',
133 'cast_shell_resources', 154 'cast_shell_resources',
134 'cast_version_header', 155 'cast_version_header',
135 'chromecast_locales.gyp:chromecast_locales_pak', 156 'chromecast_locales.gyp:chromecast_locales_pak',
136 'chromecast_locales.gyp:chromecast_settings', 157 'chromecast_locales.gyp:chromecast_settings',
137 '../ui/aura/aura.gyp:aura_test_support',
138 '../content/content.gyp:content', 158 '../content/content.gyp:content',
139 '../content/content.gyp:content_app_browser', 159 '../content/content.gyp:content_app_browser',
140 '../skia/skia.gyp:skia', 160 '../skia/skia.gyp:skia',
141 ], 161 ],
142 'sources': [ 162 'sources': [
143 'net/network_change_notifier_cast.cc',
144 'net/network_change_notifier_cast.h',
145 'net/network_change_notifier_factory_cast.cc',
146 'net/network_change_notifier_factory_cast.h',
147 'shell/app/cast_main.cc',
148 'shell/app/cast_main_delegate.cc', 163 'shell/app/cast_main_delegate.cc',
149 'shell/app/cast_main_delegate.h', 164 'shell/app/cast_main_delegate.h',
150 'shell/browser/cast_browser_context.cc', 165 'shell/browser/cast_browser_context.cc',
151 'shell/browser/cast_browser_context.h', 166 'shell/browser/cast_browser_context.h',
152 'shell/browser/cast_browser_main_parts.cc', 167 'shell/browser/cast_browser_main_parts.cc',
153 'shell/browser/cast_browser_main_parts.h', 168 'shell/browser/cast_browser_main_parts.h',
154 'shell/browser/cast_content_browser_client.cc', 169 'shell/browser/cast_content_browser_client.cc',
155 'shell/browser/cast_content_browser_client.h', 170 'shell/browser/cast_content_browser_client.h',
156 'shell/browser/cast_http_user_agent_settings.cc', 171 'shell/browser/cast_http_user_agent_settings.cc',
157 'shell/browser/cast_http_user_agent_settings.h', 172 'shell/browser/cast_http_user_agent_settings.h',
158 'shell/browser/devtools/cast_dev_tools_delegate.cc', 173 'shell/browser/devtools/cast_dev_tools_delegate.cc',
159 'shell/browser/devtools/cast_dev_tools_delegate.h', 174 'shell/browser/devtools/cast_dev_tools_delegate.h',
160 'shell/browser/devtools/remote_debugging_server.cc', 175 'shell/browser/devtools/remote_debugging_server.cc',
161 'shell/browser/devtools/remote_debugging_server.h', 176 'shell/browser/devtools/remote_debugging_server.h',
162 'shell/browser/geolocation/cast_access_token_store.cc', 177 'shell/browser/geolocation/cast_access_token_store.cc',
163 'shell/browser/geolocation/cast_access_token_store.h', 178 'shell/browser/geolocation/cast_access_token_store.h',
164 'shell/browser/url_request_context_factory.cc', 179 'shell/browser/url_request_context_factory.cc',
165 'shell/browser/url_request_context_factory.h', 180 'shell/browser/url_request_context_factory.h',
166 'shell/browser/webui/webui_cast.h', 181 'shell/browser/webui/webui_cast.h',
167 'shell/common/cast_content_client.cc', 182 'shell/common/cast_content_client.cc',
168 'shell/common/cast_content_client.h', 183 'shell/common/cast_content_client.h',
169 'shell/renderer/cast_content_renderer_client.cc', 184 'shell/renderer/cast_content_renderer_client.cc',
170 'shell/renderer/cast_content_renderer_client.h', 185 'shell/renderer/cast_content_renderer_client.h',
171 ], 186 ],
172 'conditions': [ 187 'conditions': [
173 ['chromecast_branding=="Chrome"', { 188 ['chromecast_branding=="Chrome"', {
174 'dependencies': [ 189 'dependencies': [
175 'internal/chromecast_internal.gyp:cast_gfx_internal',
176 'internal/chromecast_internal.gyp:cast_shell_internal', 190 'internal/chromecast_internal.gyp:cast_shell_internal',
177 ], 191 ],
178 }, { 192 }, {
179 'dependencies': [
180 '../ui/ozone/ozone.gyp:eglplatform_shim_x11',
181 ],
182 'sources': [ 193 'sources': [
183 'shell/browser/devtools/remote_debugging_server_simple.cc', 194 'shell/browser/devtools/remote_debugging_server_simple.cc',
184 'shell/browser/webui/webui_cast_simple.cc', 195 'shell/browser/webui/webui_cast_simple.cc',
185 ], 196 ],
186 }], 197 }],
187 ], 198 ],
188 }, 199 },
189 { 200 {
190 'target_name': 'cast_version_header', 201 'target_name': 'cast_version_header',
191 'type': 'none', 202 'type': 'none',
(...skipping 20 matching lines...) Expand all
212 'common/version.h.in', 223 'common/version.h.in',
213 '<@(_outputs)', 224 '<@(_outputs)',
214 ], 225 ],
215 'includes': [ 226 'includes': [
216 '../build/util/version.gypi', 227 '../build/util/version.gypi',
217 ], 228 ],
218 }, 229 },
219 ], 230 ],
220 }, 231 },
221 ], # end of targets 232 ], # end of targets
233
234 # Targets for Android receiver.
235 'conditions': [
236 ['OS=="android"', {
237 'targets': [
238 {
239 'target_name': 'libcast_shell_android',
240 'type': 'shared_library',
241 'dependencies': [
242 'cast_common',
243 'cast_shell_common',
244 'cast_jni_headers',
lcwu1 2014/08/27 02:33:02 Not int alphabetical order.
gunsch 2014/08/28 00:12:08 Done.
245 'cast_shell_pak',
246 'cast_version_header',
247 '../base/base.gyp:base',
248 '../content/content.gyp:content_app_browser',
249 '../content/content.gyp:content',
250 '../skia/skia.gyp:skia',
251 '../ui/gfx/gfx.gyp:gfx',
252 '../ui/gl/gl.gyp:gl',
253 ],
254 'sources': [
255 'android/cast_jni_registrar.cc',
256 'android/cast_jni_registrar.h',
257 'android/chromecast_config_android.cc',
258 'android/chromecast_config_android.h',
259 'android/platform_jni_loader.h',
260 'shell/app/android/cast_jni_loader.cc',
261 'shell/browser/android/cast_window_manager.cc',
262 'shell/browser/android/cast_window_manager.h',
263 'shell/browser/android/cast_window_android.cc',
264 'shell/browser/android/cast_window_android.h',
265 ],
266 'conditions': [
267 ['chromecast_branding=="Chrome"', {
268 'dependencies': [
269 '<(cast_internal_gyp):cast_shell_android_internal'
270 ],
271 }, {
272 'sources': [
273 'android/platform_jni_loader_simple.cc',
274 ],
275 }]
276 ],
277 }, # end of target 'libcast_shell_android'
278 {
279 'target_name': 'cast_shell_java',
280 'type': 'none',
281 'dependencies': [
282 '../base/base.gyp:base_java',
283 '../content/content.gyp:content_java',
284 '../media/media.gyp:media_java',
285 '../net/net.gyp:net_java',
286 '../third_party/android_tools/android_tools.gyp:android_support_v13_ javalib',
287 '../ui/android/ui_android.gyp:ui_java',
288 ],
289 'variables': {
290 'has_java_resources': 1,
291 'java_in_dir': 'shell/android/apk',
292 'resource_dir': 'shell/android/apk/res',
293 'R_package': 'org.chromium.chromecast.shell',
294 },
295 'includes': ['../build/java.gypi'],
296 }, # end of target 'cast_shell_java'
297 {
298 'target_name': 'cast_shell_apk',
299 'type': 'none',
300 'dependencies': [
301 'cast_shell_java',
302 'libcast_shell_android',
303 ],
304 'variables': {
305 'apk_name': 'CastShell',
306 'manifest_package_name': 'org.chromium.chromecast.shell',
307 # Note(gunsch): there are no Java files in the android/ directory.
308 # Unfortunately, the java_apk.gypi target rigidly insists on having
309 # a java_in_dir directory, but complains about duplicate classes
310 # from the common cast_shell_java target (shared with internal APK)
311 # if the actual Java path is used.
312 # This will hopefully be removable after the great GN migration.
313 'java_in_dir': 'android',
314 'android_manifest_path': 'shell/android/apk/AndroidManifest.xml',
315 'package_name': 'org.chromium.chromecast.shell',
316 'native_lib_target': 'libcast_shell_android',
317 'asset_location': '<(PRODUCT_DIR)/assets',
318 'additional_input_paths': ['<(PRODUCT_DIR)/assets/cast_shell.pak'],
319 },
320 'includes': [ '../build/java_apk.gypi' ],
321 },
322 {
323 'target_name': 'cast_jni_headers',
324 'type': 'none',
325 'sources': [
326 'shell/android/apk/src/org/chromium/chromecast/shell/CastWindowAndro id.java',
327 'shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManag er.java',
328 ],
329 'direct_dependent_settings': {
330 'include_dirs': [
331 '<(SHARED_INTERMEDIATE_DIR)/chromecast',
332 ],
333 },
334 'variables': {
335 'jni_gen_package': 'chromecast',
336 },
337 'includes': [ '../build/jni_generator.gypi' ],
338 },
339 ], # end of targets
340 }, {
byungchul 2014/08/27 18:54:27 Please add a comment saying that # OS!="android".
gunsch 2014/08/28 00:12:08 Done.
341 'targets': [
342 # This target contains all of the primary code of |cast_shell|.
lcwu1 2014/08/27 02:33:02 This line of comment doesn't look right in this pl
gunsch 2014/08/28 00:12:08 Done.
343 # This also includes all targets that cannot be built on Android.
344 {
345 'target_name': 'cast_shell',
346 'type': 'executable',
347 'dependencies': [
348 'cast_net',
349 'cast_shell_common',
350 '../ui/aura/aura.gyp:aura_test_support',
351 ],
352 'sources': [
353 'shell/app/cast_main.cc',
354 ],
355 'conditions': [
356 ['chromecast_branding=="Chrome"', {
357 'dependencies': [
358 'internal/chromecast_internal.gyp:cast_gfx_internal',
359 ],
360 }, {
361 'dependencies': [
362 '../ui/ozone/ozone.gyp:eglplatform_shim_x11',
363 ],
364 }],
365 ],
366 },
367 ], # end of targets
368 }],
369 ], # end of conditions
222 } 370 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698