[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 4 Sep 2010 12:57:01 +0000 (12:57 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 4 Sep 2010 12:57:01 +0000 (12:57 +0000)
- Add atapi, blue, cdfs and uniata to build.

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

drivers/CMakeLists.txt
drivers/filesystems/CMakeLists.txt [new file with mode: 0644]
drivers/filesystems/cdfs/CMakeLists.txt [new file with mode: 0644]
drivers/setup/CMakeLists.txt [new file with mode: 0644]
drivers/setup/blue/CMakeLists.txt [new file with mode: 0644]
drivers/storage/CMakeLists.txt
drivers/storage/ide/CMakeLists.txt [new file with mode: 0644]
drivers/storage/ide/atapi/CMakeLists.txt [new file with mode: 0644]
drivers/storage/ide/uniata/CMakeLists.txt [new file with mode: 0644]

index 8705c87..b407a63 100644 (file)
@@ -2,6 +2,8 @@
 add_subdirectory(base)
 add_subdirectory(battery)
 add_subdirectory(bus)
+add_subdirectory(filesystems)
 add_subdirectory(input)
+add_subdirectory(setup)
 add_subdirectory(storage)
 add_subdirectory(video)
diff --git a/drivers/filesystems/CMakeLists.txt b/drivers/filesystems/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8ba284b
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(cdfs)
diff --git a/drivers/filesystems/cdfs/CMakeLists.txt b/drivers/filesystems/cdfs/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2c6139a
--- /dev/null
@@ -0,0 +1,30 @@
+
+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(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
+
+list(APPEND SOURCE
+    cdfs.c
+    cleanup.c
+    close.c
+    common.c
+    create.c
+    dirctl.c
+    fcb.c
+    finfo.c
+    fsctl.c
+    misc.c
+    rw.c
+    volinfo.c
+    cdfs.rc)
+
+add_library(cdfs SHARED ${CMAKE_CURRENT_BINARY_DIR}/cdfs_cdfs.h.gch ${SOURCE})
+
+set_target_properties(cdfs PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(cdfs
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+    ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_pch(cdfs ${CMAKE_CURRENT_SOURCE_DIR}/cdfs.h ${SOURCE})
+add_dependencies(cdfs psdk bugcodes)
diff --git a/drivers/setup/CMakeLists.txt b/drivers/setup/CMakeLists.txt
new file mode 100644 (file)
index 0000000..fa50439
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(blue)
diff --git a/drivers/setup/blue/CMakeLists.txt b/drivers/setup/blue/CMakeLists.txt
new file mode 100644 (file)
index 0000000..54265bd
--- /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(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
+
+add_library(blue SHARED blue.c font.c blue.rc)
+
+set_target_properties(blue PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(blue
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+    ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(blue psdk bugcodes)
index 1c1b588..b00750b 100644 (file)
@@ -1,2 +1,3 @@
 
+add_subdirectory(ide)
 add_subdirectory(scsiport)
diff --git a/drivers/storage/ide/CMakeLists.txt b/drivers/storage/ide/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ef65b00
--- /dev/null
@@ -0,0 +1,3 @@
+
+add_subdirectory(atapi)
+add_subdirectory(uniata)
diff --git a/drivers/storage/ide/atapi/CMakeLists.txt b/drivers/storage/ide/atapi/CMakeLists.txt
new file mode 100644 (file)
index 0000000..4e99cbf
--- /dev/null
@@ -0,0 +1,12 @@
+
+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(atapi SHARED atapi.c atapi.rc)
+
+set_target_properties(atapi PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(atapi
+    -lscsiport
+    libcntpr)
+
+add_dependencies(atapi psdk bugcodes)
diff --git a/drivers/storage/ide/uniata/CMakeLists.txt b/drivers/storage/ide/uniata/CMakeLists.txt
new file mode 100644 (file)
index 0000000..249e40c
--- /dev/null
@@ -0,0 +1,25 @@
+
+set(CMAKE_CXX_CREATE_SHARED_LIBRARY "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
+
+include_directories(inc)
+
+add_library(uniata SHARED
+    id_ata.cpp
+    id_badblock.cpp
+    id_dma.cpp
+    id_init.cpp
+    id_probe.cpp
+    id_queue.cpp
+    id_sata.cpp
+    idedma.rc
+    ros_glue/ros_glue.cpp)
+
+set_target_properties(uniata PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(uniata
+    ${REACTOS_SOURCE_DIR}/drivers/storage/scsiport/libscsiport.a 
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+    ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a
+    -lgcc)
+
+add_dependencies(uniata psdk bugcodes buildno_header)