[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 4 Nov 2010 21:06:20 +0000 (21:06 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 4 Nov 2010 21:06:20 +0000 (21:06 +0000)
- Improve more drivers.

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

31 files changed:
drivers/bus/pci/CMakeLists.txt
drivers/bus/pcix/CMakeLists.txt
drivers/bus/pcmcia/CMakeLists.txt
drivers/directx/dxapi/CMakeLists.txt
drivers/directx/dxg/CMakeLists.txt
drivers/directx/dxgthk/CMakeLists.txt
drivers/filesystems/cdfs/CMakeLists.txt
drivers/filesystems/ext2/CMakeLists.txt
drivers/filesystems/fastfat/CMakeLists.txt
drivers/filesystems/fastfat_new/CMakeLists.txt
drivers/filesystems/fs_rec/CMakeLists.txt
drivers/filesystems/msfs/CMakeLists.txt
drivers/filesystems/mup/CMakeLists.txt
drivers/filesystems/npfs/CMakeLists.txt
drivers/filesystems/ntfs/CMakeLists.txt
drivers/input/i8042prt/CMakeLists.txt
drivers/input/kbdclass/CMakeLists.txt
drivers/input/mouclass/CMakeLists.txt
drivers/input/sermouse/CMakeLists.txt
drivers/ksfilter/ks/CMakeLists.txt
drivers/network/afd/CMakeLists.txt
drivers/network/dd/ne2000/CMakeLists.txt
drivers/network/dd/pcnet/CMakeLists.txt
drivers/network/ndis/CMakeLists.txt
drivers/network/tcpip/CMakeLists.txt
drivers/network/tdi/CMakeLists.txt
drivers/parallel/parallel/CMakeLists.txt
drivers/serial/serenum/CMakeLists.txt
drivers/serial/serial/CMakeLists.txt
drivers/setup/blue/CMakeLists.txt
drivers/storage/ide/uniata/CMakeLists.txt

index a0b3662..0fe7e24 100644 (file)
@@ -5,9 +5,8 @@ add_library(pci SHARED
     pdo.c
     pci.rc)
 
-set_target_properties(pci PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
-
+set_module_type(pci kernelmodedriver)
 add_importlibs(pci ntoskrnl hal)
-add_dependencies(pci psdk bugcodes buildno_header)
+
 add_minicd_target(pci reactos pci.sys)
-add_livecd_target(pci reactos/system32/drivers)
\ No newline at end of file
+add_livecd_target(pci reactos/system32/drivers)
index 93936ec..c40008c 100644 (file)
@@ -38,9 +38,8 @@ list(APPEND SOURCE
 
 add_library(pcix SHARED ${CMAKE_CURRENT_BINARY_DIR}/pcix_pci.h.gch ${SOURCE})
 
-set_target_properties(pcix PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
-
+set_module_type(pcix kernelmodedriver)
 add_importlibs(pcix ntoskrnl hal)
 
 add_pch(pcix ${CMAKE_CURRENT_SOURCE_DIR}/pci.h ${SOURCE})
-add_dependencies(pcix psdk pciclass buildno_header)
+add_dependencies(pcix pciclass)
index bd57d14..764b84a 100644 (file)
@@ -5,9 +5,8 @@ add_library(pcmcia SHARED
     pdo.c
     pcmcia.rc)
 
-set_target_properties(pcmcia PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native -Wl,--exclude-all-symbols" SUFFIX ".sys")
-
+set_module_type(pcmcia kernelmodedriver)
 add_importlibs(pcmcia ntoskrnl hal)
-add_dependencies(pcmcia psdk bugcodes buildno_header)
+
 add_minicd_target(pcmcia reactos pcmcia.sys)
-add_livecd_target(pcmcia reactos/system32/drivers)
\ No newline at end of file
+add_livecd_target(pcmcia reactos/system32/drivers)
index 400224e..172c045 100644 (file)
@@ -3,10 +3,10 @@ add_definitions(-D_DXAPI_)
 
 spec2def(dxapi.sys dxapi.spec)
 
-add_library(dxapi SHARED main.c dxapi.rc
+add_library(dxapi SHARED
+    main.c
+    dxapi.rc
     ${CMAKE_CURRENT_BINARY_DIR}/dxapi.def)
 
-set_target_properties(dxapi PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(dxapi kernelmodedriver)
 add_importlibs(dxapi ntoskrnl hal videoprt)
-add_dependencies(dxapi psdk bugcodes)
index 957b781..0062fc7 100644 (file)
@@ -9,8 +9,5 @@ add_library(dxg SHARED
     dxg.rc
     ${CMAKE_CURRENT_BINARY_DIR}/dxg.def)
 
-set_target_properties(dxg PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
-
-
+set_module_type(dxg kernelmodedriver)
 add_importlibs(dxg dxgthk ntoskrnl)
-add_dependencies(dxg psdk bugcodes)
index 0097919..162b51f 100644 (file)
@@ -1,10 +1,10 @@
 
 spec2def(dxgthk.sys dxgthk.spec)
 
-add_library(dxgthk SHARED main.c dxgthk.rc
+add_library(dxgthk SHARED
+    main.c
+    dxgthk.rc
     ${CMAKE_CURRENT_BINARY_DIR}/dxgthk.def)
 
-set_target_properties(dxgthk PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(dxgthk kernelmodedriver)
 add_importlibs(dxgthk win32k)
-add_dependencies(dxgthk psdk bugcodes)
index ebc4bd6..3578bfa 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
 
 list(APPEND SOURCE
@@ -21,13 +19,10 @@ list(APPEND SOURCE
 
 add_library(cdfs SHARED ${CMAKE_CURRENT_BINARY_DIR}/cdfs_cdfs.h.gch ${SOURCE})
 
-set_target_properties(cdfs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
-target_link_libraries(cdfs
-    -lntoskrnl
-    -lhal)
+set_module_type(cdfs kernelmodedriver)
+add_importlibs(cdfs ntoskrnl hal)
 
 add_pch(cdfs ${CMAKE_CURRENT_SOURCE_DIR}/cdfs.h ${SOURCE})
-add_dependencies(cdfs psdk bugcodes)
+
 add_minicd_target(cdfs reactos cdfs.sys)
-add_livecd_target(cdfs reactos/system32/drivers cdfs.sys)
\ No newline at end of file
+add_livecd_target(cdfs reactos/system32/drivers cdfs.sys)
index 621aa02..8558af7 100644 (file)
@@ -1,3 +1,4 @@
+
 include_directories(inc)
 
 list(APPEND SOURCE
@@ -22,13 +23,8 @@ list(APPEND SOURCE
     
 add_library(ext2fs SHARED ${SOURCE})
 
-set_target_properties(ext2fs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
-
-target_link_libraries(ext2fs
-    -lntoskrnl
-    -lhal)
+set_module_type(ext2fs kernelmodedriver)
+add_importlibs(ext2fs ntoskrnl hal)
 
-add_dependencies(ext2fs psdk bugcodes)
 add_minicd_target(ext2fs reactos ext2.sys)
-add_livecd_target(ext2fs reactos/system32/drivers ext2.sys)
\ No newline at end of file
+add_livecd_target(ext2fs reactos/system32/drivers ext2.sys)
index 20234fa..85097ee 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 list(APPEND SOURCE
     blockdev.c
     cleanup.c
@@ -27,13 +25,10 @@ list(APPEND SOURCE
 
 add_library(fastfat SHARED ${CMAKE_CURRENT_BINARY_DIR}/fastfat_vfat.h.gch ${SOURCE})
 
-set_target_properties(fastfat PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
-target_link_libraries(fastfat
-    -lntoskrnl
-    -lhal)
+set_module_type(fastfat kernelmodedriver)
+add_importlibs(fastfat ntoskrnl hal)
 
 add_pch(fastfat ${CMAKE_CURRENT_SOURCE_DIR}/vfat.h ${SOURCE})
-add_dependencies(fastfat psdk bugcodes)
+
 add_minicd_target(fastfat reactos fastfat.sys)
-add_livecd_target(fastfat reactos/system32/drivers)
\ No newline at end of file
+add_livecd_target(fastfat reactos/system32/drivers)
index 48dbbf1..57042c9 100644 (file)
@@ -1,6 +1,7 @@
 
-include_directories(.)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/fullfat)
+include_directories(
+    .
+    ${REACTOS_SOURCE_DIR}/include/reactos/libs/fullfat)
 
 list(APPEND SOURCE
     cleanup.c
@@ -25,7 +26,7 @@ list(APPEND SOURCE
 
 add_library(fastfat_new SHARED ${CMAKE_CURRENT_BINARY_DIR}/fastfat_new_fastfat.h.gch ${SOURCE})
 
-set_target_properties(fastfat_new PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+set_module_type(fastfat_new kernelmodedriver)
 
 target_link_libraries(fastfat_new
     ${PSEH_LIB}
@@ -34,4 +35,3 @@ target_link_libraries(fastfat_new
 add_importlibs(fastfat_new ntoskrnl hal)
 
 add_pch(fastfat_new ${CMAKE_CURRENT_SOURCE_DIR}/fastfat.h ${SOURCE})
-add_dependencies(fastfat_new psdk bugcodes)
index 542eb13..c9b55cc 100644 (file)
@@ -9,8 +9,7 @@ add_library(fs_rec SHARED
     udfs.c
     fs_rec.rc)
 
-set_target_properties(fs_rec PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(fs_rec kernelmodedriver)
 add_importlibs(fs_rec ntoskrnl hal)
-add_dependencies(fs_rec psdk bugcodes)
-add_cab_target(fs_rec 2)
\ No newline at end of file
+
+add_cab_target(fs_rec 2)
index 706a64f..40ca59f 100644 (file)
@@ -9,9 +9,9 @@ list(APPEND SOURCE
 
 add_library(msfs SHARED ${CMAKE_CURRENT_BINARY_DIR}/msfs_msfs.h.gch ${SOURCE})
 
-set_target_properties(msfs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(msfs kernelmodedriver)
 add_importlibs(msfs ntoskrnl hal)
+
 add_pch(msfs ${CMAKE_CURRENT_SOURCE_DIR}/msfs.h ${SOURCE})
-add_dependencies(msfs psdk bugcodes)
-add_cab_target(msfs 2)
\ No newline at end of file
+
+add_cab_target(msfs 2)
index 56f83d6..4b3b894 100644 (file)
@@ -4,7 +4,5 @@ add_library(mup SHARED
     mup.c
     mup.rc)
 
-set_target_properties(mup PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(mup kernelmodedriver)
 add_importlibs(mup ntoskrnl hal)
-add_dependencies(mup psdk bugcodes)
index a95a185..0ed1005 100644 (file)
@@ -10,10 +10,9 @@ list(APPEND SOURCE
 
 add_library(npfs SHARED ${CMAKE_CURRENT_BINARY_DIR}/npfs_npfs.h.gch ${SOURCE})
 
-set_target_properties(npfs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(npfs kernelmodedriver)
 add_importlibs(npfs ntoskrnl hal)
 
 add_pch(npfs ${CMAKE_CURRENT_SOURCE_DIR}/npfs.h ${SOURCE})
-add_dependencies(npfs psdk bugcodes)
-add_cab_target(npfs 2)
\ No newline at end of file
+
+add_cab_target(npfs 2)
index 59082c4..24bc266 100644 (file)
@@ -19,8 +19,7 @@ list(APPEND SOURCE
     
 add_library(ntfs SHARED ${CMAKE_CURRENT_BINARY_DIR}/ntfs_ntfs.h.gch ${SOURCE})
 
-set_target_properties(ntfs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(ntfs kernelmodedriver)
 add_importlibs(ntfs ntoskrnl hal)
+
 add_pch(ntfs ${CMAKE_CURRENT_SOURCE_DIR}/ntfs.h ${SOURCE})
-add_dependencies(ntfs psdk bugcodes)
index 1dba31a..331e8ea 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 add_library(i8042prt SHARED
     createclose.c
     i8042prt.c
@@ -15,7 +13,6 @@ add_library(i8042prt SHARED
     i8042prt.rc)
 
 set_module_type(i8042prt kernelmodedriver)
-
 add_importlibs(i8042prt ntoskrnl hal)
 
 add_minicd_target(i8042prt reactos i8042prt.sys)
index 0334af2..04f839a 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 add_library(kbdclass SHARED
     kbdclass.c
     misc.c
index c85c0f9..35e4ff6 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 add_library(mouclass SHARED
     misc.c
     mouclass.c
index b1b8f24..e9a2003 100644 (file)
@@ -1,6 +1,4 @@
 
-
-
 add_library(sermouse SHARED
     createclose.c
     detect.c
@@ -11,12 +9,7 @@ add_library(sermouse SHARED
     sermouse.c
     sermouse.rc)
 
-set_target_properties(sermouse PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
-
-target_link_libraries(sermouse
-    -lntoskrnl
-    -lhal)
-
-add_dependencies(sermouse psdk bugcodes)
+set_module_type(sermouse kernelmodedriver)
+add_importlibs(sermouse ntoskrnl hal)
 
 add_cab_target(sermouse 2)
index 7df6213..d9cbe0c 100644 (file)
@@ -1,6 +1,7 @@
 
-add_definitions(-DBUILDING_KS)
-add_definitions(-D_COMDDK_)
+add_definitions(
+    -DBUILDING_KS
+    -D_COMDDK_)
 
 add_library(ks SHARED
     api.c
index 76478eb..e01c803 100644 (file)
@@ -1,6 +1,7 @@
 
-include_directories(BEFORE include)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
+include_directories(
+    BEFORE include
+    ${REACTOS_SOURCE_DIR}/include/reactos/drivers)
 
 list(APPEND SOURCE
     afd/bind.c
@@ -18,15 +19,11 @@ list(APPEND SOURCE
     afd.rc)
 
 add_library(afd SHARED ${CMAKE_CURRENT_BINARY_DIR}/afd_afd.h.gch ${SOURCE})
+target_link_libraries(afd ${PSEH_LIB})
 
 set_module_type(afd kernelmodedriver)
-
-target_link_libraries(afd
-    ${PSEH_LIB}
-    -lntoskrnl
-    -lhal)
+add_importlibs(afd ntoskrnl hal)
 
 add_pch(afd ${CMAKE_CURRENT_SOURCE_DIR}/include/afd.h ${SOURCE})
-add_dependencies(afd psdk bugcodes buildno_header)
 
-add_cab_target(afd 2)
\ No newline at end of file
+add_cab_target(afd 2)
index 8ba6864..dcdbd12 100644 (file)
@@ -9,12 +9,6 @@ list(APPEND SOURCE
 add_library(ne2000 SHARED ${SOURCE})
 
 set_module_type(ne2000 kernelmodedriver)
+add_importlibs(ne2000 ndis ntoskrnl hal)
 
-target_link_libraries(ne2000
-    -lndis
-    -lntoskrnl
-    -lhal)
-
-add_dependencies(ne2000 psdk bugcodes buildno_header)
-
-add_cab_target(ne2000 2)
\ No newline at end of file
+add_cab_target(ne2000 2)
index a73b26c..b42819e 100644 (file)
@@ -1,8 +1,9 @@
 
-add_definitions(-DNDIS50_MINIPORT)
-add_definitions(-DNDIS_MINIPORT_DRIVER)
-add_definitions(-DNDIS_LEGACY_MINIPORT)
-add_definitions(-DNDIS51_MINIPORT)
+add_definitions(
+    -DNDIS50_MINIPORT
+    -DNDIS_MINIPORT_DRIVER
+    -DNDIS_LEGACY_MINIPORT
+    -DNDIS51_MINIPORT)
 
 list(APPEND SOURCE
     pcnet.c
@@ -12,12 +13,6 @@ list(APPEND SOURCE
 add_library(pcnet SHARED ${SOURCE})
 
 set_module_type(pcnet kernelmodedriver)
+add_importlibs(pcnet ndis ntoskrnl hal)
 
-target_link_libraries(pcnet
-    -lndis
-    -lntoskrnl
-    -lhal)
-
-add_dependencies(pcnet psdk bugcodes buildno_header)
-
-add_cab_target(pcnet 2)
\ No newline at end of file
+add_cab_target(pcnet 2)
index 90eeb9e..8c3e2e9 100644 (file)
@@ -1,13 +1,14 @@
 
 include_directories(BEFORE include)
 
-add_definitions(-DNDIS_WRAPPER)
-add_definitions(-DNDIS51)
-add_definitions(-DNDIS51_MINIPORT)
-add_definitions(-DNDIS_LEGACY_DRIVER)
-add_definitions(-DNDIS_LEGACY_MINIPORT)
-add_definitions(-DNDIS_LEGACY_PROTOCOL)
-add_definitions(-DNDIS_MINIPORT_DRIVER)
+add_definitions(
+    -DNDIS_WRAPPER
+    -DNDIS51
+    -DNDIS51_MINIPORT
+    -DNDIS_LEGACY_DRIVER
+    -DNDIS_LEGACY_MINIPORT
+    -DNDIS_LEGACY_PROTOCOL
+    -DNDIS_MINIPORT_DRIVER)
 
 spec2def(ndis.sys ndis.spec)
 
@@ -36,12 +37,9 @@ list(APPEND SOURCE
 
 add_library(ndis SHARED ${CMAKE_CURRENT_BINARY_DIR}/ndis_ndissys.h.gch ${SOURCE})
 
-set_target_properties(ndis PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
-target_link_libraries(ndis
-    -lntoskrnl
-    -lhal)
+set_module_type(ndis kernelmodedriver)
+add_importlibs(ndis ntoskrnl hal)
 
 add_pch(ndis ${CMAKE_CURRENT_SOURCE_DIR}/include/ndissys.h ${SOURCE})
-add_dependencies(ndis psdk bugcodes buildno_header)
-add_cab_target(ndis 2)
\ No newline at end of file
+
+add_cab_target(ndis 2)
index a4e4bc2..65e1a27 100644 (file)
@@ -1,9 +1,11 @@
 
-include_directories(BEFORE include)
-include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/oskittcp/include)
+include_directories(
+    BEFORE include
+    ${REACTOS_SOURCE_DIR}/lib/drivers/oskittcp/include)
 
-add_definitions(-DNDIS40)
-add_definitions(-D_NTDRIVER_)
+add_definitions(
+    -DNDIS40
+    -D_NTDRIVER_)
 
 spec2def(tcpip.sys tcpip.spec)
 
@@ -26,18 +28,15 @@ list(APPEND SOURCE
 
 add_library(tcpip SHARED ${CMAKE_CURRENT_BINARY_DIR}/tcpip_precomp.h.gch ${SOURCE})
 
-set_module_type(tcpip kernelmodedriver)
-
 target_link_libraries(tcpip
     ip
     oskittcp
     ${PSEH_LIB}
-    chew
-    -lndis
-    -lntoskrnl
-    -lhal)
+    chew)
+
+set_module_type(tcpip kernelmodedriver)
+add_importlibs(tcpip ndis ntoskrnl hal)
 
 add_pch(tcpip ${CMAKE_CURRENT_SOURCE_DIR}/include/precomp.h ${SOURCE})
-add_dependencies(tcpip psdk bugcodes buildno_header)
 
-add_cab_target(tcpip 2)
\ No newline at end of file
+add_cab_target(tcpip 2)
index 6c4a9cb..4afa013 100644 (file)
@@ -1,9 +1,11 @@
 
-include_directories(BEFORE include)
-include_directories(${REACTOS_SOURCE_DIR}/lib/drivers/oskittcp/include)
+include_directories(
+    BEFORE include
+    ${REACTOS_SOURCE_DIR}/lib/drivers/oskittcp/include)
 
-add_definitions(-DNDIS40)
-add_definitions(-D_NTDRIVER_)
+add_definitions(
+    -DNDIS40
+    -D_NTDRIVER_)
 
 spec2def(tdi.sys misc/tdi.spec)
 
@@ -21,11 +23,6 @@ list(APPEND SOURCE
 add_library(tdi SHARED ${SOURCE})
 
 set_module_type(tdi kernelmodedriver)
+add_importlibs(tdi ntoskrnl hal)
 
-target_link_libraries(tdi
-    -lntoskrnl
-    -lhal)
-
-add_dependencies(tdi psdk bugcodes buildno_header)
-
-add_cab_target(tdi 2)
\ No newline at end of file
+add_cab_target(tdi 2)
index 1175630..9544496 100644 (file)
@@ -1,7 +1,5 @@
 
 add_library(parallel SHARED parallel.c parallel.rc)
 
-set_target_properties(parallel PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(parallel kernelmodedriver)
 add_importlibs(parallel ntoskrnl hal)
-add_dependencies(parallel psdk bugcodes)
index 1dbe731..8066291 100644 (file)
@@ -7,8 +7,7 @@ add_library(serenum SHARED
     serenum.c
     serenum.rc)
 
-set_target_properties(serenum PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(serenum kernelmodedriver)
 add_importlibs(serenum ntoskrnl hal)
-add_dependencies(serenum psdk bugcodes)
-add_cab_target(serenum 2)
\ No newline at end of file
+
+add_cab_target(serenum 2)
index 60e28f1..1065fc5 100644 (file)
@@ -14,8 +14,7 @@ add_library(serial SHARED
     serial.c
     serial.rc)
 
-set_target_properties(serial PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(serial kernelmodedriver)
 add_importlibs(serial ntoskrnl hal)
-add_dependencies(serial psdk bugcodes)
-add_cab_target(serial 2)
\ No newline at end of file
+
+add_cab_target(serial 2)
index bc00cd3..7c2e419 100644 (file)
@@ -1,16 +1,10 @@
 
-
-
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
 
 add_library(blue SHARED blue.c font.c blue.rc)
 
-set_target_properties(blue PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
-target_link_libraries(blue
-    -lntoskrnl
-    -lhal)
+set_module_type(blue kernelmodedriver)
+add_importlibs(blue ntoskrnl hal)
 
-add_dependencies(blue psdk bugcodes)
 add_minicd_target(blue reactos blue.sys)
-add_cab_target(blue 2)
\ No newline at end of file
+add_cab_target(blue 2)
index 9abecbc..90b866a 100644 (file)
@@ -15,7 +15,6 @@ add_library(uniata SHARED
     ros_glue/ros_glue.cpp)
 
 set_module_type(uniata kernelmodedriver)
-
 add_importlibs(uniata scsiport ntoskrnl hal)
 
 add_minicd_target(uniata reactos uniata.sys)