summaryrefslogtreecommitdiffstats
path: root/rbutil/sansapatcher
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2008-01-20 21:19:37 +0000
committerDominik Wenger <domonoky@googlemail.com>2008-01-20 21:19:37 +0000
commit4e8d61442d091d5e062ebaa84de5baa178160064 (patch)
tree40b91790d8a428d71fc8fd43cf901cdf445a90b8 /rbutil/sansapatcher
parent56b3f9275a76e7a69b1b608ea1086074b6caca95 (diff)
downloadrockbox-4e8d61442d091d5e062ebaa84de5baa178160064.tar.gz
rockbox-4e8d61442d091d5e062ebaa84de5baa178160064.tar.bz2
rockbox-4e8d61442d091d5e062ebaa84de5baa178160064.zip
add Manifests to rbutil, sansapatcher and e200rpatcher to gain needed rights on windows vista.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16120 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/sansapatcher')
-rw-r--r--rbutil/sansapatcher/Makefile8
-rw-r--r--rbutil/sansapatcher/sansapatcher.manifest13
-rw-r--r--rbutil/sansapatcher/sansapatcher.rc1
3 files changed, 20 insertions, 2 deletions
diff --git a/rbutil/sansapatcher/Makefile b/rbutil/sansapatcher/Makefile
index c425bbc892..2c75b0caf7 100644
--- a/rbutil/sansapatcher/Makefile
+++ b/rbutil/sansapatcher/Makefile
@@ -16,6 +16,7 @@ endif
NATIVECC = gcc
CC = $(CROSS)gcc
+WINDRES = $(CROSS)windres
all: $(OUTPUT)
@@ -23,10 +24,13 @@ sansapatcher: main.c sansapatcher.c sansaio-posix.c parttypes.h bootimg_c200.c b
gcc $(CFLAGS) -o sansapatcher main.c sansapatcher.c sansaio-posix.c bootimg_c200.c bootimg_e200.c
strip sansapatcher
-sansapatcher.exe: main.c sansapatcher.c sansaio-win32.c parttypes.h bootimg_c200.c bootimg_e200.c
- $(CC) $(CFLAGS) -o sansapatcher.exe main.c sansapatcher.c sansaio-win32.c bootimg_c200.c bootimg_e200.c
+sansapatcher.exe: main.c sansapatcher.c sansaio-win32.c parttypes.h bootimg_c200.c bootimg_e200.c sansapatcher-rc.o
+ $(CC) $(CFLAGS) -o sansapatcher.exe main.c sansapatcher.c sansaio-win32.c bootimg_c200.c bootimg_e200.c sansapatcher-rc.o
$(CROSS)strip sansapatcher.exe
+sansapatcher-rc.o: sansapatcher.rc sansapatcher.manifest
+ $(WINDRES) -i sansapatcher.rc -o sansapatcher-rc.o
+
sansapatcher-mac: sansapatcher-i386 sansapatcher-ppc
lipo -create sansapatcher-ppc sansapatcher-i386 -output sansapatcher-mac
diff --git a/rbutil/sansapatcher/sansapatcher.manifest b/rbutil/sansapatcher/sansapatcher.manifest
new file mode 100644
index 0000000000..71bb153688
--- /dev/null
+++ b/rbutil/sansapatcher/sansapatcher.manifest
@@ -0,0 +1,13 @@
+<?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="sansapatcher.exe" type="win32"/>
+
+ <!-- Identify the application security requirements. -->
+ <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+ <security>
+ <requestedPrivileges>
+ <requestedExecutionLevel level="requireAdministrator"/>
+ </requestedPrivileges>
+ </security>
+ </trustInfo>
+</assembly>
diff --git a/rbutil/sansapatcher/sansapatcher.rc b/rbutil/sansapatcher/sansapatcher.rc
new file mode 100644
index 0000000000..7040637a0d
--- /dev/null
+++ b/rbutil/sansapatcher/sansapatcher.rc
@@ -0,0 +1 @@
+1 24 MOVEABLE PURE "sansapatcher.manifest"