2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_definitions(-D_KERNEL32_)
|
|
|
|
|
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
|
|
|
|
|
|
|
|
set_rc_compiler()
|
|
|
|
|
2011-06-26 21:29:55 +00:00
|
|
|
spec2def(kernel32.dll kernel32.spec)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
debug/debugger.c
|
|
|
|
except/except.c
|
|
|
|
file/backup.c
|
|
|
|
file/bintype.c
|
|
|
|
file/cnotify.c
|
|
|
|
file/copy.c
|
2011-07-20 15:54:21 +00:00
|
|
|
file/console.c
|
2011-05-16 13:12:07 +00:00
|
|
|
file/create.c
|
|
|
|
file/curdir.c
|
|
|
|
file/delete.c
|
|
|
|
file/deviceio.c
|
|
|
|
file/dir.c
|
|
|
|
file/dosdev.c
|
|
|
|
file/file.c
|
2011-07-20 15:54:21 +00:00
|
|
|
file/filemap.c
|
2011-05-16 13:12:07 +00:00
|
|
|
file/find.c
|
|
|
|
file/hardlink.c
|
|
|
|
file/iocompl.c
|
|
|
|
file/lfile.c
|
|
|
|
file/lock.c
|
|
|
|
file/mailslot.c
|
|
|
|
file/move.c
|
|
|
|
file/npipe.c
|
|
|
|
file/pipe.c
|
|
|
|
file/rw.c
|
|
|
|
file/tape.c
|
|
|
|
file/volume.c
|
|
|
|
mem/heap.c
|
|
|
|
mem/virtual.c
|
|
|
|
misc/actctx.c
|
|
|
|
misc/atom.c
|
|
|
|
misc/comm.c
|
|
|
|
misc/computername.c
|
|
|
|
misc/dllmain.c
|
|
|
|
misc/env.c
|
|
|
|
misc/handle.c
|
|
|
|
misc/ldr.c
|
|
|
|
misc/lzexpand.c
|
|
|
|
misc/muldiv.c
|
|
|
|
misc/perfcnt.c
|
|
|
|
misc/power.c
|
|
|
|
misc/profile.c
|
|
|
|
misc/recovery.c
|
|
|
|
misc/res.c
|
2011-07-20 15:54:21 +00:00
|
|
|
misc/resntfy.c
|
2011-05-16 13:12:07 +00:00
|
|
|
misc/stubs.c
|
|
|
|
misc/sysinfo.c
|
|
|
|
misc/time.c
|
|
|
|
misc/timerqueue.c
|
|
|
|
misc/toolhelp.c
|
|
|
|
misc/utils.c
|
|
|
|
misc/version.c
|
|
|
|
process/job.c
|
|
|
|
process/proc.c
|
|
|
|
process/session.c
|
2011-07-20 15:54:21 +00:00
|
|
|
string/casemap.c
|
|
|
|
string/chartype.c
|
|
|
|
string/collation.c
|
|
|
|
string/fold.c
|
|
|
|
string/format_msg.c
|
|
|
|
string/lang.c
|
|
|
|
string/lcformat.c
|
2011-05-16 13:12:07 +00:00
|
|
|
string/lstring.c
|
2011-07-20 15:54:21 +00:00
|
|
|
string/nls.c
|
|
|
|
string/sortkey.c
|
|
|
|
synch/synch.c
|
|
|
|
vista/vista.c
|
2011-05-16 13:12:07 +00:00
|
|
|
thread/fiber.c
|
|
|
|
thread/thread.c
|
|
|
|
kernel32.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kernel32.def)
|
|
|
|
|
|
|
|
if(ARCH MATCHES i386)
|
|
|
|
list(APPEND SOURCE
|
|
|
|
thread/i386/fiber.S
|
|
|
|
thread/i386/thread.S)
|
|
|
|
elseif(ARCH MATCHES amd64)
|
|
|
|
list(APPEND SOURCE
|
|
|
|
thread/amd64/fiber.S
|
|
|
|
thread/amd64/thread.S)
|
|
|
|
endif(ARCH MATCHES i386)
|
|
|
|
|
2011-06-02 12:18:22 +00:00
|
|
|
add_library(kernel32 SHARED ${SOURCE})
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
set_entrypoint(kernel32 DllMain@12)
|
|
|
|
set_image_base(kernel32 ${baseaddress_kernel32})
|
|
|
|
|
2011-06-06 11:44:58 +00:00
|
|
|
target_link_libraries(kernel32 chkstk ${PSEH_LIB})
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_importlibs(kernel32 ntdll)
|
2011-06-02 12:18:22 +00:00
|
|
|
add_pch(kernel32 k32.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_dependencies(kernel32 psdk errcodes asm)
|
|
|
|
add_cd_file(TARGET kernel32 DESTINATION reactos/system32 FOR all)
|
|
|
|
add_importlib_target(kernel32.spec)
|