| 123456789101112131415161718192021222324252627282930313233 |
- from SCons.Builder import Builder
- from SCons.Action import Action
- def generate(env):
- env.SetDefault(
- GDB="gdb",
- GDBPY="gdb-py",
- GDBOPTS="",
- GDBPYOPTS="",
- GDBCOM="$GDB $GDBOPTS $SOURCES", # no $TARGET
- GDBPYCOM="$GDBPY $GDBOPTS $GDBPYOPTS $SOURCES", # no $TARGET
- )
- env.Append(
- BUILDERS={
- "GDB": Builder(
- action=Action(
- "${GDBCOM}",
- "${GDBCOMSTR}",
- ),
- ),
- "GDBPy": Builder(
- action=Action(
- "${GDBPYCOM}",
- "${GDBPYCOMSTR}",
- ),
- ),
- }
- )
- def exists(env):
- return True
|