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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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:widevinecdmadapter_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': [ | |
73 ['branding == "Chrome"', { | |
74 'variables': { | |
75 'branding_path': '../../../chrome/app/theme/google_chrome/BRANDING', | |
76 }, | |
77 }, { # else branding!="Chrome" | |
78 'variables': { | |
79 'branding_path': '../../../chrome/app/theme/chromium/BRANDING', | |
80 }, | |
81 }], | |
82 ], | |
83 'variables': { | 72 'variables': { |
84 'output_dir': '.', | 73 'output_dir': '.', |
| 74 'branding_path': '../../../chrome/app/theme/<(branding_path_component)/B
RANDING', |
85 'template_input_path': '../../../chrome/app/chrome_version.rc.version', | 75 'template_input_path': '../../../chrome/app/chrome_version.rc.version', |
86 'extra_variable_files_arguments': [ '-f', 'BRANDING' ], | 76 'extra_variable_files_arguments': [ '-f', 'BRANDING' ], |
87 'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above | 77 'extra_variable_files': [ 'BRANDING' ], # NOTE: matches that above |
88 }, | 78 }, |
89 'sources': [ | 79 'sources': [ |
90 'widevinecdmadapter.ver', | 80 'widevinecdmadapter.ver', |
91 ], | 81 ], |
92 'includes': [ | 82 'includes': [ |
93 '../../../chrome/version_resource_rules.gypi', | 83 '../../../chrome/version_resource_rules.gypi', |
94 ], | 84 ], |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 'conditions': [ | 188 'conditions': [ |
199 [ 'branding == "Chrome" and OS == "linux"', { | 189 [ 'branding == "Chrome" and OS == "linux"', { |
200 'dependencies': [ | 190 'dependencies': [ |
201 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', | 191 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy
p:test_license_server', |
202 ], | 192 ], |
203 }], | 193 }], |
204 ], | 194 ], |
205 }, | 195 }, |
206 ], | 196 ], |
207 } | 197 } |
OLD | NEW |