[planner: 27/40] build: Add missing libplanner-1.pc generation




commit c568952e6a9fee145fbbb094bb98dc531d05e455
Author: Mart Raudsepp <leio gentoo org>
Date:   Wed Mar 4 16:47:30 2020 +0200

    build: Add missing libplanner-1.pc generation
    
    Comparing with autotools highlighted that autotools still has libgsf-1
    in the Requires list, despite the usage being dropped back in 2004.
    Otherwise made to match what comes from the autotools build.

 libplanner/meson.build | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/libplanner/meson.build b/libplanner/meson.build
index 635d10ad..d7608631 100644
--- a/libplanner/meson.build
+++ b/libplanner/meson.build
@@ -1,3 +1,5 @@
+pkg = import('pkgconfig')
+
 libplanner_srcs = [
   'mrp-application.c',
   'mrp-assignment.c',
@@ -33,6 +35,15 @@ libplanner_library = shared_library('planner-1',
   version: '0.0.0',
 )
 
+pkg.generate(libplanner_library,
+  libraries: libplanner_deps,
+  name: 'libplanner',
+  description: 'Support library for Planner',
+  filebase: 'libplanner-1',
+  subdirs: 'planner-1.0',
+  variables: 'exec_prefix=${prefix}',
+)
+
 libplanner_dep = declare_dependency(
   link_with: libplanner_library,
   include_directories: [libplanner_inc],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]