Chromium Code Reviews| 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 Signature.bundle" ] |
|
Greg K
2017/03/24 00:04:41
Can we call this Widevine Resources.bundle instead
xhwang
2017/03/24 00:23:26
I am totally flexible on the naming so I'll wait f
| |
| 665 public_deps += [ ":sign_chrome_framework_for_widevine" ] | 665 public_deps += [ ":widevine_signature_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 Loading... | |
| 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 bundle_data("framework_widevine_signature") { | |
| 941 sources = [ | |
| 942 "$root_out_dir/$chrome_framework_name.sig", | |
| 943 ] | |
| 944 | |
| 945 outputs = [ | |
| 946 "{{bundle_resources_dir}}/{{source_file_part}}", | |
| 947 ] | |
| 948 | |
| 949 public_deps = [ | |
| 950 ":sign_chrome_framework_for_widevine", | |
| 951 ] | |
| 952 } | |
| 953 | |
| 954 create_bundle("widevine_signature_bundle") { | |
| 955 output_name = "Widevine Signature.bundle" | |
| 956 bundle_root_dir = "$root_build_dir/$output_name/Contents" | |
| 957 bundle_resources_dir = bundle_root_dir + "/Resources" | |
| 958 | |
| 959 deps = [ | |
| 960 ":framework_widevine_signature", | |
| 961 ] | |
| 962 } | |
| 939 } | 963 } |
| 940 | 964 |
| 941 group("widevine_cdm_library") { | 965 group("widevine_cdm_library") { |
| 942 if (_should_bundle_widevine) { | 966 if (_should_bundle_widevine) { |
| 943 deps = [ | 967 deps = [ |
| 944 ":widevine_cdm_library_binaries", | 968 ":widevine_cdm_library_binaries", |
| 945 ":widevine_cdm_library_manifest", | 969 ":widevine_cdm_library_manifest", |
| 946 ] | 970 ] |
| 947 } | 971 } |
| 948 } | 972 } |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1682 "//chrome/app/theme/$branding_path_component/product_logo_48.png", | 1706 "//chrome/app/theme/$branding_path_component/product_logo_48.png", |
| 1683 "//chrome/tools/build/linux/chrome-wrapper", | 1707 "//chrome/tools/build/linux/chrome-wrapper", |
| 1684 "//third_party/xdg-utils/scripts/xdg-mime", | 1708 "//third_party/xdg-utils/scripts/xdg-mime", |
| 1685 "//third_party/xdg-utils/scripts/xdg-settings", | 1709 "//third_party/xdg-utils/scripts/xdg-settings", |
| 1686 ] | 1710 ] |
| 1687 outputs = [ | 1711 outputs = [ |
| 1688 "$root_out_dir/{{source_file_part}}", | 1712 "$root_out_dir/{{source_file_part}}", |
| 1689 ] | 1713 ] |
| 1690 } | 1714 } |
| 1691 } | 1715 } |
| OLD | NEW |