Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: gyp/shaderc.gyp

Issue 1760493003: Pull and build shaderc rather than use checked in lib/header (Closed) Base URL: https://skia.googlesource.com/skia@depsos
Patch Set: use shaderc2 dir Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/gpu.gyp ('k') | third_party/shaderc/Debug/shaderc_combined.lib » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/shaderc.gyp
diff --git a/gyp/shaderc.gyp b/gyp/shaderc.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..2b1b8f1debc0f76b18eb8a4bd552e10b25a305d1
--- /dev/null
+++ b/gyp/shaderc.gyp
@@ -0,0 +1,63 @@
+# 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/shaderc2 "*")',
+ '../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/shaderc2', '-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',
+ ],
+ },
+ },
+ },
+ ],
+}
« no previous file with comments | « gyp/gpu.gyp ('k') | third_party/shaderc/Debug/shaderc_combined.lib » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698