2 spec2def(user32.dll user32.spec ADD_IMPORTLIB)
5 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys
7 ${REACTOS_SOURCE_DIR}/win32ss/include)
64 ${REACTOS_SOURCE_DIR}/win32ss/user/rtl/text.c
65 ${CMAKE_CURRENT_BINARY_DIR}/user32_stubs.c
68 if(ARCH STREQUAL "i386")
69 list(APPEND ASM_SOURCE
70 windows/wndproc_fixup.S)
73 add_asm_files(user32_asm ${ASM_SOURCE})
75 add_library(user32 SHARED
79 ${CMAKE_CURRENT_BINARY_DIR}/user32.def)
81 set_module_type(user32 win32dll ENTRYPOINT DllMain 12 UNICODE)
82 target_link_libraries(user32 user32_wsprintf wine win32ksys ${PSEH_LIB})
83 add_dependencies(user32 asm)
86 # for __ftol2_sse, float to int cast helper
87 target_link_libraries(user32 msvcrtex)
90 add_delay_importlibs(user32 imm32 usp10)
91 add_importlibs(user32 gdi32 advapi32 kernel32 ntdll)
92 add_pch(user32 include/user32.h SOURCE)
93 add_cd_file(TARGET user32 DESTINATION reactos/system32 FOR all)