mirror of
https://github.com/kurikomoe/L4D2Fix.git
synced 2026-10-10 12:53:08 +08:00
c3c2250941
allow user to set the target exe in ini file
However, the patch modifies the bin/shaderapidx9[vk].dll, make sure
the game is source based and the file is in right place.
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
TEMPLATE_VER := "v1.0.0"
|
|
TARGET := "D:\\Games\\GamePlatforms\\SteamLibrary\\steamapps\\common\\Left 4 Dead 2"
|
|
|
|
# use `just preset=x64-release config build` to override this
|
|
preset := "x86-release-msvc"
|
|
target := "main"
|
|
|
|
[linux]
|
|
init:
|
|
bash ./scripts/init_linux.sh
|
|
|
|
clean:
|
|
rm -rf build
|
|
|
|
build:
|
|
xmake f -m release
|
|
xmake
|
|
|
|
copy: build
|
|
cp build/windows/x86/release/kpatch.dll "{{TARGET}}"
|
|
cp build/windows/x86/release/left4dead2_fix.exe "{{TARGET}}"
|
|
cp kpatch.ini "{{TARGET}}"
|
|
|
|
copyrel:
|
|
xmake f -m release
|
|
xmake
|
|
cp build/windows/x86/release/kpatch.dll "{{TARGET}}"
|
|
cp build/windows/x86/release/left4dead2_fix.exe "{{TARGET}}"
|
|
|
|
release:
|
|
rm release -rf
|
|
mkdir -p release
|
|
|
|
# release
|
|
xmake f -m release
|
|
xmake
|
|
cp build/windows/x86/release/kpatch.dll release/
|
|
cp build/windows/x86/release/left4dead2_fix.exe release/
|
|
cp assets/请读我.txt release/
|
|
cp "assets/left4dead2_fix - Shortcut.lnk" release/
|
|
cp third/4gb_patch.exe release/
|
|
cp kpatch.ini release/
|
|
|
|
@run:
|
|
./build/{{preset}}/bin/{{target}}
|