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
Wed, May 14, 11:07 AM (23 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5041145
Default Alt Text
SConscript (621 B)

Event Timeline