| 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 # See http://crbug.com/611990 |
| 201 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)', |
| 202 }], |
| 203 ], |
| 204 'defines': ['CDM_IMPLEMENTATION'], |
| 205 'dependencies': [ |
| 206 'widevine_cdm_version_h', |
| 207 '<(DEPTH)/base/base.gyp:base', |
| 208 ], |
| 209 'sources': [ |
| 210 '<(DEPTH)/media/cdm/stub/stub_cdm.cc', |
| 211 '<(DEPTH)/media/cdm/stub/stub_cdm.h', |
| 212 ], |
| 213 }, |
| 214 { |
| 182 # GN version: //third_party/widevine/cdm:widevinecdm | 215 # GN version: //third_party/widevine/cdm:widevinecdm |
| 183 'target_name': 'widevinecdm', | 216 'target_name': 'widevinecdm', |
| 184 'type': 'none', | 217 'type': 'none', |
| 185 'conditions': [ | 218 'conditions': [ |
| 186 [ 'branding == "Chrome"', { | 219 [ 'branding == "Chrome"', { |
| 187 'conditions': [ | 220 'conditions': [ |
| 188 [ 'OS=="mac"', { | 221 [ 'OS=="mac"', { |
| 189 'xcode_settings': { | 222 'xcode_settings': { |
| 190 'COPY_PHASE_STRIP': 'NO', | 223 'COPY_PHASE_STRIP': 'NO', |
| 191 } | 224 } |
| 192 }], | 225 }], |
| 193 ], | 226 ], |
| 194 'copies': [{ | 227 'copies': [{ |
| 195 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)', | 228 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)', |
| 196 'files': [ '<@(widevine_cdm_binary_files)' ], | 229 'files': [ '<@(widevine_cdm_binary_files)' ], |
| 197 }], | 230 }], |
| 198 }], | 231 }], |
| 199 [ 'branding != "Chrome" and enable_widevine == 1', { | 232 [ 'branding != "Chrome" and enable_widevine == 1', { |
| 200 'product_dir': '<(PRODUCT_DIR)/<(widevine_cdm_path)', | 233 # On Mac this copies the widevinecdm binary to <(widevine_cdm_path). |
| 234 # On other platforms the binary is already in <(widevine_cdm_path). |
| 235 # See "widevinecdm_binary" above. |
| 236 'dependencies': [ |
| 237 'widevinecdm_binary', |
| 238 ], |
| 201 'conditions': [ | 239 'conditions': [ |
| 202 ['os_posix == 1 and OS != "mac"', { | 240 ['OS == "mac"', { |
| 203 'type': 'loadable_module', | 241 'copies': [{ |
| 204 # This causes the binary to be put in | 242 'destination': '<(PRODUCT_DIR)/<(widevine_cdm_path)', |
| 205 # <(PRODUCT_DIR)/<(widevine_cdm_path) instead of lib/. | 243 'files': [ '<(PRODUCT_DIR)/libwidevinecdm.dylib' ], |
| 206 # This matches what happens in the copy step above. | 244 }], |
| 207 }], | 245 }], |
| 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 ], | 246 ], |
| 226 }], | 247 }], |
| 227 ], | 248 ], |
| 228 }, | 249 }, |
| 229 { | 250 { |
| 230 # GN version: //third_party/widevine/cdm:widevine_test_license_server | 251 # GN version: //third_party/widevine/cdm:widevine_test_license_server |
| 231 'target_name': 'widevine_test_license_server', | 252 'target_name': 'widevine_test_license_server', |
| 232 'type': 'none', | 253 'type': 'none', |
| 233 'conditions': [ | 254 'conditions': [ |
| 234 [ 'branding == "Chrome" and OS == "linux"', { | 255 [ 'branding == "Chrome" and OS == "linux"', { |
| 235 'dependencies': [ | 256 'dependencies': [ |
| 236 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', | 257 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', |
| 237 ], | 258 ], |
| 238 }], | 259 }], |
| 239 ], | 260 ], |
| 240 }, | 261 }, |
| 241 ], | 262 ], |
| 242 } | 263 } |
| OLD | NEW |