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

Side by Side Diff: chromecast/chromecast.gyp

Issue 1232313008: Chromecast: shrinks libcast_shell_android target for testability. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 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 'android_support_v13_target%': 7 'android_support_v13_target%':
8 '../third_party/android_tools/android_tools.gyp:android_support_v13_java lib', 8 '../third_party/android_tools/android_tools.gyp:android_support_v13_java lib',
9 'cast_build_release': 'internal/build/cast_build_release', 9 'cast_build_release': 'internal/build/cast_build_release',
10 'cast_is_debug_build%': 0, 10 'cast_is_debug_build%': 0,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 }, 53 },
54 { 54 {
55 'target_name': 'cast_base', 55 'target_name': 'cast_base',
56 'type': '<(component)', 56 'type': '<(component)',
57 'dependencies': [ 57 'dependencies': [
58 '../base/base.gyp:base', 58 '../base/base.gyp:base',
59 ], 59 ],
60 'sources': [ 60 'sources': [
61 'base/cast_paths.cc', 61 'base/cast_paths.cc',
62 'base/cast_paths.h', 62 'base/cast_paths.h',
63 'base/chromecast_config_android.cc',
64 'base/chromecast_config_android.h',
63 'base/chromecast_switches.cc', 65 'base/chromecast_switches.cc',
64 'base/chromecast_switches.h', 66 'base/chromecast_switches.h',
65 'base/error_codes.cc', 67 'base/error_codes.cc',
66 'base/error_codes.h', 68 'base/error_codes.h',
67 'base/metrics/cast_histograms.h', 69 'base/metrics/cast_histograms.h',
68 'base/metrics/cast_metrics_helper.cc', 70 'base/metrics/cast_metrics_helper.cc',
69 'base/metrics/cast_metrics_helper.h', 71 'base/metrics/cast_metrics_helper.h',
70 'base/metrics/grouped_histogram.cc', 72 'base/metrics/grouped_histogram.cc',
71 'base/metrics/grouped_histogram.h', 73 'base/metrics/grouped_histogram.h',
72 'base/path_utils.cc', 74 'base/path_utils.cc',
73 'base/path_utils.h', 75 'base/path_utils.h',
74 'base/process_utils.cc', 76 'base/process_utils.cc',
75 'base/process_utils.h', 77 'base/process_utils.h',
76 'base/serializers.cc', 78 'base/serializers.cc',
77 'base/serializers.h' 79 'base/serializers.h'
78 ], 80 ],
81 'conditions': [
82 ['OS=="android"', {
83 'dependencies': [
84 'cast_jni_headers',
85 ],
86 }],
87 ],
79 }, # end of target 'cast_base' 88 }, # end of target 'cast_base'
80 { 89 {
81 'target_name': 'cast_crash', 90 'target_name': 'cast_crash',
82 'type': '<(component)', 91 'type': '<(component)',
83 'include_dirs': [ 92 'include_dirs': [
84 # TODO(gfhuang): we should not need to include this directly, but 93 # TODO(gfhuang): we should not need to include this directly, but
85 # somehow depending on component.gyp:breakpad_component is not 94 # somehow depending on component.gyp:breakpad_component is not
86 # working as expected. 95 # working as expected.
87 '../breakpad/src', 96 '../breakpad/src',
88 ], 97 ],
(...skipping 22 matching lines...) Expand all
111 'crash/linux/minidump_params.h', 120 'crash/linux/minidump_params.h',
112 'crash/linux/minidump_writer.cc', 121 'crash/linux/minidump_writer.cc',
113 'crash/linux/minidump_writer.h', 122 'crash/linux/minidump_writer.h',
114 ], 123 ],
115 }, # end of target 'cast_crash' 124 }, # end of target 'cast_crash'
116 { 125 {
117 'target_name': 'cast_crash_client', 126 'target_name': 'cast_crash_client',
118 'type': '<(component)', 127 'type': '<(component)',
119 'dependencies': [ 128 'dependencies': [
120 'cast_crash', 129 'cast_crash',
130 '../breakpad/breakpad.gyp:breakpad_client',
121 '../components/components.gyp:crash_component', 131 '../components/components.gyp:crash_component',
122 '../content/content.gyp:content_common', 132 '../content/content.gyp:content_common',
123 ], 133 ],
134 'include_dirs': [
135 '../breakpad/src',
136 ],
124 'sources' : [ 137 'sources' : [
125 # TODO(slan): Move android crash_client here as well. 138 'app/android/crash_handler.cc',
139 'app/android/crash_handler.h',
140 'app/android/cast_crash_reporter_client_android.cc',
141 'app/android/cast_crash_reporter_client_android.h',
126 'app/linux/cast_crash_reporter_client.cc', 142 'app/linux/cast_crash_reporter_client.cc',
127 'app/linux/cast_crash_reporter_client.h', 143 'app/linux/cast_crash_reporter_client.h',
128 ], 144 ],
145 'conditions': [
146 ['OS=="android"', {
147 'dependencies': [
148 'cast_jni_headers',
149 ],
150 }],
151 ],
129 }, # end of target 'cast_crash_client' 152 }, # end of target 'cast_crash_client'
130 { 153 {
131 'target_name': 'cast_net', 154 'target_name': 'cast_net',
132 'type': '<(component)', 155 'type': '<(component)',
133 'sources': [ 156 'sources': [
134 'net/connectivity_checker.cc', 157 'net/connectivity_checker.cc',
135 'net/connectivity_checker.h', 158 'net/connectivity_checker.h',
136 'net/connectivity_checker_impl.cc', 159 'net/connectivity_checker_impl.cc',
137 'net/connectivity_checker_impl.h', 160 'net/connectivity_checker_impl.h',
138 'net/fake_connectivity_checker.cc', 161 'net/fake_connectivity_checker.cc',
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 '../components/components.gyp:metrics_profiler', 275 '../components/components.gyp:metrics_profiler',
253 '../content/content.gyp:content', 276 '../content/content.gyp:content',
254 '../content/content.gyp:content_app_both', 277 '../content/content.gyp:content_app_both',
255 '../skia/skia.gyp:skia', 278 '../skia/skia.gyp:skia',
256 '../third_party/WebKit/public/blink.gyp:blink', 279 '../third_party/WebKit/public/blink.gyp:blink',
257 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h', 280 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
258 ], 281 ],
259 'sources': [ 282 'sources': [
260 'app/cast_main_delegate.cc', 283 'app/cast_main_delegate.cc',
261 'app/cast_main_delegate.h', 284 'app/cast_main_delegate.h',
285 'browser/android/cast_window_android.cc',
286 'browser/android/cast_window_android.h',
287 'browser/android/cast_window_manager.cc',
288 'browser/android/cast_window_manager.h',
262 'browser/cast_browser_context.cc', 289 'browser/cast_browser_context.cc',
263 'browser/cast_browser_context.h', 290 'browser/cast_browser_context.h',
264 'browser/cast_browser_main_parts.cc', 291 'browser/cast_browser_main_parts.cc',
265 'browser/cast_browser_main_parts.h', 292 'browser/cast_browser_main_parts.h',
266 'browser/cast_browser_process.cc', 293 'browser/cast_browser_process.cc',
267 'browser/cast_browser_process.h', 294 'browser/cast_browser_process.h',
268 'browser/cast_content_browser_client.cc', 295 'browser/cast_content_browser_client.cc',
269 'browser/cast_content_browser_client.h', 296 'browser/cast_content_browser_client.h',
270 'browser/cast_content_window.cc', 297 'browser/cast_content_window.cc',
271 'browser/cast_content_window.h', 298 'browser/cast_content_window.h',
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 'dependencies': [ 357 'dependencies': [
331 'internal/chromecast_internal.gyp:cast_shell_internal', 358 'internal/chromecast_internal.gyp:cast_shell_internal',
332 ], 359 ],
333 }, { 360 }, {
334 'sources': [ 361 'sources': [
335 'browser/cast_content_browser_client_simple.cc', 362 'browser/cast_content_browser_client_simple.cc',
336 'browser/cast_network_delegate_simple.cc', 363 'browser/cast_network_delegate_simple.cc',
337 'browser/devtools/remote_debugging_server_simple.cc', 364 'browser/devtools/remote_debugging_server_simple.cc',
338 'browser/metrics/platform_metrics_providers_simple.cc', 365 'browser/metrics/platform_metrics_providers_simple.cc',
339 'browser/pref_service_helper_simple.cc', 366 'browser/pref_service_helper_simple.cc',
367 'browser/service/cast_service_android.cc',
368 'browser/service/cast_service_android.h',
340 'common/platform_client_auth_simple.cc', 369 'common/platform_client_auth_simple.cc',
341 'renderer/cast_content_renderer_client_simple.cc', 370 'renderer/cast_content_renderer_client_simple.cc',
342 ], 371 ],
343 'conditions': [ 372 'conditions': [
344 ['OS=="android"', { 373 ['OS!="android"', {
345 'sources': [
346 'browser/service/cast_service_android.cc',
347 'browser/service/cast_service_android.h',
348 ],
349 }, {
350 'sources': [ 374 'sources': [
351 'browser/media/cast_browser_cdm_factory_simple.cc', 375 'browser/media/cast_browser_cdm_factory_simple.cc',
352 'browser/service/cast_service_simple.cc', 376 'browser/service/cast_service_simple.cc',
353 'browser/service/cast_service_simple.h', 377 'browser/service/cast_service_simple.h',
354 ], 378 ],
355 }], 379 }],
356 ], 380 ],
357 }], 381 }],
358 # ExternalMetrics not necessary on Android and (as of this writing) uses 382 # ExternalMetrics not necessary on Android and (as of this writing) uses
359 # non-portable filesystem operations. Also webcrypto is not used on 383 # non-portable filesystem operations. Also webcrypto is not used on
360 # Android either. 384 # Android either.
361 ['OS=="linux"', { 385 ['OS=="linux"', {
362 'sources': [ 386 'sources': [
363 'browser/metrics/external_metrics.cc', 387 'browser/metrics/external_metrics.cc',
364 'browser/metrics/external_metrics.h', 388 'browser/metrics/external_metrics.h',
365 'graphics/cast_screen.cc', 389 'graphics/cast_screen.cc',
366 'graphics/cast_screen.h', 390 'graphics/cast_screen.h',
367 ], 391 ],
368 'dependencies': [ 392 'dependencies': [
369 '../components/components.gyp:metrics_serialization', 393 '../components/components.gyp:metrics_serialization',
370 ], 394 ],
371 }], 395 }],
372 ['OS=="android"', { 396 ['OS=="android"', {
373 'dependencies': [ 397 'dependencies': [
374 '../components/components.gyp:cdm_browser', 398 '../components/components.gyp:cdm_browser',
399 'cast_jni_headers',
375 ], 400 ],
376 }], 401 }],
377 ], 402 ],
378 }, 403 },
379 { 404 {
380 'target_name': 'cast_sys_info', 405 'target_name': 'cast_sys_info',
381 'type': '<(component)', 406 'type': '<(component)',
382 'dependencies': [ 407 'dependencies': [
383 'cast_public_api', 408 'cast_public_api',
384 '../base/base.gyp:base', 409 '../base/base.gyp:base',
385 ], 410 ],
386 'sources': [ 411 'sources': [
387 'base/cast_sys_info_util.h', 412 'base/cast_sys_info_util.h',
388 'base/cast_sys_info_dummy.cc', 413 'base/cast_sys_info_dummy.cc',
389 'base/cast_sys_info_dummy.h', 414 'base/cast_sys_info_dummy.h',
415 'base/cast_sys_info_android.cc',
416 'base/cast_sys_info_android.h',
390 ], 417 ],
391 'conditions': [ 418 'conditions': [
419 ['OS=="android"', {
420 'dependencies': [
421 'cast_jni_headers',
422 ],
423 }],
392 ['chromecast_branding!="Chrome" and OS!="android"', { 424 ['chromecast_branding!="Chrome" and OS!="android"', {
393 'sources': [ 425 'sources': [
394 'base/cast_sys_info_util_simple.cc', 426 'base/cast_sys_info_util_simple.cc',
395 ], 427 ],
396 }], 428 }],
397 ], 429 ],
398 }, # end of target 'cast_sys_info' 430 }, # end of target 'cast_sys_info'
399 { 431 {
400 'target_name': 'cast_version_header', 432 'target_name': 'cast_version_header',
401 'type': 'none', 433 'type': 'none',
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 { 493 {
462 'target_name': 'libcast_shell_android', 494 'target_name': 'libcast_shell_android',
463 'type': 'shared_library', 495 'type': 'shared_library',
464 'dependencies': [ 496 'dependencies': [
465 'cast_jni_headers', 497 'cast_jni_headers',
466 'cast_shell_common', 498 'cast_shell_common',
467 'cast_shell_icudata', 499 'cast_shell_icudata',
468 'cast_shell_pak', 500 'cast_shell_pak',
469 'cast_version_header', 501 'cast_version_header',
470 '../base/base.gyp:base', 502 '../base/base.gyp:base',
471 '../breakpad/breakpad.gyp:breakpad_client',
472 '../components/components.gyp:breakpad_host', 503 '../components/components.gyp:breakpad_host',
473 '../components/components.gyp:crash_component',
474 '../components/components.gyp:external_video_surface', 504 '../components/components.gyp:external_video_surface',
475 '../content/content.gyp:content', 505 '../content/content.gyp:content',
476 '../skia/skia.gyp:skia', 506 '../skia/skia.gyp:skia',
477 '../ui/gfx/gfx.gyp:gfx', 507 '../ui/gfx/gfx.gyp:gfx',
478 '../ui/gl/gl.gyp:gl', 508 '../ui/gl/gl.gyp:gl',
479 ], 509 ],
480 'include_dirs': [
481 '../breakpad/src',
482 ],
483 'sources': [ 510 'sources': [
484 'android/cast_jni_registrar.cc', 511 'android/cast_jni_registrar.cc',
485 'android/cast_jni_registrar.h', 512 'android/cast_jni_registrar.h',
486 'android/cast_metrics_helper_android.cc', 513 'android/cast_metrics_helper_android.cc',
487 'android/cast_metrics_helper_android.h', 514 'android/cast_metrics_helper_android.h',
488 'android/platform_jni_loader.h', 515 'android/platform_jni_loader.h',
489 'app/android/cast_crash_reporter_client_android.cc',
490 'app/android/cast_crash_reporter_client_android.h',
491 'app/android/cast_jni_loader.cc', 516 'app/android/cast_jni_loader.cc',
492 'app/android/crash_handler.cc',
493 'app/android/crash_handler.h',
494 'base/cast_sys_info_android.cc',
495 'base/cast_sys_info_android.h',
496 'base/chromecast_config_android.cc',
497 'base/chromecast_config_android.h',
498 'browser/android/cast_window_android.cc',
499 'browser/android/cast_window_android.h',
500 'browser/android/cast_window_manager.cc',
501 'browser/android/cast_window_manager.h',
502 ], 517 ],
503 'conditions': [ 518 'conditions': [
504 ['chromecast_branding=="Chrome"', { 519 ['chromecast_branding=="Chrome"', {
505 'dependencies': [ 520 'dependencies': [
506 'internal/chromecast_internal.gyp:cast_shell_android_internal' 521 'internal/chromecast_internal.gyp:cast_shell_android_internal'
507 ], 522 ],
508 }, { 523 }, {
509 'sources': [ 524 'sources': [
510 'android/platform_jni_loader_stub.cc', 525 'android/platform_jni_loader_stub.cc',
511 ], 526 ],
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 'sources': [ 710 'sources': [
696 'graphics/cast_egl_platform_default.cc', 711 'graphics/cast_egl_platform_default.cc',
697 'graphics/graphics_properties_default.cc', 712 'graphics/graphics_properties_default.cc',
698 'graphics/osd_plane_default.cc' 713 'graphics/osd_plane_default.cc'
699 ], 714 ],
700 } 715 }
701 ] 716 ]
702 }], 717 }],
703 ], # end of conditions 718 ], # end of conditions
704 } 719 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698