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 'widevine_cdm_version_h_file%': 'widevine_cdm_version.h', | 7 'widevine_cdm_version_h_file%': 'widevine_cdm_version.h', |
8 'widevine_cdm_binary_files%': [], | 8 'widevine_cdm_binary_files%': [], |
9 'conditions': [ | 9 'conditions': [ |
10 [ 'branding == "Chrome"', { | 10 [ 'branding == "Chrome"', { |
(...skipping 26 matching lines...) Expand all Loading... | |
37 'win/<(target_arch)/widevinecdm.dll', | 37 'win/<(target_arch)/widevinecdm.dll', |
38 'win/<(target_arch)/widevinecdm.dll.lib', | 38 'win/<(target_arch)/widevinecdm.dll.lib', |
39 ], | 39 ], |
40 }], | 40 }], |
41 ], | 41 ], |
42 }], | 42 }], |
43 [ 'OS == "android"', { | 43 [ 'OS == "android"', { |
44 'widevine_cdm_version_h_file%': | 44 'widevine_cdm_version_h_file%': |
45 'android/widevine_cdm_version.h', | 45 'android/widevine_cdm_version.h', |
46 }], | 46 }], |
47 [ 'branding != "Chrome" and OS != "android" and enable_widevine==1', { | |
ddorwin
2015/03/28 04:00:11
It would be nice if we could keep the paths more
| |
48 # If enable_widevine==1 then use stub_cdm to create the adapter for | |
49 # Widevine. On Win/Mac the component updater will get the latest version | |
50 # and use it. Other systems are not currently supported, but will build. | |
51 'widevine_cdm_version_h_file%': | |
52 '../../../media/cdm/ppapi/stub/widevine_cdm_version.h', | |
ddorwin
2015/03/28 04:00:11
this should be in third_party like the Android fil
jrummell
2015/04/01 23:37:37
Done.
| |
53 'conditions': [ | |
54 [ 'os_posix == 1 and OS != "mac"', { | |
55 'stub_cdm_binary_files%': [ | |
56 '<(PRODUCT_DIR)/libstubcdm.so', | |
57 ], | |
58 'widevine_cdm_binary_files%': [ | |
59 '<(PRODUCT_DIR)/libwidevinecdm.so', | |
60 ], | |
61 }], | |
62 [ 'OS == "mac"', { | |
63 'stub_cdm_binary_files%': [ | |
64 '<(PRODUCT_DIR)/libstubcdm.dylib', | |
65 ], | |
66 'widevine_cdm_binary_files%': [ | |
67 '<(PRODUCT_DIR)/libwidevinecdm.dylib', | |
68 ], | |
69 }], | |
70 [ 'OS == "win"', { | |
71 'stub_cdm_binary_files%': [ | |
72 '<(PRODUCT_DIR)/stubcdm.dll', | |
73 '<(PRODUCT_DIR)/stubcdm.dll.lib', | |
74 ], | |
75 'widevine_cdm_binary_files%': [ | |
76 '<(PRODUCT_DIR)/widevinecdm.dll', | |
77 '<(PRODUCT_DIR)/widevinecdm.dll.lib', | |
78 ], | |
79 }], | |
80 ], | |
81 }], | |
47 ], | 82 ], |
48 }, | 83 }, |
49 'includes': [ | 84 'includes': [ |
50 '../../../build/util/version.gypi', | 85 '../../../build/util/version.gypi', |
51 ], | 86 ], |
52 | 87 |
53 # Always provide a target, so we can put the logic about whether there's | 88 # Always provide a target, so we can put the logic about whether there's |
54 # anything to be done in this file (instead of a higher-level .gyp file). | 89 # anything to be done in this file (instead of a higher-level .gyp file). |
55 'targets': [ | 90 'targets': [ |
56 { | 91 { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 ], | 147 ], |
113 }], | 148 }], |
114 [ 'OS == "mac"', { | 149 [ 'OS == "mac"', { |
115 'libraries': [ | 150 'libraries': [ |
116 # Copied by widevine_cdm_binaries. | 151 # Copied by widevine_cdm_binaries. |
117 '<(PRODUCT_DIR)/libwidevinecdm.dylib', | 152 '<(PRODUCT_DIR)/libwidevinecdm.dylib', |
118 ], | 153 ], |
119 }], | 154 }], |
120 ], | 155 ], |
121 }], | 156 }], |
157 [ 'branding != "Chrome" and enable_pepper_cdms==1 and enable_widevine==1 ', { | |
158 'dependencies': [ | |
159 '<(DEPTH)/ppapi/ppapi.gyp:ppapi_cpp', | |
160 '<(DEPTH)/media/media_cdm_adapter.gyp:cdmadapter', | |
161 '<(DEPTH)/media/media.gyp:stubcdm', | |
ddorwin
2015/03/28 04:00:11
It appears that all except this line are common. C
jrummell
2015/04/01 23:37:37
Done.
| |
162 'widevine_cdm_version_h', | |
163 'widevine_cdm_binaries', | |
164 'widevinecdmadapter_resources', | |
165 ], | |
166 'sources': [ | |
167 '<(SHARED_INTERMEDIATE_DIR)/widevinecdmadapter_version.rc', | |
168 ], | |
169 'conditions': [ | |
170 [ 'os_posix == 1 and OS != "mac"', { | |
171 'libraries': [ | |
172 '-lrt', | |
173 # Copied by widevine_cdm_binaries. | |
174 '<(PRODUCT_DIR)/libwidevinecdm.so', | |
175 ], | |
176 }], | |
177 [ 'OS == "win"', { | |
178 'libraries': [ | |
179 # Copied by widevine_cdm_binaries. | |
180 '<(PRODUCT_DIR)/widevinecdm.dll.lib', | |
181 ], | |
182 }], | |
183 [ 'OS == "mac"', { | |
184 'libraries': [ | |
185 # Copied by widevine_cdm_binaries. | |
186 '<(PRODUCT_DIR)/libwidevinecdm.dylib', | |
187 ], | |
188 }], | |
189 ], | |
190 }], | |
122 ], | 191 ], |
123 }, | 192 }, |
124 { | 193 { |
125 # GN version: //third_party/widevine/cdm:version_h | 194 # GN version: //third_party/widevine/cdm:version_h |
126 'target_name': 'widevine_cdm_version_h', | 195 'target_name': 'widevine_cdm_version_h', |
127 'type': 'none', | 196 'type': 'none', |
128 'copies': [{ | 197 'copies': [{ |
129 'destination': '<(SHARED_INTERMEDIATE_DIR)', | 198 'destination': '<(SHARED_INTERMEDIATE_DIR)', |
130 'files': [ '<(widevine_cdm_version_h_file)' ], | 199 'files': [ '<(widevine_cdm_version_h_file)' ], |
131 }], | 200 }], |
132 }, | 201 }, |
133 { | 202 { |
134 # GN version: //third_party/widevine/cdm:binaries | 203 # GN version: //third_party/widevine/cdm:binaries |
135 'target_name': 'widevine_cdm_binaries', | 204 'target_name': 'widevine_cdm_binaries', |
136 'type': 'none', | 205 'type': 'none', |
137 'conditions': [ | 206 'conditions': [ |
138 [ 'OS=="mac"', { | 207 [ 'OS=="mac"', { |
139 'xcode_settings': { | 208 'xcode_settings': { |
140 'COPY_PHASE_STRIP': 'NO', | 209 'COPY_PHASE_STRIP': 'NO', |
141 } | 210 } |
142 }], | 211 }], |
212 [ 'branding == "Chrome" or OS == "android"', { | |
ddorwin
2015/03/28 04:00:11
Android doesn't copy anything. Android never runs
jrummell
2015/04/01 23:37:37
Done. (I think Android does run this, just that wi
| |
213 'copies': [{ | |
214 # TODO(ddorwin): Do we need a sub-directory? We either need a | |
215 # sub-directory or to rename manifest.json before we can copy it. | |
216 'destination': '<(PRODUCT_DIR)', | |
217 'files': [ '<@(widevine_cdm_binary_files)' ], | |
218 }], | |
219 }], | |
220 [ 'branding != "Chrome" and OS != "android" and enable_widevine==1', { | |
ddorwin
2015/03/28 04:00:11
ditto
jrummell
2015/04/01 23:37:37
(Assume this is about Android.) For Android I don'
| |
221 'dependencies': [ | |
222 '<(DEPTH)/media/media.gyp:stubcdm', | |
223 ], | |
224 'actions': [{ | |
225 'action_name': 'copy_with_rename', | |
226 'inputs': [ | |
227 'copy_with_rename.py', | |
228 '<@(stub_cdm_binary_files)', | |
229 ], | |
230 'outputs': [ | |
231 '<@(widevine_cdm_binary_files)', | |
232 ], | |
233 'action': ['python', 'copy_with_rename.py', | |
234 '<@(stub_cdm_binary_files)', | |
235 '<@(widevine_cdm_binary_files)'], | |
236 }], | |
237 }], | |
143 ], | 238 ], |
144 'copies': [{ | |
145 # TODO(ddorwin): Do we need a sub-directory? We either need a | |
146 # sub-directory or to rename manifest.json before we can copy it. | |
147 'destination': '<(PRODUCT_DIR)', | |
148 'files': [ '<@(widevine_cdm_binary_files)' ], | |
149 }], | |
150 }, | 239 }, |
151 { | 240 { |
152 'target_name': 'widevine_test_license_server', | 241 'target_name': 'widevine_test_license_server', |
153 'type': 'none', | 242 'type': 'none', |
154 'conditions': [ | 243 'conditions': [ |
155 [ 'branding == "Chrome" and OS == "linux"', { | 244 [ 'branding == "Chrome" and OS == "linux"', { |
156 'dependencies': [ | 245 'dependencies': [ |
157 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy p:test_license_server', | 246 '<(DEPTH)/third_party/widevine/test/license_server/license_server.gy p:test_license_server', |
158 ], | 247 ], |
159 }], | 248 }], |
160 ], | 249 ], |
161 }, | 250 }, |
162 ], | 251 ], |
163 } | 252 } |
OLD | NEW |