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")
96 # Disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include"
98 remove_target_compile_option(ext2fs "/we4101")
99 remove_target_compile_option(ext2fs "/we4189")
100 target_compile_options(ext2fs PRIVATE /wd4189 /wd4142 /wd4101)
103 target_compile_options(ext2fs PRIVATE
104 -Wno-pointer-sign -Wno-unused-function
105 -Wno-unused-variable -Wno-missing-braces)
108 if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
109 target_compile_options(ext2fs PRIVATE -Wno-unused-but-set-variable)
113 target_compile_options(ext2fs PRIVATE
114 -Wno-unused-value -Wno-parentheses-equality
115 -Wno-incompatible-pointer-types-discards-qualifiers
116 "-Wno-#pragma-messages;-Wno-cast-calling-convention")
119 target_link_libraries(ext2fs memcmp ${PSEH_LIB})
120 add_definitions(-D__KERNEL__ -D_CRT_NO_POSIX_ERROR_CODES)
121 set_module_type(ext2fs kernelmodedriver)
122 add_importlibs(ext2fs ntoskrnl hal)
124 set_property(TARGET ext2fs PROPERTY C_STANDARD 90)
127 # The fallback we have above prevents cl and clang-cl from using the same PCH
128 add_pch(ext2fs inc/ext2fs.h SOURCE)
131 add_cd_file(TARGET ext2fs DESTINATION reactos/system32/drivers FOR all)