[Scons-users] Builder execution order?
delbert dev
delbertum at gmail.com
Sat Jan 18 14:53:13 EST 2014
URLDOWNLOAD_USEURLFILENAME=False makes it possible to override that it
should NOT use the filename from the url.
I tried this:
pkg = env.URLDownload(gtestOutputFile, gtestUrl)
dir = env.Unpack( ouutdir, gtestOutputFile )
Depends(dir, pkg)
a = env.Alias('abc', pkg)
b = env.Alias('xyz', dir)
scons: *** source file [gtest-1.7.0.zip] must be exist Stop.
and it gives the same result.
It appears to me that scons is not designed to design/implement a buildflow
(like ant, maven, gradle etc.) but are specialized to simply
compiling/building a single cross platform cpp/c binary.
Maybe its time to give this a try:
http://www.gradleware.com/news/blog/creating-world-class-cc-build-system-gradle
http://www.gradle.org/docs/current/userguide/userguide_single.html#native_binaries:languages
http://www.gradle.org/docs/current/userguide/userguide_single.html#nativeBinaries
On Fri, Jan 17, 2014 at 6:35 PM, Gary Oberbrunner <garyo at oberbrunner.com>wrote:
> On Thu, Jan 16, 2014 at 7:21 PM, delbert dev <delbertum at gmail.com> wrote:
> > env.Replace(URLDOWNLOAD_USEURLFILENAME = False )
> > ouutdir = Entry('outdir')
> > a = env.Alias('abc', env.URLDownload(gtestOutputFile, gtestUrl))
> > b = env.Alias('xyz', env.Unpack( ouutdir, gtestOutputFile ))
>
> First, why do you set URLDOWNLOAD_USEURLFILENAME to False? I haven't
> tried it but it looks from the code like it wouldn't work very well to
> use the full URL as a filename, and it could also be causing the
> dependency to be broken if it's not a valid path.
>
> But second, when you do Depends(b, a) you're only saying that the
> alias depends on the other alias. Try this (not tested):
> pkg = env.URLDownload(gtestOutputFile, gtestUrl)
> dir = env.Unpack( ouutdir, gtestOutputFile )
> Depends(dir, pkg)
> a = env.Alias('abc', pkg)
> b = env.Alias('xyz', dir)
>
> --
> Gary
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140118/8f428afa/attachment.html
More information about the Scons-users
mailing list