Created
May 29, 2012 06:02
-
-
Save xymostech/2822868 to your computer and use it in GitHub Desktop.
Example SConscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SConscript('src/SConscript', variant_dir = 'build/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment