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

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

Issue 2149233003: Reland of "Fix build of Widevine CDM stub on Mac" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove outdated "above" 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 },
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 'COPY_PHASE_STRIP': 'NO', 190 'COPY_PHASE_STRIP': 'NO',
191 } 191 }
192 }], 192 }],
193 ], 193 ],
194 'copies': [{ 194 'copies': [{
195 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)', 195 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)',
196 'files': [ '<@(widevine_cdm_binary_files)' ], 196 'files': [ '<@(widevine_cdm_binary_files)' ],
197 }], 197 }],
198 }], 198 }],
199 [ 'branding != "Chrome" and enable_widevine == 1', { 199 [ 'branding != "Chrome" and enable_widevine == 1', {
200 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)', 200 # On Mac this copies the widevinecdm binary to <(widevine_cdm_path).
201 # On other platforms the binary is already in <(widevine_cdm_path).
202 # See "widevinecdm_binary".
203 'dependencies': [
204 'widevinecdm_binary',
205 ],
206 'conditions': [
207 ['OS == "mac"', {
208 'copies': [{
209 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)',
210 'files': [ '<(PRODUCT_DIR)/libwidevinecdm.dylib' ],
211 }],
212 }],
213 ],
214 }],
215 ],
216 },
217 {
218 # GN version: //third_party/widevine/cdm:widevine_test_license_server
219 'target_name': 'widevine_test_license_server',
220 'type': 'none',
221 'conditions': [
222 [ 'branding == "Chrome" and OS == "linux"', {
223 'dependencies': [
224 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy p:test_license_server',
225 ],
226 }],
227 ],
228 },
229 ],
230 'conditions': [
231 [ 'branding != "Chrome" and enable_widevine == 1', {
232 'targets': [
233 {
234 'target_name': 'widevinecdm_binary',
235 'product_name': 'widevinecdm',
236 'type': 'none',
201 'conditions': [ 237 'conditions': [
202 ['os_posix == 1 and OS != "mac"', { 238 ['os_posix == 1 and OS != "mac"', {
203 'type': 'loadable_module', 239 'type': 'loadable_module',
204 # This causes the binary to be put in
205 # <(PRODUCT_DIR)/<(widevine_cdm_path) instead of lib/.
206 # This matches what happens in the copy step above.
207 }], 240 }],
208 ['OS == "mac" or OS == "win"', { 241 ['OS == "mac" or OS == "win"', {
209 'type': 'shared_library', 242 'type': 'shared_library',
210 }], 243 }],
211 ['OS == "mac"', { 244 ['OS == "mac"', {
212 'xcode_settings': { 245 'xcode_settings': {
213 'DYLIB_INSTALL_NAME_BASE': '@loader_path', 246 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
214 }, 247 },
248 }, {
249 # Put Widevine CDM in the correct path directly except
250 # for mac. On mac strip_save_dsym doesn't work with product_dir
251 # so we rely on the "widevinecdm" target to copy it over.
252 # See http://crbug.com/611990
253 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)',
215 }], 254 }],
216 ], 255 ],
217 'defines': ['CDM_IMPLEMENTATION'], 256 'defines': ['CDM_IMPLEMENTATION'],
218 'dependencies': [ 257 'dependencies': [
219 'widevine_cdm_version_h', 258 'widevine_cdm_version_h',
220 '<(DEPTH)/base/base.gyp:base', 259 '<(DEPTH)/base/base.gyp:base',
221 ], 260 ],
222 'sources': [ 261 'sources': [
223 '<(DEPTH)/media/cdm/stub/stub_cdm.cc', 262 '<(DEPTH)/media/cdm/stub/stub_cdm.cc',
224 '<(DEPTH)/media/cdm/stub/stub_cdm.h', 263 '<(DEPTH)/media/cdm/stub/stub_cdm.h',
225 ], 264 ],
226 }], 265 },
227 ], 266 ],
228 }, 267 }],
229 {
230 # GN version: //third_party/widevine/cdm:widevine_test_license_server
231 'target_name': 'widevine_test_license_server',
232 'type': 'none',
233 'conditions': [
234 [ 'branding == "Chrome" and OS == "linux"', {
235 'dependencies': [
236 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy p:test_license_server',
237 ],
238 }],
239 ],
240 },
241 ], 268 ],
242 } 269 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698