mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Merge branch 'cross' into 'master'
Autotools: Always run glib-genmarshal, even if cross-compiling Closes #1546 See merge request GNOME/glib!362
This commit is contained in:
@@ -51,24 +51,20 @@ if ENABLE_TIMELOOP
|
|||||||
installed_test_programs += timeloop-closure
|
installed_test_programs += timeloop-closure
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# The marshal test requires running a binary, which means we cannot
|
|
||||||
# build it when cross-compiling
|
|
||||||
if !CROSS_COMPILING
|
|
||||||
glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
|
glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
|
||||||
|
|
||||||
testmarshal.h: stamp-testmarshal.h
|
testmarshal.h: stamp-testmarshal.h
|
||||||
@true
|
@true
|
||||||
stamp-testmarshal.h: testmarshal.list $(glib_genmarshal)
|
stamp-testmarshal.h: testmarshal.list $(glib_genmarshal)
|
||||||
$(AM_V_GEN) $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
|
$(AM_V_GEN) $(PYTHON) $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
|
||||||
&& (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
|
&& (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
|
||||||
&& rm -f xgen-gmh xgen-gmh~ \
|
&& rm -f xgen-gmh xgen-gmh~ \
|
||||||
&& echo timestamp > $@
|
&& echo timestamp > $@
|
||||||
testmarshal.c: testmarshal.h testmarshal.list $(glib_genmarshal)
|
testmarshal.c: testmarshal.h testmarshal.list $(glib_genmarshal)
|
||||||
$(AM_V_GEN) (echo "#include \"testmarshal.h\""; $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body) >> xgen-gmc \
|
$(AM_V_GEN) (echo "#include \"testmarshal.h\""; $(PYTHON) $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body) >> xgen-gmc \
|
||||||
&& cp xgen-gmc testmarshal.c \
|
&& cp xgen-gmc testmarshal.c \
|
||||||
&& rm -f xgen-gmc xgen-gmc~
|
&& rm -f xgen-gmc xgen-gmc~
|
||||||
|
|
||||||
BUILT_SOURCES += testmarshal.h testmarshal.c
|
BUILT_SOURCES += testmarshal.h testmarshal.c
|
||||||
CLEANFILES += stamp-testmarshal.h testmarshal.h testmarshal.c
|
CLEANFILES += stamp-testmarshal.h testmarshal.h testmarshal.c
|
||||||
EXTRA_DIST += testcommon.h testmarshal.list
|
EXTRA_DIST += testcommon.h testmarshal.list
|
||||||
endif # !CROSS_COMPILING
|
|
Reference in New Issue
Block a user