2 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers
12 src/ext4/ext4_extents.c
45 src/nls/nls_iso8859-1.c
46 src/nls/nls_iso8859-2.c
47 src/nls/nls_iso8859-3.c
48 src/nls/nls_iso8859-4.c
49 src/nls/nls_iso8859-5.c
50 src/nls/nls_iso8859-6.c
51 src/nls/nls_iso8859-7.c
52 src/nls/nls_iso8859-9.c
53 src/nls/nls_iso8859-13.c
54 src/nls/nls_iso8859-14.c
55 src/nls/nls_iso8859-15.c
89 add_library(ext2fs MODULE ${SOURCE} ext2fs.rc)
92 set_property(SOURCE src/create.c src/fileinfo.c src/memory.c src/read.c APPEND_STRING PROPERTY COMPILE_FLAGS " /fallback")
95 if(MSVC AND (NOT USE_CLANG_CL))
96 # Disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include"
97 replace_compile_flags("/we4189" " ")
98 add_target_compile_flags(ext2fs "/wd4189 /wd4142 /wd4101")
100 add_target_compile_flags(ext2fs "-Wno-pointer-sign -Wno-unused-function")
101 add_target_compile_flags(ext2fs "-Wno-unused-variable -Wno-missing-braces")
103 add_target_compile_flags(ext2fs "-Wno-unused-value -Wno-parentheses-equality")
104 add_target_compile_flags(ext2fs "-Wno-incompatible-pointer-types-discards-qualifiers")
105 add_target_compile_flags(ext2fs "-Wno-#pragma-messages -Wno-cast-calling-convention")
107 add_target_compile_flags(ext2fs "-Wno-unused-but-set-variable")
111 target_link_libraries(ext2fs memcmp ${PSEH_LIB})
112 add_definitions(-D__KERNEL__ -D_CRT_NO_POSIX_ERROR_CODES)
113 set_module_type(ext2fs kernelmodedriver)
114 add_importlibs(ext2fs ntoskrnl hal)
117 # The fallback we have above prevents cl and clang-cl from using the same PCH
118 add_pch(ext2fs inc/ext2fs.h SOURCE)
121 add_cd_file(TARGET ext2fs DESTINATION reactos/system32/drivers FOR all)