mirror of https://github.com/auygun/kaliber.git
Update build files
This commit is contained in:
parent
169e05c970
commit
2ca0bb9b5b
|
@ -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 = [
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = []
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue