mirror of
https://github.com/flipperdevices/flipperzero-firmware.git
synced 2025-12-12 12:51:22 +04:00
25 lines
455 B
Python
25 lines
455 B
Python
|
|
from SCons.Builder import Builder
|
||
|
|
from SCons.Action import Action
|
||
|
|
|
||
|
|
|
||
|
|
def generate(env):
|
||
|
|
env.SetDefault(
|
||
|
|
SIZE="size",
|
||
|
|
SIZEFLAGS=[],
|
||
|
|
SIZECOM="$SIZE $SIZEFLAGS $TARGETS",
|
||
|
|
)
|
||
|
|
env.Append(
|
||
|
|
BUILDERS={
|
||
|
|
"ELFSize": Builder(
|
||
|
|
action=Action(
|
||
|
|
"${SIZECOM}",
|
||
|
|
"${SIZECOMSTR}",
|
||
|
|
),
|
||
|
|
),
|
||
|
|
}
|
||
|
|
)
|
||
|
|
|
||
|
|
|
||
|
|
def exists(env):
|
||
|
|
return True
|