forked from platformio/platformio-core
Drop deprecated "program" target
This commit is contained in:
@ -79,7 +79,8 @@ DEFAULT_ENV_OPTIONS = dict(
|
|||||||
COMPILATIONDB_PATH=os.path.join("$PROJECT_DIR", "compile_commands.json"),
|
COMPILATIONDB_PATH=os.path.join("$PROJECT_DIR", "compile_commands.json"),
|
||||||
LIBPATH=["$BUILD_DIR"],
|
LIBPATH=["$BUILD_DIR"],
|
||||||
PROGNAME="program",
|
PROGNAME="program",
|
||||||
PROG_PATH=os.path.join("$BUILD_DIR", "$PROGNAME$PROGSUFFIX"),
|
PROGPATH=os.path.join("$BUILD_DIR", "$PROGNAME$PROGSUFFIX"),
|
||||||
|
PROG_PATH="$PROGPATH", # deprecated
|
||||||
PYTHONEXE=get_pythonexe_path(),
|
PYTHONEXE=get_pythonexe_path(),
|
||||||
IDE_EXTRA_DATA={},
|
IDE_EXTRA_DATA={},
|
||||||
)
|
)
|
||||||
@ -200,7 +201,7 @@ for item in env.GetExtraScripts("post"):
|
|||||||
if env.get("SIZETOOL") and not (
|
if env.get("SIZETOOL") and not (
|
||||||
set(["nobuild", "sizedata"]) & set(COMMAND_LINE_TARGETS)
|
set(["nobuild", "sizedata"]) & set(COMMAND_LINE_TARGETS)
|
||||||
):
|
):
|
||||||
env.Depends(["upload", "program"], "checkprogsize")
|
env.Depends("upload", "checkprogsize")
|
||||||
# Replace platform's "size" target with our
|
# Replace platform's "size" target with our
|
||||||
_new_targets = [t for t in DEFAULT_TARGETS if str(t) != "size"]
|
_new_targets = [t for t in DEFAULT_TARGETS if str(t) != "size"]
|
||||||
Default(None)
|
Default(None)
|
||||||
@ -212,7 +213,7 @@ if "compiledb" in COMMAND_LINE_TARGETS:
|
|||||||
|
|
||||||
# Print configured protocols
|
# Print configured protocols
|
||||||
env.AddPreAction(
|
env.AddPreAction(
|
||||||
["upload", "program"],
|
"upload",
|
||||||
env.VerboseAction(
|
env.VerboseAction(
|
||||||
lambda source, target, env: env.PrintUploadInfo(),
|
lambda source, target, env: env.PrintUploadInfo(),
|
||||||
"Configuring upload protocol...",
|
"Configuring upload protocol...",
|
||||||
|
Reference in New Issue
Block a user