| 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 }, |
| 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 'widevine_cdm_manifest_file%': [], |
| 14 'conditions': [ | 15 'conditions': [ |
| 15 [ 'branding == "Chrome"', { | 16 [ 'branding == "Chrome"', { |
| 16 'conditions': [ | 17 'conditions': [ |
| 17 [ 'chromeos == 1', { | 18 [ 'chromeos == 1', { |
| 18 'widevine_cdm_version_h_file%': | 19 'widevine_cdm_version_h_file%': |
| 19 'chromeos/<(target_arch)/widevine_cdm_version.h', | 20 'chromeos/<(target_arch)/widevine_cdm_version.h', |
| 20 'widevine_cdm_binary_files%': [ | 21 'widevine_cdm_binary_files%': [ |
| 21 'chromeos/<(target_arch)/libwidevinecdm.so', | 22 'chromeos/<(target_arch)/libwidevinecdm.so', |
| 22 ], | 23 ], |
| 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 ], |
| 30 }], | 31 }], |
| 31 [ 'OS == "mac"', { | 32 [ 'OS == "mac"', { |
| 32 'widevine_cdm_version_h_file%': | 33 'widevine_cdm_version_h_file%': |
| 33 'mac/<(target_arch)/widevine_cdm_version.h', | 34 'mac/<(target_arch)/widevine_cdm_version.h', |
| 34 'widevine_cdm_binary_files%': [ | 35 'widevine_cdm_binary_files%': [ |
| 35 'mac/<(target_arch)/libwidevinecdm.dylib', | 36 'mac/<(target_arch)/libwidevinecdm.dylib', |
| 36 ], | 37 ], |
| 38 'widevine_cdm_manifest_file%': [ |
| 39 'mac/<(target_arch)/manifest.json', |
| 40 ], |
| 37 }], | 41 }], |
| 38 [ 'OS == "win"', { | 42 [ 'OS == "win"', { |
| 39 'widevine_cdm_version_h_file%': | 43 'widevine_cdm_version_h_file%': |
| 40 'win/<(target_arch)/widevine_cdm_version.h', | 44 'win/<(target_arch)/widevine_cdm_version.h', |
| 41 'widevine_cdm_binary_files%': [ | 45 'widevine_cdm_binary_files%': [ |
| 42 'win/<(target_arch)/widevinecdm.dll', | 46 'win/<(target_arch)/widevinecdm.dll', |
| 43 'win/<(target_arch)/widevinecdm.dll.lib', | 47 'win/<(target_arch)/widevinecdm.dll.lib', |
| 44 ], | 48 ], |
| 49 'widevine_cdm_manifest_file%': [ |
| 50 'win/<(target_arch)/manifest.json', |
| 51 ], |
| 45 }], | 52 }], |
| 46 ], | 53 ], |
| 47 }], | 54 }], |
| 48 [ 'OS == "android"', { | 55 [ 'OS == "android"', { |
| 49 'widevine_cdm_version_h_file%': | 56 'widevine_cdm_version_h_file%': |
| 50 'android/widevine_cdm_version.h', | 57 'android/widevine_cdm_version.h', |
| 51 }], | 58 }], |
| 52 [ 'branding != "Chrome" and OS != "android" and enable_widevine == 1', { | 59 [ 'branding != "Chrome" and OS != "android" and enable_widevine == 1', { |
| 53 # If enable_widevine==1 then create a dummy widevinecdm. On Win/Mac | 60 # If enable_widevine==1 then create a dummy widevinecdm. On Win/Mac |
| 54 # the component updater will get the latest version and use it. | 61 # the component updater will get the latest version and use it. |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 { | 93 { |
| 87 'target_name': 'widevinecdmadapter_binary', | 94 'target_name': 'widevinecdmadapter_binary', |
| 88 'product_name': 'widevinecdmadapter', | 95 'product_name': 'widevinecdmadapter', |
| 89 'type': 'none', | 96 'type': 'none', |
| 90 'conditions': [ | 97 'conditions': [ |
| 91 [ '(branding == "Chrome" or enable_widevine == 1) and enable_pepper_cdms
== 1', { | 98 [ '(branding == "Chrome" or enable_widevine == 1) and enable_pepper_cdms
== 1', { |
| 92 'dependencies': [ | 99 'dependencies': [ |
| 93 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 100 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 94 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', | 101 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', |
| 95 'widevine_cdm_version_h', | 102 'widevine_cdm_version_h', |
| 103 'widevine_cdm_manifest', |
| 96 'widevinecdm', | 104 'widevinecdm', |
| 97 'widevinecdmadapter_resources', | 105 'widevinecdmadapter_resources', |
| 98 ], | 106 ], |
| 99 'sources': [ | 107 'sources': [ |
| 100 '<(SHARED_INTERMEDIATE_DIR)/widevinecdmadapter_version.rc', | 108 '<(SHARED_INTERMEDIATE_DIR)/widevinecdmadapter_version.rc', |
| 101 ], | 109 ], |
| 102 'conditions': [ | 110 'conditions': [ |
| 103 [ 'os_posix == 1 and OS != "mac"', { | 111 [ 'os_posix == 1 and OS != "mac"', { |
| 104 'libraries': [ | 112 'libraries': [ |
| 105 '-lrt', | 113 '-lrt', |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 { | 159 { |
| 152 # GN version: //third_party/widevine/cdm:version_h | 160 # GN version: //third_party/widevine/cdm:version_h |
| 153 'target_name': 'widevine_cdm_version_h', | 161 'target_name': 'widevine_cdm_version_h', |
| 154 'type': 'none', | 162 'type': 'none', |
| 155 'copies': [{ | 163 'copies': [{ |
| 156 'destination': '<(SHARED_INTERMEDIATE_DIR)', | 164 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
| 157 'files': [ '<(widevine_cdm_version_h_file)' ], | 165 'files': [ '<(widevine_cdm_version_h_file)' ], |
| 158 }], | 166 }], |
| 159 }, | 167 }, |
| 160 { | 168 { |
| 169 # GN version: //third_party/widevine/cdm:widevine_cdm_manifest |
| 170 'target_name': 'widevine_cdm_manifest', |
| 171 'type': 'none', |
| 172 'conditions': [ |
| 173 [ 'branding == "Chrome"', { |
| 174 'copies': [{ |
| 175 'destination': '<(PRODUCT_DIR)/WidevineCdm', |
| 176 'files': [ '<(widevine_cdm_manifest_file)' ], |
| 177 }], |
| 178 }], |
| 179 ], |
| 180 }, |
| 181 { |
| 161 # GN version: //third_party/widevine/cdm:widevinecdm | 182 # GN version: //third_party/widevine/cdm:widevinecdm |
| 162 'target_name': 'widevinecdm', | 183 'target_name': 'widevinecdm', |
| 163 'type': 'none', | 184 'type': 'none', |
| 164 'conditions': [ | 185 'conditions': [ |
| 165 [ 'branding == "Chrome"', { | 186 [ 'branding == "Chrome"', { |
| 166 'conditions': [ | 187 'conditions': [ |
| 167 [ 'OS=="mac"', { | 188 [ 'OS=="mac"', { |
| 168 'xcode_settings': { | 189 'xcode_settings': { |
| 169 'COPY_PHASE_STRIP': 'NO', | 190 'COPY_PHASE_STRIP': 'NO', |
| 170 } | 191 } |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 'conditions': [ | 233 'conditions': [ |
| 213 [ 'branding == "Chrome" and OS == "linux"', { | 234 [ 'branding == "Chrome" and OS == "linux"', { |
| 214 'dependencies': [ | 235 'dependencies': [ |
| 215 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', | 236 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', |
| 216 ], | 237 ], |
| 217 }], | 238 }], |
| 218 ], | 239 ], |
| 219 }, | 240 }, |
| 220 ], | 241 ], |
| 221 } | 242 } |
| OLD | NEW |