mirror of
https://github.com/reactos/reactos.git
synced 2024-06-28 00:41:36 +00:00
[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:
parent
cef6a5b691
commit
e133817811
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
spec2def(w32time.dll w32time.spec ADD_IMPORTLIB)
|
spec2def(w32time.dll w32time.spec ADD_IMPORTLIB)
|
||||||
|
|
||||||
add_library(w32time SHARED
|
add_library(w32time MODULE
|
||||||
w32time.c
|
w32time.c
|
||||||
ntpclient.c
|
ntpclient.c
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/w32time.def)
|
${CMAKE_CURRENT_BINARY_DIR}/w32time.def)
|
||||||
|
|
|
@ -17,7 +17,7 @@ function (add_apiset apiset_name baseaddress)
|
||||||
-D_WCTYPE_DEFINED
|
-D_WCTYPE_DEFINED
|
||||||
-D_CRT_ERRNO_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}_stubs.c
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}.def)
|
${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}.def)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ list(APPEND SOURCE
|
||||||
netplwiz.c
|
netplwiz.c
|
||||||
SHDisconnectNetDrives.c)
|
SHDisconnectNetDrives.c)
|
||||||
|
|
||||||
add_library(netplwiz SHARED
|
add_library(netplwiz MODULE
|
||||||
${SOURCE}
|
${SOURCE}
|
||||||
netplwiz.rc
|
netplwiz.rc
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/netplwiz_stubs.c
|
${CMAKE_CURRENT_BINARY_DIR}/netplwiz_stubs.c
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
|
||||||
add_library(msxml3r SHARED msxml3r.rc)
|
add_library(msxml3r MODULE msxml3r.rc)
|
||||||
set_module_type(msxml3r win32dll ENTRYPOINT 0)
|
set_module_type(msxml3r win32dll ENTRYPOINT 0)
|
||||||
add_cd_file(TARGET msxml3r DESTINATION reactos/system32 FOR all)
|
add_cd_file(TARGET msxml3r DESTINATION reactos/system32 FOR all)
|
||||||
|
|
|
@ -18,7 +18,7 @@ foreach(_file ${TEXTFILES})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
set_source_files_properties(lunar.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
|
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_module_type(lunar.msstyles module)
|
||||||
set_target_properties(lunar.msstyles PROPERTIES SUFFIX "")
|
set_target_properties(lunar.msstyles PROPERTIES SUFFIX "")
|
||||||
add_cd_file(TARGET lunar.msstyles DESTINATION reactos/Resources/Themes/Lunar FOR all)
|
add_cd_file(TARGET lunar.msstyles DESTINATION reactos/Resources/Themes/Lunar FOR all)
|
||||||
|
|
|
@ -18,7 +18,7 @@ foreach(_file ${TEXTFILES})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
set_source_files_properties(mizu.rc PROPERTIES OBJECT_DEPENDS "${_converted_files}")
|
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_module_type(mizu.msstyles module)
|
||||||
set_target_properties(mizu.msstyles PROPERTIES SUFFIX "")
|
set_target_properties(mizu.msstyles PROPERTIES SUFFIX "")
|
||||||
add_cd_file(TARGET mizu.msstyles DESTINATION reactos/Resources/Themes/Mizu FOR all)
|
add_cd_file(TARGET mizu.msstyles DESTINATION reactos/Resources/Themes/Mizu FOR all)
|
||||||
|
|
Loading…
Reference in a new issue