~voluntatefaber/beat-box/bug952329

« back to all changes in this revision

Viewing changes to .waf-1.6.2-ad4cc42bd7d347f7e283789e711b993f/waflib/Tools/gdc.py

  • Committer: Scott Ringwelski
  • Date: 2011-02-10 21:30:53 UTC
  • Revision ID: sgringwe@mtu.edu-20110210213053-d3c7mnexeref3cwj
sexy icons, sexy waf

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /usr/bin/env python
 
2
# encoding: utf-8
 
3
# WARNING! All changes made to this file will be lost!
 
4
 
 
5
import sys
 
6
from waflib.Tools import ar,d
 
7
from waflib.Configure import conf
 
8
def find_gdc(conf):
 
9
        conf.find_program('gdc',var='D')
 
10
def common_flags_gdc(conf):
 
11
        v=conf.env
 
12
        v['DFLAGS']=[]
 
13
        v['D_SRC_F']=''
 
14
        v['D_TGT_F']=['-c','-o','']
 
15
        v['D_LINKER']=v['D']
 
16
        v['DLNK_SRC_F']=''
 
17
        v['DLNK_TGT_F']=['-o','']
 
18
        v['DINC_ST']='-I%s'
 
19
        v['DSHLIB_MARKER']=v['DSTLIB_MARKER']=''
 
20
        v['DSTLIB_ST']=v['DSHLIB_ST']='-l%s'
 
21
        v['DSTLIBPATH_ST']=v['DLIBPATH_ST']='-L%s'
 
22
        v['LINKFLAGS_dshlib']=['-shared']
 
23
        v['DHEADER_ext']='.di'
 
24
        v['D_HDR_F']='-fintfc -fintfc-file='
 
25
def configure(conf):
 
26
        conf.find_gdc()
 
27
        conf.load('ar')
 
28
        conf.load('d')
 
29
        conf.common_flags_gdc()
 
30
        conf.d_platform_flags()
 
31
 
 
32
conf(find_gdc)
 
33
conf(common_flags_gdc)
 
 
b'\\ No newline at end of file'