[libgd/wip/meson] meson: Don't add global includes



commit 779d6daba5ea4bb20a81d0f04719bb3a1d83d335
Author: Zeeshan Ali <zeenix gmail com>
Date:   Tue Oct 11 17:21:51 2016 +0200

    meson: Don't add global includes
    
    Instead pass custom args to g-ir-scanner to include the root source dir.

 meson.build |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 210ca7c..acd55ff 100644
--- a/meson.build
+++ b/meson.build
@@ -98,9 +98,6 @@ if get_option('libgd-revealer')
                  'libgd/gd-revealer.h' ]
 endif
 
-add_global_arguments('-I' + meson.source_root(), language: 'c')
-
-
 libgd = shared_library('gd', sources, dependencies: [gtk, libm])
 if get_option('libgd-static')
     libgd_lib = static_library('gd', sources, dependencies: [gtk, libm])
@@ -116,7 +113,8 @@ if get_option('libgd-gir') or get_option('libgd-vapi')
                              namespace : 'Gd',
                              symbol_prefix : 'gd',
                              identifier_prefix : 'Gd',
-                             includes : 'Gtk-3.0')
+                             includes : 'Gtk-3.0',
+                             extra_args: ['-I' + meson.source_root()])
 
     if get_option('libgd-vapi')
         vapigen = find_program('vapigen')


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