diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2020-06-26 14:45:00 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2020-06-29 20:09:19 +0000 |
commit | be11a0fbaeac47e4b330ae4adc26a0b8b777f8ce (patch) | |
tree | 613f3203846cfa5738cdc2eaef9f06637bc093f7 /tests/auto/blackbox/testdata-baremetal/preinclude-headers | |
parent | dea1145d214a0bc4f082f0588b7272334b6a182a (diff) |
baremetal: Implement cpp.prefixHeaders for IAR and KEIL toolchains
Right now it is possible to use the cpp.prefixHeaders property
for the KEIL ARM MDK and the IAR EW toolchains.
Take into account that the IAR EW toolchain support only one
preinclude file.
Change-Id: I9e367825575409fa446f3b012a0e1e8d156643ef
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'tests/auto/blackbox/testdata-baremetal/preinclude-headers')
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-baremetal/preinclude-headers/main.c b/tests/auto/blackbox/testdata-baremetal/preinclude-headers/main.c new file mode 100644 index 000000000..755192287 --- /dev/null +++ b/tests/auto/blackbox/testdata-baremetal/preinclude-headers/main.c @@ -0,0 +1,4 @@ +int main(void) +{ + return PREINCLUDE_VALUE; +} diff --git a/tests/auto/blackbox/testdata-baremetal/preinclude-headers/preinclude-headers.qbs b/tests/auto/blackbox/testdata-baremetal/preinclude-headers/preinclude-headers.qbs new file mode 100644 index 000000000..8ea1c3652 --- /dev/null +++ b/tests/auto/blackbox/testdata-baremetal/preinclude-headers/preinclude-headers.qbs @@ -0,0 +1,6 @@ +import "../BareMetalApplication.qbs" as BareMetalApplication + +BareMetalApplication { + cpp.prefixHeaders: ["preinclude.h"] + files: ["main.c"] +} diff --git a/tests/auto/blackbox/testdata-baremetal/preinclude-headers/preinclude.h b/tests/auto/blackbox/testdata-baremetal/preinclude-headers/preinclude.h new file mode 100644 index 000000000..6b68e4826 --- /dev/null +++ b/tests/auto/blackbox/testdata-baremetal/preinclude-headers/preinclude.h @@ -0,0 +1,6 @@ +#ifndef PREINCLUDE_H +#define PREINCLUDE_H + +#define PREINCLUDE_VALUE 0 + +#endif // PREINCLUDE_H |