[CMAKE] Use modules instead of shared libraries

Follow-up to 23373acbb9.
2 missed cases: apisets, lunar.msstyles.
4 new cases: w32time, netplwiz, msxml3r, mizu.msstyles.
This commit is contained in:
Serge Gautherie 2019-10-21 17:14:25 +02:00 committed by Jérôme Gardou
parent cef6a5b691
commit e133817811
6 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
spec2def(w32time.dll w32time.spec ADD_IMPORTLIB)
add_library(w32time SHARED
add_library(w32time MODULE
w32time.c
ntpclient.c
${CMAKE_CURRENT_BINARY_DIR}/w32time.def)

View file

@ -17,7 +17,7 @@ function (add_apiset apiset_name baseaddress)
-D_WCTYPE_DEFINED
-D_CRT_ERRNO_DEFINED)
add_library(${apiset_name} SHARED
add_library(${apiset_name} MODULE
${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}.def)

View file

@ -5,7 +5,7 @@ list(APPEND SOURCE
netplwiz.c
SHDisconnectNetDrives.c)
add_library(netplwiz SHARED
add_library(netplwiz MODULE
${SOURCE}
netplwiz.rc
${CMAKE_CURRENT_BINARY_DIR}/netplwiz_stubs.c

View file

@ -1,4 +1,4 @@
add_library(msxml3r SHARED msxml3r.rc)
add_library(msxml3r MODULE msxml3r.rc)
set_module_type(msxml3r win32dll ENTRYPOINT 0)
add_cd_file(TARGET msxml3r DESTINATION reactos/system32 FOR all)

View file

@ -18,7 +18,7 @@ foreach(_file ${TEXTFILES})
endforeach()
set_source_files_properties(lunar.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
add_library(lunar.msstyles SHARED lunar.rc)
add_library(lunar.msstyles MODULE lunar.rc)
set_module_type(lunar.msstyles module)
set_target_properties(lunar.msstyles PROPERTIES SUFFIX "")
add_cd_file(TARGET lunar.msstyles DESTINATION reactos/Resources/Themes/Lunar FOR all)

View file

@ -18,7 +18,7 @@ foreach(_file ${TEXTFILES})
endforeach()
set_source_files_properties(mizu.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
add_library(mizu.msstyles SHARED mizu.rc)
add_library(mizu.msstyles MODULE mizu.rc)
set_module_type(mizu.msstyles module)
set_target_properties(mizu.msstyles PROPERTIES SUFFIX "")
add_cd_file(TARGET mizu.msstyles DESTINATION reactos/Resources/Themes/Mizu FOR all)