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:
35
src/tools/SConscript
Normal file
35
src/tools/SConscript
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
Import("env platform")
|
||||
|
||||
tools = Split("""
|
||||
fileio_scen.cpp
|
||||
fileio.cpp
|
||||
graphtool.cpp
|
||||
map_parse.cpp
|
||||
mathutil.cpp
|
||||
porting.cpp
|
||||
soundtool.cpp
|
||||
specials_parse.cpp
|
||||
tarball.cpp
|
||||
undo.cpp
|
||||
gzstream/gzstream.cpp
|
||||
""")
|
||||
|
||||
if str(platform) == "darwin":
|
||||
tools.extend(Split("""
|
||||
cursors.mac.mm
|
||||
prefs.mac.mm
|
||||
qdpict.cpp
|
||||
winutil.mac.mm
|
||||
"""))
|
||||
elif str(platform) == "windows":
|
||||
tools.extend(Split("""
|
||||
cursors.win.cpp
|
||||
menu_accel.win.cpp
|
||||
prefs.win.cpp
|
||||
winutil.win.cpp
|
||||
"""))
|
||||
|
||||
tools_obj = env.StaticLibrary("#build/lib/tools", tools)
|
||||
|
||||
Return("tools_obj")
|
Reference in New Issue
Block a user