mkspecs/features/win32/embed_manifest_exe.prf
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 MANIFEST_DIR = $$OBJECTS_DIR
       
     2 isEmpty(MANIFEST_DIR):MANIFEST_DIR = .
       
     3 if(win32-msvc2005|win32-msvc2008):!equals(TEMPLATE_PREFIX, "vc"):equals(TEMPLATE, "app") {
       
     4     NOPATH_TARGET = $$TARGET
       
     5     NOPATH_TARGET ~= s,\\ , ,q      # Remove space escaping (NOPATH_TARGET is quoted)
       
     6     NOPATH_TARGET ~= s,\\,/,g       # Change to single type separators
       
     7     NOPATH_TARGET ~= s,^(.*/)+,,    # Remove all paths
       
     8     QMAKE_LFLAGS += /MANIFEST $$quote(/MANIFESTFILE:\"$${MANIFEST_DIR}\\$${NOPATH_TARGET}.intermediate.manifest\")
       
     9     QMAKE_PREV_POST_LINK = $$QMAKE_POST_LINK
       
    10     QMAKE_POST_LINK = $$quote(mt.exe -nologo -manifest \"$$replace(MANIFEST_DIR,/,\\)\\$${NOPATH_TARGET}.intermediate.manifest\" -outputresource:$(DESTDIR_TARGET);1$$escape_expand(\n\t))
       
    11     QMAKE_POST_LINK += $$QMAKE_PREV_POST_LINK
       
    12     QMAKE_CLEAN += \"$$replace(MANIFEST_DIR,/,\\)\\$${NOPATH_TARGET}.intermediate.manifest\"
       
    13 }