akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame^] | 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 | |
| 5 | from waflib.Tools import ccroot,ar |
| 6 | from waflib.Configure import conf |
| 7 | @conf |
| 8 | def find_xlcxx(conf): |
| 9 | cxx=conf.find_program(['xlc++_r','xlc++'],var='CXX') |
| 10 | cxx=conf.cmd_to_list(cxx) |
| 11 | conf.get_xlc_version(cxx) |
| 12 | conf.env.CXX_NAME='xlc++' |
| 13 | conf.env.CXX=cxx |
| 14 | @conf |
| 15 | def xlcxx_common_flags(conf): |
| 16 | v=conf.env |
| 17 | v['CXX_SRC_F']=[] |
| 18 | v['CXX_TGT_F']=['-c','-o'] |
| 19 | if not v['LINK_CXX']:v['LINK_CXX']=v['CXX'] |
| 20 | v['CXXLNK_SRC_F']=[] |
| 21 | v['CXXLNK_TGT_F']=['-o'] |
| 22 | v['CPPPATH_ST']='-I%s' |
| 23 | v['DEFINES_ST']='-D%s' |
| 24 | v['LIB_ST']='-l%s' |
| 25 | v['LIBPATH_ST']='-L%s' |
| 26 | v['STLIB_ST']='-l%s' |
| 27 | v['STLIBPATH_ST']='-L%s' |
| 28 | v['RPATH_ST']='-Wl,-rpath,%s' |
| 29 | v['SONAME_ST']=[] |
| 30 | v['SHLIB_MARKER']=[] |
| 31 | v['STLIB_MARKER']=[] |
| 32 | v['LINKFLAGS_cxxprogram']=['-Wl,-brtl'] |
| 33 | v['cxxprogram_PATTERN']='%s' |
| 34 | v['CXXFLAGS_cxxshlib']=['-fPIC'] |
| 35 | v['LINKFLAGS_cxxshlib']=['-G','-Wl,-brtl,-bexpfull'] |
| 36 | v['cxxshlib_PATTERN']='lib%s.so' |
| 37 | v['LINKFLAGS_cxxstlib']=[] |
| 38 | v['cxxstlib_PATTERN']='lib%s.a' |
| 39 | def configure(conf): |
| 40 | conf.find_xlcxx() |
| 41 | conf.find_ar() |
| 42 | conf.xlcxx_common_flags() |
| 43 | conf.cxx_load_tools() |
| 44 | conf.cxx_add_flags() |
| 45 | conf.link_add_flags() |