[libgtkmusic] C Header file location fixed. Typelib reference to SO fixed. * use subdirectory gtkmusic-@version@



commit cdd09c1a808dce73306ace3bc735b16c73fc6d7c
Author: Leandro Mattioli <leandro mattioli gmail com>
Date:   Sat Apr 7 01:08:44 2018 -0300

    C Header file location fixed. Typelib reference to SO fixed.
      * use subdirectory gtkmusic-@version@, as specified on pkgconfig file
      * typelib references SO on installed lib dir, instead of SO on build dir

 meson.build |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index b932023..e384ca4 100644
--- a/meson.build
+++ b/meson.build
@@ -77,14 +77,14 @@ sources = [
     'src/MusicalNotes.vala', 
     'src/PianoWidget.vala'
 ]
+header_dir = 'include/gtkmusic-'+version
 libgtkmusic = library('gtkmusic', sources,
                         vala_gir: gir_file,
                         vala_vapi: vapi_file,
                         dependencies: deps,
                         version: version,
-                        soversion: version_major,
                         install: true,
-                        install_dir: [true, true, true, true]
+                        install_dir: [true, header_dir, true, true]
 )
 
 
@@ -97,7 +97,8 @@ if get_option('typelib')
         enable_typelib = true
         custom_target('gtkmusic typelib', 
             command: [
-                g_ir_compiler, '--shared-library', libgtkmusic.full_path(),
+                g_ir_compiler, '--shared-library', 
+                join_paths(get_option('libdir'), 'libgtkmusic.so'), # small hack
                 '--output', '@OUTPUT@', join_paths(build_dir, gir_file)],
             output: typelib_file,
             depends: libgtkmusic,
@@ -135,7 +136,8 @@ if get_option('glade') # and libgladeui found
                 error('Invalid XML file found!')
             endif
             install_data(xml_path, install_dir: glade_catalog_dir)
-            install_subdir(pixmaps_path, install_dir: glade_pixmap_dir)
+            install_subdir(pixmaps_path, install_dir: glade_pixmap_dir,
+                           strip_directory: true)
             
         else
             warning('XMLLint not found. Skipping Glade catalog validation.')


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