source: waflib/Tools/xlcxx.py @ c82a034

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

waf, waflib: update to 1.8.7

  • Property mode set to 100644
File size: 1.1 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.Tools import ccroot,ar
6from waflib.Configure import conf
7@conf
8def find_xlcxx(conf):
9        cxx=conf.find_program(['xlc++_r','xlc++'],var='CXX')
10        conf.get_xlc_version(cxx)
11        conf.env.CXX_NAME='xlc++'
12@conf
13def xlcxx_common_flags(conf):
14        v=conf.env
15        v['CXX_SRC_F']=[]
16        v['CXX_TGT_F']=['-c','-o']
17        if not v['LINK_CXX']:v['LINK_CXX']=v['CXX']
18        v['CXXLNK_SRC_F']=[]
19        v['CXXLNK_TGT_F']=['-o']
20        v['CPPPATH_ST']='-I%s'
21        v['DEFINES_ST']='-D%s'
22        v['LIB_ST']='-l%s'
23        v['LIBPATH_ST']='-L%s'
24        v['STLIB_ST']='-l%s'
25        v['STLIBPATH_ST']='-L%s'
26        v['RPATH_ST']='-Wl,-rpath,%s'
27        v['SONAME_ST']=[]
28        v['SHLIB_MARKER']=[]
29        v['STLIB_MARKER']=[]
30        v['LINKFLAGS_cxxprogram']=['-Wl,-brtl']
31        v['cxxprogram_PATTERN']='%s'
32        v['CXXFLAGS_cxxshlib']=['-fPIC']
33        v['LINKFLAGS_cxxshlib']=['-G','-Wl,-brtl,-bexpfull']
34        v['cxxshlib_PATTERN']='lib%s.so'
35        v['LINKFLAGS_cxxstlib']=[]
36        v['cxxstlib_PATTERN']='lib%s.a'
37def configure(conf):
38        conf.find_xlcxx()
39        conf.find_ar()
40        conf.xlcxx_common_flags()
41        conf.cxx_load_tools()
42        conf.cxx_add_flags()
43        conf.link_add_flags()
Note: See TracBrowser for help on using the repository browser.