1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers 3 inc) 4 5list(APPEND SOURCE 6 src/init.c 7 src/ext3/generic.c 8 src/ext3/htree.c 9 src/ext3/indirect.c 10 src/ext3/recover.c 11 src/ext4/ext4_bh.c 12 src/ext4/ext4_extents.c 13 src/ext4/ext4_jbd2.c 14 src/ext4/extents.c 15 src/jbd/recovery.c 16 src/jbd/replay.c 17 src/jbd/revoke.c 18 src/nls/nls_ascii.c 19 src/nls/nls_base.c 20 src/nls/nls_cp437.c 21 src/nls/nls_cp737.c 22 src/nls/nls_cp775.c 23 src/nls/nls_cp850.c 24 src/nls/nls_cp852.c 25 src/nls/nls_cp855.c 26 src/nls/nls_cp857.c 27 src/nls/nls_cp860.c 28 src/nls/nls_cp861.c 29 src/nls/nls_cp862.c 30 src/nls/nls_cp863.c 31 src/nls/nls_cp864.c 32 src/nls/nls_cp865.c 33 src/nls/nls_cp866.c 34 src/nls/nls_cp869.c 35 src/nls/nls_cp874.c 36 src/nls/nls_cp932.c 37 src/nls/nls_cp936.c 38 src/nls/nls_cp949.c 39 src/nls/nls_cp950.c 40 src/nls/nls_cp1250.c 41 src/nls/nls_cp1251.c 42 src/nls/nls_cp1255.c 43 src/nls/nls_euc-jp.c 44 src/nls/nls_iso8859-1.c 45 src/nls/nls_iso8859-2.c 46 src/nls/nls_iso8859-3.c 47 src/nls/nls_iso8859-4.c 48 src/nls/nls_iso8859-5.c 49 src/nls/nls_iso8859-6.c 50 src/nls/nls_iso8859-7.c 51 src/nls/nls_iso8859-9.c 52 src/nls/nls_iso8859-13.c 53 src/nls/nls_iso8859-14.c 54 src/nls/nls_iso8859-15.c 55 src/nls/nls_koi8-r.c 56 src/nls/nls_koi8-ru.c 57 src/nls/nls_koi8-u.c 58 src/nls/nls_utf8.c 59 src/access.c 60 src/block.c 61 src/cleanup.c 62 src/close.c 63 src/cmcb.c 64 src/create.c 65 src/debug.c 66 src/devctl.c 67 src/dirctl.c 68 src/dispatch.c 69 src/except.c 70 src/fastio.c 71 src/fileinfo.c 72 src/flush.c 73 src/fsctl.c 74 src/linux.c 75 src/lock.c 76 src/memory.c 77 src/misc.c 78 src/nls.c 79 src/pnp.c 80 src/rbtree.c 81 src/read.c 82 src/shutdown.c 83 src/volinfo.c 84 src/write.c 85 inc/ext2fs.h) 86 87add_library(ext2fs SHARED ${SOURCE} ext2fs.rc) 88 89if(NOT MSVC) 90 add_target_compile_flags(ext2fs "-Wno-pointer-sign -Wno-unused-function") 91 if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang") 92 add_target_compile_flags(ext2fs "-Wno-unused-but-set-variable -Wno-unused-variable -Wno-missing-braces") 93 endif() 94else() 95 #disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include" 96 replace_compile_flags("/we\"4189\"" " ") 97 add_target_compile_flags(ext2fs "/wd\"4189\" /wd\"4142\" /wd\"4101\"") 98endif() 99 100target_link_libraries(ext2fs memcmp ${PSEH_LIB}) 101add_definitions(-D__KERNEL__) 102set_module_type(ext2fs kernelmodedriver) 103add_importlibs(ext2fs ntoskrnl hal) 104add_pch(ext2fs inc/ext2fs.h SOURCE) 105add_cd_file(TARGET ext2fs DESTINATION reactos/system32/drivers NO_CAB FOR all) 106