Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2019-11-01 14:41:08 +0300
committerGitHub <noreply@github.com>2019-11-01 14:41:08 +0300
commitd253f41e17e27285756d031d8ba43bf370264e1f (patch)
treeef425aa9804401888280bec3a6b4d0af6c99603d
parent00189b19a5da553c668290a051604209586b2139 (diff)
parent369edcfe1d4f791bdeae9f206403cd3d5ae9c029 (diff)
Merge pull request #1192 from kakashidinho/master2019-11-01
Added BUILD.gn file to be used by Chromium's ANGLE project
-rw-r--r--gn/BUILD.gn63
1 files changed, 63 insertions, 0 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
new file mode 100644
index 00000000..8458c1a7
--- /dev/null
+++ b/gn/BUILD.gn
@@ -0,0 +1,63 @@
+# Copyright (C) 2019 Google, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+config("spirv_cross_public") {
+ include_dirs = [ ".." ]
+
+ defines = [ "SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS" ]
+}
+
+source_set("spirv_cross_sources") {
+ public_configs = [ ":spirv_cross_public" ]
+
+ sources = [
+ "../GLSL.std.450.h",
+ "../spirv.hpp",
+ "../spirv_cfg.cpp",
+ "../spirv_cfg.hpp",
+ "../spirv_common.hpp",
+ "../spirv_cross.cpp",
+ "../spirv_cross.hpp",
+ "../spirv_cross_containers.hpp",
+ "../spirv_cross_error_handling.hpp",
+ "../spirv_cross_parsed_ir.cpp",
+ "../spirv_cross_parsed_ir.hpp",
+ "../spirv_cross_util.cpp",
+ "../spirv_cross_util.hpp",
+ "../spirv_glsl.cpp",
+ "../spirv_glsl.hpp",
+ "../spirv_msl.cpp",
+ "../spirv_msl.hpp",
+ "../spirv_parser.cpp",
+ "../spirv_parser.hpp",
+ "../spirv_reflect.cpp",
+ "../spirv_reflect.hpp",
+ ]
+
+ cflags = [ "-fno-exceptions" ]
+
+ if (is_clang) {
+ cflags_cc = [
+ "-Wno-extra-semi",
+ "-Wno-ignored-qualifiers",
+ "-Wno-implicit-fallthrough",
+ "-Wno-inconsistent-missing-override",
+ "-Wno-missing-field-initializers",
+ "-Wno-newline-eof",
+ "-Wno-sign-compare",
+ "-Wno-unused-variable",
+ ]
+ }
+}