mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-23 11:15:34 +08:00
extract common files, defines, and includes + fix all build problems
This commit is contained in:
parent
2556db1f84
commit
21521ae72c
134
premake5.lua
134
premake5.lua
@ -237,6 +237,8 @@ local common_files = {
|
|||||||
'crash_printer/' .. os_iden .. '.cpp', 'crash_printer/crash_printer/' .. os_iden .. '.hpp',
|
'crash_printer/' .. os_iden .. '.cpp', 'crash_printer/crash_printer/' .. os_iden .. '.hpp',
|
||||||
-- helpers/common_helpers
|
-- helpers/common_helpers
|
||||||
"helpers/common_helpers.cpp", "helpers/common_helpers/**",
|
"helpers/common_helpers.cpp", "helpers/common_helpers/**",
|
||||||
|
-- helpers/dbg_log
|
||||||
|
"helpers/dbg_log.cpp", "helpers/dbg_log/**",
|
||||||
}
|
}
|
||||||
|
|
||||||
local overlay_files = {
|
local overlay_files = {
|
||||||
@ -561,6 +563,10 @@ filter {} -- reset the filter and remove all active keywords
|
|||||||
|
|
||||||
-- defines
|
-- defines
|
||||||
---------
|
---------
|
||||||
|
filter {} -- reset the filter and remove all active keywords
|
||||||
|
defines { -- added to all filters, later defines will be appended
|
||||||
|
common_emu_defines,
|
||||||
|
}
|
||||||
-- release mode defines
|
-- release mode defines
|
||||||
filter { "configurations:*release" }
|
filter { "configurations:*release" }
|
||||||
defines {
|
defines {
|
||||||
@ -639,6 +645,15 @@ filter { 'options:incdeps', "platforms:x64", }
|
|||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
|
|
||||||
|
|
||||||
|
-- include dirs
|
||||||
|
---------
|
||||||
|
-- common include dir
|
||||||
|
filter {} -- reset the filter and remove all active keywords
|
||||||
|
includedirs {
|
||||||
|
common_include,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
-- disable warnings for external libraries/deps
|
-- disable warnings for external libraries/deps
|
||||||
filter { 'files:proto_gen/** or libs/** or build/deps/**' }
|
filter { 'files:proto_gen/** or libs/** or build/deps/**' }
|
||||||
warnings 'Off'
|
warnings 'Off'
|
||||||
@ -690,21 +705,6 @@ project "api_regular"
|
|||||||
targetname "libsteam_api"
|
targetname "libsteam_api"
|
||||||
|
|
||||||
|
|
||||||
-- defines
|
|
||||||
---------
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
defines { -- added to all filters, later defines will be appended
|
|
||||||
common_emu_defines,
|
|
||||||
}
|
|
||||||
|
|
||||||
-- include dir
|
|
||||||
---------
|
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
}
|
|
||||||
|
|
||||||
-- x32 include dir
|
-- x32 include dir
|
||||||
filter { "platforms:x32", }
|
filter { "platforms:x32", }
|
||||||
includedirs {
|
includedirs {
|
||||||
@ -796,7 +796,6 @@ project "api_experimental"
|
|||||||
---------
|
---------
|
||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
defines { -- added to all filters, later defines will be appended
|
defines { -- added to all filters, later defines will be appended
|
||||||
common_emu_defines,
|
|
||||||
"EMU_OVERLAY", "ImTextureID=ImU64",
|
"EMU_OVERLAY", "ImTextureID=ImU64",
|
||||||
}
|
}
|
||||||
-- Windows defines
|
-- Windows defines
|
||||||
@ -808,11 +807,6 @@ project "api_experimental"
|
|||||||
|
|
||||||
-- include dir
|
-- include dir
|
||||||
---------
|
---------
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
}
|
|
||||||
-- x32 include dir
|
-- x32 include dir
|
||||||
filter { "platforms:x32", }
|
filter { "platforms:x32", }
|
||||||
includedirs {
|
includedirs {
|
||||||
@ -936,7 +930,6 @@ project "steamclient_experimental"
|
|||||||
---------
|
---------
|
||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
defines { -- added to all filters, later defines will be appended
|
defines { -- added to all filters, later defines will be appended
|
||||||
common_emu_defines,
|
|
||||||
"STEAMCLIENT_DLL", "EMU_OVERLAY", "ImTextureID=ImU64",
|
"STEAMCLIENT_DLL", "EMU_OVERLAY", "ImTextureID=ImU64",
|
||||||
}
|
}
|
||||||
-- Windows defines
|
-- Windows defines
|
||||||
@ -948,12 +941,6 @@ project "steamclient_experimental"
|
|||||||
|
|
||||||
-- include dir
|
-- include dir
|
||||||
---------
|
---------
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
}
|
|
||||||
|
|
||||||
-- x32 include dir
|
-- x32 include dir
|
||||||
filter { "platforms:x32", }
|
filter { "platforms:x32", }
|
||||||
includedirs {
|
includedirs {
|
||||||
@ -1063,7 +1050,6 @@ project "tool_lobby_connect"
|
|||||||
---------
|
---------
|
||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
defines { -- added to all filters, later defines will be appended
|
defines { -- added to all filters, later defines will be appended
|
||||||
common_emu_defines,
|
|
||||||
"NO_DISK_WRITES", "LOBBY_CONNECT",
|
"NO_DISK_WRITES", "LOBBY_CONNECT",
|
||||||
}
|
}
|
||||||
removedefines {
|
removedefines {
|
||||||
@ -1074,10 +1060,6 @@ project "tool_lobby_connect"
|
|||||||
-- include dir
|
-- include dir
|
||||||
---------
|
---------
|
||||||
-- common include dir
|
-- common include dir
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
}
|
|
||||||
-- x32 include dir
|
-- x32 include dir
|
||||||
filter { "platforms:x32", }
|
filter { "platforms:x32", }
|
||||||
includedirs {
|
includedirs {
|
||||||
@ -1169,18 +1151,12 @@ project "lib_steamnetworkingsockets"
|
|||||||
targetname "steamnetworkingsockets"
|
targetname "steamnetworkingsockets"
|
||||||
|
|
||||||
|
|
||||||
-- include dir
|
|
||||||
---------
|
|
||||||
-- common include dir
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- common source & header files
|
-- common source & header files
|
||||||
---------
|
---------
|
||||||
files {
|
files {
|
||||||
"networking_sockets_lib/**",
|
"networking_sockets_lib/**",
|
||||||
|
"helpers/dbg_log.cpp", "helpers/dbg_log/**",
|
||||||
|
'helpers/common_helpers.cpp', 'helpers/common_helpers/**',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1213,11 +1189,6 @@ project "lib_game_overlay_renderer"
|
|||||||
|
|
||||||
-- include dir
|
-- include dir
|
||||||
---------
|
---------
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
}
|
|
||||||
-- x32 include dir
|
-- x32 include dir
|
||||||
filter { "platforms:x32", }
|
filter { "platforms:x32", }
|
||||||
includedirs {
|
includedirs {
|
||||||
@ -1301,12 +1272,6 @@ project "steamclient_experimental_extra"
|
|||||||
|
|
||||||
-- include dir
|
-- include dir
|
||||||
---------
|
---------
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
'tools/steamclient_loader/win/extra_protection',
|
|
||||||
}
|
|
||||||
-- x32 include dir
|
-- x32 include dir
|
||||||
filter { "platforms:x32", }
|
filter { "platforms:x32", }
|
||||||
includedirs {
|
includedirs {
|
||||||
@ -1364,25 +1329,6 @@ project "steamclient_experimental_loader"
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
-- include dir
|
|
||||||
---------
|
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
}
|
|
||||||
-- x32 include dir
|
|
||||||
filter { "platforms:x32", }
|
|
||||||
includedirs {
|
|
||||||
x32_deps_include,
|
|
||||||
}
|
|
||||||
-- x64 include dir
|
|
||||||
filter { "platforms:x64", }
|
|
||||||
includedirs {
|
|
||||||
x64_deps_include,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- common source & header files
|
-- common source & header files
|
||||||
---------
|
---------
|
||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
@ -1391,6 +1337,7 @@ project "steamclient_experimental_loader"
|
|||||||
"helpers/pe_helpers.cpp", "helpers/pe_helpers/**",
|
"helpers/pe_helpers.cpp", "helpers/pe_helpers/**",
|
||||||
"helpers/common_helpers.cpp", "helpers/common_helpers/**",
|
"helpers/common_helpers.cpp", "helpers/common_helpers/**",
|
||||||
"helpers/dbg_log.cpp", "helpers/dbg_log/**",
|
"helpers/dbg_log.cpp", "helpers/dbg_log/**",
|
||||||
|
"libs/simpleini/**",
|
||||||
}
|
}
|
||||||
-- x32 common source files
|
-- x32 common source files
|
||||||
filter { "platforms:x32", "options:winrsrc", }
|
filter { "platforms:x32", "options:winrsrc", }
|
||||||
@ -1422,15 +1369,6 @@ project "tool_file_dos_stub_changer"
|
|||||||
targetname "file_dos_stub_%{cfg.platform}"
|
targetname "file_dos_stub_%{cfg.platform}"
|
||||||
|
|
||||||
|
|
||||||
-- include dir
|
|
||||||
---------
|
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- common source & header files
|
-- common source & header files
|
||||||
---------
|
---------
|
||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
@ -1451,16 +1389,6 @@ project "test_crash_printer"
|
|||||||
targetname "test_crash_printer_%{cfg.platform}"
|
targetname "test_crash_printer_%{cfg.platform}"
|
||||||
|
|
||||||
|
|
||||||
-- include dir
|
|
||||||
---------
|
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
'crash_printer',
|
|
||||||
'helpers',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- common source & header files
|
-- common source & header files
|
||||||
---------
|
---------
|
||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
@ -1515,18 +1443,12 @@ project "steamclient_regular"
|
|||||||
---------
|
---------
|
||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
defines { -- added to all filters, later defines will be appended
|
defines { -- added to all filters, later defines will be appended
|
||||||
common_emu_defines,
|
|
||||||
"STEAMCLIENT_DLL",
|
"STEAMCLIENT_DLL",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
-- include dir
|
-- include dir
|
||||||
---------
|
---------
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
common_include,
|
|
||||||
}
|
|
||||||
-- x32 include dir
|
-- x32 include dir
|
||||||
filter { "platforms:x32", }
|
filter { "platforms:x32", }
|
||||||
includedirs {
|
includedirs {
|
||||||
@ -1581,16 +1503,6 @@ project "test_crash_printer_sa_handler"
|
|||||||
targetname "test_crash_printer_sa_handler_%{cfg.platform}"
|
targetname "test_crash_printer_sa_handler_%{cfg.platform}"
|
||||||
|
|
||||||
|
|
||||||
-- include dir
|
|
||||||
---------
|
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
'crash_printer',
|
|
||||||
'helpers',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- common source & header files
|
-- common source & header files
|
||||||
---------
|
---------
|
||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
@ -1626,16 +1538,6 @@ project "test_crash_printer_sa_sigaction"
|
|||||||
targetname "test_crash_printer_sa_sigaction_%{cfg.platform}"
|
targetname "test_crash_printer_sa_sigaction_%{cfg.platform}"
|
||||||
|
|
||||||
|
|
||||||
-- include dir
|
|
||||||
---------
|
|
||||||
-- common include dir
|
|
||||||
filter {} -- reset the filter and remove all active keywords
|
|
||||||
includedirs {
|
|
||||||
'crash_printer',
|
|
||||||
'helpers',
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- common source & header files
|
-- common source & header files
|
||||||
---------
|
---------
|
||||||
filter {} -- reset the filter and remove all active keywords
|
filter {} -- reset the filter and remove all active keywords
|
||||||
|
Loading…
Reference in New Issue
Block a user