Skip to main content
franck23
Associate III
April 13, 2021
Solved

How to add several include path to TouchGfx simulator

  • April 13, 2021
  • 2 replies
  • 1531 views

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!

This topic has been closed for replies.
Best answer by Romain DIELEMAN

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

2 replies

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
April 14, 2021

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
franck23Author
Associate III
April 14, 2021

Yes, it is exactly what I need.

Thanks!