[gst-debugger] Improve install target



commit 7663554f036313bd5817fb037cc5b9ffcad8589d
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Sun Oct 1 20:05:34 2017 +0100

    Improve install target

 meson.build                  |    3 +++
 src/common/meson.build       |    9 +++++++++
 src/debugserver/meson.build  |    3 ++-
 src/gst-debugger/meson.build |    5 +++--
 4 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 14211bf..7f2da0c 100644
--- a/meson.build
+++ b/meson.build
@@ -8,6 +8,9 @@ project('gst-debugger', 'c', 'cpp',
   ],
 )
 
+apiversion = '0.90'
+gst_apiversion = '1.0'
+
 # Modules
 gnome = import('gnome')
 
diff --git a/src/common/meson.build b/src/common/meson.build
index 75068a5..5cf4d0a 100644
--- a/src/common/meson.build
+++ b/src/common/meson.build
@@ -17,6 +17,13 @@ gstdebugger_common_sources = [
     'protocol-utils.c',
     'serializer.c']
 
+gstdebugger_common_headers = [
+    'common.h',
+    'gstdebugger.pb-c.h',
+    'gst-utils.h',
+    'protocol-utils.h',
+    'serializer.h']
+
 gstdebugger_common_deps = [
     gio_dep,
     gst_dep,
@@ -30,6 +37,8 @@ gstdebugger_common_lib = static_library(
     dependencies : gstdebugger_common_deps,
     install : true)
 
+install_headers(gstdebugger_common_headers, subdir : 'gstreamer-1.0/gst/debugger')
+
 gstdebugger_common_dep = declare_dependency(
     link_with : gstdebugger_common_lib,
     include_directories : include_directories('..'),
diff --git a/src/debugserver/meson.build b/src/debugserver/meson.build
index d7b4e67..21c0ca3 100644
--- a/src/debugserver/meson.build
+++ b/src/debugserver/meson.build
@@ -13,4 +13,5 @@ gstdebugger = shared_library(
     'gstdebugserver',
     gstdebugger_sources,
     dependencies : gstdebugger_common_dep,
-    install : true)
+    install : true,
+    install_dir : '@0@/gstreamer-@1@'.format(get_option('libdir'), gst_apiversion))
diff --git a/src/gst-debugger/meson.build b/src/gst-debugger/meson.build
index 45293c0..46662d2 100644
--- a/src/gst-debugger/meson.build
+++ b/src/gst-debugger/meson.build
@@ -93,12 +93,13 @@ gst_debugger_sources = [
     'addins/addins-interface.h',
     'addins/addins-notifier.h']
 
-
+exe_name = '@0@-@1@'.format('gst-debugger', apiversion)
 executable(
-    'gst-debugger',
+    exe_name,
     gst_debugger_sources,
     protoc_gen_src,
     include_directories : config_inc_dir,
+    install : true,
     dependencies : [
         gtkmm_dep,
         gstmm_dep,


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