mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-20 03:41:42 +03: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
|