[gxml] meson: make GI optional if no g_ir_compiler found



commit 5f043e29aa33e289a01267f083e03e47a0709bcc
Author: Daniel Espinosa <esodan gmail com>
Date:   Fri Mar 2 12:47:06 2018 -0600

    meson: make GI optional if no g_ir_compiler found
    
    Remove GI from CI

 gxml/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gxml/meson.build b/gxml/meson.build
index 14c709f..5ad6456 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -164,15 +164,16 @@ lib = library(VERSIONED_PROJECT_NAME,
        ])
 
 g_ir_compiler = find_program('g-ir-compiler')
+if g_ir_compiler.found()
 custom_target('typelib',
        command: [
                g_ir_compiler,
                '--shared-library', 'lib'+PROJECT_NAME+'-@0@.so'.format (API_VERSION),
                '--output', '@OUTPUT@',
-               '--includedir', join_paths(get_option('libdir'), 'girepository-1.0'),
                join_paths(meson.current_build_dir(), GIR_NAME)
        ],
        output: TYPELIB_NAME,
        depends: lib,
        install: true,
        install_dir: join_paths(get_option('libdir'), 'girepository-1.0'))
+endif
\ No newline at end of file


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