mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
https://waf.io/book/ says By default, the project name and version are set to noname and 1.0. To change them, it is necessary to provide two additional variables in the top-level project file - and waf code inspection confirms that waf itself only will use the top level APPNAME. Also, the 'waf dist' comment doesn't seem relevant - especially after this change - and is removed too. (Note: libs/evoral/wscript and libs/temporal/wscript still use APPNAME for other purposes.)
49 lines
1.2 KiB
Python
49 lines
1.2 KiB
Python
#!/usr/bin/env python
|
|
from waflib.extras import autowaf as autowaf
|
|
import os
|
|
|
|
# Library version (UNIX style major, minor, micro)
|
|
# major increment <=> incompatible changes
|
|
# minor increment <=> compatible changes (additions)
|
|
# micro increment <=> no interface changes
|
|
VAMP_PYIN_LIB_VERSION = '0.0.0'
|
|
|
|
# Mandatory variables
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
def options(opt):
|
|
autowaf.set_options(opt)
|
|
|
|
def configure(conf):
|
|
pass
|
|
|
|
def build(bld):
|
|
# Library
|
|
obj = bld(features = 'cxx cxxshlib')
|
|
obj.source = '''
|
|
libmain.cpp
|
|
PYinVamp.cpp
|
|
YinVamp.cpp
|
|
LocalCandidatePYIN.cpp
|
|
Yin.cpp
|
|
YinUtil.cpp
|
|
MonoNote.cpp
|
|
MonoPitch.cpp
|
|
MonoNoteParameters.cpp
|
|
SparseHMM.cpp
|
|
MonoNoteHMM.cpp
|
|
MonoPitchHMM.cpp
|
|
'''
|
|
obj.export_includes = ['.']
|
|
obj.includes = ['.']
|
|
obj.name = 'libardourvamppyin'
|
|
obj.target = 'ardourvamppyin'
|
|
obj.uselib = 'VAMPSDK'
|
|
obj.use = 'libvampplugin'
|
|
autowaf.ensure_visible_symbols (obj, True)
|
|
obj.vnum = VAMP_PYIN_LIB_VERSION
|
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'vamp')
|
|
|
|
def shutdown():
|
|
autowaf.shutdown()
|