- Improve base and bus drivers.
svn path=/branches/cmake-bringup/; revision=49468
-
-
add_library(beep SHARED beep.c beep.rc)
-
-set_target_properties(beep PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
-
-target_link_libraries(beep
- -lntoskrnl
- -lhal)
-
-add_dependencies(beep psdk bugcodes)
-add_cab_target(beep 2)
\ No newline at end of file
+set_module_type(beep kernelmodedriver)
+add_importlibs(beep ntoskrnl hal)
+add_cab_target(beep 2)
add_library(bootvid SHARED ${CMAKE_CURRENT_BINARY_DIR}/bootvid_precomp.h.gch ${SOURCE})
-set_target_properties(bootvid PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
-
-target_link_libraries(bootvid
- -lntoskrnl
- -lhal)
+set_entrypoint(bootvid 0)
+set_subsystem(bootvid native)
+set_image_base(bootvid 0x00010000)
+add_importlibs(bootvid ntoskrnl hal)
add_pch(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
add_dependencies(bootvid psdk buildno_header bugcodes)
add_minicd_target(bootvid reactos bootvid.dll)
add_library(kdcom SHARED ${SOURCE})
-set_target_properties(kdcom PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
+set_entrypoint(kdcom 0)
+set_subsystem(kdcom native)
+set_image_base(kdcom 0x00010000)
-target_link_libraries(kdcom
- -lntoskrnl
- -lhal)
+add_importlibs(kdcom ntoskrnl hal)
add_dependencies(kdcom psdk buildno_header bugcodes)
add_minicd_target(kdcom reactos kdcom.dll)
-add_livecd_target(kdcom reactos/system32)
\ No newline at end of file
+add_livecd_target(kdcom reactos/system32)
kdserial.c
${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
-set_target_properties(kdcom PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
+set_entrypoint(kdcom 0)
+set_subsystem(kdcom native)
+set_image_base(kdcom 0x00010000)
-target_link_libraries(kdcom
- -lntoskrnl
- -lhal)
+add_importlibs(kdcom ntoskrnl hal)
add_dependencies(kdcom psdk buildno_header bugcodes)
-
-
add_library(nmidebug SHARED nmidebug.c nmidebug.rc)
-set_target_properties(nmidebug PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
-
-target_link_libraries(nmidebug
- -lntoskrnl
- -lhal)
+set_module_type(nmidebug kernelmodedriver)
+add_importlibs(nmidebug ntoskrnl hal)
-add_dependencies(nmidebug psdk bugcodes)
add_minicd_target(nmidebug reactos)
add_cab_target(nmidebug 2)
-
-
add_library(null SHARED null.c null.rc)
-set_target_properties(null PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
+target_link_libraries(null ${PSEH_LIB})
-target_link_libraries(null
- ${PSEH_LIB}
- -lntoskrnl
- -lhal)
+set_module_type(null kernelmodedriver)
+add_importlibs(null ntoskrnl hal)
-add_dependencies(null psdk bugcodes)
-add_cab_target(null 2)
\ No newline at end of file
+add_cab_target(null 2)
-
-
add_definitions(-D_BATTERYCLASS_)
add_library(battc SHARED battc.c battc.rc)
-set_target_properties(battc PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
-target_link_libraries(battc
- -lntoskrnl
- -lhal)
-
-add_dependencies(battc psdk bugcodes)
+set_module_type(battc kernelmodedriver)
+add_importlibs(battc ntoskrnl hal)
-include_directories(include)
-include_directories(acpica/include)
+include_directories(
+ include
+ acpica/include)
add_library(acpica
acpica/dispatcher/dsfield.c
buspdo.c
main.c)
-set_target_properties(acpi PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+set_module_type(acpi kernelmodedriver)
target_link_libraries(acpi
wdmguid
acpica)
add_importlibs(acpi ntoskrnl hal)
-add_dependencies(acpi psdk bugcodes)
add_minicd_target(acpi reactos acpi.sys)
add_livecd_target(acpi reactos/system32/drivers)
add_library(cmbatt SHARED ${CMAKE_CURRENT_BINARY_DIR}/cmbatt_cmbatt.h.gch ${SOURCE})
-set_target_properties(cmbatt PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(cmbatt kernelmodedriver)
add_importlibs(cmbatt ntoskrnl hal battc wmilib)
add_pch(cmbatt ${CMAKE_CURRENT_SOURCE_DIR}/cmbatt.h ${SOURCE})
-add_dependencies(cmbatt psdk bugcodes)
add_library(compbatt SHARED ${CMAKE_CURRENT_BINARY_DIR}/compbatt_compbatt.h.gch ${SOURCE})
-set_target_properties(compbatt PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(compbatt kernelmodedriver)
add_importlibs(compbatt ntoskrnl hal battc)
+
add_pch(compbatt ${CMAKE_CURRENT_SOURCE_DIR}/compbatt.h ${SOURCE})
-add_dependencies(compbatt psdk bugcodes)
hardware.c
isapnp.rc)
-set_target_properties(isapnp PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
-
+set_module_type(isapnp kernelmodedriver)
add_importlibs(isapnp ntoskrnl hal)
-add_dependencies(isapnp psdk bugcodes buildno_header)
+
add_minicd_target(isapnp reactos isapnp.sys)
-add_livecd_target(isapnp reactos/system32/drivers)
\ No newline at end of file
+add_livecd_target(isapnp reactos/system32/drivers)