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 | c75c991b97a0446a8a0b8f069389ad11c2460c24 (patch) | |
tree | 832dabea7b749906e76ab4b408b04f7f5178c456 | |
parent | f3d138066b69c8dadaefedd89fa92c60114dbdf4 (diff) | |
download | lilv-c75c991b97a0446a8a0b8f069389ad11c2460c24.tar.gz lilv-c75c991b97a0446a8a0b8f069389ad11c2460c24.tar.bz2 lilv-c75c991b97a0446a8a0b8f069389ad11c2460c24.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/slv2@1557 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | wscript | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -1,9 +1,13 @@ #!/usr/bin/env python import Params +import autowaf + +# Version of this package (even if built as a child) +SLV2_VERSION = '0.6.1' # Variables for 'waf dist' -VERSION = '0.6.1' APPNAME = 'slv2' +VERSION = SLV2_VERSION # Mandatory variables srcdir = '.' @@ -13,6 +17,7 @@ def set_options(opt): opt.tool_options('compiler_cc') def configure(conf): + conf.check_tool('misc') # subst builder if not conf.env['CC']: conf.check_tool('compiler_cc') if not conf.env['HAVE_LV2CORE']: @@ -26,12 +31,15 @@ def configure(conf): conf.write_config_header('waf-config.h') conf.env.append_value('CCFLAGS', '-DCONFIG_H_PATH=\\\"waf-config.h\\\"') conf.env.append_value('CCFLAGS', '-DPACKAGE_VERSION=\\\"' + VERSION + '\\\"') - + def build(bld): - # Headers (slv2) + # C Headers install_files('PREFIX', 'include/slv2', 'slv2/*.h') + + # Pkgconfig file + autowaf.build_pc(bld, 'SLV2', SLV2_VERSION, ['REDLAND']) - # Library (src) + # Library obj = bld.create_obj('cc', 'shlib') obj.source = ''' src/plugin.c @@ -57,7 +65,7 @@ def build(bld): obj.uselib = 'REDLAND LV2CORE' obj.vnum = '1.0.0' - # Utilities (util) + # Utilities utils = ''' utils/lv2_inspect utils/lv2_list @@ -70,7 +78,7 @@ def build(bld): obj.target = i obj.inst_var = 0 - # JACK Hosts (hosts) + # JACK Hosts hosts = ''' hosts/lv2_jack_host hosts/lv2_simple_jack_host |