2019-12-18 03:46 AM
Hi @Martin KJELDSEN
Is it possible to add a preprocessor definition to the TouchGFX Designer? In Visual Studio it is very easy, but when I try to run the application in the designer it fails. How can I add a Preprocessor definition to the Designer (like SIMULATOR).
Marco
Solved! Go to Solution.
2019-12-18 04:13 AM
Hi Marco,
Sure, The designer uses Makefiles and gcc. Concretely, the makefiles use the config located in config/gcc/app.mk:
# Optional additional compiler flags
user_cflags := -DMYFLAG=2
/Martin
2019-12-18 04:13 AM
Hi Marco,
Sure, The designer uses Makefiles and gcc. Concretely, the makefiles use the config located in config/gcc/app.mk:
# Optional additional compiler flags
user_cflags := -DMYFLAG=2
/Martin
2019-12-18 04:31 AM
Perfect. Thank you
2019-12-18 05:10 AM
Welcome! :)
2021-06-28 11:30 PM
Actually that solution is not that perfect because once in a while you have to suffer the auto generation on this file.
Are there any alternatives?