[Scons-users] Fwd: No generated target
Gary Oberbrunner
garyo at oberbrunner.com
Wed Apr 30 08:17:55 EDT 2014
SCons by default only builds targets under '.'. You can either pass a dir
or target on the cmd line, or use Default() to specify the default targets
you want built.
On Wed, Apr 30, 2014 at 6:30 AM, Arthur Athrun <athrunarthur at gmail.com>wrote:
> Hi,
> I'm using scons 2.3.1 to generate a library. I wanna place the generated
> lib file in a specific dir, say '../build/'. But I found nothing in
> ../build. I don't know the reason.
> My SConstruct file is like this.
>
> import os
>
> cwd = os.path.dirname(Dir('.').srcnode().abspath)
>
> build_dir = os.path.join(cwd, 'build/')
>
> print build_dir
>
> env = Environment(CXXFLAGS='-std=c++11',CPPPATH='./')
>
> src = ['dsource/source.cpp']
>
> lib = env.SharedLibrary(target=os.path.join(build_dir, 'ff'), source=src)
>
> print lib #This is actually build_dir + libff.so
> As I printed out lib, and it shows the right directory, I thought I could
> found the generated library file. But there is just nothing...
>
> DO you guys have any ideas? Any suggestion will be appreciated.
>
> -Athrun
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
>
--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140430/db1b676b/attachment.html
More information about the Scons-users
mailing list