cancel
Showing results for 
Search instead for 
Did you mean: 

How to add several include path to TouchGfx simulator

franck23
Senior

Hi,

I cannot figure out how to add several include path to for the simulator.

I can add 1 path to the TouchGFX\simulator\gcc\Makefile as follow:

project_path := $(call qs,$(abspath $(call sq,$(makefile_path)../../..)))
app_path := $(call qs,$(abspath $(call sq,$(project_path)/Core/App)))
 
ADDITIONAL_SOURCES := 
ADDITIONAL_INCLUDE_PATHS := $(app_path)
ADDITIONAL_LIBRARY_PATHS := 
ADDITIONAL_LIBRARIES :=
export ADDITIONAL_SOURCES ADDITIONAL_INCLUDE_PATHS ADDITIONAL_LIBRARY_PATHS ADDITIONAL_LIBRARIES

Now, how do I add more path?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Romain DIELEMAN
ST Employee

Hi,

If I understand you question correctly I think you should do this to add more than one path :

ADDITIONAL_INCLUDE_PATHS := $(app_path)/path1 \
                                    $(app_path)/path2 \
                                    $(app_path)/path3 \
ADDITIONAL_LIBRARY_PATHS :=

EDIT: the indentation is weird in my answer but you get the idea, you need \ to add an extra path

/Romain

View solution in original post

2 REPLIES 2
Romain DIELEMAN
ST Employee

Hi,

If I understand you question correctly I think you should do this to add more than one path :

ADDITIONAL_INCLUDE_PATHS := $(app_path)/path1 \
                                    $(app_path)/path2 \
                                    $(app_path)/path3 \
ADDITIONAL_LIBRARY_PATHS :=

EDIT: the indentation is weird in my answer but you get the idea, you need \ to add an extra path

/Romain

franck23
Senior

Yes, it is exactly what I need.

Thanks!