reactos/drivers/base/bootvid/CMakeLists.txt
Jérôme Gardou 4ee1da42f1 [CMAKE]
- 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
2010-10-30 16:08:19 +00:00

30 lines
800 B
CMake

spec2def(bootvid.dll bootvid.spec)
list(APPEND SOURCE
bootvid.rc
${CMAKE_CURRENT_BINARY_DIR}/bootvid.def)
if(ARCH MATCHES i386 OR ARCH MATCHES amd64)
list(APPEND SOURCE
i386/bootvid.c
i386/bootdata.c
i386/vga.c)
elseif(ARCH MATCHES arm)
list(APPEND SOURCE
arm/bootvid.c
arm/bootdata.c)
endif(ARCH MATCHES i386 OR ARCH MATCHES amd64)
add_library(bootvid SHARED ${CMAKE_CURRENT_BINARY_DIR}/bootvid_precomp.h.gch ${SOURCE})
set_target_properties(bootvid PROPERTIES LINK_FLAGS "-Wl,-entry,0 -Wl,--image-base,0x00010000")
target_link_libraries(bootvid
-lntoskrnl
-lhal)
add_pch(bootvid ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
add_dependencies(bootvid psdk buildno_header bugcodes)
add_minicd_target(bootvid reactos bootvid.dll)
add_cab_target(bootvid 1)