Files
Flipper-ARF/scripts/fbt_tools/strip.py
Andrea Santaniello d6c2757f21 First push, clean slate
2026-03-08 18:48:37 +01:00

26 lines
528 B
Python

from SCons.Action import Action
from SCons.Builder import Builder
def generate(env):
env.SetDefault(
STRIP="strip",
STRIPFLAGS=[],
)
env.Append(
BUILDERS={
"ELFStripper": Builder(
action=Action(
[["$STRIP", "$STRIPFLAGS", "$SOURCES", "-o", "$TARGET"]],
"${STRIPCOMSTR}",
),
suffix=".elf",
src_suffix=".elf",
),
}
)
def exists(env):
return True