Re: Build Default target when passing a target
Pierre-Luc Boily <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CACTRa=u6tExS-kN+ChE+5iD0rJK0Qy-uXDD9Gx17T62BKckXRA@mail.gmail.com> |
Oh, did not think about it! Yes it did the trick, thx! Le lun. 11 nov. 2019, à 22 h 08, Bill Deegan <[email protected]> a écrit : > There's no reason you can't add an alias '#path/to/speechGenerator' > > Default(env.Alias('#path/to/speechGenerator', installTgts)) > > That should do the trick? > > On Mon, Nov 11, 2019 at 9:55 PM Pierre-Luc Boily < > [email protected]> wrote: > >> Hello, >> >> I have the following sconscript : >> >> progName = 'SpeechGenerator' >> prg = env.buildProgram('SpeechGenerator.exe', >> ['SpeechGeneratorApp.cpp', 'SpeechGenerator.rc']) >> installTgts = env.install_speech_generator(prg) >> Default(env.Alias(progName, installTgts)) >> >> I implemented a mechanism where if you do >> >scons SpeechGenerator >> >> Only the needed sconscript will be load and executed. All artefacts in >> variant dir are built and artefacts are also installed outside the variant >> dir (with install_speech_generator). This works because SpeechGenerator >> alias. >> >> There is something that I'd like to do but it doesn't work. If I do : >> >scons path/to/speechGenerator >> >> I also have a mechanism where it loads only one sconscript, but then, only >> artefacts in variant dir are generated. I know it is normal, because the >> target path/to/speechGenerator doesn't refer to the install directory that >> is outside of variant dir >> >> But I am just wondering if it is something possible to force the execution >> of a Default target that is outside of the command line target >> >> My goal is I would like to give multiple alternative to the developers. I >> know some of them would prefer to do >> >scons path/to/speechGenerator >> or >> path/to/speechGenerator>scons -u . >> and other will do >> >scons speechGenerator >> >> Would be great of those 3 alternatives generate artefacts in the install >> directory that is outside of the variant dir >> >> thx >> >> thx >> >> >> >> -- >> Sent from: http://scons.1086193.n5.nabble.com/Users-f16930.html >> _______________________________________________ >> Scons-users mailing list >> [email protected] >> https://pairlist4.pair.net/mailman/listinfo/scons-users >> > _______________________________________________ > Scons-users mailing list > [email protected] > https://pairlist4.pair.net/mailman/listinfo/scons-users > _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users