2019-10-31 15:23:01 +00:00
|
|
|
# Copyright (C) 2019 Google, Inc.
|
2021-05-08 08:47:48 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2019-10-31 15:23:01 +00:00
|
|
|
#
|
2019-11-01 09:37:02 +00:00
|
|
|
# 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
|
2019-10-31 15:23:01 +00:00
|
|
|
#
|
2019-11-01 09:37:02 +00:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2019-10-31 15:23:01 +00:00
|
|
|
#
|
2019-11-01 09:37:02 +00:00
|
|
|
# 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.
|
2019-10-31 15:23:01 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
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",
|
2021-02-17 16:14:04 +00:00
|
|
|
"../spirv_hlsl.cpp",
|
2021-05-08 08:47:48 +00:00
|
|
|
"../spirv_hlsl.hpp",
|
2019-10-31 15:23:01 +00:00
|
|
|
"../spirv_msl.cpp",
|
|
|
|
"../spirv_msl.hpp",
|
|
|
|
"../spirv_parser.cpp",
|
|
|
|
"../spirv_parser.hpp",
|
|
|
|
"../spirv_reflect.cpp",
|
|
|
|
"../spirv_reflect.hpp",
|
|
|
|
]
|
|
|
|
|
2021-02-17 01:42:00 +00:00
|
|
|
if (!is_win) {
|
|
|
|
cflags = [ "-fno-exceptions" ]
|
|
|
|
}
|
2019-10-31 15:23:01 +00:00
|
|
|
|
|
|
|
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",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|