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

Side by Side Diff: chrome/BUILD.gn

Issue 2714643009: Revert of Add Widevine signature files into Mac build (Closed)
Patch Set: Created 3 years, 10 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 | third_party/widevine/cdm/BUILD.gn » ('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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 642
643 # keystone_registration_framework copies the framework into the framework 643 # keystone_registration_framework copies the framework into the framework
644 # bundle via a script that performs additional actions, rather than 644 # bundle via a script that performs additional actions, rather than
645 # relying on a bundle_data to copy it. 645 # relying on a bundle_data to copy it.
646 ":keystone_registration_framework", 646 ":keystone_registration_framework",
647 647
648 # verify_chrome_framework_order depends on :chrome_framework and, for 648 # verify_chrome_framework_order depends on :chrome_framework and, for
649 # non-component builds, will ensure the export symbol table is correct. 649 # non-component builds, will ensure the export symbol table is correct.
650 ":verify_chrome_framework_order", 650 ":verify_chrome_framework_order",
651 ] 651 ]
652
653 # Only official builds that include Widevine need the widevine
654 # signature file.
655 if (is_chrome_branded && enable_pepper_cdms) {
656 sources += [ "$root_out_dir/$chrome_framework_name.sig" ]
657 public_deps += [ ":sign_chrome_framework_for_widevine" ]
658 }
659 } 652 }
660 653
661 action("clean_up_old_versions") { 654 action("clean_up_old_versions") {
662 script = "//chrome/tools/build/mac/clean_up_old_versions.py" 655 script = "//chrome/tools/build/mac/clean_up_old_versions.py"
663 outputs = [ 656 outputs = [
664 "$root_gen_dir/run_$target_name.stamp", 657 "$root_gen_dir/run_$target_name.stamp",
665 ] 658 ]
666 args = [ 659 args = [
667 rebase_path("$root_out_dir/$chrome_product_full_name.app", 660 rebase_path("$root_out_dir/$chrome_product_full_name.app",
668 root_build_dir), 661 root_build_dir),
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 "{{bundle_root_dir}}/Libraries/$widevine_cdm_path/{{source_file_part}}", 855 "{{bundle_root_dir}}/Libraries/$widevine_cdm_path/{{source_file_part}}",
863 ] 856 ]
864 public_deps = [ 857 public_deps = [
865 # Need this intermediate dependency because "widevinecdm" is a 858 # Need this intermediate dependency because "widevinecdm" is a
866 # shared_library if !is_chrome_branded, and then depending on 859 # shared_library if !is_chrome_branded, and then depending on
867 # "widevinecdm" directly would cause it to be linked into the Chromium 860 # "widevinecdm" directly would cause it to be linked into the Chromium
868 # Framework, which we don't want. 861 # Framework, which we don't want.
869 ":widevine_cdm_library_copy", 862 ":widevine_cdm_library_copy",
870 "//third_party/widevine/cdm:widevinecdmadapter", 863 "//third_party/widevine/cdm:widevinecdmadapter",
871 ] 864 ]
872
873 # Signatures are only generated for official chrome.
874 if (is_chrome_branded) {
875 sources += [
876 "$root_out_dir/$widevine_cdm_path/widevinecdmadapter.plugin.sig",
877 "$root_out_dir/libwidevinecdm.dylib.sig",
878 ]
879 public_deps += [ ":sign_cdm_adapter_for_widevine" ]
880 }
881 } 865 }
882 866
883 copy("widevine_cdm_library_copy") { 867 copy("widevine_cdm_library_copy") {
884 sources = [ 868 sources = [
885 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib", 869 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib",
886 ] 870 ]
887 if (is_chrome_branded) {
888 sources +=
889 [ "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib.sig" ]
890 }
891 outputs = [ 871 outputs = [
892 "$root_out_dir/{{source_file_part}}", 872 "$root_out_dir/{{source_file_part}}",
893 ] 873 ]
894 deps = [ 874 deps = [
895 "//third_party/widevine/cdm:widevinecdm", 875 "//third_party/widevine/cdm:widevinecdm",
896 ] 876 ]
897 } 877 }
898 878
899 bundle_data("widevine_cdm_library_manifest") { 879 bundle_data("widevine_cdm_library_manifest") {
900 sources = [ 880 sources = [
901 "$root_out_dir/WidevineCdm/manifest.json", 881 "$root_out_dir/WidevineCdm/manifest.json",
902 ] 882 ]
903 outputs = [ 883 outputs = [
904 "{{bundle_root_dir}}/Libraries/WidevineCdm/{{source_file_part}}", 884 "{{bundle_root_dir}}/Libraries/WidevineCdm/{{source_file_part}}",
905 ] 885 ]
906 public_deps = [ 886 public_deps = [
907 "//third_party/widevine/cdm:widevine_cdm_manifest", 887 "//third_party/widevine/cdm:widevine_cdm_manifest",
908 ] 888 ]
909 } 889 }
910
911 widevine_sign_file("sign_cdm_adapter_for_widevine") {
912 file = "$root_out_dir/$widevine_cdm_path/widevinecdmadapter.plugin"
913 deps = [
914 "//third_party/widevine/cdm:widevinecdmadapter",
915 ]
916 }
917
918 widevine_sign_file("sign_chrome_framework_for_widevine") {
919 file = "$root_out_dir/$chrome_framework_name.framework/"
920 if (defined(chrome_framework_version)) {
921 file += "Versions/$chrome_framework_version/"
922 }
923 file += "$chrome_framework_name"
924 signature_file = "$root_out_dir/$chrome_framework_name.sig"
925 deps = [
926 ":chrome_framework",
927 ]
928 }
929 } 890 }
930 891
931 group("widevine_cdm_library") { 892 group("widevine_cdm_library") {
932 if (_should_bundle_widevine) { 893 if (_should_bundle_widevine) {
933 deps = [ 894 deps = [
934 ":widevine_cdm_library_binaries", 895 ":widevine_cdm_library_binaries",
935 ":widevine_cdm_library_manifest", 896 ":widevine_cdm_library_manifest",
936 ] 897 ]
937 } 898 }
938 } 899 }
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1616 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1656 "//chrome/tools/build/linux/chrome-wrapper", 1617 "//chrome/tools/build/linux/chrome-wrapper",
1657 "//third_party/xdg-utils/scripts/xdg-mime", 1618 "//third_party/xdg-utils/scripts/xdg-mime",
1658 "//third_party/xdg-utils/scripts/xdg-settings", 1619 "//third_party/xdg-utils/scripts/xdg-settings",
1659 ] 1620 ]
1660 outputs = [ 1621 outputs = [
1661 "$root_out_dir/{{source_file_part}}", 1622 "$root_out_dir/{{source_file_part}}",
1662 ] 1623 ]
1663 } 1624 }
1664 } 1625 }
OLDNEW
« no previous file with comments | « no previous file | third_party/widevine/cdm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698