Hi,
I need your help about how to add one of the lib files located under RGB888 package folder within C code.
- libewgfx-m7-gcc.a,
- libewgfx-m7-r90-gcc.a
- libewgfx-m7-r180-gcc.a
- libewgfx-m7-r270-gcc.a
I want to select one of the above files as per my Screen Orientation. Normally, I install my Display module for only one orientation and remains constant.
Up to now, I do this requirement by changing this lib file from “Properties-> C/C++ Bıuild-> Lib files within MCUXpresso IDE by manual. Whatever I require, I just simply move it to the uppermost of the list in the above path for configuring lib files within IDE. However, I want to do this adding with #if #else if #endif statements within my Code. I am using one Preprocessor Defined Symbol for my Screen Orientation variable. So , I will compile my project according to the status of this symbol value with getting the correct one of the lib files above. So how can I do that? Linker files are automatically created within MCUXpresso IDE. So not a good way to manipulate that linker file.
Thanks in advance
Burhan.