← Back to team overview

yade-dev team mailing list archive

Re: Fwd: Re: scons and linkage rules

 

> How can we 'test' the platform with scons (or python)?
> I would like to write something like:
> 
> if "platform is macosx"
> 	# ...
> else
> 	# ...
man scons, search for PLATFORM variable.

# do somewhere in SConstruct: (preferable in the section where link flags are handled etc
#
print env['PLATFORM'] # To see platform name: Darwin? or osX or something like that?
if env['PLATFORM']=='Darwin': env.Append(LIBS=['CoreServices','Carbon']) 


> for information, both lib*.dylib and *.os are generated:
Hm, interesting ... I have no idea what they are for... Let's see later.





References