Example #1
0
def generate( env ):
    merge_library = Builder(
        action='${TEMPFILE("$AR $ARFLAGS /OUT:$TARGET $_LIBDEPS")}',
        src_prefix='$LIBPREFIX',
        src_suffix='$LIBSUFFIX',
        prefix='$LIBPREFIX',
        suffix='$LIBSUFFIX',
        emitter=libdeps.libdeps_emitter )
    libdeps.update_scanner( merge_library )
    env['BUILDERS']['_MergeLibrary'] = merge_library
    env.AddMethod( merge_library_method, 'MergeLibrary' )
Example #2
0
def generate( env ):
    env['_RELOBJDEPSFLAGS'] = '$RELOBJ_LIBDEPS_START ${_concat("$RELOBJ_LIBDEPS_ITEM ", __env__.subst(_LIBDEPS, target=TARGET, source=SOURCE), "", __env__, target=TARGET, source=SOURCE)} $RELOBJ_LIBDEPS_END'
    env['RELOBJCOM'] = 'ld -o $TARGET -r $SOURCES $_RELOBJDEPSFLAGS'
    relobj_builder = Builder( action='$RELOBJCOM',
                              prefix="$OBJPREFIX",
                              suffix="$OBJSUFFIX",
                              emitter=libdeps.libdeps_emitter )
    libdeps.update_scanner( relobj_builder )
    env['BUILDERS']['RelocatableObject'] = relobj_builder
    env.AddMethod( merge_library_method, 'MergeLibrary' )
    env.AddMethod( merge_shared_library_method, 'MergeSharedLibrary' )
Example #3
0
def generate( env ):
    merge_library = Builder(
        action='$ARCOM $_LIBDEPS_OBJS',
        src_prefix='$LIBPREFIX',
        src_suffix='$LIBSUFFIX',
        prefix='$LIBPREFIX',
        suffix='$LIBSUFFIX',
        emitter=libdeps.libdeps_emitter )
    libdeps.update_scanner( merge_library )
    env['BUILDERS']['_MergeLibrary'] = merge_library
    env.AddMethod( merge_library_method, 'MergeLibrary' )