[CPLS] Properly track resource file dependencies. CORE-9806
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 27 Sep 2015 18:30:39 +0000 (18:30 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 27 Sep 2015 18:30:39 +0000 (18:30 +0000)
svn path=/trunk/; revision=69385

17 files changed:
reactos/dll/cpl/access/CMakeLists.txt
reactos/dll/cpl/appwiz/CMakeLists.txt
reactos/dll/cpl/console/CMakeLists.txt
reactos/dll/cpl/desk/CMakeLists.txt
reactos/dll/cpl/hdwwiz/CMakeLists.txt
reactos/dll/cpl/inetcpl/CMakeLists.txt
reactos/dll/cpl/input/CMakeLists.txt
reactos/dll/cpl/intl/CMakeLists.txt
reactos/dll/cpl/joy/CMakeLists.txt
reactos/dll/cpl/main/CMakeLists.txt
reactos/dll/cpl/mmsys/CMakeLists.txt
reactos/dll/cpl/powercfg/CMakeLists.txt
reactos/dll/cpl/sysdm/CMakeLists.txt
reactos/dll/cpl/telephon/CMakeLists.txt
reactos/dll/cpl/timedate/CMakeLists.txt
reactos/dll/cpl/usrmgr/CMakeLists.txt
reactos/dll/cpl/wined3dcfg/CMakeLists.txt

index 89ca837..1e07328 100644 (file)
@@ -10,6 +10,8 @@ list(APPEND SOURCE
     sound.c
     access.h)
 
+add_rc_deps(access.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/applet.ico)
+
 add_library(access SHARED
     ${SOURCE}
     access.rc
index acb3c83..6cdd32b 100644 (file)
@@ -12,6 +12,9 @@ list(APPEND SOURCE
     createlink.c
     appwiz.h)
 
+file(GLOB appwiz_rc_deps resources/*.*)
+add_rc_deps(appwiz.rc ${appwiz_rc_deps})
+
 add_library(appwiz SHARED
     ${SOURCE}
     appwiz.rc
index 137d662..6595f6b 100644 (file)
@@ -12,6 +12,8 @@ list(APPEND SOURCE
     colors.c
     console.h)
 
+add_rc_deps(console.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/terminal.ico)
+
 add_library(console SHARED
     ${SOURCE}
     console.rc
index ffa2cea..ae7fb83 100644 (file)
@@ -23,6 +23,9 @@ list(APPEND SOURCE
     muireg.c
     desk.h)
 
+file(GLOB desk_rc_deps resources/*.*)
+add_rc_deps(desk.rc ${desk_rc_deps})
+
 add_library(desk SHARED
     ${SOURCE}
     guid.c
index aa4a149..205e462 100644 (file)
@@ -1,5 +1,7 @@
 
 spec2def(hdwwiz.cpl hdwwiz.spec)
+file(GLOB hdwwiz_rc_deps resources/*.*)
+add_rc_deps(hdwwiz.rc ${hdwwiz_rc_deps})
 
 add_library(hdwwiz SHARED
     hdwwiz.c
index 81de1e0..c3f00f9 100644 (file)
@@ -9,6 +9,9 @@ list(APPEND SOURCE
     security.c
     inetcpl.h)
 
+file(GLOB inetcpl_rc_deps resources/*.*)
+add_rc_deps(inetcpl.rc ${inetcpl_rc_deps})
+
 add_library(inetcpl SHARED
     ${SOURCE}
     inetcpl.rc
index a04dbc0..42112bb 100644 (file)
@@ -10,6 +10,8 @@ list(APPEND SOURCE
     changekeyseq.c
     input.h)
 
+add_rc_deps(input.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/keyboard-shortcuts.ico)
+
 add_library(input SHARED
     ${SOURCE}
     input.rc
index 47ece39..d18db6f 100644 (file)
@@ -16,6 +16,8 @@ list(APPEND SOURCE
     sort.c
     intl.h)
 
+add_rc_deps(intl.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/applet.ico)
+
 add_library(intl SHARED
     ${SOURCE}
     intl.rc
index 5bee7b4..9e5bd91 100644 (file)
@@ -1,5 +1,6 @@
 
 spec2def(joy.cpl joy.spec)
+add_rc_deps(joy.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/applet.ico)
 
 add_library(joy SHARED
     joy.c
index e450ddb..7597123 100644 (file)
@@ -7,6 +7,9 @@ list(APPEND SOURCE
     mouse.c
     main.h)
 
+file(GLOB main_rc_deps resources/*.*)
+add_rc_deps(main.rc ${main_rc_deps})
+
 add_library(main SHARED
     ${SOURCE}
     main.rc
index 2409162..5d1665b 100644 (file)
@@ -9,6 +9,9 @@ list(APPEND SOURCE
     voice.c
     mmsys.h)
 
+file(GLOB mmsys_rc_deps resources/*.*)
+add_rc_deps(mmsys.rc ${mmsys_rc_deps})
+
 add_library(mmsys SHARED
     ${SOURCE}
     mmsys.rc
index 99f8354..689cd3f 100644 (file)
@@ -9,6 +9,9 @@ list(APPEND SOURCE
     hibernate.c
     powercfg.h)
 
+file(GLOB powercfg_rc_deps resources/*.*)
+add_rc_deps(powercfg.rc ${powercfg_rc_deps})
+
 add_library(powercfg SHARED
     ${SOURCE}
     powercfg.rc
index c5ddac5..d05aba0 100644 (file)
@@ -14,6 +14,9 @@ list(APPEND SOURCE
     virtmem.c
     precomp.h)
 
+file(GLOB sysdm_rc_deps resources/*.*)
+add_rc_deps(sysdm.rc ${sysdm_rc_deps})
+
 add_library(sysdm SHARED
     ${SOURCE}
     sysdm.rc
index 000279c..222d577 100644 (file)
@@ -1,5 +1,6 @@
 
 spec2def(telephon.cpl telephon.spec)
+add_rc_deps(telephon.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/applet.ico)
 
 add_library(telephon SHARED
     telephon.c
index 21e5c84..ce5907d 100644 (file)
@@ -11,6 +11,9 @@ list(APPEND SOURCE
     timezone.c
     timedate.h)
 
+file(GLOB timedate_rc_deps resources/*.*)
+add_rc_deps(timedate.rc ${timedate_rc_deps})
+
 add_library(timedate SHARED
     ${SOURCE}
     timedate.rc
index 5ef0c1b..5e29c8c 100644 (file)
@@ -12,6 +12,9 @@ list(APPEND SOURCE
     usrmgr.c
     usrmgr.h)
 
+file(GLOB usrmgr_rc_deps resources/*.*)
+add_rc_deps(usrmgr.rc ${usrmgr_rc_deps})
+
 add_library(usrmgr SHARED
     ${SOURCE}
     usrmgr.rc
index fc4b606..f7e5b96 100644 (file)
@@ -6,6 +6,8 @@ list(APPEND SOURCE
     general.c
     wined3dcfg.h)
 
+add_rc_deps(wined3dcfg.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/wined3dcfg.ico)
+
 add_library(wined3dcfg SHARED
     ${SOURCE}
     wined3dcfg.rc