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 '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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 'graphics/cast_egl_platform_default.cc', | 531 'graphics/cast_egl_platform_default.cc', |
532 'graphics/graphics_properties_default.cc', | 532 'graphics/graphics_properties_default.cc', |
533 'graphics/osd_plane_default.cc' | 533 'graphics/osd_plane_default.cc' |
534 ], | 534 ], |
535 } | 535 } |
536 ], # end of targets | 536 ], # end of targets |
537 | 537 |
538 # Targets for Android receiver. | 538 # Targets for Android receiver. |
539 'conditions': [ | 539 'conditions': [ |
540 ['OS=="android"', { | 540 ['OS=="android"', { |
| 541 'variables': { |
| 542 'cast_shell_assets_path': '<(PRODUCT_DIR)/assets/cast_shell_apk', |
| 543 }, |
541 'targets': [ | 544 'targets': [ |
542 { | 545 { |
543 'target_name': 'cast_shell_icudata', | 546 'target_name': 'cast_shell_icudata', |
544 'type': 'none', | 547 'type': 'none', |
545 'dependencies': [ | 548 'dependencies': [ |
546 '../third_party/icu/icu.gyp:icudata', | 549 '../third_party/icu/icu.gyp:icudata', |
547 '../v8/tools/gyp/v8.gyp:v8_external_snapshot', | 550 '../v8/tools/gyp/v8.gyp:v8_external_snapshot', |
548 ], | 551 ], |
549 'copies': [{ | 552 'variables': { |
550 'destination': '<(PRODUCT_DIR)/assets', | 553 'dest_path': '<(cast_shell_assets_path)', |
551 'files': [ | 554 'src_files': [ |
552 '<(PRODUCT_DIR)/icudtl.dat', | 555 '<(PRODUCT_DIR)/icudtl.dat', |
| 556 '<(PRODUCT_DIR)/assets/cast_shell.pak', |
553 '<(PRODUCT_DIR)/natives_blob.bin', | 557 '<(PRODUCT_DIR)/natives_blob.bin', |
554 '<(PRODUCT_DIR)/snapshot_blob.bin', | 558 '<(PRODUCT_DIR)/snapshot_blob.bin', |
555 ], | 559 ], |
556 }], | 560 'clear': 1, |
| 561 }, |
| 562 'includes': ['../build/android/copy_ex.gypi'], |
557 }, | 563 }, |
558 { | 564 { |
559 'target_name': 'libcast_shell_android', | 565 'target_name': 'libcast_shell_android', |
560 'type': 'shared_library', | 566 'type': 'shared_library', |
561 'dependencies': [ | 567 'dependencies': [ |
562 'cast_jni_headers', | 568 'cast_jni_headers', |
563 'cast_shell_common', | 569 'cast_shell_common', |
564 'cast_shell_icudata', | 570 'cast_shell_icudata', |
565 'cast_shell_pak', | 571 'cast_shell_pak', |
566 'cast_version_header', | 572 'cast_version_header', |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
648 # Note(gunsch): there are no Java files in the android/ directory. | 654 # Note(gunsch): there are no Java files in the android/ directory. |
649 # Unfortunately, the java_apk.gypi target rigidly insists on having | 655 # Unfortunately, the java_apk.gypi target rigidly insists on having |
650 # a java_in_dir directory, but complains about duplicate classes | 656 # a java_in_dir directory, but complains about duplicate classes |
651 # from the common cast_shell_java target (shared with internal APK) | 657 # from the common cast_shell_java target (shared with internal APK) |
652 # if the actual Java path is used. | 658 # if the actual Java path is used. |
653 # This will hopefully be removable after the great GN migration. | 659 # This will hopefully be removable after the great GN migration. |
654 'java_in_dir': 'android', | 660 'java_in_dir': 'android', |
655 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/cast_shell_mani
fest/AndroidManifest.xml', | 661 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/cast_shell_mani
fest/AndroidManifest.xml', |
656 'package_name': 'org.chromium.chromecast.shell', | 662 'package_name': 'org.chromium.chromecast.shell', |
657 'native_lib_target': 'libcast_shell_android', | 663 'native_lib_target': 'libcast_shell_android', |
658 'asset_location': '<(PRODUCT_DIR)/assets', | 664 'asset_location': '<(cast_shell_assets_path)', |
659 'additional_input_paths': ['<(PRODUCT_DIR)/assets/cast_shell.pak'], | 665 'additional_input_paths': [ |
| 666 '<(asset_location)/cast_shell.pak', |
| 667 '<(asset_location)/icudtl.dat', |
| 668 '<(asset_location)/natives_blob.bin', |
| 669 '<(asset_location)/snapshot_blob.bin', |
| 670 ], |
660 }, | 671 }, |
661 'includes': [ '../build/java_apk.gypi' ], | 672 'includes': [ '../build/java_apk.gypi' ], |
662 }, | 673 }, |
663 { | 674 { |
664 'target_name': 'cast_jni_headers', | 675 'target_name': 'cast_jni_headers', |
665 'type': 'none', | 676 'type': 'none', |
666 'sources': [ | 677 'sources': [ |
667 'base/java/src/org/chromium/chromecast/base/ChromecastConfigAndroid.
java', | 678 'base/java/src/org/chromium/chromecast/base/ChromecastConfigAndroid.
java', |
668 'base/java/src/org/chromium/chromecast/base/DumpstateWriter.java', | 679 'base/java/src/org/chromium/chromecast/base/DumpstateWriter.java', |
669 'base/java/src/org/chromium/chromecast/base/SystemTimeChangeNotifier
Android.java', | 680 'base/java/src/org/chromium/chromecast/base/SystemTimeChangeNotifier
Android.java', |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 'cast_shell_core', | 770 'cast_shell_core', |
760 ], | 771 ], |
761 'sources': [ | 772 'sources': [ |
762 'app/cast_main.cc', | 773 'app/cast_main.cc', |
763 ], | 774 ], |
764 }, | 775 }, |
765 ], # end of targets | 776 ], # end of targets |
766 }], | 777 }], |
767 ], # end of conditions | 778 ], # end of conditions |
768 } | 779 } |
OLD | NEW |