Aquileo | Recent changes to cpp-build-tunerhttps://sourceforge.net/p/gradle-cpp/wiki/cpp-build-tuner/2026-01-29T18:24:08.918000ZRecent changes to cpp-build-tunerAquileo | cpp-build-tuner modified by Alexander Kornilov2026-01-29T18:24:08.918000Z2026-01-29T18:24:08.918000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.net6f708e659246fd53d81a3423eb0452540182fc66<div class="markdown_content"><pre>--- v15
+++ v16
@@ -14,7 +14,7 @@
plugins {
id 'cpp-library'
id 'cpp-unit-test'
- id 'loggersoft.cpp-build-tuner' version '2.3'
+ id 'loggersoft.cpp-build-tuner' version '2.5'
}
~~~
</pre>
</div>Aquileo | cpp-build-tuner modified by Alexander Kornilov2025-02-19T10:11:15.926000Z2025-02-19T10:11:15.926000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.netcc228038526c927d67467dca3a5c020b956c6404<div class="markdown_content"><pre>--- v14
+++ v15
@@ -14,7 +14,7 @@
plugins {
id 'cpp-library'
id 'cpp-unit-test'
- id 'loggersoft.cpp-build-tuner' version '2.0'
+ id 'loggersoft.cpp-build-tuner' version '2.3'
}
~~~
</pre>
</div>Aquileo | cpp-build-tuner modified by Alexander Kornilov2025-02-10T18:33:12.439000Z2025-02-10T18:33:12.439000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.neta69a7e4864b4268cec1bbe4f9b13d65ec4c75cdf<div class="markdown_content"><pre>--- v13
+++ v14
@@ -1,4 +1,4 @@
-**Purpose
+Purpose
---
The plugin provides basic build tuning according to the current profile (Debug/Release) and used toolchain. Also, some customization is available via the plugin configuration section.
</pre>
</div>Aquileo | cpp-build-tuner modified by Alexander Kornilov2025-02-10T18:32:07.553000Z2025-02-10T18:32:07.553000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.neta386bc617cbd641272eef66d7b49abfc57367013<div class="markdown_content"><pre>--- v12
+++ v13
@@ -65,7 +65,7 @@
* **defines** (container) - the list of defines (macros).
* **preferCLang** (boolean) - prefers the CLang version of artifacts from the dependencies list if possible ('-2' suffix of version).
* **standard** (integer) - is a revision number of the standard for the C++ programming language (e.g. 17).
-* **generateCompileCommands** (boolean) - generate compile commands into *compilecommands.json* according to [clang specification](https://clang.llvm.org/docs/JSONCompilationDatabase.html)
+* **generateCompileCommands** (boolean) - generate compile commands into *compile_commands.json* according to [clang specification](https://clang.llvm.org/docs/JSONCompilationDatabase.html)
Run application
---
</pre>
</div>Aquileo | cpp-build-tuner modified by Alexander Kornilov2025-02-10T18:31:33.231000Z2025-02-10T18:31:33.231000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.net531b6cc5d3594ae2829cc8f08216d3b2b50ef657<div class="markdown_content"><pre>--- v11
+++ v12
@@ -1,4 +1,4 @@
-Purpose
+**Purpose
---
The plugin provides basic build tuning according to the current profile (Debug/Release) and used toolchain. Also, some customization is available via the plugin configuration section.
@@ -65,7 +65,7 @@
* **defines** (container) - the list of defines (macros).
* **preferCLang** (boolean) - prefers the CLang version of artifacts from the dependencies list if possible ('-2' suffix of version).
* **standard** (integer) - is a revision number of the standard for the C++ programming language (e.g. 17).
-* **generateCompileCommands** (boolean) - generate compile commands into compile_commands.json according to [clang specification](https://clang.llvm.org/docs/JSONCompilationDatabase.html)
+* **generateCompileCommands** (boolean) - generate compile commands into *compilecommands.json* according to [clang specification](https://clang.llvm.org/docs/JSONCompilationDatabase.html)
Run application
---
</pre>
</div>Aquileo | cpp-build-tuner modified by Alexander Kornilov2025-02-10T18:08:52.104000Z2025-02-10T18:08:52.104000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.netb2fc91a816e6d22ea72892066a1d389b7b6539af<div class="markdown_content"><pre>--- v10
+++ v11
@@ -14,7 +14,7 @@
plugins {
id 'cpp-library'
id 'cpp-unit-test'
- id 'loggersoft.cpp-build-tuner' version '1.9'
+ id 'loggersoft.cpp-build-tuner' version '2.0'
}
~~~
@@ -53,6 +53,7 @@
dependencies.common = ['loggersoft.jvm:class-reader:0.1']
preferCLang = true
standard = 17
+ generateCompileCommands = true
}
~~~
@@ -64,6 +65,7 @@
* **defines** (container) - the list of defines (macros).
* **preferCLang** (boolean) - prefers the CLang version of artifacts from the dependencies list if possible ('-2' suffix of version).
* **standard** (integer) - is a revision number of the standard for the C++ programming language (e.g. 17).
+* **generateCompileCommands** (boolean) - generate compile commands into compile_commands.json according to [clang specification](https://clang.llvm.org/docs/JSONCompilationDatabase.html)
Run application
---
</pre>
</div>Aquileo | cpp-build-tuner modified by Alexander Kornilov2020-09-16T17:37:51.174000Z2020-09-16T17:37:51.174000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.net49ecdac90b2bcd03b654a1a387d8cbb8b0ca418e<div class="markdown_content"><pre>--- v9
+++ v10
@@ -14,7 +14,7 @@
plugins {
id 'cpp-library'
id 'cpp-unit-test'
- id 'loggersoft.cpp-build-tuner' version '1.7'
+ id 'loggersoft.cpp-build-tuner' version '1.9'
}
~~~
@@ -52,6 +52,7 @@
dependencies.common = ['loggersoft.jvm:class-reader:0.1']
preferCLang = true
+ standard = 17
}
~~~
@@ -62,6 +63,7 @@
* **dependencies** (container) - the list of dependencies.
* **defines** (container) - the list of defines (macros).
* **preferCLang** (boolean) - prefers the CLang version of artifacts from the dependencies list if possible ('-2' suffix of version).
+* **standard** (integer) - is a revision number of the standard for the C++ programming language (e.g. 17).
Run application
---
</pre>
</div>Aquileo | cpp-build-tuner modified by Alexander Kornilov2020-01-29T11:50:23.463000Z2020-01-29T11:50:23.463000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.net2e0962722ac7feb87086a4a1b4abeed98b52d862<div class="markdown_content"><pre>--- v8
+++ v9
@@ -14,7 +14,7 @@
plugins {
id 'cpp-library'
id 'cpp-unit-test'
- id 'loggersoft.cpp-build-tuner' version '1.5'
+ id 'loggersoft.cpp-build-tuner' version '1.7'
}
~~~
@@ -76,7 +76,7 @@
Supported system properties (via command-line interface)
---
-* **toolchain** - override default toolchain. Possible values are: 'gcc', 'mingw', 'clang', 'visualcpp'.
+* **toolchain** - override default toolchain. Possible values are: `gcc`, `mingw`, `clang`, `visualcpp` (`msvc`).
* **version** - override project version.
How to use Gradle command-line interface to change Java system properties:
</pre>
</div>Aquileo | cpp-build-tuner modified by Alexander Kornilov2020-01-29T10:18:37.272000Z2020-01-29T10:18:37.272000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.net5501feb170ed8e04b663a3e4542102df88fdb0da<div class="markdown_content"><pre>--- v7
+++ v8
@@ -14,13 +14,13 @@
plugins {
id 'cpp-library'
id 'cpp-unit-test'
- id 'loggersoft.cpp-build-tuner' version '1.3'
+ id 'loggersoft.cpp-build-tuner' version '1.5'
}
~~~
Supported toolchains
---
-MSVC and GCC compatible toolchains.
+MSVC and GCC compatible toolchains (CLang).
Profit
---
@@ -72,3 +72,45 @@
~~~
gradle run --args="arg1 arg2 ..."
~~~
+
+Supported system properties (via command-line interface)
+---
+
+* **toolchain** - override default toolchain. Possible values are: 'gcc', 'mingw', 'clang', 'visualcpp'.
+* **version** - override project version.
+
+How to use Gradle command-line interface to change Java system properties:
+~~~
+gradle -D<property name="">=<value>
+~~~
+
+Examples:
+~~~
+gradle build -Dtoolchain=mingw
+gradle publish -Dversion=0.5
+gradle publish -Dversion=0.5-?
+~~~
+
+Variate version
+---
+
+Variate version can be used to publish artifacts are built by different toolchains.
+Version format is: <version>-<variant>
+
+Variants:
+
+* 1 - MinGW
+* 2 - CLang
+* ? - Auto choose according current toolchain.
+
+Example:
+
+`version = 0.1-?`
+
+The final version will be:
+
+* GCC/MSVC: **0.1**
+* MinGW: **0.1-1**
+* CLang: **0.1-2**
+
+So all binaries can be stored in single Artifactory at the same time.
</variant></version></value></property></pre>
</div>Aquileo | cpp-build-tuner modified by Alexander Kornilov2019-12-04T17:43:03.309000Z2019-12-04T17:43:03.309000ZAlexander Kornilovhttps://sourceforge.net/u/akornilov/https://sourceforge.net2509e352b7efb27e79f3c1425c0b9b039e5fd378<div class="markdown_content"><pre>--- v6
+++ v7
@@ -14,7 +14,7 @@
plugins {
id 'cpp-library'
id 'cpp-unit-test'
- id 'loggersoft.cpp-build-tuner' version '1.1'
+ id 'loggersoft.cpp-build-tuner' version '1.3'
}
~~~
@@ -43,6 +43,15 @@
}
libDirs.common = ['../build/debug', '../release']
+
+ defines {
+ common = ['DEF_COMMON_1', ' DEF_COMMON_2 = 7 ']
+ windows = [' DEF_WINDOWS_1', ' DEF_WINDOWS_2=9']
+ linux = ['DEF_LINUX_1 ', ' DEF_LINUX_2 =3 ']
+ }
+
+ dependencies.common = ['loggersoft.jvm:class-reader:0.1']
+ preferCLang = true
}
~~~
@@ -50,6 +59,9 @@
* **gtest** (string) - the version of Google Test for test binary. At the moment only version 1.8.1 for GCC, MinGW-W64, and MSVC is supported.
* **libraries** (container) - the list of libraries for the linker. The field has three parameters (list of strings) inside: common - libraries which will be used on any platform, windows - only on Windows and linux - only on Linux.
* **libDirs** (container) - the list of directories on the local file system to search the linker libraries. Inside has the same platform-specific structure as the libraries container (see above).
+* **dependencies** (container) - the list of dependencies.
+* **defines** (container) - the list of defines (macros).
+* **preferCLang** (boolean) - prefers the CLang version of artifacts from the dependencies list if possible ('-2' suffix of version).
Run application
---
</pre>
</div>