From 06ae97e32c7533999a009a6355379677bd2c2003 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Apr 2019 22:24:50 +0200 Subject: Fix pkg-config file for versioned installation --- wscript | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 3a11d25..a5e37a4 100644 --- a/wscript +++ b/wscript @@ -12,7 +12,7 @@ from waflib.extras import autowaf # minor increment <=> compatible changes (additions) # micro increment <=> no interface changes RAUL_VERSION = '1.0.0' -RAUL_MAJOR_VERSION = '0' +RAUL_MAJOR_VERSION = '1' # Mandatory waf variables APPNAME = 'raul' # Package name for waf dist @@ -63,11 +63,11 @@ def build(bld): bld.install_files(includedir, bld.path.ant_glob('raul/*.h')) # Pkgconfig file - dict = {'RAUL_PC_LIBS': ' '} - if bld.env.DEST_OS == 'darwin': - dict = {'RAUL_PC_LIBS': '-framework CoreServices'} - autowaf.build_pc(bld, 'RAUL', RAUL_VERSION, '', - 'GLIB GTHREAD', subst_dict=dict) + pc_libs = '-framework CoreServices' if bld.env.DEST_OS == 'darwin' else '' + pc_dict = {'RAUL_MAJOR_VERSION': RAUL_MAJOR_VERSION, + 'RAUL_PC_LIBS': pc_libs} + autowaf.build_pc(bld, 'RAUL', RAUL_VERSION, RAUL_MAJOR_VERSION, [], + subst_dict=pc_dict) framework = '' if bld.env.DEST_OS == 'darwin': -- cgit v1.2.1