GtkSharp/cairo/Makefile.am
Mike Kestner c07a5f5580 2008-10-21 Mike Kestner <mkestner@novell.com>
* cairo/*: add a policy assembly for 1.0 defering to 2.0.

svn path=/trunk/gtk-sharp/; revision=116692
2008-10-21 22:50:21 +00:00

105 lines
2.9 KiB
Makefile

ASSEMBLY_NAME = Mono.Cairo
ASSEMBLY = $(ASSEMBLY_NAME).dll
POLICY_ASSEMBLY = policy.1.0.$(ASSEMBLY)
POLICY_CONFIG = policy.1.0.config
if ENABLE_MONO_CAIRO
TARGET=$(ASSEMBLY) $(POLICY_ASSEMBLY)
else
TARGET=
endif
noinst_DATA = $(TARGET)
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(POLICY_ASSEMBLY) $(POLICY_CONFIG) gtk-sharp.snk AssemblyInfo.cs
sources = \
Antialias.cs \
Cairo.cs \
Content.cs \
Context.cs \
DirectFBSurface.cs \
Extend.cs \
FillRule.cs \
Filter.cs \
FontExtents.cs \
FontFace.cs \
FontOptions.cs \
FontSlant.cs \
FontType.cs \
FontWeight.cs \
Format.cs \
GlitzSurface.cs \
Glyph.cs \
Gradient.cs \
HintMetrics.cs \
HintStyle.cs \
ImageSurface.cs \
LinearGradient.cs \
LineCap.cs \
LineJoin.cs \
Matrix.cs \
NativeMethods.cs \
Operator.cs \
Path.cs \
Pattern.cs \
PatternType.cs \
PdfSurface.cs \
PSSurface.cs \
RadialGradient.cs \
Rectangle.cs \
ScaledFont.cs \
SolidPattern.cs \
Status.cs \
SubpixelOrder.cs \
Surface.cs \
SurfacePattern.cs \
SurfaceType.cs \
SvgSurface.cs \
SvgVersion.cs \
TextExtents.cs \
Win32Surface.cs \
XcbSurface.cs \
XlibSurface.cs \
#
build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs
gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
cp $(top_srcdir)/gtk-sharp.snk .
AssemblyInfo.cs: $(top_builddir)/AssemblyInfo.cs
@echo "sed -e "s/@API_VERSION@/2.0.0.0/" -e "s/\[assembly:GLib.IgnoreClassInitializers\]//" $(top_builddir)/AssemblyInfo.cs > $@"
@sed -e "s/@API_VERSION@/2.0.0.0/" -e "s/\[assembly:GLib.IgnoreClassInitializers\]//" $(top_builddir)/AssemblyInfo.cs > $@
$(ASSEMBLY): $(build_sources) gtk-sharp.snk AssemblyInfo.cs
@rm -f $(ASSEMBLY).mdb
$(CSC) $(CSFLAGS) -nowarn:0169,0612,0618 -out:$(ASSEMBLY) -target:library $(references) $(build_sources)
$(POLICY_CONFIG): $(top_builddir)/policy.config
@echo "sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@API_VERSION@/2.0.0.0/" -e "s/@POLICY@.0/1.0.5000/" $(top_builddir)/policy.config > $@"
@sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@API_VERSION@/2.0.0.0/" -e "s/@POLICY@.0/1.0.5000/" $(top_builddir)/policy.config > $@
$(POLICY_ASSEMBLY): $(POLICY_CONFIG) gtk-sharp.snk
echo "Creating policy.1.0.$(ASSEMBLY)";
$(AL) -link:$(POLICY_CONFIG) -out:$@ -keyfile:gtk-sharp.snk;
install-data-local:
@if test -n '$(TARGET)'; then \
echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \
$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \
echo "$(GACUTIL) /i $(POLICY_ASSEMBLY) /f $(GACUTIL_FLAGS)"; \
$(GACUTIL) /i $(POLICY_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; \
echo "$(GACUTIL) /u policy.1.0.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
$(GACUTIL) /u policy.1.0.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \
fi
EXTRA_DIST = $(sources)