2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 18:07:12 +01:00

Add output file patterns for D tasks on Darwin.

This commit is contained in:
alexrp 2012-10-21 02:12:54 +02:00
parent 1350ebc7a5
commit b3b0383840

View File

@ -13,10 +13,15 @@ def d_platform_flags(self):
v = self.env
if not v.DEST_OS:
v.DEST_OS = Utils.unversioned_sys_platform()
if Utils.destos_to_binfmt(self.env.DEST_OS) == 'pe':
binfmt = Utils.destos_to_binfmt(self.env.DEST_OS)
if binfmt == 'pe':
v['dprogram_PATTERN'] = '%s.exe'
v['dshlib_PATTERN'] = 'lib%s.dll'
v['dstlib_PATTERN'] = 'lib%s.a'
elif binfmt == 'mac-o':
v['dprogram_PATTERN'] = '%s'
v['dshlib_PATTERN'] = 'lib%s.dylib'
v['dstlib_PATTERN'] = 'lib%s.a'
else:
v['dprogram_PATTERN'] = '%s'
v['dshlib_PATTERN'] = 'lib%s.so'