source: waflib/Tools/cxx.py @ 9e58e78

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

waf: unpack

  • 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 TaskGen,Task,Utils
6from waflib.Tools import c_preproc
7from waflib.Tools.ccroot import link_task,stlink_task
8@TaskGen.extension('.cpp','.cc','.cxx','.C','.c++')
9def cxx_hook(self,node):
10        return self.create_compiled_task('cxx',node)
11if not'.c'in TaskGen.task_gen.mappings:
12        TaskGen.task_gen.mappings['.c']=TaskGen.task_gen.mappings['.cpp']
13class cxx(Task.Task):
14        run_str='${CXX} ${ARCH_ST:ARCH} ${CXXFLAGS} ${CPPFLAGS} ${FRAMEWORKPATH_ST:FRAMEWORKPATH} ${CPPPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${CXX_SRC_F}${SRC} ${CXX_TGT_F}${TGT}'
15        vars=['CXXDEPS']
16        ext_in=['.h']
17        scan=c_preproc.scan
18class cxxprogram(link_task):
19        run_str='${LINK_CXX} ${LINKFLAGS} ${CXXLNK_SRC_F}${SRC} ${CXXLNK_TGT_F}${TGT[0].abspath()} ${RPATH_ST:RPATH} ${FRAMEWORKPATH_ST:FRAMEWORKPATH} ${FRAMEWORK_ST:FRAMEWORK} ${ARCH_ST:ARCH} ${STLIB_MARKER} ${STLIBPATH_ST:STLIBPATH} ${STLIB_ST:STLIB} ${SHLIB_MARKER} ${LIBPATH_ST:LIBPATH} ${LIB_ST:LIB}'
20        vars=['LINKDEPS']
21        ext_out=['.bin']
22        inst_to='${BINDIR}'
23class cxxshlib(cxxprogram):
24        inst_to='${LIBDIR}'
25class cxxstlib(stlink_task):
26        pass
Note: See TracBrowser for help on using the repository browser.