2 add_definitions(-D_KERNEL32_)
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
8 spec2def(kernel32.dll kernel32.spec ADD_IMPORTLIB)
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)
90 endif(ARCH STREQUAL "i386")
92 add_library(kernel32 SHARED ${SOURCE})
94 set_module_type(kernel32 win32dll ENTRYPOINT DllMain 12)
96 target_link_libraries(kernel32 wine chkstk ${PSEH_LIB})
98 add_importlibs(kernel32 ntdll)
99 add_pch(kernel32 k32.h)
100 add_dependencies(kernel32 psdk errcodes asm)
101 add_cd_file(TARGET kernel32 DESTINATION reactos/system32 FOR all)