mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 16:18:16 +00:00
[CMAKE]
- Improve base and bus drivers. svn path=/branches/cmake-bringup/; revision=49468
This commit is contained in:
parent
b37636dc12
commit
bbecbe25fc
11 changed files with 34 additions and 65 deletions
|
@ -1,13 +1,5 @@
|
|||
|
||||
|
||||
|
||||
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)
|
||||
set_module_type(beep kernelmodedriver)
|
||||
add_importlibs(beep ntoskrnl hal)
|
||||
add_cab_target(beep 2)
|
||||
|
|
|
@ -18,12 +18,11 @@ endif(ARCH MATCHES i386 OR ARCH MATCHES amd64)
|
|||
|
||||
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)
|
||||
|
|
|
@ -12,12 +12,12 @@ list(APPEND SOURCE ${CMAKE_CURRENT_BINARY_DIR}/kdcom.def)
|
|||
|
||||
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)
|
||||
add_livecd_target(kdcom reactos/system32)
|
||||
|
|
|
@ -7,10 +7,10 @@ add_library(kdcom SHARED
|
|||
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)
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
|
||||
|
||||
|
||||
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")
|
||||
set_module_type(nmidebug kernelmodedriver)
|
||||
add_importlibs(nmidebug ntoskrnl hal)
|
||||
|
||||
target_link_libraries(nmidebug
|
||||
-lntoskrnl
|
||||
-lhal)
|
||||
|
||||
add_dependencies(nmidebug psdk bugcodes)
|
||||
add_minicd_target(nmidebug reactos)
|
||||
add_cab_target(nmidebug 2)
|
||||
|
|
|
@ -1,14 +1,9 @@
|
|||
|
||||
|
||||
|
||||
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)
|
||||
add_cab_target(null 2)
|
||||
|
|
|
@ -1,14 +1,7 @@
|
|||
|
||||
|
||||
|
||||
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)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
|
||||
include_directories(include)
|
||||
include_directories(acpica/include)
|
||||
include_directories(
|
||||
include
|
||||
acpica/include)
|
||||
|
||||
add_library(acpica
|
||||
acpica/dispatcher/dsfield.c
|
||||
|
@ -137,14 +138,13 @@ add_library(acpi SHARED
|
|||
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)
|
||||
|
|
|
@ -8,9 +8,7 @@ list(APPEND SOURCE
|
|||
|
||||
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)
|
||||
|
|
|
@ -7,8 +7,7 @@ list(APPEND SOURCE
|
|||
|
||||
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)
|
||||
|
|
|
@ -6,9 +6,8 @@ add_library(isapnp SHARED
|
|||
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)
|
||||
add_livecd_target(isapnp reactos/system32/drivers)
|
||||
|
|
Loading…
Reference in a new issue