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

Side by Side Diff: chrome/BUILD.gn

Issue 2776613002: media: Move Widevine signature of Framework into a bundle (Closed)
Patch Set: media: Move Framework signature into a bundle Created 3 years, 9 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 | chrome/common/media/cdm_host_file_path.cc » ('j') | 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 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/compiler/pgo/pgo.gni") 8 import("//build/config/compiler/pgo/pgo.gni")
9 import("//build/config/features.gni") 9 import("//build/config/features.gni")
10 import("//build/config/locales.gni") 10 import("//build/config/locales.gni")
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 ":keystone_registration_framework", 654 ":keystone_registration_framework",
655 655
656 # verify_chrome_framework_order depends on :chrome_framework and, for 656 # verify_chrome_framework_order depends on :chrome_framework and, for
657 # non-component builds, will ensure the export symbol table is correct. 657 # non-component builds, will ensure the export symbol table is correct.
658 ":verify_chrome_framework_order", 658 ":verify_chrome_framework_order",
659 ] 659 ]
660 660
661 # Only official builds that include Widevine need the widevine 661 # Only official builds that include Widevine need the widevine
662 # signature file. 662 # signature file.
663 if (is_chrome_branded && enable_pepper_cdms) { 663 if (is_chrome_branded && enable_pepper_cdms) {
664 sources += [ "$root_out_dir/$chrome_framework_name.sig" ] 664 sources += [ "$root_out_dir/Widevine Resources.bundle" ]
Nico 2017/03/30 01:19:07 Does having a directory in sources work? I'd expec
Robert Sesek 2017/03/30 03:33:32 Yes, this works because of the deps as well. See l
665 public_deps += [ ":sign_chrome_framework_for_widevine" ] 665 public_deps += [ ":widevine_resources_bundle" ]
666 } 666 }
667 } 667 }
668 668
669 action("clean_up_old_versions") { 669 action("clean_up_old_versions") {
670 script = "//chrome/tools/build/mac/clean_up_old_versions.py" 670 script = "//chrome/tools/build/mac/clean_up_old_versions.py"
671 outputs = [ 671 outputs = [
672 "$root_gen_dir/run_$target_name.stamp", 672 "$root_gen_dir/run_$target_name.stamp",
673 ] 673 ]
674 args = [ 674 args = [
675 rebase_path("$root_out_dir/$chrome_product_full_name.app", 675 rebase_path("$root_out_dir/$chrome_product_full_name.app",
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 if (defined(chrome_framework_version)) { 929 if (defined(chrome_framework_version)) {
930 file += "Versions/$chrome_framework_version/" 930 file += "Versions/$chrome_framework_version/"
931 } 931 }
932 file += "$chrome_framework_name" 932 file += "$chrome_framework_name"
933 flags = 1 933 flags = 1
934 signature_file = "$root_out_dir/$chrome_framework_name.sig" 934 signature_file = "$root_out_dir/$chrome_framework_name.sig"
935 deps = [ 935 deps = [
936 ":chrome_framework", 936 ":chrome_framework",
937 ] 937 ]
938 } 938 }
939
940 mac_info_plist("widevine_resources_plist") {
941 info_plist = "//third_party/widevine/cdm/widevine_resources.plist"
942 extra_substitutions = [
943 "CHROMIUM_BUNDLE_ID=$chrome_mac_bundle_id",
944 "BUNDLE_ID=widevine_resources",
945 ]
946 executable_name = "Widevine Resources"
947 }
948
949 bundle_data("widevine_resources_plist_bundle_data") {
950 sources = get_target_outputs(":widevine_resources_plist")
951 outputs = [
952 "{{bundle_root_dir}}/Info.plist",
953 ]
954 public_deps = [
955 ":widevine_resources_plist",
956 ]
957 }
958
959 bundle_data("framework_widevine_signature") {
960 sources = [
961 "$root_out_dir/$chrome_framework_name.sig",
962 ]
963
964 outputs = [
965 "{{bundle_resources_dir}}/{{source_file_part}}",
966 ]
967
968 public_deps = [
969 ":sign_chrome_framework_for_widevine",
970 ]
971 }
972
973 create_bundle("widevine_resources_bundle") {
974 output_name = "Widevine Resources.bundle"
975 bundle_root_dir = "$root_build_dir/$output_name/Contents"
976 bundle_resources_dir = bundle_root_dir + "/Resources"
977
978 deps = [
979 ":framework_widevine_signature",
980 ":widevine_resources_plist_bundle_data",
981 ]
982 }
939 } 983 }
940 984
941 group("widevine_cdm_library") { 985 group("widevine_cdm_library") {
942 if (_should_bundle_widevine) { 986 if (_should_bundle_widevine) {
943 deps = [ 987 deps = [
944 ":widevine_cdm_library_binaries", 988 ":widevine_cdm_library_binaries",
945 ":widevine_cdm_library_manifest", 989 ":widevine_cdm_library_manifest",
946 ] 990 ]
947 } 991 }
948 } 992 }
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1726 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1683 "//chrome/tools/build/linux/chrome-wrapper", 1727 "//chrome/tools/build/linux/chrome-wrapper",
1684 "//third_party/xdg-utils/scripts/xdg-mime", 1728 "//third_party/xdg-utils/scripts/xdg-mime",
1685 "//third_party/xdg-utils/scripts/xdg-settings", 1729 "//third_party/xdg-utils/scripts/xdg-settings",
1686 ] 1730 ]
1687 outputs = [ 1731 outputs = [
1688 "$root_out_dir/{{source_file_part}}", 1732 "$root_out_dir/{{source_file_part}}",
1689 ] 1733 ]
1690 } 1734 }
1691 } 1735 }
OLDNEW
« no previous file with comments | « no previous file | chrome/common/media/cdm_host_file_path.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698