From c75c991b97a0446a8a0b8f069389ad11c2460c24 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 30 Sep 2008 21:24:15 +0000 Subject: 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 --- wscript | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/wscript b/wscript index 52149c4..baca867 100644 --- a/wscript +++ b/wscript @@ -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 -- cgit v1.2.1