Skip to content

Instantly share code, notes, and snippets.

@xymostech
Created May 29, 2012 06:02
Show Gist options
  • Save xymostech/2822868 to your computer and use it in GitHub Desktop.
Save xymostech/2822868 to your computer and use it in GitHub Desktop.
Example SConscript
# returns the directory
def build_app(env, target, source):
env.Command(target[0], source[0],
[
Mkdir("$TARGET"),
...
])
return [target[0]]
build_app_bld = Builder(action = build_app,
suffix = '.app')
game.Append(BUILDERS = {'App': build_app})
source = Split("...")
game_obj = game.Object(source)
prod = game.Program(target = 'game', source = game_obj)
app = game.App(target = 'game.app/', source = prod)
# Doesn't work (has error shown in question)
game.Zip('game.zip', 'game.app/')
# Also doesn't work (does the same thing as above)
game.Zip('game.zip', app)
# Other things that haven't worked
game.Zip('#game.zip', '#game.app/')
game.Zip('#game.zip', app)
SConscript('src/SConscript', variant_dir = 'build/')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment