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 import TaskGen,Task,Utils |
| 6 | from waflib.Tools import c_preproc |
| 7 | from waflib.Tools.ccroot import link_task,stlink_task |
| 8 | @TaskGen.extension('.cpp','.cc','.cxx','.C','.c++') |
| 9 | def cxx_hook(self,node): |
| 10 | return self.create_compiled_task('cxx',node) |
| 11 | if not'.c'in TaskGen.task_gen.mappings: |
| 12 | TaskGen.task_gen.mappings['.c']=TaskGen.task_gen.mappings['.cpp'] |
| 13 | class 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 |
| 18 | class 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}' |
| 23 | class cxxshlib(cxxprogram): |
| 24 | inst_to='${LIBDIR}' |
| 25 | class cxxstlib(stlink_task): |
| 26 | pass |