#!/usr/bin/env python
import sys
import autowaf
import Options
# Version of this package (even if built as a child)
LV2CORE_VERSION = '4.0pre1'
# Variables for 'waf dist'
APPNAME = 'lv2core'
VERSION = LV2CORE_VERSION
# Mandatory variables
top = '.'
out = 'build'
def options(opt):
opt.add_option('--bundle-only', action='store_true', default=False, dest='bundle_only',
help="Only install LV2 bundle (not header or pkg-config file)")
autowaf.set_options(opt)
def configure(conf):
autowaf.configure(conf)
def build(bld):
# Header "library"
obj = bld.new_task_gen()
obj.export_includes = ['.']
obj.name = 'liblv2core'
obj.target = 'lv2core'
if not Options.options.bundle_only:
# Header
bld.install_files('${INCLUDEDIR}', 'lv2.h')
bld.install_files('${LV2DIR}/lv2core.lv2', 'lv2.h')
# Pkgconfig file
autowaf.build_pc(bld, 'LV2CORE', LV2CORE_VERSION, [])
# Bundle (data)
bld.install_files('${LV2DIR}/lv2core.lv2', 'lv2.ttl manifest.ttl')
# lv2config
bld.install_files('${BINDIR}', 'lv2config', chmod=0755)
def dist():
import Scripting
Scripting.g_gz = 'gz'
Scripting.dist()
ass='sub'>LV2
d@drobilla.net |
blob: 3f4ece913a1582022edc2030949c5a07efd26b0b (
plain)