From c746b1187cf6f8c6e4d3a7016b88539d3190953a Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 24 Sep 2010 09:46:34 +0000 Subject: [PATCH] [CMAKE] - Add fastfat_new by Alexey Komarov (IRC: q4a) svn path=/branches/cmake-bringup/; revision=48856 --- drivers/filesystems/CMakeLists.txt | 1 + .../filesystems/fastfat_new/CMakeLists.txt | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 drivers/filesystems/fastfat_new/CMakeLists.txt diff --git a/drivers/filesystems/CMakeLists.txt b/drivers/filesystems/CMakeLists.txt index cf523e60ca7..7cf461373cc 100644 --- a/drivers/filesystems/CMakeLists.txt +++ b/drivers/filesystems/CMakeLists.txt @@ -2,3 +2,4 @@ add_subdirectory(cdfs) add_subdirectory(ext2) add_subdirectory(fastfat) +#add_subdirectory(fastfat_new) diff --git a/drivers/filesystems/fastfat_new/CMakeLists.txt b/drivers/filesystems/fastfat_new/CMakeLists.txt new file mode 100644 index 00000000000..ab0b07233f1 --- /dev/null +++ b/drivers/filesystems/fastfat_new/CMakeLists.txt @@ -0,0 +1,37 @@ + +include_directories(.) +include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/fullfat) + +list(APPEND SOURCE + cleanup.c + close.c + create.c + device.c + dir.c + ea.c + fastfat.c + fastio.c + fat.c + fcb.c + finfo.c + flush.c + fsctl.c + fullfat.c + lock.c + rw.c + shutdown.c + volume.c + fastfat.rc) + +add_library(fastfat_new SHARED ${CMAKE_CURRENT_BINARY_DIR}/fastfat_new_fastfat.h.gch ${SOURCE}) + +set_target_properties(fastfat_new PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--exclude-all-symbols -Wl,--subsystem,native" SUFFIX ".sys") + +target_link_libraries(fastfat_new + pseh + fullfat) + +add_importlibs(fastfat_new ntoskrnl hal) + +add_pch(fastfat_new ${CMAKE_CURRENT_SOURCE_DIR}/fastfat.h ${SOURCE}) +add_dependencies(fastfat_new psdk bugcodes)