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 import("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 import("//build/config/locales.gni") | 9 import("//build/config/locales.gni") |
10 import("//build/config/sanitizers/sanitizers.gni") | 10 import("//build/config/sanitizers/sanitizers.gni") |
11 import("//build/config/ui.gni") | 11 import("//build/config/ui.gni") |
12 import("//build/config/win/console_app.gni") | 12 import("//build/config/win/console_app.gni") |
13 import("//build/config/win/manifest.gni") | 13 import("//build/config/win/manifest.gni") |
14 import("//chrome/chrome_repack_locales.gni") | 14 import("//chrome/chrome_repack_locales.gni") |
15 import("//chrome/common/features.gni") | 15 import("//chrome/common/features.gni") |
16 import("//chrome/version.gni") | 16 import("//chrome/version.gni") |
17 import("//ui/base/ui_features.gni") | 17 import("//ui/base/ui_features.gni") |
18 | 18 |
19 if (is_android) { | 19 if (is_android) { |
20 import("//build/config/android/rules.gni") | 20 import("//build/config/android/rules.gni") |
21 } else if (is_mac) { | 21 } else if (is_mac) { |
22 import("//build/compiled_action.gni") | 22 import("//build/compiled_action.gni") |
23 import("//build/config/mac/rules.gni") | 23 import("//build/config/mac/rules.gni") |
24 import("//build/mac/tweak_info_plist.gni") | 24 import("//build/mac/tweak_info_plist.gni") |
25 import("//build/util/branding.gni") | 25 import("//build/util/branding.gni") |
26 import("//build/util/version.gni") | 26 import("//build/util/version.gni") |
27 import("//build_overrides/v8.gni") | 27 import("//build_overrides/v8.gni") |
28 import("//media/cdm/ppapi/cdm_paths.gni") | |
28 } | 29 } |
29 | 30 |
30 if (is_win) { | 31 if (is_win) { |
31 action("reorder_imports") { | 32 action("reorder_imports") { |
32 script = "//build/win/reorder-imports.py" | 33 script = "//build/win/reorder-imports.py" |
33 | 34 |
34 # See comment in chrome_dll.gypi in the hardlink_to_output | 35 # See comment in chrome_dll.gypi in the hardlink_to_output |
35 # target for why this cannot be 'initial' like the DLL. | 36 # target for why this cannot be 'initial' like the DLL. |
36 inputs = [ | 37 inputs = [ |
37 "$root_out_dir/initialexe/chrome.exe", | 38 "$root_out_dir/initialexe/chrome.exe", |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
702 } else { | 703 } else { |
703 group("chrome_framework_plugins") { | 704 group("chrome_framework_plugins") { |
704 } | 705 } |
705 } | 706 } |
706 | 707 |
707 if (is_chrome_branded) { | 708 if (is_chrome_branded) { |
708 bundle_data("flash_player_plugin") { | 709 bundle_data("flash_player_plugin") { |
709 sources = [ | 710 sources = [ |
710 "$root_out_dir/PepperFlash/PepperFlashPlayer.plugin", | 711 "$root_out_dir/PepperFlash/PepperFlashPlayer.plugin", |
711 ] | 712 ] |
712 | |
713 outputs = [ | 713 outputs = [ |
714 "{{bundle_root_dir}}/Internet Plug-Ins/PepperFlash/{{source_file_part}}" , | 714 "{{bundle_root_dir}}/Internet Plug-Ins/PepperFlash/{{source_file_part}}" , |
715 ] | 715 ] |
716 | |
717 public_deps = [ | 716 public_deps = [ |
718 "//third_party/adobe/flash:flapper_binaries", | 717 "//third_party/adobe/flash:flapper_binaries", |
719 ] | 718 ] |
720 } | 719 } |
720 | |
721 bundle_data("widevine_plugin_libs") { | |
xhwang
2016/06/02 21:04:44
nit: here and below, s/plugin/cdm
Robert Sesek
2016/06/03 15:43:01
I'm going to use "library" instead because that's
xhwang
2016/06/03 16:09:34
Well, library_libs seems redundant. I feel the "li
Robert Sesek
2016/06/03 18:35:15
It isn't redundant. The "libs" covers the fact tha
| |
722 sources = [ | |
723 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib", | |
724 "$root_out_dir/$widevine_cdm_path/widevinecdmadapter.plugin", | |
725 ] | |
726 outputs = [ | |
727 "{{bundle_root_dir}}/Libraries/$widevine_cdm_path/{{source_file_part}}", | |
728 ] | |
729 public_deps = [ | |
730 "//third_party/widevine/cdm:widevinecdm", | |
731 "//third_party/widevine/cdm:widevinecdmadapter", | |
732 ] | |
733 } | |
734 | |
735 bundle_data("widevine_plugin_manifest") { | |
xhwang
2016/06/02 21:04:44
ditto
| |
736 sources = [ | |
737 "$root_out_dir/WidevineCdm/manifest.json", | |
738 ] | |
739 outputs = [ | |
740 "{{bundle_root_dir}}/Libraries/WidevineCdm/{{source_file_part}}", | |
741 ] | |
742 public_deps = [ | |
743 "//third_party/widevine/cdm:widevine_cdm_manifest", | |
744 ] | |
745 } | |
721 } else { | 746 } else { |
722 group("flash_player_plugin") { | 747 group("flash_player_plugin") { |
723 } | 748 } |
724 } | 749 } |
725 | 750 |
751 group("widevine_plugin") { | |
xhwang
2016/06/02 21:04:44
ditto
| |
752 if (is_chrome_branded) { | |
753 deps = [ | |
754 ":widevine_plugin_libs", | |
755 ":widevine_plugin_manifest", | |
756 ] | |
757 } | |
758 } | |
759 | |
726 if (enable_mac_keystone) { | 760 if (enable_mac_keystone) { |
727 action("keystone_registration_framework") { | 761 action("keystone_registration_framework") { |
728 script = "//chrome/tools/build/mac/copy_keystone_framework.py" | 762 script = "//chrome/tools/build/mac/copy_keystone_framework.py" |
729 | 763 |
730 framework_path = "//third_party/googlemac/Releases/Keystone/KeystoneRegist ration.framework" | 764 framework_path = "//third_party/googlemac/Releases/Keystone/KeystoneRegist ration.framework" |
731 output_path = "$root_out_dir/$chrome_framework_name.framework/Frameworks/" | 765 output_path = "$root_out_dir/$chrome_framework_name.framework/Frameworks/" |
732 | 766 |
733 sources = [ | 767 sources = [ |
734 framework_path, | 768 framework_path, |
735 script, | 769 script, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
836 public_deps = [ | 870 public_deps = [ |
837 ":chrome_dll", | 871 ":chrome_dll", |
838 ] | 872 ] |
839 | 873 |
840 deps = [ | 874 deps = [ |
841 ":chrome_framework_helpers", | 875 ":chrome_framework_helpers", |
842 ":chrome_framework_locales", | 876 ":chrome_framework_locales", |
843 ":chrome_framework_plugins", | 877 ":chrome_framework_plugins", |
844 ":chrome_framework_resources", | 878 ":chrome_framework_resources", |
845 ":flash_player_plugin", | 879 ":flash_player_plugin", |
880 ":widevine_plugin", | |
846 "//build/config/sanitizers:deps", | 881 "//build/config/sanitizers:deps", |
847 "//chrome/app/nibs:chrome_xibs", | 882 "//chrome/app/nibs:chrome_xibs", |
848 ] | 883 ] |
849 | 884 |
850 if (is_chrome_branded) { | 885 if (is_chrome_branded) { |
851 deps += [ ":default_apps" ] | 886 deps += [ ":default_apps" ] |
852 } | 887 } |
853 | 888 |
854 ldflags = [ | 889 ldflags = [ |
855 "-Wl,-install_name,@executable_path/../Versions/$chrome_version_full/$chro me_framework_name.framework/$chrome_framework_name", | 890 "-Wl,-install_name,@executable_path/../Versions/$chrome_version_full/$chro me_framework_name.framework/$chrome_framework_name", |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1567 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1602 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1568 "//chrome/tools/build/linux/chrome-wrapper", | 1603 "//chrome/tools/build/linux/chrome-wrapper", |
1569 "//third_party/xdg-utils/scripts/xdg-mime", | 1604 "//third_party/xdg-utils/scripts/xdg-mime", |
1570 "//third_party/xdg-utils/scripts/xdg-settings", | 1605 "//third_party/xdg-utils/scripts/xdg-settings", |
1571 ] | 1606 ] |
1572 outputs = [ | 1607 outputs = [ |
1573 "$root_out_dir/{{source_file_part}}", | 1608 "$root_out_dir/{{source_file_part}}", |
1574 ] | 1609 ] |
1575 } | 1610 } |
1576 } | 1611 } |
OLD | NEW |