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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 '../src/image/', | 100 '../src/image/', |
101 ], | 101 ], |
102 'sources': [ | 102 'sources': [ |
103 '<@(skgpu_sources)', | 103 '<@(skgpu_sources)', |
104 '<@(skgpu_native_gl_sources)', | 104 '<@(skgpu_native_gl_sources)', |
105 '<@(skgpu_angle_gl_sources)', | 105 '<@(skgpu_angle_gl_sources)', |
106 '<@(skgpu_command_buffer_gl_sources)', | 106 '<@(skgpu_command_buffer_gl_sources)', |
107 '<@(skgpu_mesa_gl_sources)', | 107 '<@(skgpu_mesa_gl_sources)', |
108 '<@(skgpu_debug_gl_sources)', | 108 '<@(skgpu_debug_gl_sources)', |
109 '<@(skgpu_null_gl_sources)', | 109 '<@(skgpu_null_gl_sources)', |
| 110 '<@(skgpu_vk_sources)', |
110 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). | 111 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the bui
ld). |
111 ], | 112 ], |
112 'conditions': [ | 113 'conditions': [ |
113 [ 'skia_gpu_extra_dependency_path', { | 114 [ 'skia_gpu_extra_dependency_path', { |
114 'dependencies' : [ | 115 'dependencies' : [ |
115 '<(skia_gpu_extra_dependency_path):*', | 116 '<(skia_gpu_extra_dependency_path):*', |
116 ], | 117 ], |
117 'export_dependent_settings': [ | 118 'export_dependent_settings': [ |
118 '<(skia_gpu_extra_dependency_path):*', | 119 '<(skia_gpu_extra_dependency_path):*', |
119 ], | 120 ], |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 'defines': [ | 227 'defines': [ |
227 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', | 228 'GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE=1', |
228 ], | 229 ], |
229 'link_settings': { | 230 'link_settings': { |
230 'libraries': [ | 231 'libraries': [ |
231 '-lGLESv2', | 232 '-lGLESv2', |
232 '-lEGL', | 233 '-lEGL', |
233 ], | 234 ], |
234 }, | 235 }, |
235 }], | 236 }], |
| 237 [ 'skia_vulkan', { |
| 238 'include_dirs': [ |
| 239 '../third_party/' # To include files under third_party/vulkan |
| 240 ], |
| 241 'direct_dependent_settings': { |
| 242 'include_dirs': [ |
| 243 '../third_party/' # To include files under third_party/vulkan |
| 244 ], |
| 245 }, |
| 246 'conditions' : [ |
| 247 ['skia_os == "win"', { |
| 248 'all_dependent_settings': { |
| 249 'msvs_settings': { |
| 250 'VCLinkerTool': { |
| 251 'AdditionalDependencies': [ |
| 252 'vulkan-1.lib', |
| 253 'shaderc.lib', |
| 254 'shaderc_util.lib', |
| 255 'glslang.lib', |
| 256 'OSDependent.lib', |
| 257 'OGLCompiler.lib', |
| 258 'SPIRV-Tools.lib', |
| 259 'SPIRV.lib', |
| 260 ], |
| 261 }, |
| 262 }, |
| 263 }, |
| 264 'link_settings': { |
| 265 'configurations': { |
| 266 'Debug': { |
| 267 'msvs_settings': { |
| 268 'VCLinkerTool': { |
| 269 'AdditionalLibraryDirectories': [ |
| 270 '../third_party/vulkan', |
| 271 '../third_party/shaderc/Debug', |
| 272 ], |
| 273 }, |
| 274 }, |
| 275 }, |
| 276 'Release': { |
| 277 'msvs_settings': { |
| 278 'VCLinkerTool': { |
| 279 'AdditionalLibraryDirectories': [ |
| 280 '../third_party/vulkan', |
| 281 '../third_party/shaderc/Release', |
| 282 ], |
| 283 }, |
| 284 }, |
| 285 }, |
| 286 'Debug_x64': { |
| 287 'msvs_settings': { |
| 288 'VCLinkerTool': { |
| 289 'AdditionalLibraryDirectories': [ |
| 290 '../third_party/vulkan', |
| 291 '../third_party/shaderc/Debug', |
| 292 ], |
| 293 }, |
| 294 }, |
| 295 }, |
| 296 'Release_x64': { |
| 297 'msvs_settings': { |
| 298 'VCLinkerTool': { |
| 299 'AdditionalLibraryDirectories': [ |
| 300 '../third_party/vulkan', |
| 301 '../third_party/shaderc/Release', |
| 302 ], |
| 303 }, |
| 304 }, |
| 305 }, |
| 306 }, |
| 307 }, |
| 308 }], |
| 309 ], |
| 310 }, { |
| 311 'sources!': [ |
| 312 '<@(skgpu_vk_sources)', |
| 313 ], |
| 314 }], |
236 ], | 315 ], |
237 }, | 316 }, |
238 ], | 317 ], |
239 } | 318 } |
OLD | NEW |