source: waflib/Tools/c.py @ 904702d

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 904702d 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
RevLine 
[0fa325b]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('.c')
9def c_hook(self,node):
[904702d]10        if not self.env.CC and self.env.CXX:
11                return self.create_compiled_task('cxx',node)
[0fa325b]12        return self.create_compiled_task('c',node)
13class c(Task.Task):
[904702d]14        run_str='${CC} ${ARCH_ST:ARCH} ${CFLAGS} ${CPPFLAGS} ${FRAMEWORKPATH_ST:FRAMEWORKPATH} ${CPPPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${CC_SRC_F}${SRC} ${CC_TGT_F}${TGT[0].abspath()}'
[0fa325b]15        vars=['CCDEPS']
16        ext_in=['.h']
17        scan=c_preproc.scan
18class cprogram(link_task):
19        run_str='${LINK_CC} ${LINKFLAGS} ${CCLNK_SRC_F}${SRC} ${CCLNK_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        ext_out=['.bin']
21        vars=['LINKDEPS']
22        inst_to='${BINDIR}'
23class cshlib(cprogram):
24        inst_to='${LIBDIR}'
25class cstlib(stlink_task):
26        pass
Note: See TracBrowser for help on using the repository browser.