aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-03-03 16:38:22 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-03 16:38:22 -0800
commitf98bc6d618fb7317abff05b3b4351ff24e4fb560 (patch)
tree39a41d1806cf4ca73265a422f43fedb24d9b4fdd /gyp
parentde7bbab69946aaac267197a87255f53d28e0b5da (diff)
Use installed vulkan SDK and remove checked in SDK
Diffstat (limited to 'gyp')
-rw-r--r--gyp/gpu.gyp68
1 files changed, 15 insertions, 53 deletions
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index 057b742510..7b644bb474 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -235,72 +235,34 @@
},
}],
[ 'skia_vulkan', {
+ 'variables': {
+ 'conditions': [
+ [ 'skia_os == "win"', {
+ 'vulkan_sdk_path' : '<!(echo %VK_SDK_PATH%)',
+ }, {
+ 'vulkan_sdk_path' : '<!(echo $VK_SDK_PATH)',
+ }],
+ ],
+ },
'dependencies': [
'shaderc.gyp:shaderc_combined',
],
'include_dirs': [
'../third_party/', # To include files under third_party/vulkan
'../third_party/externals/shaderc2/libshaderc/include',
+ '<(vulkan_sdk_path)/Include',
],
'direct_dependent_settings': {
'include_dirs': [
'../third_party/', # To include files under third_party/vulkan
'../third_party/externals/shaderc2/libshaderc/include',
+ '<(vulkan_sdk_path)/Include',
],
},
- 'conditions' : [
- ['skia_os == "win"', {
- 'all_dependent_settings': {
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'AdditionalDependencies': [
- 'vulkan-1.lib',
- ],
- },
- },
- },
- 'link_settings': {
- 'configurations': {
- 'Debug': {
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'AdditionalLibraryDirectories': [
- '../third_party/vulkan',
- ],
- },
- },
- },
- 'Release': {
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'AdditionalLibraryDirectories': [
- '../third_party/vulkan',
- ],
- },
- },
- },
- 'Debug_x64': {
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'AdditionalLibraryDirectories': [
- '../third_party/vulkan',
- ],
- },
- },
- },
- 'Release_x64': {
- 'msvs_settings': {
- 'VCLinkerTool': {
- 'AdditionalLibraryDirectories': [
- '../third_party/vulkan',
- ],
- },
- },
- },
- },
- },
- }],
- ],
+ 'link_settings': {
+ 'library_dirs': [ '<(vulkan_sdk_path)/Bin', ],
+ 'libraries': [ '-lvulkan-1', ],
+ },
}, {
'sources!': [
'<@(skgpu_vk_sources)',