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 'variables': { | 238 'conditions': [ |
239 'conditions': [ | 239 [ 'skia_os == "win"', { |
240 [ 'skia_os == "win"', { | 240 'variables': { |
241 'vulkan_lib_name': '-lvulkan-1', | |
241 'vulkan_sdk_path' : '<!(echo %VK_SDK_PATH%)', | 242 'vulkan_sdk_path' : '<!(echo %VK_SDK_PATH%)', |
242 }, { | 243 }, |
243 'vulkan_sdk_path' : '<!(echo $VK_SDK_PATH)', | 244 'include_dirs': [ |
244 }], | 245 '<(vulkan_sdk_path)/Include', |
245 ], | 246 ], |
246 }, | 247 'direct_dependent_settings': { |
248 'include_dirs': [ | |
249 '<(vulkan_sdk_path)/Include', | |
250 ], | |
251 }, | |
252 'link_settings': { | |
253 'library_dirs': [ '<(vulkan_sdk_path)/Bin', ], | |
254 }, | |
255 }, { | |
256 'variables': { | |
257 'vulkan_lib_name': '-lvulkan', | |
egdaniel
2016/03/04 19:38:40
does the sdk install the lib in some /usr/lib or s
bsalomon
2016/03/04 20:50:08
yep
| |
258 }, | |
259 }], | |
260 ], | |
247 'dependencies': [ | 261 'dependencies': [ |
248 'shaderc.gyp:shaderc_combined', | 262 'shaderc.gyp:shaderc_combined', |
249 ], | 263 ], |
250 'include_dirs': [ | 264 'include_dirs': [ |
251 '../third_party/', # To include files under third_party/vulkan | 265 '../third_party/', # To include files under third_party/vulkan |
egdaniel
2016/03/04 19:38:41
is ../third_party/ needed here anymore since we gr
bsalomon
2016/03/04 20:50:08
Done.
| |
252 '../third_party/externals/shaderc2/libshaderc/include', | 266 '../third_party/externals/shaderc2/libshaderc/include', |
253 '<(vulkan_sdk_path)/Include', | |
254 ], | 267 ], |
255 'direct_dependent_settings': { | 268 'direct_dependent_settings': { |
256 'include_dirs': [ | 269 'include_dirs': [ |
257 '../third_party/', # To include files under third_party/vulkan | 270 '../third_party/', # To include files under third_party/vulkan |
egdaniel
2016/03/04 19:38:40
same for this ../third_party/
bsalomon
2016/03/04 20:50:08
Done.
| |
258 '../third_party/externals/shaderc2/libshaderc/include', | 271 '../third_party/externals/shaderc2/libshaderc/include', |
259 '<(vulkan_sdk_path)/Include', | |
260 ], | 272 ], |
261 }, | 273 }, |
262 'link_settings': { | 274 'link_settings': { |
263 'library_dirs': [ '<(vulkan_sdk_path)/Bin', ], | 275 'libraries': [ '<(vulkan_lib_name)', ], |
264 'libraries': [ '-lvulkan-1', ], | |
265 }, | 276 }, |
266 }, { | 277 }, { |
267 'sources!': [ | 278 'sources!': [ |
268 '<@(skgpu_vk_sources)', | 279 '<@(skgpu_vk_sources)', |
269 ], | 280 ], |
270 }], | 281 }], |
271 ], | 282 ], |
272 }, | 283 }, |
273 ], | 284 ], |
274 } | 285 } |
OLD | NEW |