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/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 Loading... | |
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 } | |
652 } | 659 } |
653 | 660 |
654 action("clean_up_old_versions") { | 661 action("clean_up_old_versions") { |
655 script = "//chrome/tools/build/mac/clean_up_old_versions.py" | 662 script = "//chrome/tools/build/mac/clean_up_old_versions.py" |
656 outputs = [ | 663 outputs = [ |
657 "$root_gen_dir/run_$target_name.stamp", | 664 "$root_gen_dir/run_$target_name.stamp", |
658 ] | 665 ] |
659 args = [ | 666 args = [ |
660 rebase_path("$root_out_dir/$chrome_product_full_name.app", | 667 rebase_path("$root_out_dir/$chrome_product_full_name.app", |
661 root_build_dir), | 668 root_build_dir), |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
855 "{{bundle_root_dir}}/Libraries/$widevine_cdm_path/{{source_file_part}}", | 862 "{{bundle_root_dir}}/Libraries/$widevine_cdm_path/{{source_file_part}}", |
856 ] | 863 ] |
857 public_deps = [ | 864 public_deps = [ |
858 # Need this intermediate dependency because "widevinecdm" is a | 865 # Need this intermediate dependency because "widevinecdm" is a |
859 # shared_library if !is_chrome_branded, and then depending on | 866 # shared_library if !is_chrome_branded, and then depending on |
860 # "widevinecdm" directly would cause it to be linked into the Chromium | 867 # "widevinecdm" directly would cause it to be linked into the Chromium |
861 # Framework, which we don't want. | 868 # Framework, which we don't want. |
862 ":widevine_cdm_library_copy", | 869 ":widevine_cdm_library_copy", |
863 "//third_party/widevine/cdm:widevinecdmadapter", | 870 "//third_party/widevine/cdm:widevinecdmadapter", |
864 ] | 871 ] |
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 } | |
865 } | 881 } |
866 | 882 |
867 copy("widevine_cdm_library_copy") { | 883 copy("widevine_cdm_library_copy") { |
868 sources = [ | 884 sources = [ |
869 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib", | 885 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib", |
870 ] | 886 ] |
887 if (is_chrome_branded) { | |
888 sources += | |
889 [ "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib.sig" ] | |
890 } | |
871 outputs = [ | 891 outputs = [ |
872 "$root_out_dir/{{source_file_part}}", | 892 "$root_out_dir/{{source_file_part}}", |
873 ] | 893 ] |
874 deps = [ | 894 deps = [ |
875 "//third_party/widevine/cdm:widevinecdm", | 895 "//third_party/widevine/cdm:widevinecdm", |
876 ] | 896 ] |
877 } | 897 } |
878 | 898 |
879 bundle_data("widevine_cdm_library_manifest") { | 899 bundle_data("widevine_cdm_library_manifest") { |
880 sources = [ | 900 sources = [ |
881 "$root_out_dir/WidevineCdm/manifest.json", | 901 "$root_out_dir/WidevineCdm/manifest.json", |
882 ] | 902 ] |
883 outputs = [ | 903 outputs = [ |
884 "{{bundle_root_dir}}/Libraries/WidevineCdm/{{source_file_part}}", | 904 "{{bundle_root_dir}}/Libraries/WidevineCdm/{{source_file_part}}", |
885 ] | 905 ] |
886 public_deps = [ | 906 public_deps = [ |
887 "//third_party/widevine/cdm:widevine_cdm_manifest", | 907 "//third_party/widevine/cdm:widevine_cdm_manifest", |
888 ] | 908 ] |
889 } | 909 } |
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)) { | |
Robert Sesek
2017/02/23 18:09:32
Can the script that produces the signature file go
jrummell
2017/02/23 18:39:03
I tried it, and get the error:
ERROR Input to targ
Robert Sesek
2017/02/23 18:54:49
Ah, that makes sense. There's an issue with ninja
| |
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 } | |
890 } | 929 } |
891 | 930 |
892 group("widevine_cdm_library") { | 931 group("widevine_cdm_library") { |
893 if (_should_bundle_widevine) { | 932 if (_should_bundle_widevine) { |
894 deps = [ | 933 deps = [ |
895 ":widevine_cdm_library_binaries", | 934 ":widevine_cdm_library_binaries", |
896 ":widevine_cdm_library_manifest", | 935 ":widevine_cdm_library_manifest", |
897 ] | 936 ] |
898 } | 937 } |
899 } | 938 } |
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1616 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1655 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
1617 "//chrome/tools/build/linux/chrome-wrapper", | 1656 "//chrome/tools/build/linux/chrome-wrapper", |
1618 "//third_party/xdg-utils/scripts/xdg-mime", | 1657 "//third_party/xdg-utils/scripts/xdg-mime", |
1619 "//third_party/xdg-utils/scripts/xdg-settings", | 1658 "//third_party/xdg-utils/scripts/xdg-settings", |
1620 ] | 1659 ] |
1621 outputs = [ | 1660 outputs = [ |
1622 "$root_out_dir/{{source_file_part}}", | 1661 "$root_out_dir/{{source_file_part}}", |
1623 ] | 1662 ] |
1624 } | 1663 } |
1625 } | 1664 } |
OLD | NEW |