mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 19:21:38 +00:00
[CMAKE]
- Add rtl to build. svn path=/branches/cmake-bringup/; revision=48319
This commit is contained in:
parent
b2e6f743b6
commit
917e248cc6
4 changed files with 36 additions and 3 deletions
|
@ -1,4 +1,28 @@
|
|||
|
||||
file(GLOB_RECURSE SOURCE "*.c")
|
||||
include_directories(.)
|
||||
|
||||
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)
|
||||
|
||||
get_directory_property(defines COMPILE_DEFINITIONS)
|
||||
|
||||
foreach(arg ${defines})
|
||||
set(result_defs "${result_defs} -D${arg}")
|
||||
endforeach(arg ${defines})
|
||||
|
||||
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -x assembler-with-cpp -o <OBJECT> ${result_defs} -D__ASM__ <FLAGS> -c <SOURCE>")
|
||||
|
||||
file(GLOB SOURCE "*.c")
|
||||
|
||||
list(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/avlsupp.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/mem.c
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/memgen.c
|
||||
)
|
||||
|
||||
add_library(rtl ${ARCH_SOURCE} ${SOURCE})
|
||||
add_dependencies(rtl psdk)
|
||||
|
||||
add_library(rtl ${SOURCE})
|
Loading…
Add table
Add a link
Reference in a new issue