Page MenuHomeHEPForge

SConscript
No OneTemporary

SConscript

import glob, os
Import( 'env' )
this_name = os.path.split( os.getcwd() )[1]
filenames = glob.glob( os.path.join( env.GetLaunchDir(), this_name, '*', 'src', '*.cc' ) )
if filenames != []:
filenames = [ apply( os.path.join, tuple( x.split( os.path.sep )[-3:] ) ) for x in filenames ]
object_list = env.SharedObject( filenames )
if env['precompile']:
env.Depends( object_list, env.pcheader )
env.object_collector += object_list
lib = env.SharedLibrary( this_name, object_list )
env.Default( lib )
else:
print 'Warning: No source files found in subdirectory',this_name
Export( 'env' )

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 4:27 PM (21 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3978028
Default Alt Text
SConscript (621 B)

Event Timeline