2016-03-26 20:40:42 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/drivers
|
2016-03-26 20:40:42 +00:00
|
|
|
inc)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
src/nls/nls_base.c
|
|
|
|
src/nls/nls_big5.c
|
|
|
|
src/nls/nls_cp437.c
|
|
|
|
src/nls/nls_cp737.c
|
|
|
|
src/nls/nls_cp775.c
|
|
|
|
src/nls/nls_cp850.c
|
|
|
|
src/nls/nls_cp852.c
|
|
|
|
src/nls/nls_cp855.c
|
|
|
|
src/nls/nls_cp857.c
|
|
|
|
src/nls/nls_cp860.c
|
|
|
|
src/nls/nls_cp861.c
|
|
|
|
src/nls/nls_cp862.c
|
|
|
|
src/nls/nls_cp863.c
|
|
|
|
src/nls/nls_cp864.c
|
|
|
|
src/nls/nls_cp865.c
|
|
|
|
src/nls/nls_cp866.c
|
|
|
|
src/nls/nls_cp869.c
|
|
|
|
src/nls/nls_cp874.c
|
|
|
|
src/nls/nls_cp932.c
|
|
|
|
src/nls/nls_cp936.c
|
|
|
|
src/nls/nls_cp949.c
|
|
|
|
src/nls/nls_cp950.c
|
|
|
|
src/nls/nls_cp1251.c
|
|
|
|
src/nls/nls_cp1255.c
|
|
|
|
src/nls/nls_euc-jp.c
|
|
|
|
src/nls/nls_euc-kr.c
|
|
|
|
src/nls/nls_gb2312.c
|
|
|
|
src/nls/nls_iso8859-1.c
|
|
|
|
src/nls/nls_iso8859-2.c
|
|
|
|
src/nls/nls_iso8859-3.c
|
|
|
|
src/nls/nls_iso8859-4.c
|
|
|
|
src/nls/nls_iso8859-5.c
|
|
|
|
src/nls/nls_iso8859-6.c
|
|
|
|
src/nls/nls_iso8859-7.c
|
|
|
|
src/nls/nls_iso8859-8.c
|
|
|
|
src/nls/nls_iso8859-9.c
|
|
|
|
src/nls/nls_iso8859-13.c
|
|
|
|
src/nls/nls_iso8859-14.c
|
|
|
|
src/nls/nls_iso8859-15.c
|
|
|
|
src/nls/nls_koi8-r.c
|
|
|
|
src/nls/nls_koi8-ru.c
|
|
|
|
src/nls/nls_koi8-u.c
|
|
|
|
src/nls/nls_sjis.c
|
|
|
|
src/nls/nls_tis-620.c
|
|
|
|
src/nls/nls_utf8.c
|
|
|
|
src/blockio.c
|
|
|
|
src/cleanup.c
|
|
|
|
src/close.c
|
|
|
|
src/cmcb.c
|
|
|
|
src/create.c
|
|
|
|
src/debug.c
|
|
|
|
src/devctl.c
|
|
|
|
src/dirctl.c
|
|
|
|
src/dispatch.c
|
|
|
|
src/except.c
|
|
|
|
src/fastio.c
|
|
|
|
src/fileinfo.c
|
|
|
|
src/flush.c
|
|
|
|
src/fsctl.c
|
|
|
|
src/init.c
|
|
|
|
src/lockctl.c
|
|
|
|
src/memory.c
|
|
|
|
src/misc.c
|
|
|
|
src/nls.c
|
|
|
|
src/pnp.c
|
|
|
|
src/read.c
|
|
|
|
src/rfsd.c
|
|
|
|
src/rfsdblock.c
|
|
|
|
src/shutdown.c
|
|
|
|
src/volinfo.c
|
|
|
|
src/write.c
|
|
|
|
inc/rfsd.h)
|
|
|
|
|
2019-03-20 13:19:48 +00:00
|
|
|
add_library(reiserfs MODULE ${SOURCE} src/rfsd.rc)
|
2016-03-26 20:40:42 +00:00
|
|
|
|
2017-12-03 22:30:10 +00:00
|
|
|
if(USE_CLANG_CL OR (NOT MSVC))
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(reiserfs PRIVATE -Wno-missing-braces -Wno-pointer-sign)
|
|
|
|
target_compile_options(reiserfs PRIVATE -Wno-unused-function -Wno-unused-variable)
|
2017-12-03 22:30:10 +00:00
|
|
|
if(NOT USE_CLANG_CL)
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(reiserfs PRIVATE -Wno-unused-but-set-variable)
|
|
|
|
target_compile_definitions(reiserfs PRIVATE __GCC__)
|
2016-03-26 20:40:42 +00:00
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
#disable warnings: "unreferenced local variable", "initialized, but not used variable", "benign include"
|
2020-02-24 11:36:05 +00:00
|
|
|
replace_compile_flags("/we4101" " ")
|
2018-06-05 18:16:22 +00:00
|
|
|
replace_compile_flags("/we4189" " ")
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(reiserfs PRIVATE /wd4189 /wd4142 /wd4101)
|
2016-03-26 20:40:42 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
target_link_libraries(reiserfs memcmp ${PSEH_LIB})
|
2019-04-28 09:28:24 +00:00
|
|
|
add_definitions(-D__KERNEL__ -D_CRT_NO_POSIX_ERROR_CODES)
|
2016-03-26 20:40:42 +00:00
|
|
|
set_module_type(reiserfs kernelmodedriver)
|
|
|
|
add_importlibs(reiserfs ntoskrnl hal)
|
|
|
|
add_pch(reiserfs inc/rfsd.h SOURCE)
|
2017-12-18 07:44:24 +00:00
|
|
|
add_cd_file(TARGET reiserfs DESTINATION reactos/system32/drivers FOR all)
|