* fix a link flag * another hack to find weirdly named libraries * Fix handling VCRedistInstall.exe * add src folders to win-scons include paths * use path.join * more weird library suffixes * fix old python syntax in an SConscript file * find vcpkg libraries and headers * add icon dir to windows include paths * remove non-recursive os.listdir line * remove bad lib paths * tools build with env["bits"] * hard-code vcvarsall.bat path, with a note * pass in other lib paths * fix syntax without trying to use f-strings * more bundled libs on windows * add bin folders for windows installation to find dlls * fix CheckLib stuff * test scons pass X86 correctly * make 64-bit builds the default for scons * add package flag for building installers
27 lines
624 B
Python
27 lines
624 B
Python
|
|
import os.path as path
|
|
|
|
Import("env platform")
|
|
|
|
if str(platform) != "win32":
|
|
print(f"Error: Building for {platform}, but trying to create a Windows installer package")
|
|
|
|
env.Depends("data.nsi", ["gen-data.py", "#build/Blades of Exile/data"])
|
|
|
|
env.Command("data.nsi", "../Blades of Exile",
|
|
action = 'python build/pkg/gen-data.py ${SOURCE.abspath} > $TARGET'
|
|
)
|
|
|
|
env.Depends("Install-OBoE.exe", [
|
|
"#build/Blades of Exile",
|
|
"data.nsi",
|
|
"fileassoc.nsh"
|
|
])
|
|
|
|
if 'msvc' in env["TOOLS"]:
|
|
makensis = "makensis /DMSVC"
|
|
else:
|
|
makensis = "makensis"
|
|
|
|
env.Command("Install-OBoE.exe", "main.nsi", action = makensis + " /V2 $SOURCE")
|