- Update to r53061
[reactos.git] / dll / win32 / kernel32 / CMakeLists.txt
1
2 add_definitions(-D_KERNEL32_)
3
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
5
6 set_rc_compiler()
7
8 spec2def(kernel32.dll kernel32.spec)
9
10 list(APPEND SOURCE
11 client/appcache.c
12 client/atom.c
13 client/compname.c
14 client/debugger.c
15 client/dllmain.c
16 client/environ.c
17 client/except.c
18 client/fiber.c
19 client/handle.c
20 client/heapmem.c
21 client/job.c
22 client/loader.c
23 client/perfcnt.c
24 client/power.c
25 client/proc.c
26 client/resntfy.c
27 client/session.c
28 client/synch.c
29 client/sysinfo.c
30 client/time.c
31 client/timerqueue.c
32 client/toolhelp.c
33 client/utils.c
34 client/thread.c
35 client/vdm.c
36 client/version.c
37 client/virtmem.c
38 client/vista.c
39 client/file/backup.c
40 client/file/bintype.c
41 client/file/cnotify.c
42 client/file/copy.c
43 client/file/console.c
44 client/file/create.c
45 client/file/curdir.c
46 client/file/delete.c
47 client/file/deviceio.c
48 client/file/dir.c
49 client/file/dosdev.c
50 client/file/file.c
51 client/file/filemap.c
52 client/file/find.c
53 client/file/hardlink.c
54 client/file/iocompl.c
55 client/file/lfile.c
56 client/file/lock.c
57 client/file/mailslot.c
58 client/file/move.c
59 client/file/npipe.c
60 client/file/pipe.c
61 client/file/rw.c
62 client/file/tape.c
63 client/file/volume.c
64 wine/actctx.c
65 wine/comm.c
66 wine/lzexpand.c
67 wine/muldiv.c
68 wine/profile.c
69 wine/res.c
70 wine/timezone.c
71 winnls/string/casemap.c
72 winnls/string/chartype.c
73 winnls/string/collation.c
74 winnls/string/fold.c
75 winnls/string/format_msg.c
76 winnls/string/lang.c
77 winnls/string/lcformat.c
78 winnls/string/lstring.c
79 winnls/string/nls.c
80 winnls/string/sortkey.c
81 kernel32.rc
82 ${CMAKE_CURRENT_BINARY_DIR}/kernel32.def)
83
84 if(ARCH MATCHES i386)
85 list(APPEND SOURCE
86 client/i386/fiber.S
87 client/i386/thread.S)
88 elseif(ARCH MATCHES amd64)
89 list(APPEND SOURCE
90 client/amd64/fiber.S
91 client/amd64/thread.S)
92 endif(ARCH MATCHES i386)
93
94 add_library(kernel32 SHARED ${SOURCE})
95
96 set_entrypoint(kernel32 DllMain@12)
97 set_image_base(kernel32 ${baseaddress_kernel32})
98
99 target_link_libraries(kernel32 wine chkstk ${PSEH_LIB})
100
101 add_importlibs(kernel32 ntdll)
102 add_pch(kernel32 k32.h)
103 add_dependencies(kernel32 psdk errcodes asm)
104 add_cd_file(TARGET kernel32 DESTINATION reactos/system32 FOR all)
105 add_importlib_target(kernel32.spec)