diff options
author | Ted Gould <ted@gould.cx> | 2010-06-18 10:33:02 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-06-18 10:33:02 -0500 |
commit | f399d897c0367ebde3acbe2da2b819116f4a739f (patch) | |
tree | 84a1149c5bcdf101c057575136d9a181d98611fd /bindings/mono | |
parent | 250a731fb356b1fcf46b14a1c39882875a208a69 (diff) | |
download | ayatana-indicator-application-f399d897c0367ebde3acbe2da2b819116f4a739f.tar.gz ayatana-indicator-application-f399d897c0367ebde3acbe2da2b819116f4a739f.tar.bz2 ayatana-indicator-application-f399d897c0367ebde3acbe2da2b819116f4a739f.zip |
Generating a policy dll
Diffstat (limited to 'bindings/mono')
-rw-r--r-- | bindings/mono/Makefile.am | 8 | ||||
-rw-r--r-- | bindings/mono/policy.2.0.appindicator-sharp.config | 10 |
2 files changed, 17 insertions, 1 deletions
diff --git a/bindings/mono/Makefile.am b/bindings/mono/Makefile.am index 4d2d8b4..cd2d229 100644 --- a/bindings/mono/Makefile.am +++ b/bindings/mono/Makefile.am @@ -11,7 +11,8 @@ RAW_API = libappindicator-api.raw METADATA = libappindicator-api.metadata ASSEMBLY_NAME = appindicator-sharp ASSEMBLY = appindicator-sharp.dll -TARGET = $(ASSEMBLY) $(ASSEMBLY).config +DLLPOLICY = policy.$(ASSEMBLY) +TARGET = $(ASSEMBLY) $(ASSEMBLY).config $(DLLPOLICY) assemblydir = $(libdir)/cli/appindicator-sharp-0.1 assembly_DATA = $(TARGET) CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb generated-stamp generated/*.cs $(API) $(MIDDLE_API) $(RAW_API) $(TEST) @@ -26,6 +27,7 @@ EXTRA_DIST = \ appindicator-sharp.dll.config.in \ app-indicator.sources.xml \ $(ASSEMBLY_NAME).snk \ + policy.2.0.$(ASSMEBLY_NAME).config \ $(customs) \ $(TEST_SOURCES) @@ -83,3 +85,7 @@ $(TEST): $(ASSEMBLY) $(TEST_SOURCES) $(CSC) -out:$(TEST) -target:library $(test_references) $(srcdir)/$(TEST_SOURCES) all: $(TEST) + +$(DLLPOLICY): policy.2.0.$(ASSEMBLY_NAME).config $(ASSEMBLY_NAME).snk + $(AL) -link:policy.2.0.$(ASSEMBLY_NAME).config -out:$(DLLPOLICY) -keyfile:$(ASSEMBLY_NAME).snk + diff --git a/bindings/mono/policy.2.0.appindicator-sharp.config b/bindings/mono/policy.2.0.appindicator-sharp.config new file mode 100644 index 0000000..dd9e6e9 --- /dev/null +++ b/bindings/mono/policy.2.0.appindicator-sharp.config @@ -0,0 +1,10 @@ +<configuration> + <runtime> + <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> + <dependentAssembly> + <assemblyIdentity name="@ASSEMBLY_NAME@" publicKeyToken="bcae265d1c7ab4c2" /> + <bindingRedirect oldVersion="0.0-@ASSEMBLY_VERSION@" newVersion="@ASSEMBLY_VERSION@"/> + </dependentAssembly> + </assemblyBinding> + </runtime> +</configuration> |