1 # Copyright 2016 The SwiftShader Authors. All Rights Reserved.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Need a separate config to ensure the warnings are added to the end.
16 config("swiftshader_main_private_config") {
19 "/wd4201", # nameless struct/union
20 "/wd5030", # attribute is not recognized
25 "-Wno-string-conversion",
31 defines = [ "NO_SANITIZE_FUNCTION=__attribute__((no_sanitize(\"function\")))" ]
35 source_set("swiftshader_main") {
37 "../Common:swiftshader_common",
52 sources += [ "FrameBufferOSX.mm" ]
62 configs -= [ "//build/config/win:unicode" ]
63 libs = [ "dxguid.lib" ] # For FrameBufferDD
66 configs += [ ":swiftshader_main_private_config" ]
74 include_dirs += [ "../../include" ]