adding SteamClientExtra, .rc files.

now targeting c++latest instead of c++17 (CAN BE REVERTED!)
This commit is contained in:
Detanup01 2024-05-13 21:41:19 +02:00 committed by otavepto
parent 99391fd699
commit 87b0e9f955

View File

@ -96,7 +96,7 @@ workspace "GBE"
-- Project SteamEmu -- Project SteamEmu
project "SteamEmu" project "SteamEmu"
cppdialect("C++17") cppdialect("C++latest")
kind "SharedLib" kind "SharedLib"
language "C++" language "C++"
targetdir "bin/SteamEmu/%{cfg.buildcfg}_%{cfg.platform}" targetdir "bin/SteamEmu/%{cfg.buildcfg}_%{cfg.platform}"
@ -144,8 +144,7 @@ project "SteamEmu"
-- WIN 32 DEFAULTS -- WIN 32 DEFAULTS
filter { "platforms:x32", "options:os=windows" } filter { "platforms:x32", "options:os=windows" }
files { files {
windows_files, windows_files
"resources/win/api/32/resources.rc"
} }
links { links {
win_link, win_link,
@ -179,8 +178,7 @@ project "SteamEmu"
-- WIN 64 DEFAULTS -- WIN 64 DEFAULTS
filter { "platforms:x64", "options:os=windows" } filter { "platforms:x64", "options:os=windows" }
files { files {
windows_files, windows_files
"resources/win/api/64/resources.rc"
} }
links { links {
win_link, win_link,
@ -224,7 +222,8 @@ project "SteamEmu"
"libs/**", "libs/**",
crash_win, crash_win,
"controller/**", "controller/**",
"overlay_experimental/**" "overlay_experimental/**",
"resources/win/api/32/resources.rc"
} }
removefiles { "libs/detours/uimports.cc" } removefiles { "libs/detours/uimports.cc" }
defines { "DEBUG", "EMU_EXPERIMENTAL_BUILD", "ImTextureID=ImU64" } defines { "DEBUG", "EMU_EXPERIMENTAL_BUILD", "ImTextureID=ImU64" }
@ -235,7 +234,8 @@ project "SteamEmu"
"libs/**", "libs/**",
crash_win, crash_win,
"controller/**", "controller/**",
"overlay_experimental/**" "overlay_experimental/**",
"resources/win/api/32/resources.rc"
} }
removefiles { "libs/detours/uimports.cc" } removefiles { "libs/detours/uimports.cc" }
defines { "NDEBUG", "EMU_RELEASE_BUILD", "EMU_EXPERIMENTAL_BUILD" ,"CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64" } defines { "NDEBUG", "EMU_RELEASE_BUILD", "EMU_EXPERIMENTAL_BUILD" ,"CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64" }
@ -260,12 +260,11 @@ project "SteamEmu"
} }
defines { "NDEBUG", "EMU_RELEASE_BUILD", "CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64" } defines { "NDEBUG", "EMU_RELEASE_BUILD", "CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64" }
-- x -- end SteamEmu
-- Project SteamClient -- Project SteamClient
project "SteamClient" project "SteamClient"
dependson { "SteamEmu" } cppdialect("C++latest")
cppdialect("C++17")
kind "SharedLib" kind "SharedLib"
language "C++" language "C++"
targetdir "bin/SteamClient/%{cfg.buildcfg}_%{cfg.platform}" targetdir "bin/SteamClient/%{cfg.buildcfg}_%{cfg.platform}"
@ -443,10 +442,58 @@ project "SteamClient"
} }
defines {"UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "GNUC", "NDEBUG", "EMU_RELEASE_BUILD", "CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64", "STEAMCLIENT_DLL" } defines {"UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "GNUC", "NDEBUG", "EMU_RELEASE_BUILD", "CONTROLLER_SUPPORT", "EMU_OVERLAY", "ImTextureID=ImU64", "STEAMCLIENT_DLL" }
-- SteamClientExtra
if os.target() == "windows" then
project "SteamClientExtra"
cppdialect("C++latest")
kind "SharedLib"
language "C++"
targetdir "bin/SteamClientExtra/%{cfg.buildcfg}_%{cfg.platform}"
location "GBE_Build/SteamClientExtra"
staticruntime "on"
optimize "On"
symbols "Off"
buildoptions {
"/permissive-", "/MP4", "/DYNAMICBASE", "/utf-8", "/Zc:char8_t-", "/EHsc", "/GL-"
}
linkoptions {
"/emittoolversioninfo:no"
}
links {
win_link,
"user32.lib"
}
includedirs {
"helpers",
"libs",
"tools/steamclient_loader/win/extra_protection"
}
-- WIN 32 DEFAULTS
filter { "platforms:x32", "options:os=windows" }
files {
"helpers/**",
"libs/detours/**",
"resources/win/client/32/resources.rc",
"tools/steamclient_loader/win/**"
}
removefiles { "libs/detours/uimports.cc" }
-- WIN 64 DEFAULTS
filter { "platforms:x64", "options:os=windows" }
files {
"helpers/**",
"libs/detours/**",
"resources/win/client/64/resources.rc",
"tools/steamclient_loader/win/**"
}
removefiles { "libs/detours/uimports.cc" }
end
-- End SteamClient + SteamClientExtra
-- . -- .