build: work around meson issue with too long filenames on Windows. Fixes #1556

When using glib as a meson subproject on Windows the build currently fails
due to too long paths during the build process. See
https://github.com/mesonbuild/meson/issues/4226 for the upstream bug.

To work around the issue shorten the filenames of the generated gdbus files.
This commit is contained in:
Christoph Reiter 2018-10-04 09:09:51 +02:00
parent da8f1c6ac3
commit 180e59539c
7 changed files with 23 additions and 23 deletions

6
gio/.gitignore vendored
View File

@ -1,9 +1,9 @@
gapplication
gconstructor_as_data.h
gdbus
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Animal.xml
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml
gdbus-example-objectmanager-generated.[ch]
objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Animal.xml
objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Cat.xml
objectmanager-gen.[ch]
gdbus-daemon-generated.[ch]
gio
gio_probes.h

View File

@ -1,5 +1,5 @@
#include "gdbus-object-manager-example/gdbus-example-objectmanager-generated.h"
#include "gdbus-object-manager-example/objectmanager-gen.h"
/* ---------------------------------------------------------------------------------------------------- */

View File

@ -1,5 +1,5 @@
#include "gdbus-object-manager-example/gdbus-example-objectmanager-generated.h"
#include "gdbus-object-manager-example/objectmanager-gen.h"
/* ---------------------------------------------------------------------------------------------------- */

View File

@ -5,10 +5,10 @@ AM_CPPFLAGS = -g $(gio_INCLUDES) $(GLIB_DEBUG_FLAGS) -I$(top_builddir)/gio -I$(t
# ------------------------------------------------------------------------
GDBUS_GENERATED = \
gdbus-example-objectmanager-generated.h \
gdbus-example-objectmanager-generated.c \
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Animal.xml \
gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml \
objectmanager-gen.h \
objectmanager-gen.c \
objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Animal.xml \
objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Cat.xml \
$(NULL)
$(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
@ -18,8 +18,8 @@ $(GDBUS_GENERATED) : gdbus-example-objectmanager.xml Makefile $(top_builddir)/gi
--interface-prefix org.gtk.GDBus.Example.ObjectManager. \
--c-namespace Example \
--c-generate-object-manager \
--generate-c-code gdbus-example-objectmanager-generated \
--generate-docbook gdbus-example-objectmanager-generated \
--generate-c-code objectmanager-gen \
--generate-docbook objectmanager-gen \
$< \
$(NULL)
@ -32,8 +32,8 @@ noinst_LTLIBRARIES += libgdbus-example-objectmanager.la
endif
nodist_libgdbus_example_objectmanager_la_SOURCES = \
gdbus-example-objectmanager-generated.h \
gdbus-example-objectmanager-generated.c
objectmanager-gen.h \
objectmanager-gen.c
libgdbus_example_objectmanager_la_LIBADD = \
$(top_builddir)/glib/libglib-2.0.la \
@ -46,4 +46,4 @@ EXTRA_DIST += gdbus-example-objectmanager.xml
CLEANFILES += $(GDBUS_GENERATED)
check-TESTS:
check-TESTS:

View File

@ -1,17 +1,17 @@
# FIXME: set UNINSTALLED_GLIB_{SRC|BUILD}DIR=top_{src|build}dir ?
gdbus_example_objectmanager_generated = custom_target('gdbus-example-objectmanager-generated',
gdbus_example_objectmanager_generated = custom_target('objectmanager-gen',
input : ['gdbus-example-objectmanager.xml'],
output : ['gdbus-example-objectmanager-generated.h',
'gdbus-example-objectmanager-generated.c',
'gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Animal.xml',
'gdbus-example-objectmanager-generated-org.gtk.GDBus.Example.ObjectManager.Cat.xml'],
output : ['objectmanager-gen.h',
'objectmanager-gen.c',
'objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Animal.xml',
'objectmanager-gen-org.gtk.GDBus.Example.ObjectManager.Cat.xml'],
command : [python, gdbus_codegen,
'--interface-prefix', 'org.gtk.GDBus.Example.ObjectManager.',
'--c-namespace', 'Example',
'--c-generate-object-manager',
'--output-directory', '@OUTDIR@',
'--generate-c-code', 'gdbus-example-objectmanager-generated',
'--generate-docbook', 'gdbus-example-objectmanager-generated',
'--generate-c-code', 'objectmanager-gen',
'--generate-docbook', 'objectmanager-gen',
'@INPUT@'])
libgdbus_example_objectmanager = library('gdbus-example-objectmanager',

View File

@ -45,7 +45,7 @@
#include "gdbus-tests.h"
#include "gdbus-object-manager-example/gdbus-example-objectmanager-generated.h"
#include "gdbus-object-manager-example/objectmanager-gen.h"
#ifdef G_OS_UNIX
static gboolean is_unix = TRUE;

View File

@ -1,5 +1,5 @@
#include "gdbus-object-manager-example/gdbus-example-objectmanager-generated.h"
#include "gdbus-object-manager-example/objectmanager-gen.h"
/* ---------------------------------------------------------------------------------------------------- */