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/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//chrome/process_version_rc_template.gni") | 7 import("//chrome/process_version_rc_template.gni") |
8 import("//media/cdm/ppapi/cdm_paths.gni") | 8 import("//media/cdm/ppapi/cdm_paths.gni") |
9 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") | 9 import("//media/cdm/ppapi/ppapi_cdm_adapter.gni") |
10 import("//ppapi/features/features.gni") | 10 import("//ppapi/features/features.gni") |
11 import("//third_party/widevine/cdm/widevine.gni") | 11 import("//third_party/widevine/cdm/widevine.gni") |
12 | 12 |
13 widevine_arch = current_cpu | 13 widevine_arch = current_cpu |
14 if (widevine_arch == "x86") { | 14 if (widevine_arch == "x86") { |
15 widevine_arch = "ia32" | 15 widevine_arch = "ia32" |
16 } | 16 } |
17 | 17 |
18 widevine_cdm_binary_files = [] | 18 widevine_cdm_binary_files = [] |
19 widevine_cdm_manifest_file = [] | 19 widevine_cdm_manifest_file = [] |
20 | 20 |
21 if (is_android) { | 21 if (is_android) { |
22 # Always available on Android regardless of branding. | 22 # Always available on Android regardless of branding. |
23 widevine_cdm_version_h_file = "android/widevine_cdm_version.h" | 23 widevine_cdm_version_h_file = "android/widevine_cdm_version.h" |
24 } else if (is_chrome_branded) { | 24 } else if (is_chrome_branded) { |
25 if (is_chromeos) { | 25 if (is_chromeos) { |
26 widevine_cdm_version_h_file = | 26 widevine_cdm_version_h_file = |
27 "chromeos/$widevine_arch/widevine_cdm_version.h" | 27 "chromeos/$widevine_arch/widevine_cdm_version.h" |
28 widevine_cdm_binary_files = [ | 28 widevine_cdm_binary_files = [ "chromeos/$widevine_arch/libwidevinecdm.so" ] |
29 "chromeos/$widevine_arch/libwidevinecdm.so", | |
30 "chromeos/$widevine_arch/libwidevinecdm.so.sig", | |
31 ] | |
32 } else if (is_linux) { | 29 } else if (is_linux) { |
33 widevine_cdm_version_h_file = "linux/$widevine_arch/widevine_cdm_version.h" | 30 widevine_cdm_version_h_file = "linux/$widevine_arch/widevine_cdm_version.h" |
34 widevine_cdm_binary_files = [ | 31 widevine_cdm_binary_files = [ "linux/$widevine_arch/libwidevinecdm.so" ] |
35 "linux/$widevine_arch/libwidevinecdm.so", | |
36 "linux/$widevine_arch/libwidevinecdm.so.sig", | |
37 ] | |
38 } else if (is_win) { | 32 } else if (is_win) { |
39 widevine_cdm_version_h_file = "win/$widevine_arch/widevine_cdm_version.h" | 33 widevine_cdm_version_h_file = "win/$widevine_arch/widevine_cdm_version.h" |
40 widevine_cdm_binary_files = [ | 34 widevine_cdm_binary_files = [ |
41 "win/$widevine_arch/widevinecdm.dll", | 35 "win/$widevine_arch/widevinecdm.dll", |
42 "win/$widevine_arch/widevinecdm.dll.lib", | 36 "win/$widevine_arch/widevinecdm.dll.lib", |
43 "win/$widevine_arch/widevinecdm.dll.sig", | 37 "win/$widevine_arch/widevinecdm.dll.sig", |
44 ] | 38 ] |
45 widevine_cdm_manifest_file = [ "win/$widevine_arch/manifest.json" ] | 39 widevine_cdm_manifest_file = [ "win/$widevine_arch/manifest.json" ] |
46 } else if (is_mac) { | 40 } else if (is_mac) { |
47 widevine_cdm_version_h_file = "mac/$widevine_arch/widevine_cdm_version.h" | 41 widevine_cdm_version_h_file = "mac/$widevine_arch/widevine_cdm_version.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 "../scripts/signer.py", | 204 "../scripts/signer.py", |
211 ] | 205 ] |
212 outputs = [ | 206 outputs = [ |
213 "$root_out_dir/installer/widevine/{{source_file_part}}", | 207 "$root_out_dir/installer/widevine/{{source_file_part}}", |
214 ] | 208 ] |
215 } | 209 } |
216 } else { | 210 } else { |
217 group("widevine_signature_scripts") { | 211 group("widevine_signature_scripts") { |
218 } | 212 } |
219 } | 213 } |
OLD | NEW |