mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +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.
21 lines
474 B
CMake
21 lines
474 B
CMake
|
|
include_directories(${SHIMLIB_DIR})
|
|
|
|
spec2def(acgenral.dll genral.spec)
|
|
|
|
list(APPEND SOURCE
|
|
ignoredbgout.c
|
|
ignorefreelib.c
|
|
main.c
|
|
themes.c
|
|
genral.spec)
|
|
|
|
add_library(acgenral MODULE
|
|
${SOURCE}
|
|
${CMAKE_CURRENT_BINARY_DIR}/acgenral.def)
|
|
|
|
set_module_type(acgenral win32dll ENTRYPOINT DllMain 12)
|
|
target_link_libraries(acgenral shimlib)
|
|
add_importlibs(acgenral uxtheme kernel32 ntdll)
|
|
add_cd_file(TARGET acgenral DESTINATION reactos/AppPatch FOR all)
|