mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-22 10:43:11 +00:00
34 lines
739 B
Python
34 lines
739 B
Python
|
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
|