Set up scons build system

- In its current state, it produces a valid, launchable Mac application package, though one that's not redistributable (relies on system-installed libraries)
- Partial support is already in-place for a Windows build
This commit is contained in:
2015-09-11 19:15:56 -04:00
parent a0e2cb6e8d
commit 832b8b5f91
15 changed files with 362 additions and 8 deletions

20
rsrc/SConscript Normal file
View File

@@ -0,0 +1,20 @@
import os.path as path
Import("env data_dir install_dir")
# Data
env.Install(data_dir, Dir("cursors"))
env.Install(data_dir, Dir("dialogs"))
env.Install(data_dir, Dir("fonts"))
env.Install(data_dir, Dir("graphics"))
env.Install(data_dir, Dir("sounds"))
env.Install(data_dir, Dir("strings"))
env.Install(path.join(data_dir, "shaders"), Glob("#src/tools/mask.*"))
# Scenarios
env.Install(path.join(install_dir, "Blades of Exile Scenarios"), Glob("Blades of Exile Scenarios/*.exs") + Glob("Blades of Exile Scenarios/*.meg"))
env.Install(path.join(install_dir, "Blades of Exile Base"), Glob("Blades of Exile Bases/*.exs"))