[Scons-users] Building from higher level directory
Herman Reintke
hreintke at tauri.nl
Wed Jun 1 06:51:06 EDT 2016
Hi,
It is a beginners question but did not find an answer using search.
First trying to understand the concepts before using in large projects.
For testing I have the following directory/file structure
- projects
--projects\test
--projects\test\hello.c
--projects\test\tst
--projects\test\tst\test.c
In the projects\test\tst directory I have the sconstruct file :
import os
env = Environment(tools=['mingw'])
env.Program('..\\hello.c')
env.Program('test.c')
env.Replace(
ENV = {'PATH' : os.environ['PATH']}
)
print "BUILD_TARGETS is", map(str, BUILD_TARGETS)
#print env.Dump()
I expected to build both hello & test programs but..
When I execute "scons" in the projects\test\tst directory it is only
building test
When I execute "scons ..\\" in the projects\test\tst directory it is
building both test & hello
Can you give me a hint why this is or point me to the documentation to
read ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160601/5a416ee7/attachment.html>
More information about the Scons-users
mailing list