mirror of
https://github.com/kurikomoe/L4D2Fix.git
synced 2026-10-10 04:43:07 +08:00
81d7faa0da
switch to exe loader method to make sure the dll is properly injected
37 lines
1011 B
Lua
37 lines
1011 B
Lua
-- add_requires("microsoft-proxy 2.4.0")
|
|
add_rules("mode.debug", "mode.release")
|
|
add_rules("plugin.compile_commands.autoupdate")
|
|
|
|
set_languages("cxx20", "c++20")
|
|
|
|
set_plat("windows")
|
|
set_arch("x86") -- Use "x64" for 64-bit builds
|
|
|
|
add_requires("spdlog")
|
|
add_requires("vcpkg::detours")
|
|
|
|
-- local name = "version"
|
|
-- target(name)
|
|
-- set_kind("shared")
|
|
-- add_files("src/dllmain.cpp")
|
|
-- add_packages("spdlog")
|
|
-- add_links("user32", "gdi32")
|
|
-- add_linkdirs("$(projectdir)/lib")
|
|
-- -- add_files(string.format("lib/%s.def", name), string.format("lib/%s.asm", name))
|
|
-- add_files(string.format("lib/%s.def", name))
|
|
|
|
local name = "kpatch"
|
|
target(name)
|
|
set_kind("shared")
|
|
add_files("src/dllmain.cpp")
|
|
add_packages("spdlog", "vcpkg::detours")
|
|
add_links("user32", "gdi32")
|
|
|
|
local name = "left4dead2_fix"
|
|
target(name)
|
|
set_kind("binary")
|
|
add_files("launcher/main.cpp")
|
|
add_files("assets/app.rc")
|
|
add_links("user32", "gdi32")
|
|
add_packages("vcpkg::detours")
|