OLD | NEW |
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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 ], | 387 ], |
388 }, | 388 }, |
389 'variables': { | 389 'variables': { |
390 'jni_gen_package': 'chromecast', | 390 'jni_gen_package': 'chromecast', |
391 }, | 391 }, |
392 'includes': [ '../build/jni_generator.gypi' ], | 392 'includes': [ '../build/jni_generator.gypi' ], |
393 }, | 393 }, |
394 ], # end of targets | 394 ], # end of targets |
395 }, { # OS != "android" | 395 }, { # OS != "android" |
396 'targets': [ | 396 'targets': [ |
397 # This target includes all dependencies that cannot be built on Android. | 397 # This target contains all of the primary code of |cast_shell|, except |
| 398 # for |main|. This allows end-to-end tests using |cast_shell|. |
| 399 # This also includes all targets that cannot be built on Android. |
398 { | 400 { |
399 'target_name': 'cast_shell', | 401 'target_name': 'cast_shell_core', |
400 'type': 'executable', | 402 'type': '<(component)', |
401 'dependencies': [ | 403 'dependencies': [ |
402 'cast_net', | 404 'cast_net', |
403 'cast_shell_common', | 405 'cast_shell_common', |
404 'media/media.gyp:cast_media', | 406 'media/media.gyp:cast_media', |
405 '../ui/aura/aura.gyp:aura_test_support', | 407 '../ui/aura/aura.gyp:aura_test_support', |
406 ], | 408 ], |
407 'sources': [ | |
408 'shell/app/cast_main.cc', | |
409 ], | |
410 'conditions': [ | 409 'conditions': [ |
411 ['chromecast_branding=="Chrome"', { | 410 ['chromecast_branding=="Chrome"', { |
412 'dependencies': [ | 411 'dependencies': [ |
413 'internal/chromecast_internal.gyp:cast_gfx_internal', | 412 'internal/chromecast_internal.gyp:cast_gfx_internal', |
414 ], | 413 ], |
415 }, { | 414 }, { |
416 'dependencies': [ | 415 'dependencies': [ |
417 '../ui/ozone/ozone.gyp:eglplatform_shim_x11', | 416 '../ui/ozone/ozone.gyp:eglplatform_shim_x11', |
418 ], | 417 ], |
419 }], | 418 }], |
420 ], | 419 ], |
421 }, | 420 }, |
| 421 { |
| 422 'target_name': 'cast_shell', |
| 423 'type': 'executable', |
| 424 'dependencies': [ |
| 425 'cast_shell_core', |
| 426 ], |
| 427 'sources': [ |
| 428 'shell/app/cast_main.cc', |
| 429 ], |
| 430 }, |
| 431 { |
| 432 'target_name': 'cast_shell_browser_test', |
| 433 'type': '<(gtest_target_type)', |
| 434 'dependencies': [ |
| 435 'cast_shell_test_support', |
| 436 '../testing/gtest.gyp:gtest', |
| 437 ], |
| 438 'defines': [ |
| 439 'HAS_OUT_OF_PROC_TEST_RUNNER', |
| 440 ], |
| 441 'sources': [ |
| 442 'shell/browser/test/chromecast_shell_browser_test.cc', |
| 443 ], |
| 444 }, |
| 445 { |
| 446 'target_name': 'cast_shell_test_support', |
| 447 'type': '<(component)', |
| 448 'defines': [ |
| 449 'HAS_OUT_OF_PROC_TEST_RUNNER', |
| 450 ], |
| 451 'dependencies': [ |
| 452 'cast_shell_core', |
| 453 '../content/content_shell_and_tests.gyp:content_browser_test_support
', |
| 454 '../testing/gtest.gyp:gtest', |
| 455 ], |
| 456 'sources': [ |
| 457 'shell/browser/test/chromecast_browser_test.cc', |
| 458 'shell/browser/test/chromecast_browser_test.h', |
| 459 'shell/browser/test/chromecast_browser_test_runner.cc', |
| 460 ], |
| 461 }, |
422 ], # end of targets | 462 ], # end of targets |
423 }], | 463 }], |
424 ], # end of conditions | 464 ], # end of conditions |
425 } | 465 } |
OLD | NEW |