2 add_definitions(-D_KERNEL32_)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
4 spec2def(kernel32.dll kernel32.spec ADD_IMPORTLIB)
43 client/file/deviceio.c
45 client/file/fileinfo.c
47 client/file/filename.c
49 client/file/hardlink.c
53 client/file/mailslot.c
66 winnls/string/casemap.c
67 winnls/string/collation.c
69 winnls/string/format_msg.c
71 winnls/string/lcformat.c
72 winnls/string/lstring.c
74 winnls/string/sortkey.c
76 ${CMAKE_CURRENT_BINARY_DIR}/kernel32.def)
78 if(ARCH STREQUAL "i386")
82 elseif(ARCH STREQUAL "amd64")
85 client/amd64/thread.S)
88 add_library(kernel32 SHARED ${SOURCE})
89 set_module_type(kernel32 win32dll ENTRYPOINT DllMain 12)
90 target_link_libraries(kernel32 wine chkstk ${PSEH_LIB})
91 add_importlibs(kernel32 ntdll)
92 add_pch(kernel32 k32.h)
93 add_dependencies(kernel32 psdk errcodes asm)
94 add_cd_file(TARGET kernel32 DESTINATION reactos/system32 FOR all)