OLD | NEW |
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # GYP for building gpu | 5 # GYP for building gpu |
6 { | 6 { |
7 'target_defaults': { | 7 'target_defaults': { |
8 'conditions': [ | 8 'conditions': [ |
9 ['skia_os != "win"', { | 9 ['skia_os != "win"', { |
10 'sources/': [ ['exclude', '_win.(h|cpp)$'], | 10 'sources/': [ ['exclude', '_win.(h|cpp)$'], |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', | 228 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', |
229 ], | 229 ], |
230 'link_settings': { | 230 'link_settings': { |
231 'libraries': [ | 231 'libraries': [ |
232 '-lGLESv2', | 232 '-lGLESv2', |
233 '-lEGL', | 233 '-lEGL', |
234 ], | 234 ], |
235 }, | 235 }, |
236 }], | 236 }], |
237 [ 'skia_vulkan', { | 237 [ 'skia_vulkan', { |
| 238 'dependencies': [ |
| 239 'shaderc.gyp:shaderc_combined', |
| 240 ], |
238 'include_dirs': [ | 241 'include_dirs': [ |
239 '../third_party/' # To include files under third_party/vulkan | 242 '../third_party/', # To include files under third_party/vulkan |
| 243 '../third_party/externals/shaderc2/libshaderc/include', |
240 ], | 244 ], |
241 'direct_dependent_settings': { | 245 'direct_dependent_settings': { |
242 'include_dirs': [ | 246 'include_dirs': [ |
243 '../third_party/' # To include files under third_party/vulkan | 247 '../third_party/', # To include files under third_party/vulkan |
| 248 '../third_party/externals/shaderc2/libshaderc/include', |
244 ], | 249 ], |
245 }, | 250 }, |
246 'conditions' : [ | 251 'conditions' : [ |
247 ['skia_os == "win"', { | 252 ['skia_os == "win"', { |
248 'all_dependent_settings': { | 253 'all_dependent_settings': { |
249 'msvs_settings': { | 254 'msvs_settings': { |
250 'VCLinkerTool': { | 255 'VCLinkerTool': { |
251 'AdditionalDependencies': [ | 256 'AdditionalDependencies': [ |
252 'vulkan-1.lib', | 257 'vulkan-1.lib', |
253 'shaderc_combined.lib' | |
254 ], | 258 ], |
255 }, | 259 }, |
256 }, | 260 }, |
257 }, | 261 }, |
258 'link_settings': { | 262 'link_settings': { |
259 'configurations': { | 263 'configurations': { |
260 'Debug': { | 264 'Debug': { |
261 'msvs_settings': { | 265 'msvs_settings': { |
262 'VCLinkerTool': { | 266 'VCLinkerTool': { |
263 'AdditionalLibraryDirectories': [ | 267 'AdditionalLibraryDirectories': [ |
264 '../third_party/vulkan', | 268 '../third_party/vulkan', |
265 '../third_party/shaderc/Debug', | |
266 ], | 269 ], |
267 }, | 270 }, |
268 }, | 271 }, |
269 }, | 272 }, |
270 'Release': { | 273 'Release': { |
271 'msvs_settings': { | 274 'msvs_settings': { |
272 'VCLinkerTool': { | 275 'VCLinkerTool': { |
273 'AdditionalLibraryDirectories': [ | 276 'AdditionalLibraryDirectories': [ |
274 '../third_party/vulkan', | 277 '../third_party/vulkan', |
275 '../third_party/shaderc/Release', | |
276 ], | 278 ], |
277 }, | 279 }, |
278 }, | 280 }, |
279 }, | 281 }, |
280 'Debug_x64': { | 282 'Debug_x64': { |
281 'msvs_settings': { | 283 'msvs_settings': { |
282 'VCLinkerTool': { | 284 'VCLinkerTool': { |
283 'AdditionalLibraryDirectories': [ | 285 'AdditionalLibraryDirectories': [ |
284 '../third_party/vulkan', | 286 '../third_party/vulkan', |
285 '../third_party/shaderc/Debug', | |
286 ], | 287 ], |
287 }, | 288 }, |
288 }, | 289 }, |
289 }, | 290 }, |
290 'Release_x64': { | 291 'Release_x64': { |
291 'msvs_settings': { | 292 'msvs_settings': { |
292 'VCLinkerTool': { | 293 'VCLinkerTool': { |
293 'AdditionalLibraryDirectories': [ | 294 'AdditionalLibraryDirectories': [ |
294 '../third_party/vulkan', | 295 '../third_party/vulkan', |
295 '../third_party/shaderc/Release', | |
296 ], | 296 ], |
297 }, | 297 }, |
298 }, | 298 }, |
299 }, | 299 }, |
300 }, | 300 }, |
301 }, | 301 }, |
302 }], | 302 }], |
303 ], | 303 ], |
304 }, { | 304 }, { |
305 'sources!': [ | 305 'sources!': [ |
306 '<@(skgpu_vk_sources)', | 306 '<@(skgpu_vk_sources)', |
307 ], | 307 ], |
308 }], | 308 }], |
309 ], | 309 ], |
310 }, | 310 }, |
311 ], | 311 ], |
312 } | 312 } |
OLD | NEW |