diff options
author | Danny 'Guru' Forghieri <daniele.forghieri@gmail.com> | 2017-10-25 23:10:57 +0200 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-03-10 19:05:19 +0530 |
commit | 083e6affcf2cb38ca801ee796c9bfaf44dfdeb4d (patch) | |
tree | bcc4143370f1ecea2fc5845c2f092f7391dcf6ba /meson.build | |
parent | 142eeea7821a2e43ccfd80118cc31093aa59258a (diff) | |
download | gobject-introspection-083e6affcf2cb38ca801ee796c9bfaf44dfdeb4d.tar.gz |
Declaration to export functions in girepository.dll/.lib, flag for skipping the build of the gir files.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 378ffcf7..ba888e36 100644 --- a/meson.build +++ b/meson.build @@ -40,21 +40,30 @@ if cc.has_argument('-fvisibility=hidden') '-D_GI_EXTERN=__attribute__((visibility("default"))) extern', '-fvisibility=hidden', ] +elif cc.get_id() == 'msvc' + gi_hidden_visibility_cflags = [ + '-D_GI_EXTERN=__declspec (dllexport) extern', + ] endif -gobject_dep = dependency('gobject-2.0', version: '>= 2.55.0') +gobject_dep = dependency('gobject-2.0', version: '>= 2.52.0') gio_dep = dependency('gio-2.0') giounix_dep = dependency('gio-unix-2.0', required: false) gmodule_dep = dependency('gmodule-2.0') libffi_dep = dependency('libffi') +gir_build = get_option('gir_build') subdir('girepository') subdir('tools') subdir('giscanner') -subdir('gir') +if gir_build + ### To do in a second time + subdir('gir') +endif subdir('examples') subdir('docs') -subdir('tests') +### Missing meson.build file +### subdir('tests') install_data('Makefile.introspection', install_dir: join_paths(get_option('datadir'), 'gobject-introspection-1.0')) install_data('m4/introspection.m4', install_dir: join_paths(get_option('datadir'), 'aclocal')) |