[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 4 Sep 2010 13:36:49 +0000 (13:36 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 4 Sep 2010 13:36:49 +0000 (13:36 +0000)
- Add cdrom, class2, disk and ramdisk to build.

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

drivers/battery/battc/CMakeLists.txt
drivers/storage/CMakeLists.txt
drivers/storage/class/CMakeLists.txt [new file with mode: 0644]
drivers/storage/class/cdrom/CMakeLists.txt [new file with mode: 0644]
drivers/storage/class/class2/CMakeLists.txt [new file with mode: 0644]
drivers/storage/class/class2/libclass2.a [new file with mode: 0644]
drivers/storage/class/disk/CMakeLists.txt [new file with mode: 0644]
drivers/storage/class/ramdisk/CMakeLists.txt [new file with mode: 0644]

index d7543bd..43dbb99 100644 (file)
@@ -3,8 +3,6 @@ set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FL
 
 add_definitions(-D_BATTERYCLASS_)
 
-spec2def(battc ${CMAKE_CURRENT_SOURCE_DIR}/battc.spec ${CMAKE_CURRENT_BINARY_DIR}/battc.def)
-
 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")
index 624ddd5..55d672b 100644 (file)
@@ -1,4 +1,5 @@
 
+add_subdirectory(class)
 add_subdirectory(ide)
 add_subdirectory(port)
 add_subdirectory(scsiport)
diff --git a/drivers/storage/class/CMakeLists.txt b/drivers/storage/class/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d3fd268
--- /dev/null
@@ -0,0 +1,5 @@
+
+add_subdirectory(cdrom)
+add_subdirectory(class2)
+add_subdirectory(disk)
+add_subdirectory(ramdisk)
diff --git a/drivers/storage/class/cdrom/CMakeLists.txt b/drivers/storage/class/cdrom/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3c4377e
--- /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>")
+
+include_directories(..)
+
+add_library(cdrom SHARED cdrom.c findscsi.c cdrom.rc)
+
+set_target_properties(cdrom PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(cdrom
+    ${REACTOS_SOURCE_DIR}/drivers/storage/class/class2/libclass2.a
+    ${REACTOS_SOURCE_DIR}/drivers/storage/scsiport/libscsiport.a
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+    ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(cdrom psdk bugcodes)
diff --git a/drivers/storage/class/class2/CMakeLists.txt b/drivers/storage/class/class2/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5ad2fa8
--- /dev/null
@@ -0,0 +1,18 @@
+
+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>")
+
+include_directories(..)
+
+spec2def(class2 ${CMAKE_CURRENT_SOURCE_DIR}/class2.spec ${CMAKE_CURRENT_BINARY_DIR}/class2.def)
+
+add_library(class2 SHARED class2.c class2.rc)
+
+set_target_properties(class2 PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(class2
+    ${CMAKE_CURRENT_BINARY_DIR}/class2.def
+    ${REACTOS_SOURCE_DIR}/drivers/storage/scsiport/libscsiport.a 
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+    ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(class2 class2_def psdk bugcodes)
diff --git a/drivers/storage/class/class2/libclass2.a b/drivers/storage/class/class2/libclass2.a
new file mode 100644 (file)
index 0000000..35f2a58
Binary files /dev/null and b/drivers/storage/class/class2/libclass2.a differ
diff --git a/drivers/storage/class/disk/CMakeLists.txt b/drivers/storage/class/disk/CMakeLists.txt
new file mode 100644 (file)
index 0000000..54dcf32
--- /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>")
+
+include_directories(..)
+
+add_library(disk SHARED disk.c disk.rc)
+
+set_target_properties(disk PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(disk
+    ${REACTOS_SOURCE_DIR}/drivers/storage/class/class2/libclass2.a
+    ${REACTOS_SOURCE_DIR}/drivers/storage/scsiport/libscsiport.a
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+    ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(disk psdk bugcodes)
diff --git a/drivers/storage/class/ramdisk/CMakeLists.txt b/drivers/storage/class/ramdisk/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ff75512
--- /dev/null
@@ -0,0 +1,14 @@
+
+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>")
+
+include_directories(..)
+
+add_library(ramdisk SHARED ramdisk.c ramdisk.rc)
+
+set_target_properties(ramdisk PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(ramdisk
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+    ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(ramdisk psdk bugcodes)