
124 changed files with 230 additions and 342 deletions
@ -1,42 +0,0 @@
@@ -1,42 +0,0 @@
|
||||
LV2 |
||||
=== |
||||
|
||||
LV2 gives programmers the ability to write audio processors (or "plugins") in |
||||
C/C++ which can be dynamically loaded into a range of applications (or |
||||
"hosts"). |
||||
|
||||
This core specification is deliberately as short and simple as possible, but is |
||||
designed so that extensions can be defined to add more advanced features. |
||||
|
||||
More information about LV2 can be found at <http://lv2plug.in>. |
||||
|
||||
|
||||
Using LV2 |
||||
--------- |
||||
|
||||
Applications that use LV2 plugins should depend on this package. It includes a |
||||
header, LV2 bundle, and a pkg-config file. To compile against LV2, build |
||||
scripts should check for the pkg-config package "lv2core", or simply check for |
||||
the header "lv2/lv2plug.in/ns/lv2core/lv2.h". |
||||
|
||||
The appropriate C include for LV2 specifications is based on their URI, e.g.: |
||||
|
||||
#include "lv2/lv2plug.in/ns/lv2core/lv2.h" |
||||
|
||||
Is how code should include the header "lv2.h" in this bundle, which defines the |
||||
specification with URI "http://lv2plug.in/ns/lv2core". Other specifications |
||||
should follow this convention, e.g. the correct way to include the header |
||||
"foo.h" in the extension "http://example.org/foo" is: |
||||
|
||||
#include "lv2/example.org/foo/foo.h" |
||||
|
||||
|
||||
Packaging |
||||
--------- |
||||
|
||||
Please package these components in a single package (i.e. do not split the |
||||
headers, data, and program into separate packages). This package, in its |
||||
entirety, is a build and run time dependency of any code that uses LV2. |
||||
Distributions are encouraged to include it with package name "lv2core". |
||||
|
||||
-- David Robillard <d@drobilla.net> |
@ -1,10 +0,0 @@
@@ -1,10 +0,0 @@
|
||||
prefix=@PREFIX@ |
||||
exec_prefix=@EXEC_PREFIX@ |
||||
libdir=@LIBDIR@ |
||||
includedir=@INCLUDEDIR@ |
||||
|
||||
Name: lv2core |
||||
Version: @LV2CORE_VERSION@ |
||||
Description: An audio plugin interface specification. |
||||
Libs: |
||||
Cflags: -I${includedir} |
@ -1,83 +0,0 @@
@@ -1,83 +0,0 @@
|
||||
#!/usr/bin/env python |
||||
import os |
||||
|
||||
from waflib.extras import autowaf as autowaf |
||||
import waflib.Options as Options |
||||
import glob |
||||
|
||||
# Version of this package (even if built as a child) |
||||
LV2CORE_VERSION = '12.0' |
||||
|
||||
# Variables for 'waf dist' |
||||
APPNAME = 'lv2core' |
||||
VERSION = LV2CORE_VERSION |
||||
|
||||
# Mandatory variables |
||||
top = '.' |
||||
out = 'build' |
||||
|
||||
def options(opt): |
||||
opt.load('compiler_c') |
||||
autowaf.set_options(opt) |
||||
opt.add_option('--bundle-only', action='store_true', default=False, |
||||
dest='bundle_only', |
||||
help="Only install bundle (not header or pkg-config file)") |
||||
opt.add_option('--copy-headers', action='store_true', default=False, |
||||
dest='copy_headers', |
||||
help='Copy headers instead of linking to bundle') |
||||
|
||||
def configure(conf): |
||||
if not hasattr(os.path, 'relpath') and not Options.options.copy_headers: |
||||
conf.fatal( |
||||
'os.path.relpath missing, get Python 2.6 or use --copy-headers') |
||||
|
||||
conf.load('compiler_c', cache=True) |
||||
conf.load('autowaf', cache=True) |
||||
|
||||
autowaf.display_msg(conf, "LV2 bundle directory", conf.env['LV2DIR']) |
||||
print('') |
||||
|
||||
def build(bld): |
||||
# Header "library" |
||||
bld(export_includes = ['.'], |
||||
name = 'liblv2core', |
||||
target = 'lv2core') |
||||
|
||||
# Bundle (data) |
||||
bld.install_files('${LV2DIR}/lv2core.lv2', bld.path.ant_glob('*.ttl')) |
||||
|
||||
if not Options.options.bundle_only: |
||||
# Header |
||||
bld.install_files('${INCLUDEDIR}', 'lv2.h') |
||||
bld.install_files('${LV2DIR}/lv2core.lv2', 'lv2.h') |
||||
bld.install_files('${LV2DIR}/lv2core.lv2', 'lv2_util.h') |
||||
|
||||
# Pkgconfig file |
||||
autowaf.build_pc(bld, 'LV2CORE', LV2CORE_VERSION, '', []) |
||||
|
||||
# URI-like header include |
||||
include_dir = os.path.join(bld.env['INCLUDEDIR'], 'lv2/lv2plug.in/ns') |
||||
bundle_dir = os.path.join(bld.env['LV2DIR'], 'lv2core.lv2') |
||||
if bld.env['COPY_HEADERS']: |
||||
bld.install_files(os.path.join(include_dir, 'lv2core'), |
||||
bld.path.ant_glob('*.h')) |
||||
else: |
||||
bld.symlink_as(os.path.join(include_dir, 'lv2core'), |
||||
os.path.relpath(bundle_dir, include_dir)) |
||||
|
||||
def news(ctx): |
||||
path = ctx.path.abspath() |
||||
autowaf.write_news(APPNAME, |
||||
glob.glob(os.path.join(path, '*.ttl')), |
||||
os.path.join(path, 'NEWS')) |
||||
|
||||
def pre_dist(ctx): |
||||
# Write NEWS file in source directory |
||||
news(ctx) |
||||
|
||||
def post_dist(ctx): |
||||
# Delete generated NEWS file |
||||
try: |
||||
os.remove(os.path.join(ctx.path.abspath(), 'NEWS')) |
||||
except: |
||||
pass |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue