mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
![Jérôme Gardou](/assets/img/avatar_default.png)
There is no need to compile our DLLs as shared libraries since we are managing symbols exports and imports through spec files. On my system, this reduces the configure-time by a factor of two.
25 lines
696 B
CMake
25 lines
696 B
CMake
list(APPEND SOURCE
|
|
nfs41_driver.c
|
|
nfs41_debug.c
|
|
nfs41_driver.h
|
|
nfs41_debug.h)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/dll/np/nfs)
|
|
|
|
add_definitions(-DRDBSS_TRACKER)
|
|
|
|
add_library(nfs41_driver MODULE ${SOURCE} nfs.rc)
|
|
set_module_type(nfs41_driver kernelmodedriver)
|
|
target_link_libraries(nfs41_driver ntoskrnl_vista rdbsslib rxce copysup memcmp ${PSEH_LIB})
|
|
add_importlibs(nfs41_driver ntoskrnl hal)
|
|
|
|
if(USE_CLANG_CL OR (NOT MSVC))
|
|
add_target_compile_flags(nfs41_driver "-Wno-switch")
|
|
if(USE_CLANG_CL)
|
|
add_target_compile_flags(nfs41_driver "-Wno-unused-value")
|
|
endif()
|
|
endif()
|
|
|
|
add_cd_file(TARGET nfs41_driver DESTINATION reactos/system32/drivers FOR all)
|