From f9be897c3fa37baab2987b74b6c87ceb12bd3f3b Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Thu, 22 Sep 2005 04:26:52 +0000 Subject: [PATCH] 2005-09-21 Mike Kestner * bootstrap* : expose POLICY_VERSIONS variable. * configure.in.in : AC_SUBST new POLICY_VERSIONS. * Makefile.include : build/install policy assemblies. * policy.config.in : policy config skeleton. * */Makefile.am : ditto. svn path=/trunk/gtk-sharp/; revision=50450 --- ChangeLog | 8 +++++ Makefile.am | 1 + Makefile.include | 39 ++++++++++++++++++++----- bootstrap | 1 + bootstrap-2.4 | 1 + bootstrap-for-the-insane | 1 + bootstrap-generic | 1 + configure.in.in | 8 +++++ gconf/GConf.PropertyEditors/Makefile.am | 38 +++++++++++++++++++----- gconf/GConf/Makefile.am | 38 +++++++++++++++++++----- glib/Makefile.am | 39 ++++++++++++++++++++----- gtkdotnet/Makefile.am | 38 +++++++++++++++++++----- policy.config.in | 10 +++++++ 13 files changed, 183 insertions(+), 40 deletions(-) create mode 100644 policy.config.in diff --git a/ChangeLog b/ChangeLog index c485177e0..5f5c4001b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-09-21 Mike Kestner + + * bootstrap* : expose POLICY_VERSIONS variable. + * configure.in.in : AC_SUBST new POLICY_VERSIONS. + * Makefile.include : build/install policy assemblies. + * policy.config.in : policy config skeleton. + * */Makefile.am : ditto. + 2005-09-19 Tambet Ingo * glib/Opaque.cs: Set owned property in any case. Generated code diff --git a/Makefile.am b/Makefile.am index 814062240..e9e313526 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,7 @@ EXTRA_DIST = \ gtk-sharp.snk \ gapi-cdecl-insert \ makefile.win32 \ + policy.config.in \ AssemblyInfo.cs.in \ ChangeLog \ HACKING \ diff --git a/Makefile.include b/Makefile.include index 318852985..92d05f259 100644 --- a/Makefile.include +++ b/Makefile.include @@ -5,14 +5,17 @@ RAW_API = $(pkg)-api.raw ASSEMBLY_NAME = $(pkg)-sharp ASSEMBLY = $(ASSEMBLY_NAME).dll -TARGET = $(pkg:=-sharp.dll) $(pkg:=-sharp.dll.config) +TARGET = $(pkg:=-sharp.dll) $(pkg:=-sharp.dll.config) $(POLICY_ASSEMBLIES) noinst_DATA = $(TARGET) TARGET_API = $(pkg:=-api.xml) gapidir = $(datadir)/gapi-2.0 gapi_DATA = $(TARGET_API) -CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(API) glue/generated.c $(SNK) AssemblyInfo.cs +CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(POLICY_ASSEMBLIES) generated-stamp generated/*.cs $(API) glue/generated.c $(SNK) AssemblyInfo.cs $(POLICY_CONFIGS) DISTCLEANFILES = $(ASSEMBLY).config +POLICY_ASSEMBLIES = $(addsuffix .$(ASSEMBLY), $(addprefix policy., $(POLICY_VERSIONS))) +POLICY_CONFIGS = $(addsuffix .config, $(addprefix policy., $(POLICY_VERSIONS))) + EXTRA_DIST = $(RAW_API) $(SYMBOLS) $(ASSEMBLY).config.in $(METADATA) $(customs) $(sources) $(add_dist) build_symbols = $(addprefix --symbols=$(srcdir)/, $(SYMBOLS)) @@ -43,6 +46,13 @@ $(SNK): $(top_srcdir)/$(SNK) AssemblyInfo.cs: $(top_builddir)/AssemblyInfo.cs cp $(top_builddir)/AssemblyInfo.cs . +$(POLICY_ASSEMBLIES): $(top_builddir)/policy.config $(SNK) + @for i in "$(POLICY_VERSIONS)"; do \ + echo "Creating policy.$$i.$(ASSEMBLY)"; \ + sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@POLICY@/$$i/" $(top_builddir)/policy.config > policy.$$i.config; \ + $(AL) -link:policy.$$i.config -out:policy.$$i.$(ASSEMBLY) -keyfile:$(SNK); \ + done + build_sources = $(addprefix $(srcdir)/, $(sources)) AssemblyInfo.cs build_references = $(addprefix /r:, $(references)) @@ -58,13 +68,26 @@ $(ASSEMBLY): generated-stamp $(SNK) $(build_sources) $(references) $(GAPI_CDECL_INSERT) install-data-local: - @if test -n '$(pkg)'; then \ - echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(pkg)'; then \ + echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi uninstall-local: - @if test -n '$(pkg)'; then \ - echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(pkg)'; then \ + echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi + diff --git a/bootstrap b/bootstrap index 6485fb2ad..a9f205a77 100755 --- a/bootstrap +++ b/bootstrap @@ -3,6 +3,7 @@ GTK_SHARP_VERSION=2.5.91 ASSEMBLY_VERSION=2.6.0.0 +POLICY_VERSIONS=2.4 GTK_REQUIRED_VERSION=2.6.0 GNOME_REQUIRED_VERSION=2.10.0 VERSIONCSDEFINES=-define:GTK_SHARP_2_6 diff --git a/bootstrap-2.4 b/bootstrap-2.4 index 90064ccfb..3c67bd67d 100755 --- a/bootstrap-2.4 +++ b/bootstrap-2.4 @@ -3,6 +3,7 @@ GTK_SHARP_VERSION=2.3.91 ASSEMBLY_VERSION=2.4.0.0 +POLICY_VERSIONS= GTK_REQUIRED_VERSION=2.4.0 GNOME_REQUIRED_VERSION=2.6.0 VERSIONCSDEFINES= diff --git a/bootstrap-for-the-insane b/bootstrap-for-the-insane index 70ce344dd..8d9d6900f 100755 --- a/bootstrap-for-the-insane +++ b/bootstrap-for-the-insane @@ -11,6 +11,7 @@ echo "**********************************************************************" GTK_SHARP_VERSION=2.7.0.99 ASSEMBLY_VERSION=2.8.0.0 +POLICY_VERSIONS="2.4 2.6" GTK_REQUIRED_VERSION=2.7.0 GNOME_REQUIRED_VERSION=2.10.0 VERSIONCSDEFINES="-define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8" diff --git a/bootstrap-generic b/bootstrap-generic index 4ce4212c7..84fb6b6bc 100755 --- a/bootstrap-generic +++ b/bootstrap-generic @@ -19,6 +19,7 @@ sed -e "s/@GTK_SHARP_VERSION@/$GTK_SHARP_VERSION/" \ -e "s/@GNOME_REQUIRED_VERSION@/$GNOME_REQUIRED_VERSION/" \ -e "s/@VERSIONCSDEFINES@/$VERSIONCSDEFINES/" \ -e "s/@VERSIONCFLAGS@/$VERSIONCFLAGS/" \ + -e "s/@POLICY_VERSIONS@/$POLICY_VERSIONS/" \ -e "s/@ASSEMBLY_VERSION@/$ASSEMBLY_VERSION/" $srcdir/configure.in.in > $srcdir/configure.in ln -f $srcdir/pango/pango-api-$GTK_API_TAG.raw $srcdir/pango/pango-api.raw diff --git a/configure.in.in b/configure.in.in index 166e2ff39..ea8689fd3 100644 --- a/configure.in.in +++ b/configure.in.in @@ -7,6 +7,8 @@ AM_MAINTAINER_MODE API_VERSION=@ASSEMBLY_VERSION@ AC_SUBST(API_VERSION) +POLICY_VERSIONS=@POLICY_VERSIONS@ +AC_SUBST(POLICY_VERSIONS) PACKAGE_VERSION=gtk-sharp-2.0 AC_SUBST(PACKAGE_VERSION) @@ -93,6 +95,11 @@ if test "x$GACUTIL" = "xno" ; then AC_MSG_ERROR([No gacutil tool found. You need to install either the mono or .Net SDK.]) fi +AC_PATH_PROG(AL, al, no) +if test "x$AL" = "xno" ; then + AC_MSG_ERROR([No al tool found. You need to install either the mono or .Net SDK.]) +fi + if test "x$has_mono" = "xtrue"; then GACUTIL_FLAGS='/package $(PACKAGE_VERSION) /gacdir $(DESTDIR)$(prefix)/lib' GENERATED_SOURCES=generated/*.cs @@ -249,6 +256,7 @@ AC_SUBST(CFLAGS) AC_OUTPUT([ AssemblyInfo.cs Makefile +policy.config sources/Makefile parser/Makefile parser/gapi-2.0.pc diff --git a/gconf/GConf.PropertyEditors/Makefile.am b/gconf/GConf.PropertyEditors/Makefile.am index 66ba56c15..3250404db 100644 --- a/gconf/GConf.PropertyEditors/Makefile.am +++ b/gconf/GConf.PropertyEditors/Makefile.am @@ -6,8 +6,11 @@ endif ASSEMBLY = $(ASSEMBLY_NAME).dll ASSEMBLY_NAME = gconf-sharp-peditors -noinst_DATA = $(TARGET) -CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk +noinst_DATA = $(TARGET) $(POLICY_ASSEMBLIES) +CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk $(POLICY_ASSEMBLIES) $(POLICY_CONFIGS) + +POLICY_ASSEMBLIES = $(addsuffix .$(ASSEMBLY), $(addprefix policy., $(POLICY_VERSIONS))) +POLICY_CONFIGS = $(addsuffix .config, $(addprefix policy., $(POLICY_VERSIONS))) EXTRA_DIST = \ PropertyEditorColorPicker.cs \ @@ -37,15 +40,34 @@ $(ASSEMBLY): $(build_sources) gtk-sharp.snk @rm -f $(ASSEMBLY).mdb $(CSC) $(CSFLAGS) /out:$(ASSEMBLY) /target:library $(references) $(build_sources) +$(POLICY_ASSEMBLIES): $(top_builddir)/policy.config gtk-sharp.snk + @for i in "$(POLICY_VERSIONS)"; do \ + echo "Creating policy.$$i.$(ASSEMBLY)"; \ + sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@POLICY@/$$i/" $(top_builddir)/policy.config > policy.$$i.config; \ + $(AL) -link:policy.$$i.config -out:policy.$$i.$(ASSEMBLY) -keyfile:gtk-sharp.snk; \ + done + install-data-local: - @if test -n '$(TARGET)'; then \ - echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(TARGET)'; then \ + echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi uninstall-local: - @if test -n '$(TARGET)'; then \ - echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(TARGET)'; then \ + echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi diff --git a/gconf/GConf/Makefile.am b/gconf/GConf/Makefile.am index 2007ae976..6c49061ca 100644 --- a/gconf/GConf/Makefile.am +++ b/gconf/GConf/Makefile.am @@ -5,10 +5,13 @@ pkgconfig_DATA = gconf-sharp-2.0.pc else TARGET = endif -noinst_DATA = $(TARGET) -CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk +noinst_DATA = $(TARGET) $(POLICY_ASSEMBLIES) +CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk $(POLICY_ASSEMBLIES) $(POLICY_CONFIGS) DISTCLEANFILES = gconf-sharp-2.0.pc $(ASSEMBLY).config +POLICY_ASSEMBLIES = $(addsuffix .$(ASSEMBLY), $(addprefix policy., $(POLICY_VERSIONS))) +POLICY_CONFIGS = $(addsuffix .config, $(addprefix policy., $(POLICY_VERSIONS))) + ASSEMBLY = $(ASSEMBLY_NAME).dll ASSEMBLY_NAME = gconf-sharp @@ -41,15 +44,34 @@ $(ASSEMBLY): $(build_sources) gtk-sharp.snk @rm -f $(ASSEMBLY).mdb $(CSC) $(CSFLAGS) /out:$(ASSEMBLY) /target:library $(references) $(build_sources) +$(POLICY_ASSEMBLIES): $(top_builddir)/policy.config gtk-sharp.snk + @for i in "$(POLICY_VERSIONS)"; do \ + echo "Creating policy.$$i.$(ASSEMBLY)"; \ + sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@POLICY@/$$i/" $(top_builddir)/policy.config > policy.$$i.config; \ + $(AL) -link:policy.$$i.config -out:policy.$$i.$(ASSEMBLY) -keyfile:gtk-sharp.snk; \ + done + install-data-local: - @if test -n '$(TARGET)'; then \ - echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(TARGET)'; then \ + echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi uninstall-local: - @if test -n '$(TARGET)'; then \ - echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(TARGET)'; then \ + echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi diff --git a/glib/Makefile.am b/glib/Makefile.am index 705ae7284..4dbe416c4 100644 --- a/glib/Makefile.am +++ b/glib/Makefile.am @@ -3,10 +3,14 @@ SUBDIRS = glue TARGET = $(ASSEMBLY) ASSEMBLY = $(ASSEMBLY_NAME).dll ASSEMBLY_NAME = glib-sharp -noinst_DATA = $(ASSEMBLY) $(ASSEMBLY).config -CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk AssemblyInfo.cs +noinst_DATA = $(ASSEMBLY) $(ASSEMBLY).config $(POLICY_ASSEMBLIES) + +CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk AssemblyInfo.cs $(POLICY_ASSEMBLIES) $(POLICY_CONFIGS) DISTCLEANFILES = $(ASSEMBLY).config +POLICY_ASSEMBLIES = $(addsuffix .$(ASSEMBLY), $(addprefix policy., $(POLICY_VERSIONS))) +POLICY_CONFIGS = $(addsuffix .config, $(addprefix policy., $(POLICY_VERSIONS))) + references = sources = \ @@ -80,15 +84,34 @@ $(ASSEMBLY): $(build_sources) gtk-sharp.snk AssemblyInfo.cs $(CSC) $(CSFLAGS) -nowarn:0169,0612,0618 -out:$(ASSEMBLY) -target:library $(references) $(build_sources) $(GAPI_CDECL_INSERT) +$(POLICY_ASSEMBLIES): $(top_builddir)/policy.config gtk-sharp.snk + @for i in "$(POLICY_VERSIONS)"; do \ + echo "Creating policy.$$i.$(ASSEMBLY)"; \ + sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@POLICY@/$$i/" $(top_builddir)/policy.config > policy.$$i.config; \ + $(AL) -link:policy.$$i.config -out:policy.$$i.$(ASSEMBLY) -keyfile:gtk-sharp.snk; \ + done + install-data-local: - @if test -n '$(TARGET)'; then \ - echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(TARGET)'; then \ + echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi uninstall-local: - @if test -n '$(TARGET)'; then \ - echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(TARGET)'; then \ + echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi diff --git a/gtkdotnet/Makefile.am b/gtkdotnet/Makefile.am index 60926aaaa..90ac47ca9 100644 --- a/gtkdotnet/Makefile.am +++ b/gtkdotnet/Makefile.am @@ -8,10 +8,13 @@ endif ASSEMBLY = $(ASSEMBLY_NAME).dll ASSEMBLY_NAME = gtk-dotnet -noinst_DATA = $(TARGET) -CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk AssemblyInfo.cs +noinst_DATA = $(ASSEMBLY) $(POLICY_ASSEMBLIES) +CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb gtk-sharp.snk AssemblyInfo.cs $(POLICY_ASSEMBLIES) $(POLICY_CONFIGS) DISTCLEANFILES = $(ASSEMBLY).config +POLICY_ASSEMBLIES = $(addsuffix .$(ASSEMBLY), $(addprefix policy., $(POLICY_VERSIONS))) +POLICY_CONFIGS = $(addsuffix .config, $(addprefix policy., $(POLICY_VERSIONS))) + references = ../glib/glib-sharp.dll ../pango/pango-sharp.dll ../gdk/gdk-sharp.dll build_references = $(addprefix -r:, $(references)) -r:System.Drawing.dll @@ -43,15 +46,34 @@ $(ASSEMBLY): $(build_sources) $(references) gtk-sharp.snk AssemblyInfo.cs $(CSC) $(CSFLAGS) -nowarn:0169,0612,0618 -out:$(ASSEMBLY) -target:library $(build_references) $(build_sources) $(GAPI_CDECL_INSERT) +$(POLICY_ASSEMBLIES): $(top_builddir)/policy.config gtk-sharp.snk + @for i in "$(POLICY_VERSIONS)"; do \ + echo "Creating policy.$$i.$(ASSEMBLY)"; \ + sed -e "s/@ASSEMBLY_NAME@/$(ASSEMBLY_NAME)/" -e "s/@POLICY@/$$i/" $(top_builddir)/policy.config > policy.$$i.config; \ + $(AL) -link:policy.$$i.config -out:policy.$$i.$(ASSEMBLY) -keyfile:gtk-sharp.snk; \ + done + install-data-local: - @if test -n '$(TARGET)'; then \ - echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(TARGET)'; then \ + echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /i policy.$$i.$(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi uninstall-local: - @if test -n '$(TARGET)'; then \ - echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ - $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + @if test -n '$(TARGET)'; then \ + echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + if test -n '$(POLICY_VERSIONS)'; then \ + for i in $(POLICY_VERSIONS); do \ + echo "$(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \ + $(GACUTIL) /u policy.$$i.$(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1; \ + done \ + fi \ fi diff --git a/policy.config.in b/policy.config.in new file mode 100644 index 000000000..bf17e6f84 --- /dev/null +++ b/policy.config.in @@ -0,0 +1,10 @@ + + + + + + + + + +