diff options
author | David Robillard <d@drobilla.net> | 2008-09-30 21:24:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-09-30 21:24:15 +0000 |
commit | f007a3c5d7dbcbb29f526cd285d856b6c650e5ec (patch) | |
tree | 0365ae93321703a16bb44d85fd296529553a578d | |
parent | db8f11c62a3c8a887648c1d7874ebb3906f8b94f (diff) | |
download | raul-f007a3c5d7dbcbb29f526cd285d856b6c650e5ec.tar.gz raul-f007a3c5d7dbcbb29f526cd285d856b6c650e5ec.tar.bz2 raul-f007a3c5d7dbcbb29f526cd285d856b6c650e5ec.zip |
Install pkg-config files for libraries.
Ingen now successfully builds against Waf built/installed libraries.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1557 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | wscript | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -1,9 +1,13 @@ #!/usr/bin/env python import Params +import autowaf + +# Version of this package (even if built as a child) +RAUL_VERSION = '0.5.1' # Variables for 'waf dist' -VERSION = '0.5.1' APPNAME = 'raul' +VERSION = RAUL_VERSION # Mandatory variables srcdir = '.' @@ -23,12 +27,14 @@ def configure(conf): conf.check_pkg('jack', destvar='JACK', vnum='0.107.0', mandatory=True) def build(bld): - bld.add_subdirs('tests') - - # Headers (raul) + # Headers install_files('PREFIX', 'include/raul', 'raul/*.hpp') + install_files('PREFIX', 'include/raul', 'raul/*.h') - # Library (src) + # Pkgconfig file + autowaf.build_pc(bld, 'RAUL', RAUL_VERSION, 'GLIBMM GTHREAD JACK') + + # Library obj = bld.create_obj('cpp', 'shlib') obj.source = ''' src/Maid.cpp @@ -43,3 +49,6 @@ def build(bld): obj.target = 'raul' obj.uselib = 'GLIBMM GTHREAD' obj.vnum = '1.0.0' + + # Unit tests + bld.add_subdirs('tests') |