mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 13:25:57 +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.
23 lines
489 B
CMake
23 lines
489 B
CMake
|
|
add_definitions(-DLANGPACK)
|
|
include_directories(include)
|
|
spec2def(lpk.dll lpk.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
bidi.c
|
|
lpk.c
|
|
stub.c
|
|
ros_lpk.h)
|
|
|
|
add_library(lpk MODULE
|
|
${SOURCE}
|
|
lpk.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/lpk.def)
|
|
|
|
set_module_type(lpk win32dll UNICODE)
|
|
|
|
target_link_libraries(lpk wine)
|
|
|
|
add_importlibs(lpk usp10 version user32 gdi32 msvcrt kernel32 ntdll)
|
|
add_pch(lpk ros_lpk.h SOURCE)
|
|
add_cd_file(TARGET lpk DESTINATION reactos/system32 FOR all)
|