From f3c251508c090ed858baeb9c4287b91589255502 Mon Sep 17 00:00:00 2001 From: Detanup01 <91248446+Detanup01@users.noreply.github.com> Date: Tue, 14 May 2024 17:27:57 +0200 Subject: [PATCH] adding controller to link, excl simpleini .c why do we not build that too? idk --- premake5.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/premake5.lua b/premake5.lua index d1b11a21..c19a3e16 100644 --- a/premake5.lua +++ b/premake5.lua @@ -79,7 +79,9 @@ local windows_files = { local linux_files = { default_files, predefined_libs, - crash_linux + crash_linux, + "controller/**", + "" } -- 32 local x32_libsdir_win = { @@ -278,23 +280,31 @@ project "SteamEmu" files { linux_files } + removefiles { + "libs/simpleini/**" + } removefiles { "helpers/pe_**" } buildoptions { - "-fvisibility=hidden", "-fexceptions", "-fno-jump-tables", "-fno-char8_t" + "-fvisibility=hidden", "-fexceptions", "-fno-jump-tables", "-fno-char8_t" , "-Wundefined-internal", "-Wno-switch" } + + linkoptions { + "-Wl,-Bdynamic -Wl,--no-whole-archive -Wl,--exclude-libs,ALL" + } + links { linux_link, overlay_link_linux } filter { "options:os=linux", "configurations:Release" } - defines {"NDEBUG", "EMU_RELEASE_BUILD", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "UNICODE", "_UNICODE", "GNUC" } + defines {"NDEBUG", "EMU_RELEASE_BUILD", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "UNICODE", "_UNICODE", "GNUC", "CONTROLLER_SUPPORT" } filter { "options:os=linux", "configurations:Debug" } - defines {"DEBUG", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "UNICODE", "_UNICODE", "GNUC" } + defines {"DEBUG", "UTF_CPP_CPLUSPLUS=201703L", "CURL_STATICLIB", "UNICODE", "_UNICODE", "GNUC", "CONTROLLER_SUPPORT" } -- linux 32 DEFAULTS filter { "platforms:x32", "options:os=linux" }