* revert the duplicate compiler/linker flags

* remove unicode for linux
This commit is contained in:
otavepto 2024-05-17 11:47:29 +03:00
parent b96fc1141e
commit f26cc7a008

View File

@ -229,18 +229,22 @@ project "SteamEmu"
-- BASIC FOR WINDOWS -- BASIC FOR WINDOWS
filter "options:os=windows" filter "options:os=windows"
buildoptions { buildoptions {
"/permissive-", "/MP", "/DYNAMICBASE", "/nologo", "/permissive-", "/MP", "/DYNAMICBASE",
"/utf-8", "/Zc:char8_t-", "/EHsc", "/GF", "/GL-", "/GS" "/utf-8", "/Zc:char8_t-", "/EHsc", "/GL-"
} }
linkoptions { linkoptions {
"/DYNAMICBASE", "/ERRORREPORT:NONE", "/NOLOGO", "/emittoolversioninfo:no" "/NOLOGO", "/emittoolversioninfo:no"
} }
filter { "options:os=windows", "configurations:Release" } filter { "options:os=windows", "configurations:Release" }
defines {"NDEBUG", "EMU_RELEASE_BUILD", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "UNICODE", "_UNICODE", "_CRT_SECURE_NO_WARNINGS", "EMU_BUILD_STRING=".._OPTIONS["emubuild"] } defines {
"NDEBUG", "EMU_RELEASE_BUILD", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "_CRT_SECURE_NO_WARNINGS", "EMU_BUILD_STRING=".._OPTIONS["emubuild"]
}
filter { "options:os=windows", "configurations:Debug" } filter { "options:os=windows", "configurations:Debug" }
defines {"DEBUG", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "UNICODE", "_UNICODE", "_CRT_SECURE_NO_WARNINGS", "EMU_BUILD_STRING=".._OPTIONS["emubuild"] } defines {
"DEBUG", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "_CRT_SECURE_NO_WARNINGS", "EMU_BUILD_STRING=".._OPTIONS["emubuild"]
}
-- WIN 32 DEFAULTS -- WIN 32 DEFAULTS
filter { "platforms:x32", "options:os=windows" } filter { "platforms:x32", "options:os=windows" }
@ -307,10 +311,14 @@ project "SteamEmu"
} }
filter { "options:os=linux", "configurations:Release" } filter { "options:os=linux", "configurations:Release" }
defines {"NDEBUG", "EMU_RELEASE_BUILD", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "UNICODE", "_UNICODE", "GNUC", "CONTROLLER_SUPPORT", "EMU_BUILD_STRING=".._OPTIONS["emubuild"] } defines {
"NDEBUG", "EMU_RELEASE_BUILD", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "GNUC", "CONTROLLER_SUPPORT", "EMU_BUILD_STRING=".._OPTIONS["emubuild"]
}
filter { "options:os=linux", "configurations:Debug" } filter { "options:os=linux", "configurations:Debug" }
defines {"DEBUG", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "UNICODE", "_UNICODE", "GNUC", "CONTROLLER_SUPPORT", "EMU_BUILD_STRING=".._OPTIONS["emubuild"] } defines {
"DEBUG", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "GNUC", "CONTROLLER_SUPPORT", "EMU_BUILD_STRING=".._OPTIONS["emubuild"]
}
-- linux 32 DEFAULTS -- linux 32 DEFAULTS
filter { "platforms:x32", "options:os=linux" } filter { "platforms:x32", "options:os=linux" }
@ -348,7 +356,7 @@ project "SteamEmu"
removefiles { "libs/detours/uimports.cc" } removefiles { "libs/detours/uimports.cc" }
defines { defines {
"EMU_EXPERIMENTAL_BUILD", "CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "EMU_EXPERIMENTAL_BUILD", "CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB",
"DEBUG", "UNICODE", "_UNICODE", "_CRT_SECURE_NO_WARNINGS", "EMU_BUILD_STRING=".._OPTIONS["emubuild"] "DEBUG", "_CRT_SECURE_NO_WARNINGS", "EMU_BUILD_STRING=".._OPTIONS["emubuild"]
} }
-- ExperimentalRelease WINDOWS -- ExperimentalRelease WINDOWS
filter { "ExperimentalRelease", "options:os=windows" } filter { "ExperimentalRelease", "options:os=windows" }
@ -363,7 +371,7 @@ project "SteamEmu"
removefiles { "libs/detours/uimports.cc" } removefiles { "libs/detours/uimports.cc" }
defines { defines {
"EMU_EXPERIMENTAL_BUILD" , "CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "EMU_EXPERIMENTAL_BUILD" , "CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB",
"NDEBUG", "EMU_RELEASE_BUILD", "UNICODE", "_UNICODE", "_CRT_SECURE_NO_WARNINGS", "EMU_BUILD_STRING=".._OPTIONS["emubuild"] "NDEBUG", "EMU_RELEASE_BUILD", "_CRT_SECURE_NO_WARNINGS", "EMU_BUILD_STRING=".._OPTIONS["emubuild"]
} }
-- ExperimentalDebug LINUX -- ExperimentalDebug LINUX
filter { "ExperimentalDebug", "options:os=linux" } filter { "ExperimentalDebug", "options:os=linux" }