summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-20 00:25:32 +0000
committerDavid Robillard <d@drobilla.net>2008-10-20 00:25:32 +0000
commit0f31f44094af436984d1b82e86443f1151c3e8bc (patch)
tree704ce141fe56ca6c6a0c177274584f1a21c27fbb /wscript
parenta09cd232854bf608269fbe06814f32d788fb159d (diff)
downloadlilv-0f31f44094af436984d1b82e86443f1151c3e8bc.tar.gz
lilv-0f31f44094af436984d1b82e86443f1151c3e8bc.tar.bz2
lilv-0f31f44094af436984d1b82e86443f1151c3e8bc.zip
Actually use installation location variables for everything.
Add ./waf configure --build which builds a (soon-to-be) relocatable independent bundle with all data/progs/libs in it (OSX bundle directory structure, should be possible to make a 'real' OSX bundle out of this...). Fix include paths to use "" and definitely build against local versions of libraries. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@1689 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/wscript b/wscript
index db891f7..cfa8416 100644
--- a/wscript
+++ b/wscript
@@ -36,7 +36,6 @@ blddir = 'build'
def set_options(opt):
autowaf.set_options(opt)
- opt.tool_options('compiler_cc')
def configure(conf):
autowaf.configure(conf)
@@ -55,7 +54,7 @@ def configure(conf):
def build(bld):
# C Headers
- install_files('PREFIX', 'include/slv2', 'slv2/*.h')
+ install_files('INCLUDEDIR', 'slv2', 'slv2/*.h')
# Pkgconfig file
autowaf.build_pc(bld, 'SLV2', SLV2_VERSION, ['REDLAND'])
@@ -84,6 +83,7 @@ def build(bld):
obj.name = 'libslv2'
obj.target = 'slv2'
obj.vnum = SLV2_LIB_VERSION
+ obj.inst_dir = bld.env()['LIBDIRNAME']
autowaf.use_lib(bld, obj, 'REDLAND LV2CORE')
# Utilities
@@ -97,6 +97,7 @@ def build(bld):
obj.includes = '.'
obj.uselib_local = 'libslv2'
obj.target = i
+ obj.inst_dir = bld.env()['BINDIRNAME']
# JACK Hosts
hosts = '''
@@ -111,6 +112,7 @@ def build(bld):
obj.uselib = 'JACK'
obj.uselib_local = 'libslv2'
obj.target = i
+ obj.inst_dir = bld.env()['BINDIRNAME']
# Documentation
autowaf.build_dox(bld, 'SLV2', SLV2_VERSION, srcdir, blddir)