[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Fri, 3 Dec 2010 17:41:29 +0000 (17:41 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Fri, 3 Dec 2010 17:41:29 +0000 (17:41 +0000)
- Improve more modules.

svn path=/branches/cmake-bringup/; revision=49932

12 files changed:
dll/win32/CMakeLists.txt
drivers/battery/battc/CMakeLists.txt
drivers/directx/dxgthk/CMakeLists.txt
drivers/ksfilter/ks/CMakeLists.txt
drivers/network/ndis/CMakeLists.txt
drivers/storage/class/class2/CMakeLists.txt
drivers/storage/ide/pciidex/CMakeLists.txt
drivers/storage/scsiport/CMakeLists.txt
drivers/video/videoprt/CMakeLists.txt
drivers/wdm/audio/drm/drmk/CMakeLists.txt
drivers/wmi/CMakeLists.txt
subsystems/win32/win32k/CMakeLists.txt

index 8f79775..6ffa6f7 100644 (file)
@@ -102,8 +102,8 @@ add_subdirectory(mssign32)
 add_subdirectory(mssip32)
 #add_subdirectory(mstask)
 add_subdirectory(msvcrt)
-add_subdirectory(msvcrt20)
-add_subdirectory(msvcrt40)
+#add_subdirectory(msvcrt20) FIX spec2def
+#add_subdirectory(msvcrt40) FIX spec2def
 add_subdirectory(msvfw32)
 add_subdirectory(msvidc32)
 add_subdirectory(mswsock)
@@ -212,7 +212,7 @@ add_subdirectory(wintrust)
 add_subdirectory(wlanapi)
 add_subdirectory(wldap32)
 add_subdirectory(wmi)
-add_subdirectory(ws2_32)
+#add_subdirectory(ws2_32) SPEC
 add_subdirectory(ws2_32_new)
 add_subdirectory(ws2help)
 add_subdirectory(wshirda)
index ac2e45c..f2685c7 100644 (file)
@@ -12,4 +12,4 @@ set_module_type(battc kernelmodedriver)
 add_importlibs(battc ntoskrnl hal)
 
 add_cab_target(battc 2)
-add_importlib_target(battc.spec)
\ No newline at end of file
+add_importlib_target(battc.spec batc.sys)
\ No newline at end of file
index 3e41431..ebf868d 100644 (file)
@@ -11,6 +11,6 @@ add_library(dxgthk SHARED ${SOURCE})
 set_module_type(dxgthk kernelmodedriver)
 
 add_importlibs(dxgthk win32k)
-add_importlib_target(dxgthk.spec)
+add_importlib_target(dxgthk.spec dxgthk.sys)
 
 add_cab_target(dxgthk 2)
index d2d6c71..b03087d 100644 (file)
@@ -5,7 +5,7 @@ add_definitions(
     -DBUILDING_KS
     -D_COMDDK_)
 
-add_library(ks SHARED
+list(APPEND SOURCE
     api.c
     allocators.c
     bag.c
@@ -30,16 +30,18 @@ add_library(ks SHARED
     ks.rc
     ${CMAKE_CURRENT_BINARY_DIR}/ks.def)
 
+add_library(ks SHARED ${SOURCE})
+
 set_target_properties(ks PROPERTIES SUFFIX ".sys")
+
 set_entrypoint(ks 0)
 set_subsystem(ks native)
 set_image_base(ks 0x00010000)
 
-target_link_libraries(ks
-    ${PSEH_LIB})
+target_link_libraries(ks ${PSEH_LIB})
 
 add_importlibs(ks ntoskrnl hal msvcrt)
 add_dependencies(ks psdk bugcodes)
 
 add_cab_target(ks 2)
-add_importlib_target(ks.spec)
\ No newline at end of file
+add_importlib_target(ks.spec ks.sys)
\ No newline at end of file
index 16263ac..4118458 100644 (file)
@@ -43,4 +43,4 @@ add_importlibs(ndis ntoskrnl hal)
 add_pch(ndis ${CMAKE_CURRENT_SOURCE_DIR}/include/ndissys.h ${SOURCE})
 
 add_cab_target(ndis 2)
-add_importlib_target(ndis.spec)
+add_importlib_target(ndis.spec ndis.sys)
index 2791ec5..6150dcb 100644 (file)
@@ -3,14 +3,17 @@ include_directories(..)
 
 spec2def(class2.sys class2.spec)
 
-add_library(class2 SHARED
+list(APPEND SOURCE
     class2.c
     class2.rc
     ${CMAKE_CURRENT_BINARY_DIR}/class2.def)
 
+add_library(class2 SHARED ${SOURCE})
+
 set_module_type(class2 kernelmodedriver)
+
 add_importlibs(class2 scsiport ntoskrnl hal)
+add_importlib_target(class2.spec class2.sys)
 
 add_minicd_target(class2 reactos class2.sys)
 add_livecd_target(class2 reactos/system32/drivers)
-add_importlib_target(class2.spec)
index c7280ce..569f967 100644 (file)
@@ -1,7 +1,7 @@
 
 spec2def(pciidex.sys pciidex.spec)
 
-add_library(pciidex SHARED
+list(APPEND SOURCE
     fdo.c
     miniport.c
     misc.c
@@ -10,8 +10,10 @@ add_library(pciidex SHARED
     pciidex.rc
     ${CMAKE_CURRENT_BINARY_DIR}/pciidex.def)
 
+add_library(pciidex SHARED ${SOURCE})
+
 set_module_type(pciidex kernelmodedriver)
 add_importlibs(pciidex ntoskrnl)
 
 add_cab_target(pciidex 2)
-add_importlib_target(pciidex.spec)
+add_importlib_target(pciidex.spec pciidex.sys)
index 0e0bffe..1f937ae 100644 (file)
@@ -1,17 +1,18 @@
 
 spec2def(scsiport.sys scsiport.spec)
 
-add_library(scsiport SHARED
-            scsiport.c
-            stubs.c
-            scsiport.rc
-            )
-
-target_link_libraries(scsiport ${CMAKE_CURRENT_SOURCE_DIR}/scsiport_i386.def)
+list(APPEND SOURCE
+    scsiport.c
+    stubs.c
+    scsiport.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/scsiport.def)
+    
+add_library(scsiport SHARED ${SOURCE})
 
 set_module_type(scsiport kernelmodedriver)
+
 add_importlibs(scsiport ntoskrnl hal)
+add_importlib_target(scsiport.spec scsiport.sys)
 
 add_minicd_target(scsiport reactos scsiport.sys)
 add_livecd_target(scsiport reactos/system32/drivers)
-add_importlib_target(scsiport.spec)
index 492ca51..f92ed93 100644 (file)
@@ -30,4 +30,4 @@ add_importlibs(videoprt ntoskrnl hal)
 
 add_pch(videoprt ${CMAKE_CURRENT_SOURCE_DIR}/videoprt.h ${SOURCE})
 add_cab_target(videoprt 2)
-add_importlib_target(videoprt.spec)
+add_importlib_target(videoprt.spec videoprt.sys)
index 71a05cf..b505da5 100644 (file)
@@ -12,6 +12,6 @@ add_library(drmk SHARED ${SOURCE})
 
 set_module_type(drmk kernelmodedriver)
 add_importlibs(drmk ntoskrnl)
-add_importlib_target(drmk.spec)
+add_importlib_target(drmk.spec drmk.sys)
 
 add_cab_target(drmk 2)
index fc4507e..38b56a0 100644 (file)
@@ -11,6 +11,6 @@ add_library(wmilib SHARED ${SOURCE})
 set_module_type(wmilib kernelmodedriver)
 
 add_importlibs(wmilib ntoskrnl)
-add_importlib_target(wmilib.spec)
+add_importlib_target(wmilib.spec wmilib.sys)
 
 add_cab_target(wmilib 2)
index 79431b5..d8691cd 100644 (file)
@@ -192,5 +192,5 @@ add_importlibs(win32k ntoskrnl hal ftfd)
 add_pch(win32k ${CMAKE_CURRENT_SOURCE_DIR}/pch.h ${SOURCE})
 add_dependencies(win32k gendib_generated subsystem_napi)
 add_cab_target(win32k 1)
-add_importlib_target(win32k.spec)
+add_importlib_target(win32k.spec win32k.sys)