source: waflib/Tools/suncxx.py @ 904702d

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 904702d was 904702d, checked in by Paul Brossier <piem@piem.org>, 9 years ago

waf, waflib: update to 1.8.7

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#! /usr/bin/env python
2# encoding: utf-8
3# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
4
5from waflib import Utils
6from waflib.Tools import ccroot,ar
7from waflib.Configure import conf
8@conf
9def find_sxx(conf):
10        v=conf.env
11        cc=conf.find_program(['CC','c++'],var='CXX')
12        try:
13                conf.cmd_and_log(cc+['-flags'])
14        except Exception:
15                conf.fatal('%r is not a Sun compiler'%cc)
16        v.CXX_NAME='sun'
17        conf.get_suncc_version(cc)
18@conf
19def sxx_common_flags(conf):
20        v=conf.env
21        v['CXX_SRC_F']=[]
22        v['CXX_TGT_F']=['-c','-o']
23        if not v['LINK_CXX']:v['LINK_CXX']=v['CXX']
24        v['CXXLNK_SRC_F']=[]
25        v['CXXLNK_TGT_F']=['-o']
26        v['CPPPATH_ST']='-I%s'
27        v['DEFINES_ST']='-D%s'
28        v['LIB_ST']='-l%s'
29        v['LIBPATH_ST']='-L%s'
30        v['STLIB_ST']='-l%s'
31        v['STLIBPATH_ST']='-L%s'
32        v['SONAME_ST']='-Wl,-h,%s'
33        v['SHLIB_MARKER']='-Bdynamic'
34        v['STLIB_MARKER']='-Bstatic'
35        v['cxxprogram_PATTERN']='%s'
36        v['CXXFLAGS_cxxshlib']=['-Kpic','-DPIC']
37        v['LINKFLAGS_cxxshlib']=['-G']
38        v['cxxshlib_PATTERN']='lib%s.so'
39        v['LINKFLAGS_cxxstlib']=['-Bstatic']
40        v['cxxstlib_PATTERN']='lib%s.a'
41def configure(conf):
42        conf.find_sxx()
43        conf.find_ar()
44        conf.sxx_common_flags()
45        conf.cxx_load_tools()
46        conf.cxx_add_flags()
47        conf.link_add_flags()
Note: See TracBrowser for help on using the repository browser.