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:
@@ -119,6 +119,11 @@ project("xenia-app")
|
||||
"xenia-gpu-d3d12-trace-viewer",
|
||||
"xenia-ui-window-d3d12-demo",
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
|
||||
filter("platforms:Windows")
|
||||
-- Only create the .user file if it doesn't already exist.
|
||||
|
||||
@@ -10,6 +10,11 @@ project("xenia-cpu")
|
||||
"xenia-base",
|
||||
"mspack",
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/llvm/include",
|
||||
})
|
||||
|
||||
@@ -12,6 +12,11 @@ project("xenia-debug-ui")
|
||||
"xenia-cpu",
|
||||
"xenia-ui",
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
defines({
|
||||
})
|
||||
includedirs({
|
||||
|
||||
@@ -38,7 +38,11 @@ project("xenia-hid-demo")
|
||||
resincludedirs({
|
||||
project_root,
|
||||
})
|
||||
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
filter("platforms:not Android-*")
|
||||
links({
|
||||
"xenia-helper-sdl",
|
||||
|
||||
@@ -10,6 +10,11 @@ project("xenia-ui-d3d12")
|
||||
"xenia-base",
|
||||
"xenia-ui",
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
local_platform_files()
|
||||
files({
|
||||
"../shaders/bytecode/d3d12_5_1/*.h",
|
||||
|
||||
@@ -14,7 +14,11 @@ project("xenia-ui")
|
||||
local_platform_files()
|
||||
removefiles({"*_demo.cc"})
|
||||
removefiles({"windowed_app_main_*.cc"})
|
||||
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
filter("platforms:Android-*")
|
||||
-- Exports JNI functions.
|
||||
wholelib("On")
|
||||
|
||||
@@ -10,6 +10,11 @@ project("xenia-ui-vulkan")
|
||||
"xenia-base",
|
||||
"xenia-ui",
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
includedirs({
|
||||
project_root.."/third_party/Vulkan-Headers/include",
|
||||
})
|
||||
|
||||
@@ -11,6 +11,11 @@ project("xenia-vfs")
|
||||
})
|
||||
defines({
|
||||
})
|
||||
filter({"configurations:Release", "platforms:Windows"})
|
||||
buildoptions({
|
||||
"/Os",
|
||||
"/O1"
|
||||
})
|
||||
recursive_platform_files()
|
||||
removefiles({"vfs_dump.cc"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user