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