mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
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:
parent
da8f1c6ac3
commit
180e59539c
6
gio/.gitignore
vendored
6
gio/.gitignore
vendored
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
#include "gdbus-object-manager-example/gdbus-example-objectmanager-generated.h"
|
||||
#include "gdbus-object-manager-example/objectmanager-gen.h"
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
#include "gdbus-object-manager-example/gdbus-example-objectmanager-generated.h"
|
||||
#include "gdbus-object-manager-example/objectmanager-gen.h"
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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',
|
||||
|
@ -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;
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
#include "gdbus-object-manager-example/gdbus-example-objectmanager-generated.h"
|
||||
#include "gdbus-object-manager-example/objectmanager-gen.h"
|
||||
|
||||
/* ---------------------------------------------------------------------------------------------------- */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user