[gst-debugger] install generated headers



commit cee7468519fa0e546f6dac1d3632ed14a5b11d40
Author: Marcin Kolny <marcin kolny gmail com>
Date:   Sun Oct 1 21:37:18 2017 +0100

    install generated headers

 src/common/meson.build |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/common/meson.build b/src/common/meson.build
index 0016716..bedb8b2 100644
--- a/src/common/meson.build
+++ b/src/common/meson.build
@@ -1,5 +1,10 @@
 install_headers_dir = join_paths('gstdebugger-@0@'.format(apiversion), 'gst', 'debugger')
 
+protoc_c_gen = generator(protoc_c,
+    output    : ['@BASENAME@.pb-c.c', '@BASENAME@.pb-c.h'],
+    arguments : ['--proto_path=@CURRENT_SOURCE_DIR@', '--c_out=@BUILD_DIR@', '@INPUT@'])
+protoc_c_gen_src = protoc_c_gen.process('gstdebugger.proto')
+
 generate_c_proto = custom_target('generate_proto',
    output : ['gstdebugger.pb-c.h'],
     input : 'gstdebugger.proto',
@@ -7,14 +12,14 @@ generate_c_proto = custom_target('generate_proto',
         protoc_c,
         '--proto_path=' + meson.current_source_dir(),
         '--c_out=' + meson.current_build_dir(),
+        '--c_out=' + meson.current_source_dir(),
         join_paths(meson.current_source_dir(), 'gstdebugger.proto')],
     install : true,
-    install_dir : join_paths(get_option('prefix'), get_option('includedir'), install_headers_dir))
+    install_dir : [join_paths(get_option('prefix'), get_option('includedir'), install_headers_dir)])
 
 gstdebugger_common_sources = [
     'gst-utils.c',
     'protocol-utils.c',
-    'gstdebugger.pb-c.c',
     'serializer.c']
 
 gstdebugger_common_headers = [
@@ -32,6 +37,7 @@ gstdebugger_common_lib = shared_library(
     'gstdebugger-common-@0@'.format(apiversion),
     gstdebugger_common_sources,
     generate_c_proto,
+    protoc_c_gen_src,
     dependencies : gstdebugger_common_deps,
     install : true)
 


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