629a34aa4f
Bundle Options.cs from the Mono source tree, and use it to parse the command-line options for gapi-codegen. This gives us clearer code, descriptions for each option, and a nice "--help" output. This does not change the options syntax, except that -I|--include needs to specified for each file to include. Two Makefiles in sample/ are updated for that change.
36 lines
1 KiB
Makefile
36 lines
1 KiB
Makefile
noinst_SCRIPTS = valtest.exe
|
|
lib_LTLIBRARIES = libvalobj.la
|
|
|
|
assemblies=../../glib/glib-sharp.dll ../../gio/gio-sharp.dll ../../cairo/cairo-sharp.dll ../../pango/pango-sharp.dll ../../atk/atk-sharp.dll ../../gdk/gdk-sharp.dll ../../gtk/gtk-sharp.dll
|
|
references=$(addprefix -r:, $(assemblies))
|
|
|
|
valtest.exe: Valtest.cs Valobj.cs $(assemblies)
|
|
$(CSC) $(CSFLAGS) -out:valtest.exe $(references) $(srcdir)/Valtest.cs Valobj.cs
|
|
|
|
libvalobj_la_SOURCES = \
|
|
valobj.c \
|
|
valobj.h
|
|
|
|
libvalobj_la_LDFLAGS = -module -avoid-version -no-undefined
|
|
|
|
libvalobj_la_LIBADD = $(GTK_LIBS)
|
|
|
|
INCLUDES = $(GTK_CFLAGS)
|
|
|
|
Valobj.cs: valobj-api.xml
|
|
$(RUNTIME) ../../generator/gapi_codegen.exe --generate $(srcdir)/valobj-api.xml --include=../../gtk/gtk-api.xml --include=../../gdk/gdk-api.xml --outdir=. --assembly-name=valobj-sharp
|
|
|
|
api:
|
|
PATH=../../parser:$(PATH) $(RUNTIME) ../../parser/gapi-parser.exe valobj-sources.xml
|
|
|
|
install:
|
|
|
|
CLEANFILES = \
|
|
valtest.exe \
|
|
valtest.exe.mdb \
|
|
Valobj.cs
|
|
|
|
EXTRA_DIST = \
|
|
Valtest.cs \
|
|
valobj-api.xml \
|
|
valobj-sources.xml
|