[Scons-users] scons 'Install' builder could not recognize file changed
Ronex Dicapriyo
ronex_89 at yahoo.in
Fri Jul 4 15:10:37 EDT 2014
On Friday, 4 July 2014 10:28 PM, Dirk Bächle <tshortik at gmx.de> wrote:
Ronex,
On 04.07.2014 05:20, Ronex Dicapriyo wrote:
[...]
>
>
>1) Is there any way that I can add explicit
dependency on alias_target of sum (i.e.
'install', [copy_file_1, copy_file_2,
sum_lib]). This will make sure to copy file.
Allowing execution of Default targets of
SConscript sum and mul using main target in
the command line explicitly.
>
>I'm sorry, but I don't understand what you're trying to accomplish
here.
>My quetion is related to the example I have attached in this thread. Let me try to paraphrase the same:
install = env.Alias('install', [copy_file_1, copy_file_2,
sum_lib])
env.Default(install)
By this I am giving three target a same name, or maybe in Makefile it can e represented as
install : copy_file_1, copy_file_2,
sum_lib (first two are for copy another to create library)
So, Calling Scons with no argument, it will excute all the three target specified in list.
But in the example I wan to build only main target, and the targets whose associated contents are changed/modified. So, if I am changing a file, so it need to be copied even though it's target is not used.
One way to do this is to execute scons with install and main tagret,( as you have specified before)
Secondly, I could think of replacing SConscript call(for sum/SConscript) with subprocess.Popen(scons -Q install, cwd=<path_of_sum_sconscript> - here I may need seperate SConstruct - very awkward)
So, I guess I am expecting for a stuff here.
3.) You can build a set of targets and give it a new name, via the
Alias method. An Alias is a target, too.
And that's about it, this is the basic toolbox that you can choose
from. So, have your pick...
2) If you explicitly specify one, or several, targets on the command-line, only this/these get built (and its/their children, if required). what about Dependencies here ?
I mean to say for Program builder some libs are specified that are not build,
env.Program(target = 'prog', SRC= sr_list, LIBS=['a', 'b', 'c'], LIBPATH=[<path for all lib>], CPPPATH=inc_list).
SConscript('<dir_a>/SConscript')
then here if liba.a is not present , But sconscript call is present which creates library, Here it would build liba.a first then execute Program builder. Or Am I wrong ?
So along with children, the kind of dependencies I mentioned would also get handle, Am I right ?
I don't think so. Why do you want to avoid it?
>
Because if no library is present in src, And I am not using that directory for library at all, using it in the LIBPATH doesn't makes any sense.
Best regards,
Ronex
_______________________________________________
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/20140705/8ea32f62/attachment-0003.html>
More information about the Scons-users
mailing list