219829f10aaba564c818cab888070e2fac322534
[reactos.git] / reactos / win32ss / drivers / displays / framebuf_new / CMakeLists.txt
1
2 spec2def(framebuf_new.dll framebuf_new.spec)
3
4 list(APPEND SOURCE
5 debug.c
6 enable.c
7 palette.c
8 pointer.c
9 screen.c
10 ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new.def)
11
12 add_library(framebuf_new SHARED
13 ${SOURCE}
14 framebuf_new.rc)
15
16 if(ARCH STREQUAL "i386")
17 # FIXME: http://www.cmake.org/Bug/view.php?id=12998
18 if(MSVC)
19 #add_target_compile_flags(framebuf_new "/Gz")
20 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "/Gz")
21 else()
22 #add_target_compile_flags(framebuf_new "-mrtd -fno-builtin")
23 set_source_files_properties(${SOURCE} PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin")
24 endif()
25 endif()
26
27 set_entrypoint(framebuf_new DrvEnableDriver 12)
28 set_subsystem(framebuf_new native)
29 set_image_base(framebuf_new 0x00010000)
30
31 target_link_libraries(framebuf_new libcntpr)
32
33 add_importlibs(framebuf_new win32k)
34 add_pch(framebuf_new driver.h)
35 add_dependencies(framebuf_new psdk bugcodes)