sync with trunk r49322
[reactos.git] / drivers / video / displays / framebuf_new / CMakeLists.txt
1
2 spec2def(framebuf_new ${CMAKE_CURRENT_SOURCE_DIR}/framebuf_new.spec ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new.def)
3
4 list(APPEND SOURCE
5 debug.c
6 enable.c
7 palette.c
8 pointer.c
9 screen.c
10 framebuf_new.rc)
11
12 add_library(framebuf_new SHARED ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new_driver.h.gch ${SOURCE})
13
14 if(ARCH MATCHES i386)
15 if(MSVC)
16 else()
17 set_target_properties(framebuf_new PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin")
18 endif()
19 endif()
20
21 set_target_properties(framebuf_new PROPERTIES LINK_FLAGS "-Wl,-entry,_DrvEnableDriver@12 -Wl,--image-base,0x00010000 -Wl,--subsystem,native")
22
23 target_link_libraries(framebuf_new
24 ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new.def
25 libcntpr)
26
27 add_importlibs(framebuf_new win32k)
28 add_pch(framebuf_new ${CMAKE_CURRENT_SOURCE_DIR}/driver.h ${SOURCE})
29 add_dependencies(framebuf_new framebuf_new_def psdk bugcodes)