summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-09-10 18:26:52 +0000
committerDavid Robillard <d@drobilla.net>2012-09-10 18:26:52 +0000
commit032a5b405f6c05e521b0947146c50e91a326cf7c (patch)
tree9932b9148e7da4c662bd14c5c7759832696b90cb /wscript
parentd73905966afeebaafac7ac76c838fe99b2df0ecf (diff)
downloadlilv-032a5b405f6c05e521b0947146c50e91a326cf7c.tar.gz
lilv-032a5b405f6c05e521b0947146c50e91a326cf7c.tar.bz2
lilv-032a5b405f6c05e521b0947146c50e91a326cf7c.zip
Support building against parallel debuggable libraries via pkg-config.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@4766 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript35
1 files changed, 14 insertions, 21 deletions
diff --git a/wscript b/wscript
index 7079363..5bebf86 100644
--- a/wscript
+++ b/wscript
@@ -1,29 +1,23 @@
#!/usr/bin/env python
import os
-import sys
import subprocess
-
-from waflib.extras import autowaf as autowaf
+import sys
+import waflib.Logs as Logs
import waflib.Options as Options
+import waflib.extras.autowaf as autowaf
-# Version of this package (even if built as a child)
-LILV_VERSION = '0.14.5'
-LILV_MAJOR_VERSION = '0'
-
-# Library version (UNIX style major, minor, micro)
+# Library and package version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
# minor increment <=> compatible changes (additions)
# micro increment <=> no interface changes
-# Lilv uses the same version number for both library and package
-LILV_LIB_VERSION = LILV_VERSION
-
-# Variables for 'waf dist'
-APPNAME = 'lilv'
-VERSION = LILV_VERSION
+LILV_VERSION = '0.14.5'
+LILV_MAJOR_VERSION = '0'
-# Mandatory variables
-top = '.'
-out = 'build'
+# Mandatory waf variables
+APPNAME = 'lilv' # Package name for waf dist
+VERSION = LILV_VERSION # Package version for waf dist
+top = '.' # Source directory
+out = 'build' # Build directory
def options(opt):
opt.load('compiler_c')
@@ -155,8 +149,7 @@ def configure(conf):
'/usr/local/%s/lv2' % libdirname])
autowaf.define(conf, 'LILV_DEFAULT_LV2_PATH', lv2_path)
- conf.env.LIB_LILV = ['lilv-%s' % LILV_MAJOR_VERSION]
-
+ autowaf.set_lib_env(conf, 'lilv', LILV_VERSION)
conf.write_config_header('lilv_config.h', remove=False)
autowaf.display_msg(conf, 'Default LV2_PATH',
@@ -237,7 +230,7 @@ def build(bld):
includes = ['.', './src'],
name = 'liblilv',
target = 'lilv-%s' % LILV_MAJOR_VERSION,
- vnum = LILV_LIB_VERSION,
+ vnum = LILV_VERSION,
install_path = '${LIBDIR}',
defines = ['LILV_SHARED', 'LILV_INTERNAL'],
cflags = libflags,
@@ -252,7 +245,7 @@ def build(bld):
includes = ['.', './src'],
name = 'liblilv_static',
target = 'lilv-%s' % LILV_MAJOR_VERSION,
- vnum = LILV_LIB_VERSION,
+ vnum = LILV_VERSION,
install_path = '${LIBDIR}',
defines = defines + ['LILV_INTERNAL'])
autowaf.use_lib(bld, obj, 'SORD SRATOM LV2')