From b8a3bb19605f57248accfc62a9d6bb1cac1fe98f Mon Sep 17 00:00:00 2001 From: kevindehecker Date: Thu, 30 Nov 2017 20:46:14 +0100 Subject: [PATCH] Add upload capability to qtc, fix indent issue --- sw/tools/qt_project.py | 2 ++ sw/tools/qtc.creator.user_template | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/sw/tools/qt_project.py b/sw/tools/qt_project.py index f65020a68a..ee086d2784 100755 --- a/sw/tools/qt_project.py +++ b/sw/tools/qt_project.py @@ -125,6 +125,8 @@ with open(path.join(home_dir , "sw/tools/qtc.creator.user_template")) as input: output.write(s.replace("!TARGET1!", aircraft + " " + target + ".compile")) elif "!TARGET2!" in s: output.write(s.replace("!TARGET2!", aircraft)) + elif "!TARGET3!" in s: + output.write(s.replace("!TARGET3!", aircraft + " " + target + ".upload")) elif "!PPRZHOME!" in s: output.write(s.replace("!PPRZHOME!", getenv("PAPARAZZI_HOME"))) else: diff --git a/sw/tools/qtc.creator.user_template b/sw/tools/qtc.creator.user_template index f241f25e90..eb3174f07a 100644 --- a/sw/tools/qtc.creator.user_template +++ b/sw/tools/qtc.creator.user_template @@ -19,7 +19,7 @@ Cpp - CppGlobal + gnu @@ -31,7 +31,7 @@ 2 UTF-8 false - 1 + 2 false 80 true @@ -42,7 +42,7 @@ 0 true true - 1 + 0 2 false 1 @@ -167,10 +167,10 @@ 2 - - + -C $PAPARAZZI_SRC -f Makefile.ac AIRCRAFT=!TARGET3! + make %{buildDir} - Custom Executable + Run make ProjectExplorer.CustomExecutableRunConfiguration 3768