Add tar.gz binary package target to scons.
Invoke with scons --install_sandbox=XXX package
This commit is contained in:
+12
-5
@@ -89,7 +89,7 @@ def InstallPerm(env, dest, files, perm):
|
||||
return obj
|
||||
|
||||
|
||||
env = Environment(tools = ['default', 'textfile'])
|
||||
env = Environment(tools = ['default', 'textfile', 'packaging'])
|
||||
|
||||
#allow shell environment to override compiler
|
||||
if os.environ.has_key('CC'):
|
||||
@@ -152,9 +152,16 @@ subdirs = [
|
||||
for subdir in subdirs:
|
||||
env.SConscript(subdir + '/SConscript', variant_dir='#build/' + subdir, src_dir='#'+subdir, duplicate=0)
|
||||
|
||||
distfile='libucore-' + version_info['version_str'] + '.tar.gz'
|
||||
distcmd = env.Tar(distfile,'install', TARFLAGS='-cz')
|
||||
env.Alias('dist', distcmd)
|
||||
env.Depends('dist', 'install')
|
||||
env.Package(NAME = 'libucore',
|
||||
VERSION = version_info['version_str'] + '.0',
|
||||
PACKAGEVERSION = 0,
|
||||
PACKAGETYPE = 'targz',
|
||||
LICENSE = 'BSD',
|
||||
SUMMARY = 'libucore is a C library of misc useful stuff including an eventloop, timer support and various data-structures.',
|
||||
DESCRIPTION = 'libucore is a C library of misc useful stuff including an eventloop, timer support and various data-structures.',
|
||||
X_RPM_GROUP = 'Development/Libraries'
|
||||
|
||||
|
||||
)
|
||||
|
||||
env.Default('src')
|
||||
|
||||
Reference in New Issue
Block a user