cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Preprocessor definition to TouchGFX Designer?

Marco.R
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

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

View solution in original post

4 REPLIES 4
Martin KJELDSEN
Chief III

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

Marco.R
Senior

​Perfect. Thank you

Welcome! :)

SMour.1
Associate III

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?