[CMAKE]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 4 Sep 2010 14:14:45 +0000 (14:14 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 4 Sep 2010 14:14:45 +0000 (14:14 +0000)
- Add floppy to build.

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

drivers/storage/CMakeLists.txt
drivers/storage/floppy/CMakeLists.txt [new file with mode: 0644]

index 55d672b..8bc4e3d 100644 (file)
@@ -1,5 +1,6 @@
 
 add_subdirectory(class)
+add_subdirectory(floppy)
 add_subdirectory(ide)
 add_subdirectory(port)
 add_subdirectory(scsiport)
diff --git a/drivers/storage/floppy/CMakeLists.txt b/drivers/storage/floppy/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3045c39
--- /dev/null
@@ -0,0 +1,19 @@
+
+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(floppy SHARED
+    csqrtns.c
+    floppy.c
+    hardware.c
+    ioctl.c
+    readwrite.c
+    floppy.rc)
+
+set_target_properties(floppy PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys")
+
+target_link_libraries(floppy
+    csq
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/libntoskrnl.a
+    ${REACTOS_SOURCE_DIR}/hal/halx86/libhal.a)
+
+add_dependencies(floppy psdk bugcodes buildno_header)