[CMAKE]
[reactos.git] / subsystems / win32 / win32k / CMakeLists.txt
index 0654d67..403b9d7 100644 (file)
@@ -1,18 +1,18 @@
 
-
-
-include_directories(.)
-include_directories(include)
-include_directories(${REACTOS_SOURCE_DIR}/ntoskrnl/include)
-include_directories(${REACTOS_SOURCE_DIR}/lib/3rdparty/freetype/include)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/subsys)
-include_directories(${REACTOS_SOURCE_DIR}/include/reactos/drivers)
+include_directories(
+    .
+    include
+    ${REACTOS_SOURCE_DIR}/ntoskrnl/include
+    ${REACTOS_SOURCE_DIR}/lib/3rdparty/freetype/include
+    ${REACTOS_SOURCE_DIR}/include/reactos/subsys
+    ${REACTOS_SOURCE_DIR}/include/reactos/drivers)
 
 add_definitions(-DLANGPACK)
 add_definitions(-D_WIN32K_)
 
 list(APPEND SOURCE
-    dib/dib1bpp.c
+    dib/alphablend.c
+       dib/dib1bpp.c
     dib/dib4bpp.c
     dib/dib8bpp.c
     dib/dib16bpp.c
@@ -34,12 +34,15 @@ list(APPEND SOURCE
     eng/float.c
     eng/gradient.c
     eng/lineto.c
+       eng/ldevobj.c
     eng/mapping.c
     eng/mem.c
     eng/engmisc.c
     eng/mouse.c
     eng/paint.c
+       eng/pdevobj.c
     eng/perfcnt.c
+       eng/rlecomp.c
     eng/semaphor.c
     eng/sort.c
     eng/string.c
@@ -48,7 +51,6 @@ list(APPEND SOURCE
     eng/transblt.c
     eng/engwindow.c
     eng/xlate.c
-    ldr/loader.c
     main/dllmain.c
     misc/driver.c
     misc/err.c
@@ -175,17 +177,15 @@ add_library(win32k SHARED
     ${CMAKE_CURRENT_BINARY_DIR}/win32k_pch.h.gch
     ${SOURCE})
 
-set_target_properties(win32k PROPERTIES LINK_FLAGS "-Wl,-entry,_DriverEntry@8 -Wl,--image-base,0x00010000 -Wl,--subsystem,native" SUFFIX ".sys")
+set_module_type(win32k kernelmodedriver)
 
 target_link_libraries(win32k
     ${CMAKE_CURRENT_SOURCE_DIR}/win32k_i386.def
     pseh
-    -lntoskrnl
-    -lhal
-    -lftfd
     dxguid
     libcntpr)
 
+add_importlibs(win32k ntoskrnl hal ftfd)
 add_pch(win32k ${CMAKE_CURRENT_SOURCE_DIR}/pch.h ${SOURCE})
-add_dependencies(win32k psdk gendib_generated bugcodes subsystem_napi buildno_header)
-add_livecd_target(win32k reactos/system32)
\ No newline at end of file
+add_dependencies(win32k gendib_generated subsystem_napi)
+add_cab_target(win32k 1)
\ No newline at end of file