[CMAKE]
[reactos.git] / subsystems / win32 / win32k / CMakeLists.txt
1
2 include_directories(
3 .
4 include
5 ${REACTOS_SOURCE_DIR}/ntoskrnl/include
6 ${REACTOS_SOURCE_DIR}/lib/3rdparty/freetype/include
7 ${REACTOS_SOURCE_DIR}/include/reactos/subsys
8 ${REACTOS_SOURCE_DIR}/include/reactos/drivers)
9
10 add_definitions(-DLANGPACK)
11 add_definitions(-D_WIN32K_)
12
13 list(APPEND SOURCE
14 dib/alphablend.c
15 dib/dib1bpp.c
16 dib/dib4bpp.c
17 dib/dib8bpp.c
18 dib/dib16bpp.c
19 dib/dib24bpp.c
20 dib/dib32bpp.c
21 dib/dib.c
22 dib/floodfill.c
23 dib/stretchblt.c
24 eng/alphablend.c
25 eng/bitblt.c
26 eng/engbrush.c
27 eng/engevent.c
28 eng/clip.c
29 eng/copybits.c
30 eng/debug.c
31 eng/device.c
32 eng/driverobj.c
33 eng/error.c
34 eng/float.c
35 eng/gradient.c
36 eng/lineto.c
37 eng/ldevobj.c
38 eng/mapping.c
39 eng/mem.c
40 eng/engmisc.c
41 eng/mouse.c
42 eng/paint.c
43 eng/pdevobj.c
44 eng/perfcnt.c
45 eng/rlecomp.c
46 eng/semaphor.c
47 eng/sort.c
48 eng/string.c
49 eng/stretchblt.c
50 eng/surface.c
51 eng/transblt.c
52 eng/engwindow.c
53 eng/xlate.c
54 main/dllmain.c
55 misc/driver.c
56 misc/err.c
57 misc/file.c
58 misc/math.c
59 misc/rtlstr.c
60 misc/copy.c
61 misc/registry.c
62 misc/usrheap.c
63 ntddraw/ddraw.c
64 ntddraw/dd.c
65 ntddraw/ddsurf.c
66 ntddraw/d3d.c
67 ntddraw/dvp.c
68 ntddraw/mocomp.c
69 ntddraw/eng.c
70 ntddraw/dxeng.c
71 ntuser/accelerator.c
72 ntuser/callback.c
73 ntuser/callproc.c
74 ntuser/caret.c
75 ntuser/class.c
76 ntuser/clipboard.c
77 ntuser/csr.c
78 ntuser/cursoricon.c
79 ntuser/defwnd.c
80 ntuser/desktop.c
81 ntuser/display.c
82 ntuser/event.c
83 ntuser/focus.c
84 ntuser/guicheck.c
85 ntuser/hook.c
86 ntuser/hotkey.c
87 ntuser/input.c
88 ntuser/keyboard.c
89 ntuser/kbdlayout.c
90 ntuser/menu.c
91 ntuser/message.c
92 ntuser/metric.c
93 ntuser/misc.c
94 ntuser/monitor.c
95 ntuser/msgqueue.c
96 ntuser/ntstubs.c
97 ntuser/ntuser.c
98 ntuser/painting.c
99 ntuser/prop.c
100 ntuser/scrollbar.c
101 ntuser/session.c
102 ntuser/simplecall.c
103 ntuser/sysparams.c
104 ntuser/timer.c
105 ntuser/useratom.c
106 ntuser/vis.c
107 ntuser/windc.c
108 ntuser/window.c
109 ntuser/winpos.c
110 ntuser/winsta.c
111 ntuser/object.c
112 objects/arc.c
113 objects/bezier.c
114 objects/bitblt.c
115 objects/bitmaps.c
116 objects/brush.c
117 objects/cliprgn.c
118 objects/coord.c
119 objects/dcattr.c
120 objects/dclife.c
121 objects/dcobjs.c
122 objects/dcstate.c
123 objects/dcutil.c
124 objects/device.c
125 objects/dibobj.c
126 objects/drawing.c
127 objects/fillshap.c
128 objects/font.c
129 objects/freetype.c
130 objects/gdibatch.c
131 objects/gdiobj.c
132 objects/icm.c
133 objects/line.c
134 objects/metafile.c
135 objects/palette.c
136 objects/path.c
137 objects/pen.c
138 objects/polyfill.c
139 objects/print.c
140 objects/rect.c
141 objects/region.c
142 objects/stockobj.c
143 objects/text.c
144 objects/wingl.c
145 objects/xformobj.c
146 stubs/stubs.c
147 stubs/umpdstubs.c
148 win32k.rc)
149
150 list(APPEND GENDIB_GENERATED
151 ${CMAKE_CURRENT_BINARY_DIR}/dib/dib8gen.c
152 ${CMAKE_CURRENT_BINARY_DIR}/dib/dib16gen.c
153 ${CMAKE_CURRENT_BINARY_DIR}/dib/dib32gen.c)
154
155 set_source_files_properties(${GENDIB_GENERATED} PROPERTIES GENERATED TRUE)
156
157 list(APPEND SOURCE ${GENDIB_GENERATED})
158
159 if(ARCH MATCHES i386)
160 list(APPEND SOURCE
161 dib/i386/dib24bpp_hline.s
162 dib/i386/dib32bpp_hline.s
163 dib/i386/dib32bpp_colorfill.s
164 eng/i386/floatobj.S
165 misc/i386/cos_asm.s
166 misc/i386/sin_asm.s
167 misc/i386/atan2_asm.s
168 misc/i386/floor_asm.s
169 misc/i386/ceil_asm.s)
170 else()
171 list(APPEND SOURCE
172 dib/dib24bppc.c
173 dib/dib32bppc.c)
174 endif(ARCH MATCHES i386)
175
176 add_library(win32k SHARED
177 ${CMAKE_CURRENT_BINARY_DIR}/win32k_pch.h.gch
178 ${SOURCE})
179
180 set_module_type(win32k kernelmodedriver)
181
182 target_link_libraries(win32k
183 ${CMAKE_CURRENT_SOURCE_DIR}/win32k_i386.def
184 pseh
185 dxguid
186 libcntpr)
187
188 add_importlibs(win32k ntoskrnl hal ftfd)
189 add_pch(win32k ${CMAKE_CURRENT_SOURCE_DIR}/pch.h ${SOURCE})
190 add_dependencies(win32k gendib_generated subsystem_napi)
191 add_cab_target(win32k 1)