Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 172 'conditions': [ | 172 'conditions': [ |
| 173 [ 'widevine_cdm_manifest_file != []', { | 173 [ 'widevine_cdm_manifest_file != []', { |
| 174 'copies': [{ | 174 'copies': [{ |
| 175 'destination': '<(PRODUCT_DIR)/WidevineCdm', | 175 'destination': '<(PRODUCT_DIR)/WidevineCdm', |
| 176 'files': [ '<(widevine_cdm_manifest_file)' ], | 176 'files': [ '<(widevine_cdm_manifest_file)' ], |
| 177 }], | 177 }], |
| 178 }], | 178 }], |
| 179 ], | 179 ], |
| 180 }, | 180 }, |
| 181 { | 181 { |
| 182 'target_name': 'widevinecdm_binary', | |
| 183 'product_name': 'widevinecdm', | |
| 184 'type': 'none', | |
| 185 'conditions': [ | |
| 186 ['os_posix == 1 and OS != "mac"', { | |
| 187 'type': 'loadable_module', | |
| 188 }], | |
| 189 ['OS == "mac" or OS == "win"', { | |
| 190 'type': 'shared_library', | |
| 191 }], | |
| 192 ['OS == "mac"', { | |
| 193 'xcode_settings': { | |
| 194 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | |
| 195 }, | |
| 196 }, { | |
| 197 # Put Widevine CDM in the correct path directly except | |
| 198 # for mac. On mac strip_save_dsym doesn't work with product_dir | |
| 199 # so we rely on the "widevinecdm" target to copy it over. | |
| 200 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)', | |
|
ddorwin
2016/07/08 16:16:44
Also include the bug reference?
# See http://crbu
wdzierzanowski
2016/07/08 21:30:47
Done.
| |
| 201 }], | |
| 202 ], | |
| 203 'defines': ['CDM_IMPLEMENTATION'], | |
| 204 'dependencies': [ | |
| 205 'widevine_cdm_version_h', | |
| 206 '<(DEPTH)/base/base.gyp:base', | |
| 207 ], | |
| 208 'sources': [ | |
| 209 '<(DEPTH)/media/cdm/stub/stub_cdm.cc', | |
| 210 '<(DEPTH)/media/cdm/stub/stub_cdm.h', | |
| 211 ], | |
| 212 }, | |
| 213 { | |
| 182 # GN version: //third_party/widevine/cdm:widevinecdm | 214 # GN version: //third_party/widevine/cdm:widevinecdm |
| 183 'target_name': 'widevinecdm', | 215 'target_name': 'widevinecdm', |
| 184 'type': 'none', | 216 'type': 'none', |
| 185 'conditions': [ | 217 'conditions': [ |
| 186 [ 'branding == "Chrome"', { | 218 [ 'branding == "Chrome"', { |
| 187 'conditions': [ | 219 'conditions': [ |
| 188 [ 'OS=="mac"', { | 220 [ 'OS=="mac"', { |
| 189 'xcode_settings': { | 221 'xcode_settings': { |
| 190 'COPY_PHASE_STRIP': 'NO', | 222 'COPY_PHASE_STRIP': 'NO', |
| 191 } | 223 } |
| 192 }], | 224 }], |
| 193 ], | 225 ], |
| 194 'copies': [{ | 226 'copies': [{ |
| 195 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)', | 227 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)', |
| 196 'files': [ '<@(widevine_cdm_binary_files)' ], | 228 'files': [ '<@(widevine_cdm_binary_files)' ], |
| 197 }], | 229 }], |
| 198 }], | 230 }], |
| 199 [ 'branding != "Chrome" and enable_widevine == 1', { | 231 [ 'branding != "Chrome" and enable_widevine == 1', { |
| 200 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)', | 232 # On Mac this copies the widevinecdm binary to <(widevine_cdm_path). |
| 233 # On other platforms the binary is already in <(widevine_cdm_path). | |
| 234 # See "widevinecdm_binary" above. | |
| 235 'dependencies': [ | |
| 236 'widevinecdm_binary', | |
| 237 ], | |
| 201 'conditions': [ | 238 'conditions': [ |
| 202 ['os_posix == 1 and OS != "mac"', { | 239 ['OS == "mac"', { |
| 203 'type': 'loadable_module', | 240 'copies': [{ |
| 204 # This causes the binary to be put in | 241 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)', |
| 205 # <(PRODUCT_DIR)/<(widevine_cdm_path) instead of lib/. | 242 'files': [ '<(PRODUCT_DIR)/libwidevinecdm.dylib' ], |
| 206 # This matches what happens in the copy step above. | 243 }], |
| 207 }], | 244 }], |
| 208 ['OS == "mac" or OS == "win"', { | |
| 209 'type': 'shared_library', | |
| 210 }], | |
| 211 ['OS == "mac"', { | |
| 212 'xcode_settings': { | |
| 213 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | |
| 214 }, | |
| 215 }], | |
| 216 ], | |
| 217 'defines': ['CDM_IMPLEMENTATION'], | |
| 218 'dependencies': [ | |
| 219 'widevine_cdm_version_h', | |
| 220 '<(DEPTH)/base/base.gyp:base', | |
| 221 ], | |
| 222 'sources': [ | |
| 223 '<(DEPTH)/media/cdm/stub/stub_cdm.cc', | |
| 224 '<(DEPTH)/media/cdm/stub/stub_cdm.h', | |
| 225 ], | 245 ], |
| 226 }], | 246 }], |
| 227 ], | 247 ], |
| 228 }, | 248 }, |
| 229 { | 249 { |
| 230 # GN version: //third_party/widevine/cdm:widevine_test_license_server | 250 # GN version: //third_party/widevine/cdm:widevine_test_license_server |
| 231 'target_name': 'widevine_test_license_server', | 251 'target_name': 'widevine_test_license_server', |
| 232 'type': 'none', | 252 'type': 'none', |
| 233 'conditions': [ | 253 'conditions': [ |
| 234 [ 'branding == "Chrome" and OS == "linux"', { | 254 [ 'branding == "Chrome" and OS == "linux"', { |
| 235 'dependencies': [ | 255 'dependencies': [ |
| 236 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy p:test_license_server', | 256 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy p:test_license_server', |
| 237 ], | 257 ], |
| 238 }], | 258 }], |
| 239 ], | 259 ], |
| 240 }, | 260 }, |
| 241 ], | 261 ], |
| 242 } | 262 } |
| OLD | NEW |