| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 }, { | 200 }, { |
| 201 'library_dirs': [ '<(vulkan_sdk_path)/Bin', ], | 201 'library_dirs': [ '<(vulkan_sdk_path)/Bin', ], |
| 202 }], | 202 }], |
| 203 ] | 203 ] |
| 204 }, | 204 }, |
| 205 }, { | 205 }, { |
| 206 'variables': { | 206 'variables': { |
| 207 'vulkan_lib_name': '-lvulkan', | 207 'vulkan_lib_name': '-lvulkan', |
| 208 }, | 208 }, |
| 209 }], | 209 }], |
| 210 [ 'skia_os == "linux"', { |
| 211 'variables': { |
| 212 'vulkan_sdk_path' : '<!(echo $VULKAN_SDK)', |
| 213 }, |
| 214 'include_dirs': [ |
| 215 '<(vulkan_sdk_path)/include', |
| 216 ], |
| 217 'direct_dependent_settings': { |
| 218 'include_dirs': [ |
| 219 '<(vulkan_sdk_path)/include', |
| 220 ], |
| 221 }, |
| 222 'link_settings': { |
| 223 'library_dirs': [ '<(vulkan_sdk_path)/lib', ], |
| 224 }, |
| 225 }], |
| 210 ], | 226 ], |
| 211 'dependencies': [ | 227 'dependencies': [ |
| 212 'shaderc.gyp:shaderc_combined', | 228 'shaderc.gyp:shaderc_combined', |
| 213 ], | 229 ], |
| 214 'include_dirs': [ | 230 'include_dirs': [ |
| 215 '../third_party/externals/shaderc2/libshaderc/include', | 231 '../third_party/externals/shaderc2/libshaderc/include', |
| 216 ], | 232 ], |
| 217 'direct_dependent_settings': { | 233 'direct_dependent_settings': { |
| 218 'include_dirs': [ | 234 'include_dirs': [ |
| 219 '../third_party/externals/shaderc2/libshaderc/include', | 235 '../third_party/externals/shaderc2/libshaderc/include', |
| 220 ], | 236 ], |
| 221 }, | 237 }, |
| 222 'link_settings': { | 238 'link_settings': { |
| 223 'libraries': [ '<(vulkan_lib_name)', ], | 239 'libraries': [ '<(vulkan_lib_name)', ], |
| 224 }, | 240 }, |
| 225 }, { | 241 }, { |
| 226 'sources!': [ | 242 'sources!': [ |
| 227 '<@(skgpu_vk_sources)', | 243 '<@(skgpu_vk_sources)', |
| 228 ], | 244 ], |
| 229 }], | 245 }], |
| 230 ], | 246 ], |
| 231 }, | 247 }, |
| 232 ], | 248 ], |
| 233 } | 249 } |
| OLD | NEW |