conf.py questions

classic Classic list List threaded Threaded
2 messages Options
Tim Michals Tim Michals
Reply | Threaded
Open this post in threaded view
|

conf.py questions

I'm trying to understand how to add several include paths to the conf.py
For example I have the following directories
./Include
./Microchip/include
For the the other ports I see
local_include +=  ['src/platform/%s/drivers/inc' % platform]

but I need a couple more.... or should I re-base line my include paths?  I'm trying to use the same paths Microchip uses.  
This also includes the sources, there are a couple of paths for the sources...
for example I see
fwlib_files = " ".join(glob.glob("src/platform/%s/drivers/src/*.c" % platform))

but I have multiple source directories.   Sorry for the basic question, trying to get up to speed on scons...


BogdanM BogdanM
Reply | Threaded
Open this post in threaded view
|

Re: conf.py questions

On Mon, Mar 29, 2010 at 6:27 AM, Tim Michals <[hidden email]> wrote:

I'm trying to understand how to add several include paths to the conf.py
For example I have the following directories
./Include
./Microchip/include
For the the other ports I see
local_include +=  ['src/platform/%s/drivers/inc' % platform]

but I need a couple more.... or should I re-base line my include paths?  I'm
trying to use the same paths Microchip uses.

You can use the same format, just list all your includes inside a string, separated by spaces. Just like eLua does in the main SConstruct file:

local_include = ['inc', 'inc/newlib',  'inc/remotefs', 'src/lua']
 
This also includes the sources, there are a couple of paths for the
sources...
for example I see
fwlib_files = " ".join(glob.glob("src/platform/%s/drivers/src/*.c" %
platform))

but I have multiple source directories.   Sorry for the basic question,
trying to get up to speed on scons...

Same idea for the sources: list all of them inside a single string, separated by spaces. An example from the STM32 conf.py:

specific_files = fwlib_files + " " + " ".join( [ "src/platform/%s/%s" % ( platform, f ) for f in specific_files.split() ] )

(the 'specific_files' variable is automatically accounted for in the main SConstruct file, just like 'local_include' above).

Best,
Bogdan


_______________________________________________
eLua-dev mailing list
[hidden email]
https://lists.berlios.de/mailman/listinfo/elua-dev