Hi, everyone. I have a project that includes a lot of "library" source files that are outside of my main source tree and I'd prefer not to have to reference them with awkward paths like "..\..\..\components\lib_functions.c" if possible.
I thought it would be good to be able to write something like this, and let microVision substitute the value of the environment variable CODELIB rather than specifying the whole path in my project file.
<File> <FileName>app_button.c</FileName> <FileType>1</FileType> <FilePath>$CODELIB\app_button.c</FilePath> </File>
Does microVision support anything like a substitution syntax in the .uvprojx file?
Thanks for any pointers on this.
Hmmmm. $P doesn't seem to quite do what I need, but it's clear that you understood my question.
It looks like there's no way to use DOS-style environment variables in a Keil project file. That's okay--I'll just hardcode the required paths and tell my colleagues to stick to those paths for their library and common code. It's not an ideal solution but it's good enough for our purposes.
Thank you for the pointer!