This commit is contained in:
Eryn Wells 2014-03-07 20:20:56 -08:00
parent c9ff381f39
commit 921890e0b2
8 changed files with 95 additions and 10 deletions

24
lib/SConscript Normal file
View file

@ -0,0 +1,24 @@
# SConscript
#
# SCons build script for libs in base. Aggregates static and shared libraries in
# these directories and exports them in the 'LIBS' variable.
#
# Eryn Wells <eryn@erynwells.me>
Import('env')
dirs = (
'gtest',
)
env['LIBS'] = {}
for d in dirs:
static, dynamic = env.SConscript(Dir(d).File('SConscript'), {
'env': env,
})
env['LIBS'][d] = {}
if static:
env['LIBS'][d]['static'] = static
if dynamic:
env['LIBS'][d]['dynamic'] = dynamic