Fix scons build
Tested on Mac only, but probably also works on Windows/Linux
This commit is contained in:
51
src/game/SConscript
Normal file
51
src/game/SConscript
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
Import("env platform common_sources party_classes install_dir")
|
||||
|
||||
game_sources = Split("""
|
||||
boe.actions.cpp
|
||||
boe.combat.cpp
|
||||
boe.dlgutil.cpp
|
||||
boe.fileio.cpp
|
||||
boe.graphics.cpp
|
||||
boe.graphutil.cpp
|
||||
boe.infodlg.cpp
|
||||
boe.items.cpp
|
||||
boe.locutils.cpp
|
||||
boe.main.cpp
|
||||
boe.monster.cpp
|
||||
boe.newgraph.cpp
|
||||
boe.party.cpp
|
||||
boe.specials.cpp
|
||||
boe.startup.cpp
|
||||
boe.text.cpp
|
||||
boe.town.cpp
|
||||
boe.townspec.cpp
|
||||
../pcedit/pc.editors.cpp
|
||||
../fileio/fileio_party.cpp
|
||||
../view_dialogs.cpp
|
||||
""")
|
||||
|
||||
if str(platform) == "darwin":
|
||||
game_sources.extend(Split("""
|
||||
boe.appleevents.mm
|
||||
boe.menus.mac.mm
|
||||
"""))
|
||||
elif str(platform) == "win32":
|
||||
game_sources.extend(Split("""
|
||||
boe.menus.win.cpp
|
||||
"""))
|
||||
game_sources.append(env.RES('#rsrc/menus/BladesOfExile.rc'))
|
||||
|
||||
boe = env.Program("#build/bin/Blades of Exile", common_sources + party_classes + game_sources)
|
||||
|
||||
if str(platform) == "darwin":
|
||||
boe_info = {
|
||||
'nib': '#rsrc/menus/game',
|
||||
'plist': '../BoE-Info.plist',
|
||||
'creator': 'blx!',
|
||||
'icons': 'BoE boegraphics boeresources boesave boesounds',
|
||||
}
|
||||
elif str(platform) == "win32":
|
||||
boe_info = {}
|
||||
|
||||
env.Package(boe, install_dir, boe_info)
|
Reference in New Issue
Block a user