Author: akhaldi Date: Sun Aug 29 18:32:17 2010 New Revision: 48647
URL: http://svn.reactos.org/svn/reactos?rev=48647&view=rev Log: [CMAKE] - Improve kernel32.
Modified: branches/cmake-bringup/dll/win32/kernel32/CMakeLists.txt
Modified: branches/cmake-bringup/dll/win32/kernel32/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/dll/win32/kernel32... ============================================================================== --- branches/cmake-bringup/dll/win32/kernel32/CMakeLists.txt [iso-8859-1] (original) +++ branches/cmake-bringup/dll/win32/kernel32/CMakeLists.txt [iso-8859-1] Sun Aug 29 18:32:17 2010 @@ -1,3 +1,4 @@ + set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
add_definitions(-D_KERNEL32_) @@ -7,21 +8,106 @@
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
-file(GLOB_RECURSE SOURCE "*.c") - -file(GLOB_RECURSE ARCH_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/thread/${ARCH}/*.s") +list(APPEND SOURCE + debug/debugger.c + debug/output.c + except/except.c + file/backup.c + file/bintype.c + file/cnotify.c + file/copy.c + file/create.c + file/curdir.c + file/delete.c + file/deviceio.c + file/dir.c + file/dosdev.c + file/file.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/global.c + mem/heap.c + mem/isbad.c + mem/local.c + mem/procmem.c + mem/resnotify.c + mem/section.c + mem/virtual.c + misc/actctx.c + misc/atom.c + misc/casemap.c + misc/chartype.c + misc/collation.c + misc/comm.c + misc/commdcb.c + misc/computername.c + misc/console.c + misc/dllmain.c + misc/env.c + misc/error.c + misc/fold.c + misc/format_msg.c + misc/handle.c + misc/lang.c + misc/lcformat.c + misc/ldr.c + misc/lzexpand.c + misc/muldiv.c + misc/nls.c + misc/perfcnt.c + misc/power.c + misc/profile.c + misc/recovery.c + misc/res.c + misc/sortkey.c + misc/stubs.c + misc/sysinfo.c + misc/time.c + misc/timerqueue.c + misc/toolhelp.c + misc/utils.c + misc/version.c + process/cmdline.c + process/procsup.c + process/job.c + process/proc.c + process/session.c + string/lstring.c + synch/condvar.c + synch/critical.c + synch/event.c + synch/mutex.c + synch/sem.c + synch/timer.c + synch/wait.c + thread/fiber.c + thread/fls.c + thread/thread.c + thread/tls.c + thread/${ARCH}/fiber.S + thread/${ARCH}/thread.S + kernel32.rc + kernel32_stubs.c)
add_library(kernel32 SHARED - ${SOURCE} - ${ARCH_SOURCE} - ${CMAKE_CURRENT_SOURCE_DIR}/kernel32.rc - ${CMAKE_CURRENT_BINARY_DIR}/kernel32_k32.h.gch) + ${SOURCE} + ${CMAKE_CURRENT_BINARY_DIR}/kernel32_k32.h.gch)
set_target_properties(kernel32 PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
target_link_libraries(kernel32 ${CMAKE_CURRENT_SOURCE_DIR}/kernel32.def - pseh - ${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a) + pseh + ${REACTOS_SOURCE_DIR}/dll/ntdll/libntdll.a)
add_pch(kernel32 ${CMAKE_CURRENT_SOURCE_DIR}/k32.h ${SOURCE}) add_dependencies(kernel32 errcodes version)