2011-05-23 15:50:03 +00:00
|
|
|
|
|
|
|
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}
|
|
|
|
)
|
2011-05-23 15:50:03 +00:00
|
|
|
|
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}
|
|
|
|
)
|
2011-05-23 15:50:03 +00:00
|
|
|
|
2013-01-08 20:33:08 +00:00
|
|
|
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})
|
|
|
|
|
2021-02-02 18:21:06 +00:00
|
|
|
add_library(libcntpr STATIC ${LIBCNTPR_SOURCE} ${libcntpr_asm})
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_definitions(libcntpr
|
|
|
|
PRIVATE NO_RTL_INLINES
|
2011-12-31 17:44:51 +00:00
|
|
|
_NTSYSTEM_
|
|
|
|
_NTDLLBUILD_
|
|
|
|
_LIBCNT_
|
|
|
|
__CRT__NO_INLINE
|
|
|
|
CRTDLL)
|
2011-05-23 15:50:03 +00:00
|
|
|
add_dependencies(libcntpr psdk asm)
|