Used resource for manifest.

Signed-off-by: Xiaomao Chen <xiaomao5@live.com>
This commit is contained in:
Quantum 2013-09-08 11:46:22 -04:00
parent d971915275
commit ab7c722c9c
3 changed files with 17 additions and 3 deletions

View file

@ -4,8 +4,7 @@ INCDIR=include
CXX=cl /nologo CXX=cl /nologo
LD=link /nologo LD=link /nologo
CXXFLAGS=/c /O1 /I$(INCDIR) /W4 /Zi /DWIN32_LEAN_AND_MEAN /DWINVER=0x0501 /D_WIN32_WINNT=0x0501 /DUNICODE /D_UNICODE CXXFLAGS=/c /O1 /I$(INCDIR) /W4 /Zi /DWIN32_LEAN_AND_MEAN /DWINVER=0x0501 /D_WIN32_WINNT=0x0501 /DUNICODE /D_UNICODE
LDFLAGS=/subsystem:windows /debug /manifest /incremental:no /opt:REF LDFLAGS=/subsystem:windows /debug /incremental:no /opt:REF
LDFLAGS=$(LDFLAGS) "/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'"
RC=rc /nologo RC=rc /nologo
RCFLAGS=/i$(INCDIR) RCFLAGS=/i$(INCDIR)
LIBS= LIBS=
@ -54,4 +53,3 @@ $(OUTDIR)\keyboard.res: keyboard.rc
$(DISTDIR)\Keyboard.exe: $(FILES) $(DISTDIR)\Keyboard.exe: $(FILES)
$(LD) /out:$@ $(LDFLAGS) $** $(LIBS) $(LD) /out:$@ $(LDFLAGS) $** $(LIBS)
mt.exe -nologo -manifest $@.manifest -outputresource:$@;1 && del $@.manifest || set ERRORLEVEL=0

15
commctrl6.manifest Normal file
View file

@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level='asInvoker' uiAccess='false' />
</requestedPrivileges>
</security>
</trustInfo>
<dependency>
<dependentAssembly>
<assemblyIdentity type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*' />
</dependentAssembly>
</dependency>
</assembly>

View file

@ -2,6 +2,7 @@
#include <winnls.h> #include <winnls.h>
RID_ICON ICON keyboard.ico RID_ICON ICON keyboard.ico
1 24 commctrl6.manifest
STRINGTABLE LANGUAGE 0x09, 0x01 // en-US STRINGTABLE LANGUAGE 0x09, 0x01 // en-US
BEGIN BEGIN