reactos/reactos/dll/win32/kernel32/CMakeLists.txt

108 lines
2.1 KiB
CMake
Raw Normal View History

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()
spec2def(kernel32.dll kernel32.spec)
list(APPEND SOURCE
debug/debugger.c
except/except.c
file/backup.c
file/bintype.c
file/cnotify.c
file/copy.c
file/console.c
file/create.c
file/curdir.c
file/delete.c
file/deviceio.c
file/dir.c
file/dosdev.c
file/file.c
file/filemap.c
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
misc/resntfy.c
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
string/casemap.c
string/chartype.c
string/collation.c
string/fold.c
string/format_msg.c
string/lang.c
string/lcformat.c
string/lstring.c
string/nls.c
string/sortkey.c
synch/synch.c
vista/vista.c
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)
add_library(kernel32 SHARED ${SOURCE})
set_entrypoint(kernel32 DllMain@12)
set_image_base(kernel32 ${baseaddress_kernel32})
target_link_libraries(kernel32 chkstk ${PSEH_LIB})
add_importlibs(kernel32 ntdll)
add_pch(kernel32 k32.h)
add_dependencies(kernel32 psdk errcodes asm)
add_cd_file(TARGET kernel32 DESTINATION reactos/system32 FOR all)
add_importlib_target(kernel32.spec)