2 add_definitions(-D_KERNEL32_)
3 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
4 spec2def(kernel32.dll kernel32.spec ADD_IMPORTLIB)
37 client/console/alias.c
38 client/console/console.c
39 client/console/history.c
40 client/console/readwrite.c
41 client/console/vista.c
47 client/file/deviceio.c
49 client/file/fileinfo.c
51 client/file/filename.c
53 client/file/hardlink.c
57 client/file/mailslot.c
70 winnls/string/casemap.c
71 winnls/string/collation.c
73 winnls/string/format_msg.c
75 winnls/string/lcformat.c
76 winnls/string/lstring.c
78 winnls/string/sortkey.c
80 ${CMAKE_CURRENT_BINARY_DIR}/kernel32.def)
82 if(ARCH STREQUAL "i386")
86 elseif(ARCH STREQUAL "amd64")
89 client/amd64/thread.S)
92 add_library(kernel32 SHARED ${SOURCE})
93 set_module_type(kernel32 win32dll ENTRYPOINT DllMain 12)
94 target_link_libraries(kernel32 wine chkstk ${PSEH_LIB})
95 add_importlibs(kernel32 ntdll)
96 add_pch(kernel32 k32.h)
97 add_dependencies(kernel32 psdk errcodes asm)
98 add_cd_file(TARGET kernel32 DESTINATION reactos/system32 FOR all)