aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2016-03-03 08:01:33 -0500
committerGravatar Eric Boren <borenet@google.com>2016-03-03 08:01:33 -0500
commitb5f0d40935feba474852c61622ee6fcb1db3727c (patch)
tree9ee236b4c41de58819035c7c0fc9b3d6633f16ca /gyp
parented854fb897fa134f2f64738a75293502fdcf1af2 (diff)
Revert "Pull and build shaderc rather than use checked in lib/header"
Diffstat (limited to 'gyp')
-rw-r--r--gyp/gpu.gyp14
-rw-r--r--gyp/shaderc.gyp63
2 files changed, 7 insertions, 70 deletions
diff --git a/gyp/gpu.gyp b/gyp/gpu.gyp
index 7762152f59..43204a4548 100644
--- a/gyp/gpu.gyp
+++ b/gyp/gpu.gyp
@@ -235,17 +235,12 @@
},
}],
[ 'skia_vulkan', {
- 'dependencies': [
- 'shaderc.gyp:shaderc_combined',
- ],
'include_dirs': [
- '../third_party/', # To include files under third_party/vulkan
- '../third_party/externals/shaderc/libshaderc/include',
+ '../third_party/' # To include files under third_party/vulkan
],
'direct_dependent_settings': {
'include_dirs': [
- '../third_party/', # To include files under third_party/vulkan
- '../third_party/externals/shaderc/libshaderc/include',
+ '../third_party/' # To include files under third_party/vulkan
],
},
'conditions' : [
@@ -255,6 +250,7 @@
'VCLinkerTool': {
'AdditionalDependencies': [
'vulkan-1.lib',
+ 'shaderc_combined.lib'
],
},
},
@@ -266,6 +262,7 @@
'VCLinkerTool': {
'AdditionalLibraryDirectories': [
'../third_party/vulkan',
+ '../third_party/shaderc/Debug',
],
},
},
@@ -275,6 +272,7 @@
'VCLinkerTool': {
'AdditionalLibraryDirectories': [
'../third_party/vulkan',
+ '../third_party/shaderc/Release',
],
},
},
@@ -284,6 +282,7 @@
'VCLinkerTool': {
'AdditionalLibraryDirectories': [
'../third_party/vulkan',
+ '../third_party/shaderc/Debug',
],
},
},
@@ -293,6 +292,7 @@
'VCLinkerTool': {
'AdditionalLibraryDirectories': [
'../third_party/vulkan',
+ '../third_party/shaderc/Release',
],
},
},
diff --git a/gyp/shaderc.gyp b/gyp/shaderc.gyp
deleted file mode 100644
index 3619fa2eae..0000000000
--- a/gyp/shaderc.gyp
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 2016 Google Inc.
-#
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# Builds shaderc for the Vulkan backend
-{
- 'variables': {
- 'conditions': [
- [ 'CONFIGURATION_NAME == "Release_Developer"', {
- 'shaderc_build_type' : 'Release',
- }, {
- 'shaderc_build_type' : '<(CONFIGURATION_NAME)',
- }],
- [ 'skia_os == "win"', {
- 'shaderc_lib_name' : 'shaderc_combined.lib',
- }, {
- 'shaderc_lib_name' : 'libshaderc_combined.a',
- }],
- [ 'MSVS_VERSION == "2013"', {
- 'shaderc_project_type' : 'MSVS2013',
- }],
- [ 'MSVS_VERSION == "2015"', {
- 'shaderc_project_type' : 'MSVS2015',
- }],
- ],
- 'skia_build_type' : '<(CONFIGURATION_NAME)',
- },
- 'targets': [
- {
- # Call out to a python script to build shaderc_combined and then copy it
- # to out/<Configuration>
- 'target_name': 'shaderc_combined',
- 'type': 'none',
- 'actions': [
- {
- 'action_name': 'compile_shaderc',
- 'inputs': [
- '<!@(python find.py ../third_party/externals/shaderc "*")',
- '../tools/build_shaderc.py',
- ],
- 'outputs': [
- '../out/<(skia_build_type)/shaderc_out_<(skia_arch_type)/libshaderc/<(shaderc_build_type)/<(shaderc_lib_name)',
- ],
- 'action': ['python', '../tools/build_shaderc.py', '-s', '../third_party/externals/shaderc', '-o', '../out/<(skia_build_type)/shaderc_out_<(skia_arch_type)', '-a', '<(skia_arch_type)', '-t', '<(shaderc_build_type)', '-p', '<(shaderc_project_type)'],
- },
- ],
- 'copies': [
- {
- 'destination': '../out/<(skia_build_type)',
- 'files': ['../out/<(skia_build_type)/shaderc_out_<(skia_arch_type)/libshaderc/<(shaderc_build_type)/<(shaderc_lib_name)'],
- },
- ],
- 'all_dependent_settings': {
- 'link_settings': {
- 'libraries': [
- '-lshaderc_combined',
- ],
- },
- },
- },
- ],
-}