GtkSharp/sample/opaquetest/Makefile.am
Bertrand Lorentz 7180011c22 Add and use gapi.xsd to validate GAPI XML files
The structure of a GAPI XML file is now defined by the XML schema in
gapi.xsd.

This XSD is now used by the generator to do a first sanity check on an
XML file before trying to generate code from it. Each generatable object
still does its own validation.

The XSD can also be seen as a documentation of the GAPI XML format, and
can be used by third-parties that produce GAPI XML to validate their
output.
2013-02-23 14:32:04 +01:00

40 lines
1.2 KiB
Makefile

noinst_SCRIPTS = opaquetest.exe
lib_LTLIBRARIES = libopaque.la
assemblies=../../glib/glib-sharp.dll ../../gio/gio-sharp.dll ../../pango/pango-sharp.dll ../../atk/atk-sharp.dll ../../gdk/gdk-sharp.dll ../../gtk/gtk-sharp.dll
references=$(addprefix -r:, $(assemblies))
opaquetest.exe: OpaqueTest.cs generated/*.cs $(assemblies)
$(CSC) $(CSFLAGS) -out:opaquetest.exe $(references) $(srcdir)/OpaqueTest.cs $(GENERATED_SOURCES)
libopaque_la_SOURCES = \
opaques.c \
opaques.h
libopaque_la_LDFLAGS = -module -avoid-version -no-undefined
libopaque_la_LIBADD = $(GTK_LIBS)
INCLUDES = $(GTK_CFLAGS)
generated/*.cs: opaque-api.xml
$(RUNTIME) ../../generator/gapi_codegen.exe --generate $(srcdir)/opaque-api.xml \
--include=../../gtk/gtk-api.xml --include=../../gdk/gdk-api.xml \
--outdir=generated --assembly-name=opaque-sharp \
--schema=$(top_srcdir)/gapi.xsd
api:
PATH=../../parser:$(PATH) $(RUNTIME) ../../parser/gapi-parser.exe opaque-sources.xml
$(RUNTIME) ../../parser/gapi-fixup.exe --metadata=Opaque.metadata --api=opaque-api.xml
install:
CLEANFILES = \
opaquetest.exe \
opaquetest.exe.mdb \
generated/*.cs
EXTRA_DIST = \
OpaqueTest.cs \
opaque-api.xml \
opaque-sources.xml