mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 13:55:31 +00:00
7db633218f
* configure.in.in: add new dir and autofu for it. * Makefile.am: add new dir * gapi/*: a small extension method library to add generation-related api to GType in 2.0. Access it with -pkg:gapi-2.0-compat to pick up the needed refs. * generator/GObjectVM.cs: generate new GType getter methods. * generator/ObjectGen.cs: generate new GType getter methods. * glib/GType.cs: change a few props to methods to make them extension method friendly for 2.0 compat. * glib/Object.cs: use new GType getter methods. * glib/Value.cs: use new GType getter methods. * gtk/Widget.custom: use new GetClassPtr method. svn path=/trunk/gtk-sharp/; revision=139609
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
if ENABLE_GLIBSHARP2_COMPAT
|
|
TARGET = $(ASSEMBLY)
|
|
else
|
|
TARGET =
|
|
endif
|
|
|
|
ASSEMBLY = $(ASSEMBLY_NAME).dll
|
|
ASSEMBLY_NAME = gapi-2.0-compat
|
|
noinst_DATA = $(TARGET)
|
|
|
|
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk
|
|
|
|
references = $(GLIBSHARP2_LIBS)
|
|
|
|
sources = \
|
|
AssemblyInfo.cs \
|
|
GTypeExtensions.cs
|
|
|
|
build_sources = $(addprefix $(srcdir)/, $(sources))
|
|
dist_sources = $(sources)
|
|
|
|
EXTRA_DIST = \
|
|
$(dist_sources) \
|
|
$(ASSEMBLY).config
|
|
|
|
gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
|
|
cp $(top_srcdir)/gtk-sharp.snk .
|
|
|
|
$(ASSEMBLY): $(build_sources) gtk-sharp.snk
|
|
@rm -f $(ASSEMBLY).mdb
|
|
$(CSC) $(CSFLAGS) -unsafe -nowarn:0169,0612,0618 -out:$(ASSEMBLY) -target:library $(references) $(build_sources)
|
|
|
|
install-data-local:
|
|
@if test -n '$(TARGET)'; then \
|
|
echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \
|
|
$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \
|
|
fi
|
|
|
|
uninstall-local:
|
|
@if test -n '$(TARGET)'; then \
|
|
echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
|
|
fi
|
|
|