mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[CMAKE]
- Add input drivers (i8042prt, kbdclass, mouclass and sermouse) to build. svn path=/branches/cmake-bringup/; revision=48664
This commit is contained in:
parent
b28db78efe
commit
d84e219b0b
6 changed files with 82 additions and 0 deletions
|
@ -1,2 +1,3 @@
|
|||
|
||||
add_subdirectory(base)
|
||||
add_subdirectory(input)
|
||||
|
|
5
drivers/input/CMakeLists.txt
Normal file
5
drivers/input/CMakeLists.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
|
||||
add_subdirectory(i8042prt)
|
||||
add_subdirectory(kbdclass)
|
||||
add_subdirectory(mouclass)
|
||||
add_subdirectory(sermouse)
|
23
drivers/input/i8042prt/CMakeLists.txt
Normal file
23
drivers/input/i8042prt/CMakeLists.txt
Normal file
|
@ -0,0 +1,23 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
add_library(i8042prt SHARED
|
||||
createclose.c
|
||||
i8042prt.c
|
||||
keyboard.c
|
||||
misc.c
|
||||
mouse.c
|
||||
pnp.c
|
||||
ps2pp.c
|
||||
readwrite.c
|
||||
registry.c
|
||||
setup.c
|
||||
i8042prt.rc)
|
||||
|
||||
set_target_properties(i8042prt PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
|
||||
|
||||
target_link_libraries(i8042prt
|
||||
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
|
||||
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
|
||||
|
||||
add_dependencies(i8042prt psdk bugcodes)
|
17
drivers/input/kbdclass/CMakeLists.txt
Normal file
17
drivers/input/kbdclass/CMakeLists.txt
Normal file
|
@ -0,0 +1,17 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
add_library(kbdclass SHARED
|
||||
kbdclass.c
|
||||
misc.c
|
||||
setup.c
|
||||
kbdclass.rc)
|
||||
|
||||
set_target_properties(kbdclass PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
|
||||
|
||||
target_link_libraries(kbdclass
|
||||
pseh
|
||||
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
|
||||
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
|
||||
|
||||
add_dependencies(kbdclass psdk bugcodes)
|
16
drivers/input/mouclass/CMakeLists.txt
Normal file
16
drivers/input/mouclass/CMakeLists.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
add_library(mouclass SHARED
|
||||
misc.c
|
||||
mouclass.c
|
||||
mouclass.rc)
|
||||
|
||||
set_target_properties(mouclass PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols" SUFFIX ".sys")
|
||||
|
||||
target_link_libraries(mouclass
|
||||
pseh
|
||||
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
|
||||
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
|
||||
|
||||
add_dependencies(mouclass psdk bugcodes)
|
20
drivers/input/sermouse/CMakeLists.txt
Normal file
20
drivers/input/sermouse/CMakeLists.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
add_library(sermouse SHARED
|
||||
createclose.c
|
||||
detect.c
|
||||
fdo.c
|
||||
internaldevctl.c
|
||||
misc.c
|
||||
readmouse.c
|
||||
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
|
||||
${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
|
||||
${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
|
||||
|
||||
add_dependencies(sermouse psdk bugcodes)
|
Loading…
Reference in a new issue