| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 ], | 59 ], |
| 60 }, | 60 }, |
| 61 'includes': [ | 61 'includes': [ |
| 62 '../../../build/util/version.gypi', | 62 '../../../build/util/version.gypi', |
| 63 ], | 63 ], |
| 64 | 64 |
| 65 # Always provide a target, so we can put the logic about whether there's | 65 # Always provide a target, so we can put the logic about whether there's |
| 66 # anything to be done in this file (instead of a higher-level .gyp file). | 66 # anything to be done in this file (instead of a higher-level .gyp file). |
| 67 'targets': [ | 67 'targets': [ |
| 68 { | 68 { |
| 69 # GN version: //third_party/widevine/cdm:adapter_resources | 69 # GN version: //third_party/widevine/cdm:widevinecdmadapter_resources |
| 70 'target_name': 'widevinecdmadapter_resources', | 70 'target_name': 'widevinecdmadapter_resources', |
| 71 'type': 'none', | 71 'type': 'none', |
| 72 'conditions': [ | 72 'conditions': [ |
| 73 ['branding == "Chrome"', { | 73 ['branding == "Chrome"', { |
| 74 'variables': { | 74 'variables': { |
| 75 'branding_path': '../../../chrome/app/theme/google_chrome/BRANDING', | 75 'branding_path': '../../../chrome/app/theme/google_chrome/BRANDING', |
| 76 }, | 76 }, |
| 77 }, { # else branding!="Chrome" | 77 }, { # else branding!="Chrome" |
| 78 'variables': { | 78 'variables': { |
| 79 'branding_path': '../../../chrome/app/theme/chromium/BRANDING', | 79 'branding_path': '../../../chrome/app/theme/chromium/BRANDING', |
| 80 }, | 80 }, |
| 81 }], | 81 }], |
| 82 ], | 82 ], |
| 83 'variables': { | 83 'variables': { |
| 84 'output_dir': '.', | 84 'output_dir': '.', |
| 85 'template_input_path': '../../../chrome/app/chrome_version.rc.version', | 85 'template_input_path': '../../../chrome/app/chrome_version.rc.version', |
| 86 'extra_variable_files_arguments': [ '-f', 'BRANDING' ], | 86 'extra_variable_files_arguments': [ '-f', 'BRANDING' ], |
| 87 'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above | 87 'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above |
| 88 }, | 88 }, |
| 89 'sources': [ | 89 'sources': [ |
| 90 'widevinecdmadapter.ver', | 90 'widevinecdmadapter.ver', |
| 91 ], | 91 ], |
| 92 'includes': [ | 92 'includes': [ |
| 93 '../../../chrome/version_resource_rules.gypi', | 93 '../../../chrome/version_resource_rules.gypi', |
| 94 ], | 94 ], |
| 95 }, | 95 }, |
| 96 { | 96 { |
| 97 # GN version: //third_party/widevine/cdm:adapter | 97 # GN version: //third_party/widevine/cdm:widevinecdmadapter |
| 98 'target_name': 'widevinecdmadapter', | 98 'target_name': 'widevinecdmadapter', |
| 99 'type': 'none', | 99 'type': 'none', |
| 100 'conditions': [ | 100 'conditions': [ |
| 101 [ '(branding == "Chrome" or enable_widevine == 1) and enable_pepper_cdms
== 1', { | 101 [ '(branding == "Chrome" or enable_widevine == 1) and enable_pepper_cdms
== 1', { |
| 102 'dependencies': [ | 102 'dependencies': [ |
| 103 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | 103 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', |
| 104 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', | 104 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', |
| 105 'widevine_cdm_version_h', | 105 'widevine_cdm_version_h', |
| 106 'widevinecdm', | 106 'widevinecdm', |
| 107 'widevinecdmadapter_resources', | 107 'widevinecdmadapter_resources', |
| (...skipping 28 matching lines...) Expand all Loading... |
| 136 { | 136 { |
| 137 # GN version: //third_party/widevine/cdm:version_h | 137 # GN version: //third_party/widevine/cdm:version_h |
| 138 'target_name': 'widevine_cdm_version_h', | 138 'target_name': 'widevine_cdm_version_h', |
| 139 'type': 'none', | 139 'type': 'none', |
| 140 'copies': [{ | 140 'copies': [{ |
| 141 'destination': '<(SHARED_INTERMEDIATE_DIR)', | 141 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
| 142 'files': [ '<(widevine_cdm_version_h_file)' ], | 142 'files': [ '<(widevine_cdm_version_h_file)' ], |
| 143 }], | 143 }], |
| 144 }, | 144 }, |
| 145 { | 145 { |
| 146 # GN version: //third_party/widevine/cdm:binaries | 146 # GN version: //third_party/widevine/cdm:widevinecdm |
| 147 'target_name': 'widevinecdm', | 147 'target_name': 'widevinecdm', |
| 148 'type': 'none', | 148 'type': 'none', |
| 149 'conditions': [ | 149 'conditions': [ |
| 150 [ 'branding == "Chrome"', { | 150 [ 'branding == "Chrome"', { |
| 151 'conditions': [ | 151 'conditions': [ |
| 152 [ 'OS=="mac"', { | 152 [ 'OS=="mac"', { |
| 153 'xcode_settings': { | 153 'xcode_settings': { |
| 154 'COPY_PHASE_STRIP': 'NO', | 154 'COPY_PHASE_STRIP': 'NO', |
| 155 } | 155 } |
| 156 }], | 156 }], |
| (...skipping 17 matching lines...) Expand all Loading... |
| 174 'type': 'shared_library', | 174 'type': 'shared_library', |
| 175 }], | 175 }], |
| 176 ['OS == "mac"', { | 176 ['OS == "mac"', { |
| 177 'xcode_settings': { | 177 'xcode_settings': { |
| 178 'DYLIB_INSTALL_NAME_BASE': '@loader_path', | 178 'DYLIB_INSTALL_NAME_BASE': '@loader_path', |
| 179 }, | 179 }, |
| 180 }], | 180 }], |
| 181 ], | 181 ], |
| 182 'defines': ['CDM_IMPLEMENTATION'], | 182 'defines': ['CDM_IMPLEMENTATION'], |
| 183 'dependencies': [ | 183 'dependencies': [ |
| 184 'widevine_cdm_version_h', |
| 184 '<(DEPTH)/base/base.gyp:base', | 185 '<(DEPTH)/base/base.gyp:base', |
| 185 ], | 186 ], |
| 186 'sources': [ | 187 'sources': [ |
| 187 '<(DEPTH)/media/cdm/stub/stub_cdm.cc', | 188 '<(DEPTH)/media/cdm/stub/stub_cdm.cc', |
| 188 '<(DEPTH)/media/cdm/stub/stub_cdm.h', | 189 '<(DEPTH)/media/cdm/stub/stub_cdm.h', |
| 189 ], | 190 ], |
| 190 }], | 191 }], |
| 191 ], | 192 ], |
| 192 }, | 193 }, |
| 193 { | 194 { |
| 195 # GN version: //third_party/widevine/cdm:widevine_test_license_server |
| 194 'target_name': 'widevine_test_license_server', | 196 'target_name': 'widevine_test_license_server', |
| 195 'type': 'none', | 197 'type': 'none', |
| 196 'conditions': [ | 198 'conditions': [ |
| 197 [ 'branding == "Chrome" and OS == "linux"', { | 199 [ 'branding == "Chrome" and OS == "linux"', { |
| 198 'dependencies': [ | 200 'dependencies': [ |
| 199 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', | 201 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', |
| 200 ], | 202 ], |
| 201 }], | 203 }], |
| 202 ], | 204 ], |
| 203 }, | 205 }, |
| 204 ], | 206 ], |
| 205 } | 207 } |
| OLD | NEW |