Update build files

This commit is contained in:
Attila Uygun 2023-08-15 18:48:34 +02:00
parent 169e05c970
commit 2ca0bb9b5b
3 changed files with 7 additions and 9 deletions

View File

@ -164,14 +164,6 @@ config("release") {
}
}
config("third_party_warnings") {
if (is_win) {
cflags = [
"/wd4242", # tmp:conversion from 'int' to 'uint8_t'
]
}
}
config("warnings") {
if (is_win) {
cflags = [

View File

@ -12,6 +12,7 @@ target_compile_options(common_config INTERFACE
-Wno-deprecated-enum-enum-conversion
-Wno-unsequenced
-Wno-nullability-completeness
-Wno-unused-variable
)
target_compile_definitions(common_config INTERFACE

View File

@ -84,6 +84,8 @@ source_set("third_party") {
"GLEW_STATIC",
]
cflags = []
if (target_os == "linux" || target_os == "win") {
sources += [
"glew/glew.c",
@ -103,10 +105,13 @@ source_set("third_party") {
"glew/wglew.h",
"glslang/glslang/OSDependent/Windows/ossource.cpp",
]
cflags += [
"/wd4242", # tmp:conversion from 'int' to 'uint8_t'
]
}
configs -= [ "//build:warnings" ]
configs += [ "//build:third_party_warnings" ]
deps = []
}