Do not define GIO_COMPILATION for executables

It must only be defined when building libgio. This requires some
workaround to allow include of some gio private headers.

When GIO_COMPILATION is not defined we cannot include individual gio
headers. We workaround that by defining __GIO_GIO_H_INSIDE__ in some
places. Also gdbusprivate.h is not an installed header, so it's fine to
include it directly.
This commit is contained in:
Xavier Claessens
2022-10-05 17:45:07 -04:00
parent 90fcbc7dfc
commit 8733d172a3
8 changed files with 15 additions and 13 deletions

View File

@@ -12,4 +12,4 @@ giowin32_lib = static_library('giowin32',
include_directories : [configinc, glibinc, gioinc, gmoduleinc],
dependencies : [libintl, gioenumtypes_dep],
pic : true,
c_args : gio_c_args)
c_args : [gio_c_args, gio_c_args_internal])