2005-01-12 00:11:08 +00:00
|
|
|
if ENABLE_DOTNET
|
|
|
|
TARGET = $(ASSEMBLY) $(ASSEMBLY).config
|
|
|
|
pkgconfigdir=$(libdir)/pkgconfig
|
2009-08-30 20:06:33 +00:00
|
|
|
pkgconfig_DATA=gtk-dotnet-3.0.pc
|
2005-01-12 00:11:08 +00:00
|
|
|
else
|
|
|
|
TARGET =
|
|
|
|
endif
|
|
|
|
|
2011-01-08 04:15:04 +00:00
|
|
|
SNK = $(top_srcdir)/gtk-sharp.snk
|
2005-01-12 00:11:08 +00:00
|
|
|
ASSEMBLY = $(ASSEMBLY_NAME).dll
|
|
|
|
ASSEMBLY_NAME = gtk-dotnet
|
2005-09-22 04:26:52 +00:00
|
|
|
noinst_DATA = $(ASSEMBLY) $(POLICY_ASSEMBLIES)
|
2011-02-09 16:09:35 +00:00
|
|
|
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(POLICY_ASSEMBLIES) $(POLICY_CONFIGS)
|
2005-01-12 00:11:08 +00:00
|
|
|
DISTCLEANFILES = $(ASSEMBLY).config
|
|
|
|
|
2005-09-22 04:26:52 +00:00
|
|
|
POLICY_ASSEMBLIES = $(addsuffix .$(ASSEMBLY), $(addprefix policy., $(POLICY_VERSIONS)))
|
|
|
|
POLICY_CONFIGS = $(addsuffix .config, $(addprefix policy., $(POLICY_VERSIONS)))
|
|
|
|
|
2011-04-26 21:01:26 +00:00
|
|
|
references = $(top_builddir)/glib/glib-sharp.dll $(top_builddir)/gio/gio-sharp.dll $(top_builddir)/cairo/cairo-sharp.dll $(top_builddir)/pango/pango-sharp.dll $(top_builddir)/gdk/gdk-sharp.dll $(top_builddir)/gtk/gtk-sharp.dll
|
2005-08-25 20:59:21 +00:00
|
|
|
build_references = $(addprefix -r:, $(references)) -r:System.Drawing.dll
|
2005-01-12 00:11:08 +00:00
|
|
|
|
|
|
|
sources = \
|
2011-04-26 21:01:26 +00:00
|
|
|
Graphics.cs \
|
|
|
|
StyleContextExtensions.cs
|
2005-01-12 00:11:08 +00:00
|
|
|
|
2011-02-09 16:09:35 +00:00
|
|
|
build_sources = $(addprefix $(srcdir)/, $(sources)) $(top_builddir)/AssemblyInfo.cs
|
2005-01-12 00:11:08 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
$(sources) \
|
|
|
|
$(ASSEMBLY).config.in \
|
2009-08-30 20:06:33 +00:00
|
|
|
gtk-dotnet-3.0.pc.in
|
2005-01-12 00:11:08 +00:00
|
|
|
|
2011-02-09 16:09:35 +00:00
|
|
|
$(ASSEMBLY): $(build_sources) $(references) $(SNK)
|
2005-04-11 14:56:29 +00:00
|
|
|
@rm -f $(ASSEMBLY).mdb
|
2011-01-08 04:15:04 +00:00
|
|
|
$(CSC) $(CSFLAGS) -keyfile:$(SNK) -nowarn:0169,0612,0618 -out:$(ASSEMBLY) -target:library $(build_references) $(build_sources)
|
2005-01-12 00:11:08 +00:00
|
|
|
|
2009-01-24 04:47:54 +00:00
|
|
|
policy.%.config: $(top_builddir)/policy.config
|
|
|
|
sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@POLICY@/$*/" $(top_builddir)/policy.config > $@
|
|
|
|
|
2011-01-08 04:15:04 +00:00
|
|
|
$(POLICY_ASSEMBLIES) : policy.%.$(ASSEMBLY): policy.%.config $(SNK)
|
|
|
|
$(AL) -link:policy.$*.config -out:$@ -keyfile:$(SNK)
|
2005-09-22 04:26:52 +00:00
|
|
|
|
2005-01-12 00:11:08 +00:00
|
|
|
install-data-local:
|
2005-09-22 04:26:52 +00:00
|
|
|
@if test -n '$(TARGET)'; then \
|
2009-11-30 20:40:34 +00:00
|
|
|
echo "$(GACUTIL) -i $(ASSEMBLY) -f $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) -i $(ASSEMBLY) -f $(GACUTIL_FLAGS) || exit 1; \
|
2005-09-22 04:26:52 +00:00
|
|
|
if test -n '$(POLICY_VERSIONS)'; then \
|
|
|
|
for i in $(POLICY_VERSIONS); do \
|
2009-11-30 20:40:34 +00:00
|
|
|
echo "$(GACUTIL) -i policy.$$i.$(ASSEMBLY) -f $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) -i policy.$$i.$(ASSEMBLY) -f $(GACUTIL_FLAGS) || exit 1; \
|
2005-09-22 04:26:52 +00:00
|
|
|
done \
|
|
|
|
fi \
|
2005-01-12 00:11:08 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
uninstall-local:
|
2005-09-22 04:26:52 +00:00
|
|
|
@if test -n '$(TARGET)'; then \
|
2009-11-30 20:40:34 +00:00
|
|
|
echo "$(GACUTIL) -u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) -u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
|
2005-09-22 04:26:52 +00:00
|
|
|
if test -n '$(POLICY_VERSIONS)'; then \
|
|
|
|
for i in $(POLICY_VERSIONS); do \
|
2009-11-30 20:40:34 +00:00
|
|
|
echo "$(GACUTIL) -u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
|
|
|
|
$(GACUTIL) -u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
|
2005-09-22 04:26:52 +00:00
|
|
|
done \
|
|
|
|
fi \
|
2005-01-12 00:11:08 +00:00
|
|
|
fi
|
|
|
|
|