Page 1 of 1

Can a path or directory assigned to APP_SRC in oil file

Posted: Sun Jan 22, 2017 9:29 pm
by aladdin7938
Guys, Do I have to list out every single .c source file i would like to compile
by typing APP_SRC = "???.c" once in oil file? There are a lot of source files for my case. It is really tedious to type APP_SRC = "*???.c" for every file. Is there better way to specify a directory or path including all *.c files needed?

Thanks a lot!

Re: Can a path or directory assigned to APP_SRC in oil file

Posted: Mon Jan 23, 2017 8:59 am
by paolo.gai
Hi!

you have to list the files. you can put relative paths as well. It has never been a big issue in the past, as the companies using it in products always asked an integration in their custom build systems.

Note that with ERIKA3 the build system will be different, but for now we have to live with this one.

Ciao,

PJ

Re: Can a path or directory assigned to APP_SRC in oil file

Posted: Mon Jan 23, 2017 9:02 am
by e.guidieri
Hi,

since the entry of APP_SRC is copied verbatim in a makefile variable APP_SRC, actually you can use any make function to valorize it, like $(wildcard *.c).

Just remeber two things

1) All resulting path should be relative path to the folder containing OIL file.
2) OIL file should be located in the top-most folder for source code.

This means: you should use relative path, without "..".

Errico Guidieri

Re: Can a path or directory assigned to APP_SRC in oil file

Posted: Mon Jan 23, 2017 4:07 pm
by aladdin7938
Thanks Errico and PJ !