Bladeren bron

Create manifests (untested)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40977 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 14 jaren geleden
bovenliggende
commit
7ce8482741
2 gewijzigde bestanden met toevoegingen van 28 en 0 verwijderingen
  1. 10 0
      Makefile
  2. 18 0
      mswindows/generic.manifest

+ 10 - 0
Makefile

@@ -62,6 +62,7 @@ default:
 	-$(CHMOD) 755 install-sh
 	$(MAKE) subdirs
 	$(MAKE) $(FILES_DST)
+	$(MAKE) manifests
 	$(MAKE) $(ARCH_DISTDIR)/$(GRASS_NAME).tmp
 	@if [ `wc -l < "$(ERRORLOG)"` -gt 5 ] ; then \
 		echo "--"     >> $(ERRORLOG) ; \
@@ -77,6 +78,15 @@ default:
 	@cat $(ERRORLOG)
 	@if [ `wc -l < "$(ERRORLOG)"` -gt 8 ] ; then false ; else true ; fi
 
+manifests:
+ifneq ($(strip $(MINGW)),)
+      find $(ARCH_DISTDIR) -type f -name '*.exe' | \
+      while read file ; do \
+          cmd=`basename "$$file" .exe` \
+          sed "s/@CMD@/$$cmd/" mswindows/generic.manifest > "$$file".manifest ; \
+      done
+endif
+
 $(ARCH_DISTDIR)/%: %
 	$(INSTALL_DATA) $< $@
 

+ 18 - 0
mswindows/generic.manifest

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 
+  <assemblyIdentity version="1.0.0.0"
+     processorArchitecture="X86"
+     name="@CMD@"
+     type="win32"/> 
+  <description>GRASS modules</description> 
+  <!-- Identify the application security requirements. -->
+  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
+    <security>
+      <requestedPrivileges>
+        <requestedExecutionLevel
+          level="asInvoker"
+          uiAccess="false"/>
+        </requestedPrivileges>
+       </security>
+  </trustInfo>
+</assembly>