Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Segger Embedded Studio relative paths

Hi,

I would like to add source files to Projects with a reltive path.
The reason being that I would like to have my own code in a cloud based directory and code from SDK in a local directory.
It would also ease moving development between different computers where SDK might be installed on different paths.

If I add a source file with the IDE it Always seems to get a absolute path.

Any tips?

To clearify a bit. What I would like to do is to have a macro so path to source file becomes something like $(SDK)/components/boards/boards.c

Parents Reply
  • Sorry, I expressed myself a bit misleading.
    I noticed that there where relative paths also.
    But what I would like to is lika I clearified above. To have source files from, for example SDK, be related to a macro so that if I have SDK stored in a other directory on a different computer the macro could have a different value, not the path to every source file.

    Is there a macro expansion performed when the Project file is loaded?

Children
Related