mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 13:14:01 +08:00
fix linking in Windows for MinGW, FINALLY!, api_regular links!
This commit is contained in:
parent
78ff7e2cd6
commit
773d8e44f5
26
premake5.lua
26
premake5.lua
@ -200,15 +200,29 @@ local common_files = {
|
|||||||
|
|
||||||
-- libs to link
|
-- libs to link
|
||||||
---------
|
---------
|
||||||
|
local lib_prefix = 'lib'
|
||||||
|
local mingw_static_whole_archive = ''
|
||||||
|
-- MinGW on Windows adds this prefix by default and linking ex: '-lssq' will look for 'libssq'
|
||||||
|
-- so we have to ommit this prefix since it's automatically added
|
||||||
|
if string.match(_ACTION, 'gmake.*') then
|
||||||
|
lib_prefix = ''
|
||||||
|
mingw_static_whole_archive = ':static_whole'
|
||||||
|
end
|
||||||
local common_link_win = {
|
local common_link_win = {
|
||||||
-- os specific
|
-- os specific
|
||||||
"Ws2_32", "Iphlpapi", "Wldap32", "Winmm", "Bcrypt", "Dbghelp", "Xinput",
|
"Ws2_32" .. mingw_static_whole_archive,
|
||||||
|
"Iphlpapi" .. mingw_static_whole_archive,
|
||||||
|
"Wldap32" .. mingw_static_whole_archive,
|
||||||
|
"Winmm" .. mingw_static_whole_archive,
|
||||||
|
"Bcrypt" .. mingw_static_whole_archive,
|
||||||
|
"Dbghelp" .. mingw_static_whole_archive,
|
||||||
|
"Xinput" .. mingw_static_whole_archive,
|
||||||
-- deps
|
-- deps
|
||||||
"ssq",
|
"ssq" .. mingw_static_whole_archive,
|
||||||
"zlibstatic",
|
"zlibstatic" .. mingw_static_whole_archive,
|
||||||
"libcurl",
|
lib_prefix .. "curl" .. mingw_static_whole_archive,
|
||||||
"libprotobuf-lite",
|
lib_prefix .. "protobuf-lite" .. mingw_static_whole_archive,
|
||||||
"mbedcrypto",
|
"mbedcrypto" .. mingw_static_whole_archive,
|
||||||
}
|
}
|
||||||
|
|
||||||
local common_link_linux = {
|
local common_link_linux = {
|
||||||
|
Loading…
Reference in New Issue
Block a user