mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06: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:
19
SConstruct
19
SConstruct
@ -90,6 +90,7 @@ lib_paths = include_paths
|
|||||||
vars = Variables('args.cache')
|
vars = Variables('args.cache')
|
||||||
vars.AddVariables(
|
vars.AddVariables(
|
||||||
BoolVariable('verbose', 'Set for compilation line', False),
|
BoolVariable('verbose', 'Set for compilation line', False),
|
||||||
|
BoolVariable('bundle', 'Set to create bundle', False),
|
||||||
BoolVariable('debug', 'Set for debug build', False),
|
BoolVariable('debug', 'Set for debug build', False),
|
||||||
BoolVariable('lint', 'Set for lint build (extra warnings)', False),
|
BoolVariable('lint', 'Set for lint build (extra warnings)', False),
|
||||||
BoolVariable('nowx', 'Set For Building with no WX libs (WIP)', False),
|
BoolVariable('nowx', 'Set For Building with no WX libs (WIP)', False),
|
||||||
@ -229,8 +230,9 @@ env['data_dir'] = env['prefix']
|
|||||||
|
|
||||||
Export('env')
|
Export('env')
|
||||||
|
|
||||||
utils.GenerateRevFile(env['flavor'], "Source/Core/Common/Src/svnrev_template.h",
|
rev = utils.GenerateRevFile(env['flavor'],
|
||||||
"Source/Core/Common/Src/svnrev.h")
|
"Source/Core/Common/Src/svnrev_template.h",
|
||||||
|
"Source/Core/Common/Src/svnrev.h")
|
||||||
# print a nice progress indication when not compiling
|
# print a nice progress indication when not compiling
|
||||||
Progress(['-\r', '\\\r', '|\r', '/\r'], interval = 5)
|
Progress(['-\r', '\\\r', '|\r', '/\r'], interval = 5)
|
||||||
|
|
||||||
@ -256,3 +258,16 @@ env.Install(env['data_dir'], 'Data/User')
|
|||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/Resources/',
|
env.Install(env['binary_dir'] + 'Dolphin.app/Contents/Resources/',
|
||||||
Source/Core/DolphinWX/resources/Dolphin.icns)
|
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.write(tmpstr +"\n")
|
||||||
outfile.close()
|
outfile.close()
|
||||||
|
|
||||||
return
|
return revstr
|
||||||
|
Reference in New Issue
Block a user