mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
23373acbb9
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.
22 lines
517 B
CMake
22 lines
517 B
CMake
|
|
include_directories(${SHIMLIB_DIR})
|
|
|
|
spec2def(aclayers.dll layer.spec)
|
|
|
|
list(APPEND SOURCE
|
|
dispmode.c
|
|
forcedxsetupsuccess.c
|
|
ignoreloadlibrary.c
|
|
versionlie.c
|
|
vmhorizon.c
|
|
main.c
|
|
layer.spec)
|
|
|
|
add_library(aclayers MODULE
|
|
${SOURCE}
|
|
${CMAKE_CURRENT_BINARY_DIR}/aclayers.def)
|
|
|
|
set_module_type(aclayers win32dll ENTRYPOINT DllMain 12)
|
|
target_link_libraries(aclayers shimlib)
|
|
add_importlibs(aclayers user32 kernel32 ntdll)
|
|
add_cd_file(TARGET aclayers DESTINATION reactos/AppPatch FOR all)
|