a74534e835
When dealing with several namespaces there might be classes with the same name (especially Global which is autogenerated in g-i based bindings). On generation the file would be overriden by the last occurence in the xml. To encounter this every namespace has it's own directory now. This also improves structure a lot when dealing with big libraries. Also do the necessary adaption for the build and the csproj files.
45 lines
1.2 KiB
Makefile
45 lines
1.2 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))
|
|
|
|
if PLATFORM_WIN32
|
|
VALOBJ=Gtksharp\\Valobj.cs
|
|
else
|
|
VALOBJ=Gtksharp/Valobj.cs
|
|
endif
|
|
|
|
valtest.exe: Valtest.cs Valobj.cs $(assemblies)
|
|
$(CSC) $(CSFLAGS) -out:valtest.exe $(references) $(srcdir)/Valtest.cs $(VALOBJ)
|
|
|
|
libvalobj_la_SOURCES = \
|
|
valobj.c \
|
|
valobj.h
|
|
|
|
libvalobj_la_LDFLAGS = -module -avoid-version -no-undefined
|
|
|
|
libvalobj_la_LIBADD = $(GTK_LIBS)
|
|
|
|
AM_CPPFLAGS = $(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 \
|
|
--schema=$(top_srcdir)/gapi.xsd
|
|
|
|
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
|