blob: b744a8d284c161a20ab8d17e18e3d0ed0a052f6b [file] [log] [blame]
akmhoquefa8ee9b2014-03-14 09:06:24 -05001#! /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