mirror of
https://github.com/reactos/reactos.git
synced 2024-09-21 02:01:15 +00:00
4ee1da42f1
- rewrite spec2def macro because 1. cmake gracefully handles def files as source files 2. cmake gracefully handles autogenerated files as source 3. it did not take into account the fact that all shared libraries haven't the .dll extension svn path=/branches/cmake-bringup/; revision=49358
29 lines
797 B
CMake
29 lines
797 B
CMake
|
|
spec2def(framebuf_new.dll framebuf_new.spec)
|
|
|
|
list(APPEND SOURCE
|
|
debug.c
|
|
enable.c
|
|
palette.c
|
|
pointer.c
|
|
screen.c
|
|
framebuf_new.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/framebuf_new.def)
|
|
|
|
add_library(framebuf_new SHARED ${CMAKE_CURRENT_BINARY_DIR}/framebuf_new_driver.h.gch ${SOURCE})
|
|
|
|
if(ARCH MATCHES i386)
|
|
if(MSVC)
|
|
else()
|
|
set_target_properties(framebuf_new PROPERTIES COMPILE_FLAGS "-mrtd -fno-builtin")
|
|
endif()
|
|
endif()
|
|
|
|
set_target_properties(framebuf_new PROPERTIES LINK_FLAGS "-Wl,-entry,_DrvEnableDriver@12 -Wl,--image-base,0x00010000 -Wl,--subsystem,native")
|
|
|
|
target_link_libraries(framebuf_new libcntpr)
|
|
|
|
add_importlibs(framebuf_new win32k)
|
|
add_pch(framebuf_new ${CMAKE_CURRENT_SOURCE_DIR}/driver.h ${SOURCE})
|
|
add_dependencies(framebuf_new psdk bugcodes)
|