2015-06-06 12:52:13 +00:00
|
|
|
|
2015-06-06 13:48:19 +00:00
|
|
|
include_directories(Include)
|
2015-06-06 12:52:13 +00:00
|
|
|
|
|
|
|
set_cpp(WITH_RUNTIME)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
udf_info/alloc.cpp
|
|
|
|
udf_info/dirtree.cpp
|
|
|
|
udf_info/extent.cpp
|
|
|
|
udf_info/mount.cpp
|
|
|
|
udf_info/phys_eject.cpp
|
|
|
|
udf_info/physical.cpp
|
|
|
|
udf_info/remap.cpp
|
|
|
|
udf_info/udf_info.cpp
|
|
|
|
cleanup.cpp
|
|
|
|
close.cpp
|
|
|
|
create.cpp
|
|
|
|
devcntrl.cpp
|
|
|
|
dircntrl.cpp
|
|
|
|
env_spec.cpp
|
|
|
|
fastio.cpp
|
|
|
|
fileinfo.cpp
|
|
|
|
filter.cpp
|
|
|
|
flush.cpp
|
|
|
|
fscntrl.cpp
|
|
|
|
lockctrl.cpp
|
|
|
|
mem.cpp
|
|
|
|
misc.cpp
|
|
|
|
namesup.cpp
|
|
|
|
pnp.cpp
|
|
|
|
read.cpp
|
|
|
|
secursup.cpp
|
|
|
|
shutdown.cpp
|
|
|
|
sys_spec.cpp
|
|
|
|
udf_dbg.cpp
|
|
|
|
udfinit.cpp
|
|
|
|
unload.cpp
|
|
|
|
verfysup.cpp
|
|
|
|
volinfo.cpp
|
|
|
|
wcache.cpp
|
2015-06-08 14:27:09 +00:00
|
|
|
write.cpp
|
|
|
|
udffs.h)
|
2015-06-06 12:52:13 +00:00
|
|
|
|
|
|
|
add_library(udfs SHARED ${SOURCE} udffs.rc)
|
2017-12-03 22:30:10 +00:00
|
|
|
|
2015-06-06 12:52:13 +00:00
|
|
|
if(MSVC)
|
|
|
|
# FIXME: Make sure we marked all what needs to be marked with stdcall before removing this.
|
|
|
|
add_target_compile_flags(udfs "/Gz")
|
2017-12-03 22:30:10 +00:00
|
|
|
if(USE_CLANG_CL)
|
|
|
|
add_target_compile_flags(udfs "-Wno-extern-c-compat -Wno-unused-value")
|
|
|
|
add_target_compile_flags(udfs "-Wno-tautological-constant-out-of-range-compare")
|
|
|
|
add_target_compile_flags(udfs "-Wno-tautological-unsigned-zero-compare -Wno-self-assign")
|
|
|
|
add_target_compile_flags(udfs "-Wno-sometimes-uninitialized -Wno-parentheses-equality")
|
|
|
|
endif()
|
2015-06-06 12:52:13 +00:00
|
|
|
else()
|
2017-06-05 16:02:47 +00:00
|
|
|
add_target_compile_flags(udfs "-Wno-unused-but-set-variable")
|
2015-06-06 12:52:13 +00:00
|
|
|
endif()
|
2017-12-03 22:30:10 +00:00
|
|
|
|
2015-06-06 12:52:13 +00:00
|
|
|
set_module_type(udfs kernelmodedriver)
|
|
|
|
target_link_libraries(udfs ${PSEH_LIB})
|
|
|
|
add_importlibs(udfs ntoskrnl hal)
|
2015-06-08 14:27:09 +00:00
|
|
|
add_pch(udfs udffs.h SOURCE)
|
2017-12-18 07:44:24 +00:00
|
|
|
add_cd_file(TARGET udfs DESTINATION reactos/system32/drivers FOR all)
|
2017-06-04 11:47:34 +00:00
|
|
|
add_registry_inf(udfs_reg.inf)
|