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
commit7617b3a744a11aeb4840339ca43e1cfb2d3358b7 (patch)
tree17772f1be58bd5cc455c98679af20daae0df911b /wscript
parentbe7cc35781e348f443abbd3910519707aea11904 (diff)
downloadraul-7617b3a744a11aeb4840339ca43e1cfb2d3358b7.tar.gz
raul-7617b3a744a11aeb4840339ca43e1cfb2d3358b7.tar.bz2
raul-7617b3a744a11aeb4840339ca43e1cfb2d3358b7.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/raul@1689 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 4 insertions, 5 deletions
diff --git a/wscript b/wscript
index cb11573..1eafdc4 100644
--- a/wscript
+++ b/wscript
@@ -25,8 +25,6 @@ blddir = 'build'
def set_options(opt):
autowaf.set_options(opt)
- opt.tool_options('compiler_cc')
- opt.tool_options('compiler_cxx')
def configure(conf):
autowaf.configure(conf)
@@ -37,8 +35,8 @@ def configure(conf):
def build(bld):
# Headers
- install_files('PREFIX', 'include/raul', 'raul/*.hpp')
- install_files('PREFIX', 'include/raul', 'raul/*.h')
+ install_files('INCLUDEDIR', 'raul', 'raul/*.hpp')
+ install_files('INCLUDEDIR', 'raul', 'raul/*.h')
# Pkgconfig file
autowaf.build_pc(bld, 'RAUL', RAUL_VERSION, 'GLIBMM GTHREAD')
@@ -57,6 +55,7 @@ def build(bld):
obj.name = 'libraul'
obj.target = 'raul'
obj.uselib = 'GLIBMM GTHREAD'
+ obj.inst_dir = bld.env()['LIBDIRNAME']
obj.vnum = RAUL_LIB_VERSION
# Unit tests
@@ -64,7 +63,7 @@ def build(bld):
# Documentation
autowaf.build_dox(bld, 'RAUL', RAUL_VERSION, srcdir, blddir)
- install_files('PREFIX', 'share/doc/raul', blddir + '/default/doc/html/*')
+ install_files('HTMLDIR', '', blddir + '/default/doc/html/*')
def shutdown():
autowaf.shutdown()