aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs')
-rw-r--r--tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs b/tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs
new file mode 100644
index 000000000..2596b441d
--- /dev/null
+++ b/tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs
@@ -0,0 +1,30 @@
+import "../BareMetalApplication.qbs" as BareMetalApplication
+
+BareMetalApplication {
+ condition: {
+ if (qbs.toolchainType === "sdcc")
+ return true;
+ if (qbs.toolchainType === "msvc")
+ return true;
+ if (qbs.toolchainType === "clang-cl")
+ return true;
+ if (qbs.toolchainType === "iar")
+ return true;
+ if (qbs.toolchainType === "keil") {
+ if (qbs.architecture === "mcs51"
+ || qbs.architecture === "mcs251"
+ || qbs.architecture === "c166") {
+ return true;
+ }
+ if (cpp.compilerName.startsWith("armcc")) {
+ console.info("using short listing file names");
+ return true;
+ }
+ }
+ console.info("unsupported toolset: %%"
+ + qbs.toolchainType + "%%, %%" + qbs.architecture + "%%");
+ return false;
+ }
+ cpp.generateCompilerListingFiles: true
+ files: ["main.c", "fun.c"]
+}