Enable SDL_LEAN_AND_MEAN, SDL_RENDER_DISABLED, saves about 500kb in final exe
Build several projects that arent performance critical with /Os and /O1 under msvc windows
This commit is contained in:
2
third_party/SDL2-static.lua
vendored
2
third_party/SDL2-static.lua
vendored
@@ -7,6 +7,8 @@ project("SDL2")
|
||||
|
||||
defines({
|
||||
"HAVE_LIBC",
|
||||
"SDL_LEAN_AND_MEAN=1",
|
||||
"SDL_RENDER_DISABLED=1"
|
||||
})
|
||||
links({
|
||||
"setupapi.lib",
|
||||
|
||||
5
third_party/capstone.lua
vendored
5
third_party/capstone.lua
vendored
@@ -11,6 +11,11 @@ project("capstone")
|
||||
"CAPSTONE_USE_SYS_DYN_MEM",
|
||||
"_LIB",
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
includedirs({
|
||||
"capstone",
|
||||
"capstone/include",
|
||||
|
||||
5
third_party/fmt.lua
vendored
5
third_party/fmt.lua
vendored
@@ -8,6 +8,11 @@ project("fmt")
|
||||
defines({
|
||||
"_LIB",
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
includedirs({
|
||||
"fmt/include",
|
||||
})
|
||||
|
||||
5
third_party/glslang-spirv.lua
vendored
5
third_party/glslang-spirv.lua
vendored
@@ -10,6 +10,11 @@ project("glslang-spirv")
|
||||
})
|
||||
includedirs({
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
files({
|
||||
"glslang/SPIRV/bitutils.h",
|
||||
"glslang/SPIRV/disassemble.cpp",
|
||||
|
||||
5
third_party/imgui.lua
vendored
5
third_party/imgui.lua
vendored
@@ -11,6 +11,11 @@ project("imgui")
|
||||
includedirs({
|
||||
"imgui",
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
files({
|
||||
"imgui/imconfig.h",
|
||||
"imgui/imgui.cpp",
|
||||
|
||||
Reference in New Issue
Block a user