3 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
5 from waflib import Utils
6 from waflib.Configure import conf
8 def d_platform_flags(self):
11 v.DEST_OS=Utils.unversioned_sys_platform()
12 binfmt=Utils.destos_to_binfmt(self.env.DEST_OS)
14 v['dprogram_PATTERN']='%s.exe'
15 v['dshlib_PATTERN']='lib%s.dll'
16 v['dstlib_PATTERN']='lib%s.a'
18 v['dprogram_PATTERN']='%s'
19 v['dshlib_PATTERN']='lib%s.dylib'
20 v['dstlib_PATTERN']='lib%s.a'
22 v['dprogram_PATTERN']='%s'
23 v['dshlib_PATTERN']='lib%s.so'
24 v['dstlib_PATTERN']='lib%s.a'
34 import tango.stdc.stdio;
49 def check_dlibrary(self,execute=True):
50 ret=self.check_cc(features='d dprogram',fragment=DLIB,compile_filename='test.d',execute=execute,define_ret=True)
52 self.env.DLIBRARY=ret.strip()