Ittay, On Tue, 2008-05-27 at 11:17 -0700, Ittay Dror wrote:
> how does it know the appropriate options? what if i want to turn on warning > level, optimization, etc.? each compiler (e.g. cl.exe, gcc) has its own > logic Things like providing search directories, libraries, etc. are abstracted and SCons knows how to format them for each of the compilers it knows about -- this is analogous to what Ant does just using a different syntax. Specific options have to be given in the right format and so you do have to switch on environment['PLATFORM'] -- this is much easier than what you have to do in Ant. So it is not all magic but the decision making is fairly straightforward. It could be argued that SCons should do more. There is a lively debate on the developer mailing list as we email here! > Well, does scons provide dependency management like ivy? if my C code > depends on xercesc, can I just define this dependency in the Sconstruct file > and scons will download it and set the -I and -L,-l flags accordingly (and > whatever other flags cl.exe uses)? Not as there is for Java, but then there is no common C, C++ library dependency management infrastructure as there is for Java -- cf. Maven and Ivy repositories. There are tools for checking presence of libraries, files etc. (basically à la Autoconf) but there is no automated download and install. This is not actually unreasonable as every platform requires different builds of libraries, whereas there is an element of commonality for jars which make them a littel more platform independent. -- Russel. ==================================================== Dr Russel Winder Partner Concertant LLP t: +44 20 7585 2200, +44 20 7193 9203 41 Buckmaster Road, f: +44 8700 516 084 London SW11 1EN, UK. m: +44 7770 465 077
signature.asc
Description: This is a digitally signed message part
