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

Side by Side Diff: chrome/BUILD.gn

Issue 2136983002: Bundle fake Widevine component manifest for stub CDM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use commas consistently Created 4 years, 5 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/chrome_dll_bundle.gypi » ('j') | chrome/chrome_dll_bundle.gypi » ('J')
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/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("//third_party/widevine/cdm/widevine.gni")
17 import("//ui/base/ui_features.gni") 18 import("//ui/base/ui_features.gni")
18 19
19 if (is_android) { 20 if (is_android) {
20 import("//build/config/android/rules.gni") 21 import("//build/config/android/rules.gni")
21 } else if (is_mac) { 22 } else if (is_mac) {
22 import("//build/compiled_action.gni") 23 import("//build/compiled_action.gni")
23 import("//build/config/mac/rules.gni") 24 import("//build/config/mac/rules.gni")
24 import("//build/config/mac/symbols.gni") 25 import("//build/config/mac/symbols.gni")
25 import("//build/mac/tweak_info_plist.gni") 26 import("//build/mac/tweak_info_plist.gni")
26 import("//build/util/branding.gni") 27 import("//build/util/branding.gni")
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 "$root_out_dir/PepperFlash/PepperFlashPlayer.plugin", 789 "$root_out_dir/PepperFlash/PepperFlashPlayer.plugin",
789 "$root_out_dir/PepperFlash/manifest.json", 790 "$root_out_dir/PepperFlash/manifest.json",
790 ] 791 ]
791 outputs = [ 792 outputs = [
792 "{{bundle_root_dir}}/Internet Plug-Ins/PepperFlash/{{source_file_part}}" , 793 "{{bundle_root_dir}}/Internet Plug-Ins/PepperFlash/{{source_file_part}}" ,
793 ] 794 ]
794 public_deps = [ 795 public_deps = [
795 "//third_party/adobe/flash:flapper_binaries", 796 "//third_party/adobe/flash:flapper_binaries",
796 ] 797 ]
797 } 798 }
799 } else {
800 group("flash_player_plugin") {
801 }
802 }
798 803
804 if (enable_widevine) {
ddorwin 2016/07/18 18:35:17 enable_widevine does not appear to be set for Chro
wdzierzanowski 2016/07/19 11:35:17 Done.
805 # The Widevine CDM and manifest are either the actual Widevine CDM and
806 # manifest or stubs used for testing only. The choice is made within the
807 # corresponding Widevine targets based on branding.
799 bundle_data("widevine_cdm_library_binaries") { 808 bundle_data("widevine_cdm_library_binaries") {
800 sources = [ 809 sources = [
801 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib", 810 "$root_out_dir/libwidevinecdm.dylib",
802 "$root_out_dir/$widevine_cdm_path/widevinecdmadapter.plugin", 811 "$root_out_dir/$widevine_cdm_path/widevinecdmadapter.plugin",
803 ] 812 ]
804 outputs = [ 813 outputs = [
805 "{{bundle_root_dir}}/Libraries/$widevine_cdm_path/{{source_file_part}}", 814 "{{bundle_root_dir}}/Libraries/$widevine_cdm_path/{{source_file_part}}",
806 ] 815 ]
807 public_deps = [ 816 public_deps = [
817 # Need this intermediate dependency because "widevinecdm" is a
ddorwin 2016/07/18 18:35:17 Does this only apply to !is_chrome_branded? It ap
wdzierzanowski 2016/07/19 11:35:17 The intermediate dependency is not required for !i
818 # shared_library if !is_chrome_branded, and then depending on
819 # "widevinecdm" directly would cause it to be linked into the Chromium
820 # Framework, which we don't want.
821 ":widevine_cdm_library_copy",
822 "//third_party/widevine/cdm:widevinecdmadapter",
823 ]
824 }
825
826 copy("widevine_cdm_library_copy") {
827 sources = [
828 "$root_out_dir/$widevine_cdm_path/libwidevinecdm.dylib",
829 ]
830 outputs = [
831 "$root_out_dir/{{source_file_part}}",
832 ]
833 deps = [
808 "//third_party/widevine/cdm:widevinecdm", 834 "//third_party/widevine/cdm:widevinecdm",
809 "//third_party/widevine/cdm:widevinecdmadapter",
810 ] 835 ]
811 } 836 }
812 837
813 bundle_data("widevine_cdm_library_manifest") { 838 bundle_data("widevine_cdm_library_manifest") {
814 sources = [ 839 sources = [
815 "$root_out_dir/WidevineCdm/manifest.json", 840 "$root_out_dir/WidevineCdm/manifest.json",
816 ] 841 ]
817 outputs = [ 842 outputs = [
818 "{{bundle_root_dir}}/Libraries/WidevineCdm/{{source_file_part}}", 843 "{{bundle_root_dir}}/Libraries/WidevineCdm/{{source_file_part}}",
819 ] 844 ]
820 public_deps = [ 845 public_deps = [
821 "//third_party/widevine/cdm:widevine_cdm_manifest", 846 "//third_party/widevine/cdm:widevine_cdm_manifest",
822 ] 847 ]
823 } 848 }
824 } else {
825 group("flash_player_plugin") {
826 }
827 } 849 }
828 850
829 group("widevine_cdm_library") { 851 group("widevine_cdm_library") {
830 if (is_chrome_branded) { 852 if (enable_widevine) {
831 deps = [ 853 deps = [
832 ":widevine_cdm_library_binaries", 854 ":widevine_cdm_library_binaries",
833 ":widevine_cdm_library_manifest", 855 ":widevine_cdm_library_manifest",
834 ] 856 ]
835 } 857 }
836 } 858 }
837 859
838 if (enable_mac_keystone) { 860 if (enable_mac_keystone) {
839 action("keystone_registration_framework") { 861 action("keystone_registration_framework") {
840 script = "//chrome/tools/build/mac/copy_keystone_framework.py" 862 script = "//chrome/tools/build/mac/copy_keystone_framework.py"
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 "//chrome/app/theme/$branding_path_component/product_logo_48.png", 1796 "//chrome/app/theme/$branding_path_component/product_logo_48.png",
1775 "//chrome/tools/build/linux/chrome-wrapper", 1797 "//chrome/tools/build/linux/chrome-wrapper",
1776 "//third_party/xdg-utils/scripts/xdg-mime", 1798 "//third_party/xdg-utils/scripts/xdg-mime",
1777 "//third_party/xdg-utils/scripts/xdg-settings", 1799 "//third_party/xdg-utils/scripts/xdg-settings",
1778 ] 1800 ]
1779 outputs = [ 1801 outputs = [
1780 "$root_out_dir/{{source_file_part}}", 1802 "$root_out_dir/{{source_file_part}}",
1781 ] 1803 ]
1782 } 1804 }
1783 } 1805 }
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_dll_bundle.gypi » ('j') | chrome/chrome_dll_bundle.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698