mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-29 00:09:19 +03:00
98d5718ec9
* fbt: changed cdefines & lib handling for external apps; added extra checks for app manifest fields; moved around AppsC generator * fbt: commandline fixes for spaces in paths * fbt: fixed stringification for FAP_VERSION * fbt: Removed excessive quoting for gdb * docs: update for cdefines; fbt: typo fix * fbt: enforcing at least 2 components in app version= Co-authored-by: あく <alleteam@gmail.com>
37 lines
898 B
Python
37 lines
898 B
Python
from SCons.Builder import Builder
|
|
from SCons.Defaults import Touch
|
|
from SCons.Action import Action
|
|
|
|
|
|
def generate(env):
|
|
env.SetDefault(
|
|
JFLASH="JFlash" if env.subst("$PLATFORM") == "win32" else "JFlashExe",
|
|
JFLASHFLAGS=[
|
|
"-auto",
|
|
"-exit",
|
|
],
|
|
)
|
|
env.Append(
|
|
BUILDERS={
|
|
"JFlash": Builder(
|
|
action=[
|
|
Action(
|
|
[
|
|
[
|
|
"${JFLASH}",
|
|
"-openprj${JFLASHPROJECT}",
|
|
"-open${SOURCE},${JFLASHADDR}",
|
|
"${JFLASHFLAGS}",
|
|
]
|
|
]
|
|
),
|
|
Touch("${TARGET}"),
|
|
],
|
|
),
|
|
}
|
|
)
|
|
|
|
|
|
def exists(env):
|
|
return True
|