mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-12-12 04:46:32 +00:00
basic tar bundle for scons
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1159 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
2c74f66070
commit
11053cb1f7
19
SConstruct
19
SConstruct
@ -90,6 +90,7 @@ lib_paths = include_paths
|
||||
vars = Variables('args.cache')
|
||||
vars.AddVariables(
|
||||
BoolVariable('verbose', 'Set for compilation line', False),
|
||||
BoolVariable('bundle', 'Set to create bundle', False),
|
||||
BoolVariable('debug', 'Set for debug build', False),
|
||||
BoolVariable('lint', 'Set for lint build (extra warnings)', False),
|
||||
BoolVariable('nowx', 'Set For Building with no WX libs (WIP)', False),
|
||||
@ -229,8 +230,9 @@ env['data_dir'] = env['prefix']
|
||||
|
||||
Export('env')
|
||||
|
||||
utils.GenerateRevFile(env['flavor'], "Source/Core/Common/Src/svnrev_template.h",
|
||||
"Source/Core/Common/Src/svnrev.h")
|
||||
rev = utils.GenerateRevFile(env['flavor'],
|
||||
"Source/Core/Common/Src/svnrev_template.h",
|
||||
"Source/Core/Common/Src/svnrev.h")
|
||||
# print a nice progress indication when not compiling
|
||||
Progress(['-\r', '\\\r', '|\r', '/\r'], interval = 5)
|
||||
|
||||
@ -256,3 +258,16 @@ env.Install(env['data_dir'], 'Data/User')
|
||||
if sys.platform == 'darwin':
|
||||
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/Resources/',
|
||||
Source/Core/DolphinWX/resources/Dolphin.icns)
|
||||
|
||||
if env['bundle']:
|
||||
# Make tar ball (TODO put inside normal dir)
|
||||
tar_env = env.Clone()
|
||||
tarball = tar_env.Tar('dolphin-'+rev +'.tar.bz2', env['prefix'])
|
||||
tar_env.Append(TARFLAGS='-j',
|
||||
TARCOMSTR="Creating release tarball")
|
||||
|
||||
|
||||
#TODO clean all bundles
|
||||
#env.Clean(all, 'dolphin-*'+ '.tar.bz2')
|
||||
|
||||
|
||||
|
@ -50,4 +50,4 @@ def GenerateRevFile(flavour, template, output):
|
||||
outfile.write(tmpstr +"\n")
|
||||
outfile.close()
|
||||
|
||||
return
|
||||
return revstr
|
||||
|
Loading…
Reference in New Issue
Block a user