mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-06 17:13:49 +01:00
Update local LV2 libraries to latest versions
lilv-0.24.6 lv2-1.16.0 serd-0.30.2 sord-0.16.4 sratom-0.6.4 suil-0.10.6
This commit is contained in:
@@ -1,54 +1,97 @@
|
||||
#! /usr/bin/env python
|
||||
#!/usr/bin/env python
|
||||
# encoding: utf-8
|
||||
# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
|
||||
# Carlos Rafael Giani, 2007 (dv)
|
||||
# Thomas Nagy, 2007-2018 (ita)
|
||||
|
||||
from waflib import Utils, Task, Errors
|
||||
from waflib.TaskGen import taskgen_method, feature, extension
|
||||
from waflib.Tools import d_scan, d_config
|
||||
from waflib.Tools.ccroot import link_task, stlink_task
|
||||
|
||||
from waflib import Utils,Task,Errors
|
||||
from waflib.TaskGen import taskgen_method,feature,extension
|
||||
from waflib.Tools import d_scan,d_config
|
||||
from waflib.Tools.ccroot import link_task,stlink_task
|
||||
class d(Task.Task):
|
||||
color='GREEN'
|
||||
run_str='${D} ${DFLAGS} ${DINC_ST:INCPATHS} ${D_SRC_F:SRC} ${D_TGT_F:TGT}'
|
||||
scan=d_scan.scan
|
||||
"Compile a d file into an object file"
|
||||
color = 'GREEN'
|
||||
run_str = '${D} ${DFLAGS} ${DINC_ST:INCPATHS} ${D_SRC_F:SRC} ${D_TGT_F:TGT}'
|
||||
scan = d_scan.scan
|
||||
|
||||
class d_with_header(d):
|
||||
run_str='${D} ${DFLAGS} ${DINC_ST:INCPATHS} ${D_HDR_F:tgt.outputs[1].bldpath()} ${D_SRC_F:SRC} ${D_TGT_F:tgt.outputs[0].bldpath()}'
|
||||
"Compile a d file and generate a header"
|
||||
run_str = '${D} ${DFLAGS} ${DINC_ST:INCPATHS} ${D_HDR_F:tgt.outputs[1].bldpath()} ${D_SRC_F:SRC} ${D_TGT_F:tgt.outputs[0].bldpath()}'
|
||||
|
||||
class d_header(Task.Task):
|
||||
color='BLUE'
|
||||
run_str='${D} ${D_HEADER} ${SRC}'
|
||||
"Compile d headers"
|
||||
color = 'BLUE'
|
||||
run_str = '${D} ${D_HEADER} ${SRC}'
|
||||
|
||||
class dprogram(link_task):
|
||||
run_str='${D_LINKER} ${LINKFLAGS} ${DLNK_SRC_F}${SRC} ${DLNK_TGT_F:TGT} ${RPATH_ST:RPATH} ${DSTLIB_MARKER} ${DSTLIBPATH_ST:STLIBPATH} ${DSTLIB_ST:STLIB} ${DSHLIB_MARKER} ${DLIBPATH_ST:LIBPATH} ${DSHLIB_ST:LIB}'
|
||||
inst_to='${BINDIR}'
|
||||
"Link object files into a d program"
|
||||
run_str = '${D_LINKER} ${LINKFLAGS} ${DLNK_SRC_F}${SRC} ${DLNK_TGT_F:TGT} ${RPATH_ST:RPATH} ${DSTLIB_MARKER} ${DSTLIBPATH_ST:STLIBPATH} ${DSTLIB_ST:STLIB} ${DSHLIB_MARKER} ${DLIBPATH_ST:LIBPATH} ${DSHLIB_ST:LIB}'
|
||||
inst_to = '${BINDIR}'
|
||||
|
||||
class dshlib(dprogram):
|
||||
inst_to='${LIBDIR}'
|
||||
"Link object files into a d shared library"
|
||||
inst_to = '${LIBDIR}'
|
||||
|
||||
class dstlib(stlink_task):
|
||||
pass
|
||||
@extension('.d','.di','.D')
|
||||
def d_hook(self,node):
|
||||
ext=Utils.destos_to_binfmt(self.env.DEST_OS)=='pe'and'obj'or'o'
|
||||
out='%s.%d.%s'%(node.name,self.idx,ext)
|
||||
def create_compiled_task(self,name,node):
|
||||
task=self.create_task(name,node,node.parent.find_or_declare(out))
|
||||
"Link object files into a d static library"
|
||||
pass # do not remove
|
||||
|
||||
@extension('.d', '.di', '.D')
|
||||
def d_hook(self, node):
|
||||
"""
|
||||
Compile *D* files. To get .di files as well as .o files, set the following::
|
||||
|
||||
def build(bld):
|
||||
bld.program(source='foo.d', target='app', generate_headers=True)
|
||||
|
||||
"""
|
||||
ext = Utils.destos_to_binfmt(self.env.DEST_OS) == 'pe' and 'obj' or 'o'
|
||||
out = '%s.%d.%s' % (node.name, self.idx, ext)
|
||||
def create_compiled_task(self, name, node):
|
||||
task = self.create_task(name, node, node.parent.find_or_declare(out))
|
||||
try:
|
||||
self.compiled_tasks.append(task)
|
||||
except AttributeError:
|
||||
self.compiled_tasks=[task]
|
||||
self.compiled_tasks = [task]
|
||||
return task
|
||||
if getattr(self,'generate_headers',None):
|
||||
tsk=create_compiled_task(self,'d_with_header',node)
|
||||
tsk.outputs.append(node.change_ext(self.env['DHEADER_ext']))
|
||||
|
||||
if getattr(self, 'generate_headers', None):
|
||||
tsk = create_compiled_task(self, 'd_with_header', node)
|
||||
tsk.outputs.append(node.change_ext(self.env.DHEADER_ext))
|
||||
else:
|
||||
tsk=create_compiled_task(self,'d',node)
|
||||
tsk = create_compiled_task(self, 'd', node)
|
||||
return tsk
|
||||
|
||||
@taskgen_method
|
||||
def generate_header(self,filename):
|
||||
def generate_header(self, filename):
|
||||
"""
|
||||
See feature request #104::
|
||||
|
||||
def build(bld):
|
||||
tg = bld.program(source='foo.d', target='app')
|
||||
tg.generate_header('blah.d')
|
||||
# is equivalent to:
|
||||
#tg = bld.program(source='foo.d', target='app', header_lst='blah.d')
|
||||
|
||||
:param filename: header to create
|
||||
:type filename: string
|
||||
"""
|
||||
try:
|
||||
self.header_lst.append([filename,self.install_path])
|
||||
self.header_lst.append([filename, self.install_path])
|
||||
except AttributeError:
|
||||
self.header_lst=[[filename,self.install_path]]
|
||||
self.header_lst = [[filename, self.install_path]]
|
||||
|
||||
@feature('d')
|
||||
def process_header(self):
|
||||
for i in getattr(self,'header_lst',[]):
|
||||
node=self.path.find_resource(i[0])
|
||||
"""
|
||||
Process the attribute 'header_lst' to create the d header compilation tasks::
|
||||
|
||||
def build(bld):
|
||||
bld.program(source='foo.d', target='app', header_lst='blah.d')
|
||||
"""
|
||||
for i in getattr(self, 'header_lst', []):
|
||||
node = self.path.find_resource(i[0])
|
||||
if not node:
|
||||
raise Errors.WafError('file %r not found on d obj'%i[0])
|
||||
self.create_task('d_header',node,node.change_ext('.di'))
|
||||
raise Errors.WafError('file %r not found on d obj' % i[0])
|
||||
self.create_task('d_header', node, node.change_ext('.di'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user