2010-07-25 23:05:32 +00:00
|
|
|
|
2010-07-27 23:55:52 +00:00
|
|
|
add_definitions(-D_NTOSKRNL_)
|
|
|
|
add_definitions(-DNO_RTL_INLINES)
|
|
|
|
add_definitions(-D_NTSYSTEM_)
|
|
|
|
add_definitions(-D_NTDLLBUILD_)
|
|
|
|
|
|
|
|
file(GLOB_RECURSE ARCH_SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/*.c ${CMAKE_CURRENT_SOURCE_DIR}/${ARCH}/*.S)
|
|
|
|
file(GLOB SOURCE "*.c")
|
|
|
|
|
|
|
|
list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/avlsupp.c
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/mem.c
|
2010-08-03 14:54:19 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/memgen.c)
|
2010-07-27 23:55:52 +00:00
|
|
|
|
2010-08-04 19:10:43 +00:00
|
|
|
add_library(rtl ${ARCH_SOURCE} ${SOURCE} ${CMAKE_CURRENT_BINARY_DIR}/rtl_rtl.h.gch)
|
2010-08-04 06:41:07 +00:00
|
|
|
add_pch(rtl ${CMAKE_CURRENT_SOURCE_DIR}/rtl.h ${SOURCE})
|
2010-07-27 23:55:52 +00:00
|
|
|
add_dependencies(rtl psdk)
|
2010-07-25 23:05:32 +00:00
|
|
|
|