d8fcfdc201c9a16b5e70acc9ceacf56dbc05e727
[reactos.git] / dll / win32 / kernel32 / CMakeLists.txt
1
2 add_definitions(-D_KERNEL32_)
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
8
9 list(APPEND SOURCE
10 debug/debugger.c
11 debug/output.c
12 except/except.c
13 file/backup.c
14 file/bintype.c
15 file/cnotify.c
16 file/copy.c
17 file/create.c
18 file/curdir.c
19 file/delete.c
20 file/deviceio.c
21 file/dir.c
22 file/dosdev.c
23 file/file.c
24 file/find.c
25 file/hardlink.c
26 file/iocompl.c
27 file/lfile.c
28 file/lock.c
29 file/mailslot.c
30 file/move.c
31 file/npipe.c
32 file/pipe.c
33 file/rw.c
34 file/tape.c
35 file/volume.c
36 mem/global.c
37 mem/heap.c
38 mem/isbad.c
39 mem/local.c
40 mem/procmem.c
41 mem/resnotify.c
42 mem/section.c
43 mem/virtual.c
44 misc/actctx.c
45 misc/atom.c
46 misc/casemap.c
47 misc/chartype.c
48 misc/collation.c
49 misc/comm.c
50 misc/commdcb.c
51 misc/computername.c
52 misc/console.c
53 misc/dllmain.c
54 misc/env.c
55 misc/error.c
56 misc/fold.c
57 misc/format_msg.c
58 misc/handle.c
59 misc/lang.c
60 misc/lcformat.c
61 misc/ldr.c
62 misc/lzexpand.c
63 misc/muldiv.c
64 misc/nls.c
65 misc/perfcnt.c
66 misc/power.c
67 misc/profile.c
68 misc/recovery.c
69 misc/res.c
70 misc/sortkey.c
71 misc/stubs.c
72 misc/sysinfo.c
73 misc/time.c
74 misc/timerqueue.c
75 misc/toolhelp.c
76 misc/utils.c
77 misc/version.c
78 process/cmdline.c
79 process/procsup.c
80 process/job.c
81 process/proc.c
82 process/session.c
83 string/lstring.c
84 synch/condvar.c
85 synch/critical.c
86 synch/event.c
87 synch/mutex.c
88 synch/sem.c
89 synch/timer.c
90 synch/wait.c
91 thread/fiber.c
92 thread/fls.c
93 thread/thread.c
94 thread/tls.c
95 kernel32.rc
96 kernel32_stubs.c)
97
98 if(ARCH MATCHES i386)
99 list(APPEND SOURCE
100 thread/i386/fiber.S
101 thread/i386/thread.S)
102 elseif(ARCH MATCHES amd64)
103 list(APPEND SOURCE
104 thread/amd64/fiber.S
105 thread/amd64/thread.S)
106 endif(ARCH MATCHES i386)
107
108 add_library(kernel32 SHARED
109 ${CMAKE_CURRENT_BINARY_DIR}/kernel32_k32.h.gch
110 ${SOURCE})
111
112 set_module_type(kernel32 win32dll)
113
114 target_link_libraries(kernel32 ${CMAKE_CURRENT_SOURCE_DIR}/kernel32.def
115 pseh)
116
117 add_importlibs(kernel32 ntdll)
118 add_pch(kernel32 ${CMAKE_CURRENT_SOURCE_DIR}/k32.h ${SOURCE})
119 add_dependencies(kernel32 errcodes)
120 add_livecd_target(kernel32 reactos/system32)