[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 31 Aug 2010 14:05:07 +0000 (14:05 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 31 Aug 2010 14:05:07 +0000 (14:05 +0000)
- Add input drivers (i8042prt, kbdclass, mouclass and sermouse) to build.

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

drivers/CMakeLists.txt
drivers/input/CMakeLists.txt [new file with mode: 0644]
drivers/input/i8042prt/CMakeLists.txt [new file with mode: 0644]
drivers/input/kbdclass/CMakeLists.txt [new file with mode: 0644]
drivers/input/mouclass/CMakeLists.txt [new file with mode: 0644]
drivers/input/sermouse/CMakeLists.txt [new file with mode: 0644]

index 10138bf..6dddacc 100644 (file)
@@ -1,2 +1,3 @@
 
 add_subdirectory(base)
 
 add_subdirectory(base)
+add_subdirectory(input)
diff --git a/drivers/input/CMakeLists.txt b/drivers/input/CMakeLists.txt
new file mode 100644 (file)
index 0000000..0c70af1
--- /dev/null
@@ -0,0 +1,5 @@
+
+add_subdirectory(i8042prt)
+add_subdirectory(kbdclass)
+add_subdirectory(mouclass)
+add_subdirectory(sermouse)
diff --git a/drivers/input/i8042prt/CMakeLists.txt b/drivers/input/i8042prt/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e83abbd
--- /dev/null
@@ -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)
diff --git a/drivers/input/kbdclass/CMakeLists.txt b/drivers/input/kbdclass/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2b14766
--- /dev/null
@@ -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)
diff --git a/drivers/input/mouclass/CMakeLists.txt b/drivers/input/mouclass/CMakeLists.txt
new file mode 100644 (file)
index 0000000..cfdd804
--- /dev/null
@@ -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)
diff --git a/drivers/input/sermouse/CMakeLists.txt b/drivers/input/sermouse/CMakeLists.txt
new file mode 100644 (file)
index 0000000..24793a2
--- /dev/null
@@ -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)