From 53afdc5e02661eeed4ecda0a4a4c630327239c48 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 5 Feb 2018 21:44:37 +0200 Subject: [PATCH] Fix project generator for Qt Creator IDE // Resolve #1303 Resolve #1323 --- HISTORY.rst | 3 +++ platformio/ide/tpls/qtcreator/platformio.pro.tpl | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 86130c76..1bab1b2e 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -14,6 +14,9 @@ PlatformIO 3.0 * Show all available upload protocols before firmware uploading in a build log * Handle "os.mbed.com" URL as a Mercurial (hg) repository * Improved support for old mbed libraries without manifest +* Fixed project generator for Qt Creator IDE + (`issue #1303 `_, + `issue #1323 `_) * Fixed issue with duplicated "include" records when generating data for IDE (`issue #1301 `_) diff --git a/platformio/ide/tpls/qtcreator/platformio.pro.tpl b/platformio/ide/tpls/qtcreator/platformio.pro.tpl index 1ef5f8eb..19abc468 100644 --- a/platformio/ide/tpls/qtcreator/platformio.pro.tpl +++ b/platformio/ide/tpls/qtcreator/platformio.pro.tpl @@ -14,7 +14,8 @@ INCLUDEPATH += "{{include}}" % end % for define in defines: -DEFINES += {{!define}} +% tokens = define.split("##", 1) +DEFINES += "{{tokens[0].strip()}}" % end OTHER_FILES += platformio.ini