gio tests: add codegen to BUILT_SOURCES
authorRyan Lortie <desrt@desrt.ca>
Fri, 7 Mar 2014 12:41:50 +0000 (07:41 -0500)
committerRyan Lortie <desrt@desrt.ca>
Fri, 7 Mar 2014 12:47:14 +0000 (07:47 -0500)
We need to have these in BUILT_SOURCES so that 'make' knows to generate them
before attempting to compile other .c files in the same directory (since some
of these files include the header).

Should fix up remaining issues about partial versions of this file being
included under parallel builds.

https://bugzilla.gnome.org/show_bug.cgi?id=725891

gio/tests/Makefile.am

index 270faf6..2c54e59 100644 (file)
@@ -435,6 +435,7 @@ gdbus_threading_SOURCES                  = $(gdbus_sessionbus_sources) gdbus-thr
 gmenumodel_SOURCES                       = $(gdbus_sessionbus_sources) gmenumodel.c
 gnotification_SOURCES                    = $(gdbus_sessionbus_sources) gnotification.c gnotification-server.h gnotification-server.c
 
+BUILT_SOURCES += gdbus-test-codegen-generated.c gdbus-test-codegen-generated.h
 gdbus-test-codegen.o: gdbus-test-codegen-generated.h
 gdbus-test-codegen-generated.h: test-codegen.xml Makefile $(top_builddir)/gio/gdbus-2.0/codegen/gdbus-codegen
        $(AM_V_GEN) UNINSTALLED_GLIB_SRCDIR=$(top_srcdir) \