reactos/sdk/lib/crt/libcntpr.cmake

37 lines
1 KiB
CMake
Raw Normal View History

list(APPEND LIBCNTPR_SOURCE
2021-07-17 12:53:17 +00:00
${LIBCNTPR_EXCEPT_SOURCE}
${LIBCNTPR_FLOAT_SOURCE}
${LIBCNTPR_MATH_SOURCE}
${LIBCNTPR_MBSTRING_SOURCE}
${LIBCNTPR_MEM_SOURCE}
${LIBCNTPT_MISC_SOURCE}
${LIBCNTPR_PRINTF_SOURCE}
${LIBCNTPR_SEARCH_SOURCE}
${LIBCNTPR_STDLIB_SOURCE}
${LIBCNTPR_STRING_SOURCE}
${LIBCNTPR_WSTRING_SOURCE}
)
2021-07-17 12:53:17 +00:00
list(APPEND LIBCNTPR_ASM_SOURCE
${LIBCNTPR_EXCEPT_ASM_SOURCE}
${LIBCNTPR_FLOAT_ASM_SOURCE}
${LIBCNTPR_MATH_ASM_SOURCE}
${LIBCNTPR_MEM_ASM_SOURCE}
${LIBCNTPR_SETJMP_ASM_SOURCE}
${LIBCNTPR_STRING_ASM_SOURCE}
)
set_source_files_properties(${LIBCNTPR_ASM_SOURCE} PROPERTIES COMPILE_DEFINITIONS "NO_RTL_INLINES;_NTSYSTEM_;_NTDLLBUILD_;_LIBCNT_;__CRT__NO_INLINE;CRTDLL")
add_asm_files(libcntpr_asm ${LIBCNTPR_ASM_SOURCE})
add_library(libcntpr STATIC ${LIBCNTPR_SOURCE} ${libcntpr_asm})
target_compile_definitions(libcntpr
PRIVATE NO_RTL_INLINES
_NTSYSTEM_
_NTDLLBUILD_
_LIBCNT_
__CRT__NO_INLINE
CRTDLL)
add_dependencies(libcntpr psdk asm)