[APPLICATIONS] Properly track resource file dependencies. CORE-9806

svn path=/trunk/; revision=68170
This commit is contained in:
Amine Khaldi 2015-06-17 17:20:29 +00:00
parent d9a14b3064
commit 564ff01f3d
33 changed files with 52 additions and 8 deletions

View file

@ -10,6 +10,8 @@ list(APPEND SOURCE
winmain.c
calc.h)
file(GLOB calc_rc_deps res/*.*)
add_rc_deps(resource.rc ${calc_rc_deps})
add_executable(calc ${SOURCE} resource.rc)
set_module_type(calc win32gui UNICODE)
add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32)

View file

@ -7,6 +7,7 @@ list(APPEND SOURCE
settings.c
precomp.h)
add_rc_deps(charmap.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/charmap.ico)
add_executable(charmap ${SOURCE} charmap.rc)
set_module_type(charmap win32gui UNICODE)
add_importlibs(charmap advapi32 user32 gdi32 comctl32 msvcrt kernel32)

View file

@ -1,4 +1,5 @@
add_rc_deps(control.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/config.ico)
add_executable(control control.c control.rc)
set_module_type(control win32gui UNICODE)
add_importlibs(control advapi32 shell32 user32 msvcrt kernel32)

View file

@ -15,6 +15,7 @@ list(APPEND SOURCE
d3dtest9.c
precomp.h)
add_rc_deps(dxdiag.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/dxdiag.ico)
add_executable(dxdiag ${SOURCE} dxdiag.rc)
set_module_type(dxdiag win32gui UNICODE)
target_link_libraries(dxdiag dxguid)

View file

@ -4,6 +4,7 @@ list(APPEND SOURCE
fontview.c
precomp.h)
add_rc_deps(fontview.rc ${CMAKE_CURRENT_SOURCE_DIR}/ttf.ico)
add_executable(fontview ${SOURCE} fontview.rc)
set_module_type(fontview win32gui)
add_importlibs(fontview comdlg32 gdi32 shell32 user32 msvcrt kernel32)

View file

@ -8,6 +8,7 @@ list(APPEND SOURCE
solitaire.cpp
solitaire.h)
add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/solitaire.ico)
add_executable(sol ${SOURCE} rsrc.rc)
target_link_libraries(sol cardlib)
set_module_type(sol win32gui UNICODE)

View file

@ -10,6 +10,7 @@ list(APPEND SOURCE
spigame.cpp
spider.h)
add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/spider.ico)
add_executable(spider ${SOURCE} rsrc.rc)
target_link_libraries(spider cardlib)
add_pch(spider spider.h SOURCE)

View file

@ -6,6 +6,8 @@ list(APPEND SOURCE
dialog.c
main.h)
file(GLOB winmine_rc_deps rc/*.*)
add_rc_deps(rsrc.rc ${winmine_rc_deps})
add_executable(winmine ${SOURCE} rsrc.rc)
set_module_type(winmine win32gui UNICODE)
target_link_libraries(winmine wine)

View file

@ -1,4 +1,5 @@
add_rc_deps(hh.rc ${CMAKE_CURRENT_SOURCE_DIR}/hh.ico)
add_executable(hh main.c hh.rc)
set_module_type(hh win32gui)
add_importlibs(hh gdi32 user32 msvcrt kernel32)

View file

@ -1,4 +1,5 @@
add_rc_deps(iexplore.rc ${CMAKE_CURRENT_SOURCE_DIR}/iexplore.ico)
add_executable(iexplore main.c iexplore.rc)
target_link_libraries(iexplore wine)
set_module_type(iexplore win32gui UNICODE)

View file

@ -1,4 +1,5 @@
add_rc_deps(kbswitch.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/kbswitch.ico)
add_executable(kbswitch kbswitch.c kbswitch.rc)
set_module_type(kbswitch win32gui UNICODE)
add_importlibs(kbswitch advapi32 user32 shell32 gdi32 msvcrt kernel32)

View file

@ -4,6 +4,7 @@ list(APPEND SOURCE
settings.c
magnifier.h)
add_rc_deps(magnify.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/magnify.ico)
add_executable(magnify ${SOURCE} magnify.rc)
set_module_type(magnify win32gui)
add_importlibs(magnify user32 gdi32 advapi32 shell32 msvcrt kernel32)

View file

@ -5,6 +5,7 @@ list(APPEND SOURCE
mmc.c
precomp.h)
add_rc_deps(mmc.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/mmc.ico)
add_executable(mmcclient ${SOURCE} mmc.rc)
set_module_type(mmcclient win32gui UNICODE)
add_importlibs(mmcclient user32 gdi32 comdlg32 advapi32 shell32 comctl32 msvcrt kernel32)

View file

@ -1,4 +1,6 @@
file(GLOB mplay32_rc_deps resources/*.*)
add_rc_deps(mplay32.rc ${mplay32_rc_deps})
add_executable(mplay32 mplay32.c mplay32.rc)
set_module_type(mplay32 win32gui UNICODE)
add_importlibs(mplay32 advapi32 comctl32 comdlg32 user32 gdi32 winmm shell32 msvcrt kernel32)

View file

@ -9,6 +9,7 @@ list(APPEND SOURCE
msconfig.c
precomp.h)
add_rc_deps(msconfig.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/msconfig.ico)
add_executable(msconfig ${SOURCE} msconfig.rc)
set_module_type(msconfig win32gui UNICODE)
add_importlibs(msconfig user32 advapi32 version comctl32 shell32 shlwapi msvcrt kernel32)

View file

@ -7,6 +7,8 @@ list(APPEND SOURCE
misc.c
precomp.h)
file(GLOB devmgmt_rc_deps res/*.*)
add_rc_deps(devmgmt.rc ${devmgmt_rc_deps})
add_executable(devmgmt ${SOURCE} devmgmt.rc)
set_module_type(devmgmt win32gui UNICODE)
add_importlibs(devmgmt setupapi gdi32 user32 comctl32 advapi32 devmgr msvcrt kernel32)

View file

@ -1,4 +1,6 @@
file(GLOB eventvwr_rc_deps res/*.*)
add_rc_deps(eventvwr.rc ${eventvwr_rc_deps})
add_executable(eventvwr eventvwr.c eventvwr.rc)
set_module_type(eventvwr win32gui UNICODE)
add_importlibs(eventvwr user32 comctl32 comdlg32 advapi32 msvcrt kernel32)

View file

@ -16,6 +16,8 @@ list(APPEND SOURCE
winproc.c
precomp.h)
file(GLOB mspaint_rc_deps icons/*.*)
add_rc_deps(rsrc.rc ${mspaint_rc_deps})
add_executable(mspaint ${SOURCE} rsrc.rc)
set_module_type(mspaint win32gui UNICODE)
add_importlibs(mspaint hhctrl comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)

View file

@ -21,6 +21,8 @@ list(APPEND SOURCE
winproc.cpp
precomp.h)
file(GLOB mspaint_new_rc_deps icons/*.*)
add_rc_deps(rsrc.rc ${mspaint_new_rc_deps})
add_executable(mspaint_new ${SOURCE} rsrc.rc)
set_module_type(mspaint_new win32gui UNICODE)
add_importlibs(mspaint_new hhctrl comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)

View file

@ -30,6 +30,8 @@ list(APPEND SOURCE
uimain.h
precomp.h)
file(GLOB mstsc_rc_deps res/*.*)
add_rc_deps(rdc.rc ${mstsc_rc_deps})
add_executable(mstsc ${SOURCE} rdc.rc)
set_module_type(mstsc win32gui UNICODE)
add_importlibs(mstsc user32 gdi32 comctl32 ws2_32 advapi32 shell32 ole32 comdlg32 msvcrt kernel32)

View file

@ -6,6 +6,7 @@ list(APPEND SOURCE
text.c
notepad.h)
add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/notepad.ico)
add_executable(notepad ${SOURCE} rsrc.rc)
set_module_type(notepad win32gui UNICODE)
add_importlibs(notepad user32 gdi32 comctl32 comdlg32 advapi32 shell32 msvcrt kernel32)

View file

@ -1,4 +1,6 @@
file(GLOB osk_rc_deps res/*.*)
add_rc_deps(rsrc.rc ${osk_rc_deps})
add_executable(osk main.c rsrc.rc)
set_module_type(osk win32gui UNICODE)
add_importlibs(osk comdlg32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32)

View file

@ -16,6 +16,8 @@ list(APPEND SOURCE
winmain.c
rapps.h)
file(GLOB_RECURSE rapps_rc_deps res/*.*)
add_rc_deps(rapps.rc ${rapps_rc_deps})
add_executable(rapps ${SOURCE} rapps.rc)
set_module_type(rapps win32gui UNICODE)
target_link_libraries(rapps uuid)

View file

@ -16,6 +16,8 @@ list(APPEND SOURCE
winmain.cpp
rapps.h)
file(GLOB_RECURSE rapps_new_rc_deps res/*.*)
add_rc_deps(rapps.rc ${rapps_new_rc_deps})
add_executable(rapps_new ${SOURCE} rapps.rc)
set_module_type(rapps_new win32gui UNICODE)
target_link_libraries(rapps_new atlnew uuid wine)

View file

@ -18,6 +18,8 @@ list(APPEND SOURCE
treeview.c
regedit.h)
file(GLOB regedit_rc_deps res/*.*)
add_rc_deps(regedit.rc ${regedit_rc_deps})
add_executable(regedit ${SOURCE} regedit.rc)
set_module_type(regedit win32gui UNICODE)
target_link_libraries(regedit uuid)

View file

@ -1,4 +1,5 @@
add_rc_deps(resource.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/regedt32.ico)
add_executable(regedt32 regedt32.c resource.rc)
set_module_type(regedt32 win32gui UNICODE)
add_importlibs(regedt32 shell32 shlwapi msvcrt kernel32)

View file

@ -4,6 +4,7 @@ list(APPEND SOURCE
settings.c
3dtext.h)
add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/icon_3dtext.ico)
add_executable(3dtext ${SOURCE} rsrc.rc)
set_module_type(3dtext win32gui UNICODE)
set_target_properties(3dtext PROPERTIES SUFFIX ".scr")

View file

@ -1,4 +1,6 @@
file(GLOB logon_rc_deps res/*.*)
add_rc_deps(logon.rc ${logon_rc_deps})
add_executable(logon logon.c logon.rc)
set_module_type(logon win32gui UNICODE)
set_target_properties(logon PROPERTIES SUFFIX ".scr")

View file

@ -12,6 +12,8 @@ list(APPEND SOURCE
sndrec32.cpp
stdafx.h)
file(GLOB sndrec32_rc_deps resources/*.*)
add_rc_deps(rsrc.rc ${sndrec32_rc_deps})
add_executable(sndrec32 ${SOURCE} rsrc.rc)
set_module_type(sndrec32 win32gui UNICODE)
add_importlibs(sndrec32 winmm user32 msacm32 comctl32 comdlg32 gdi32 shell32 msvcrt kernel32)

View file

@ -6,6 +6,7 @@ list(APPEND SOURCE
sndvol32.c
sndvol32.h)
add_rc_deps(sndvol32.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/sndvol32.ico)
add_executable(sndvol32 ${SOURCE} sndvol32.rc)
set_module_type(sndvol32 win32gui UNICODE)
add_importlibs(sndvol32 user32 advapi32 gdi32 comctl32 shell32 winmm msvcrt kernel32 ntdll)

View file

@ -21,6 +21,8 @@ list(APPEND SOURCE
trayicon.c
precomp.h)
file(GLOB taskmgr_rc_deps res/*.*)
add_rc_deps(taskmgr.rc ${taskmgr_rc_deps})
add_executable(taskmgr ${SOURCE} taskmgr.rc)
set_module_type(taskmgr win32gui UNICODE)
add_importlibs(taskmgr advapi32 user32 gdi32 shell32 shlwapi comctl32 msvcrt kernel32 ntdll)

View file

@ -15,11 +15,8 @@ list(APPEND SOURCE
winhelp.c
winhelp.h)
add_executable(winhlp32
${SOURCE}
string.c
rsrc.rc)
add_rc_deps(rsrc.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/winhelp.ico)
add_executable(winhlp32 ${SOURCE} string.c rsrc.rc)
set_module_type(winhlp32 win32gui)
target_link_libraries(winhlp32 wine)
add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)

View file

@ -8,10 +8,11 @@ list(APPEND SOURCE
olecallback.c
print.c
registry.c
wordpad.c
rsrc.rc)
wordpad.c)
add_executable(wordpad ${SOURCE})
file(GLOB wordpad_rc_deps res/*.*)
add_rc_deps(rsrc.rc ${wordpad_rc_deps})
add_executable(wordpad ${SOURCE} rsrc.rc)
set_module_type(wordpad win32gui)
target_link_libraries(wordpad wine uuid)
add_importlibs(wordpad comdlg32 ole32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32 ntdll)