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

Side by Side Diff: third_party/widevine/cdm/widevine_cdm.gyp

Issue 2000513002: media: Bundle Widevine CDM on Win/Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more fixes Created 4 years, 7 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 # Allow widevinecdmadapter to be built in Chromium. 7 # Allow widevinecdmadapter to be built in Chromium.
8 'variables': { 8 'variables': {
9 'enable_widevine%': 0, 9 'enable_widevine%': 0,
10 }, 10 },
11 'enable_widevine%': '<(enable_widevine)', 11 'enable_widevine%': '<(enable_widevine)',
12 'widevine_cdm_version_h_file%': 'widevine_cdm_version.h', 12 'widevine_cdm_version_h_file%': 'widevine_cdm_version.h',
13 'widevine_cdm_binary_files%': [], 13 'widevine_cdm_binary_files%': [],
14 'conditions': [ 14 'conditions': [
15 [ 'branding == "Chrome"', { 15 [ 'branding == "Chrome"', {
16 'conditions': [ 16 'conditions': [
17 [ 'chromeos == 1', { 17 [ 'chromeos == 1', {
18 'widevine_cdm_version_h_file%': 18 'widevine_cdm_version_h_file%':
19 'chromeos/<(target_arch)/widevine_cdm_version.h', 19 'chromeos/<(target_arch)/widevine_cdm_version.h',
20 'widevine_cdm_binary_files%': [ 20 'widevine_cdm_binary_files%': [
21 'chromeos/<(target_arch)/libwidevinecdm.so', 21 'chromeos/<(target_arch)/libwidevinecdm.so',
22 ], 22 ],
23 'widevine_cdm_manifest_file%': [],
23 }], 24 }],
24 [ 'OS == "linux" and chromeos == 0', { 25 [ 'OS == "linux" and chromeos == 0', {
25 'widevine_cdm_version_h_file%': 26 'widevine_cdm_version_h_file%':
26 'linux/<(target_arch)/widevine_cdm_version.h', 27 'linux/<(target_arch)/widevine_cdm_version.h',
27 'widevine_cdm_binary_files%': [ 28 'widevine_cdm_binary_files%': [
28 'linux/<(target_arch)/libwidevinecdm.so', 29 'linux/<(target_arch)/libwidevinecdm.so',
29 ], 30 ],
31 'widevine_cdm_manifest_file%': [],
30 }], 32 }],
31 [ 'OS == "mac"', { 33 [ 'OS == "mac"', {
32 'widevine_cdm_version_h_file%': 34 'widevine_cdm_version_h_file%':
33 'mac/<(target_arch)/widevine_cdm_version.h', 35 'mac/<(target_arch)/widevine_cdm_version.h',
34 'widevine_cdm_binary_files%': [ 36 'widevine_cdm_binary_files%': [
35 'mac/<(target_arch)/libwidevinecdm.dylib', 37 'mac/<(target_arch)/libwidevinecdm.dylib',
36 ], 38 ],
39 'widevine_cdm_manifest_file%': [
40 'mac/<(target_arch)/manifest.json',
41 ],
37 }], 42 }],
38 [ 'OS == "win"', { 43 [ 'OS == "win"', {
39 'widevine_cdm_version_h_file%': 44 'widevine_cdm_version_h_file%':
40 'win/<(target_arch)/widevine_cdm_version.h', 45 'win/<(target_arch)/widevine_cdm_version.h',
41 'widevine_cdm_binary_files%': [ 46 'widevine_cdm_binary_files%': [
42 'win/<(target_arch)/widevinecdm.dll', 47 'win/<(target_arch)/widevinecdm.dll',
43 'win/<(target_arch)/widevinecdm.dll.lib', 48 'win/<(target_arch)/widevinecdm.dll.lib',
44 ], 49 ],
50 'widevine_cdm_manifest_file%': [
51 'win/<(target_arch)/manifest.json',
52 ],
45 }], 53 }],
46 ], 54 ],
47 }], 55 }],
48 [ 'OS == "android"', { 56 [ 'OS == "android"', {
49 'widevine_cdm_version_h_file%': 57 'widevine_cdm_version_h_file%':
50 'android/widevine_cdm_version.h', 58 'android/widevine_cdm_version.h',
51 }], 59 }],
52 [ 'branding != "Chrome" and OS != "android" and enable_widevine == 1', { 60 [ 'branding != "Chrome" and OS != "android" and enable_widevine == 1', {
53 # If enable_widevine==1 then create a dummy widevinecdm. On Win/Mac 61 # If enable_widevine==1 then create a dummy widevinecdm. On Win/Mac
54 # the component updater will get the latest version and use it. 62 # the component updater will get the latest version and use it.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 [ 'OS=="mac"', { 175 [ 'OS=="mac"', {
168 'xcode_settings': { 176 'xcode_settings': {
169 'COPY_PHASE_STRIP': 'NO', 177 'COPY_PHASE_STRIP': 'NO',
170 } 178 }
171 }], 179 }],
172 ], 180 ],
173 'copies': [{ 181 'copies': [{
174 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)', 182 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)',
175 'files': [ '<@(widevine_cdm_binary_files)' ], 183 'files': [ '<@(widevine_cdm_binary_files)' ],
176 }], 184 }],
185 'copies': [{
186 'destination': '<(PRODUCT_DIR)/WidevineCdm',
187 'files': [ '<(widevine_cdm_manifest_file)' ],
188 }],
177 }], 189 }],
178 [ 'branding != "Chrome" and enable_widevine == 1', { 190 [ 'branding != "Chrome" and enable_widevine == 1', {
179 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)', 191 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)',
180 'conditions': [ 192 'conditions': [
181 ['os_posix == 1 and OS != "mac"', { 193 ['os_posix == 1 and OS != "mac"', {
182 'type': 'loadable_module', 194 'type': 'loadable_module',
183 # This causes the binary to be put in 195 # This causes the binary to be put in
184 # <(PRODUCT_DIR)/<(widevine_cdm_path) instead of lib/. 196 # <(PRODUCT_DIR)/<(widevine_cdm_path) instead of lib/.
185 # This matches what happens in the copy step above. 197 # This matches what happens in the copy step above.
186 }], 198 }],
(...skipping 25 matching lines...) Expand all
212 'conditions': [ 224 'conditions': [
213 [ 'branding == "Chrome" and OS == "linux"', { 225 [ 'branding == "Chrome" and OS == "linux"', {
214 'dependencies': [ 226 'dependencies': [
215 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy p:test_license_server', 227 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy p:test_license_server',
216 ], 228 ],
217 }], 229 }],
218 ], 230 ],
219 }, 231 },
220 ], 232 ],
221 } 233 }
OLDNEW
« chrome/chrome_dll_bundle.gypi ('K') | « third_party/widevine/cdm/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698