28 views
in Platform Packages by
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.

1 Answer

+1 vote
by

Hi Burhan,

please have a look to the original implementation of our Build Environments for the different NXP MCUs. There you will find an example called ScreenOrientation. It shows the usage of the different orientations within one project. For the code generation you can select the PostProcess as described in the section 'Using NXP MCUXpresso IDE':

The script selects the suitable library within the project and excludes the others.

Best regards,

Manfred.

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...