24 lines
1.1 KiB
CMake
24 lines
1.1 KiB
CMake
# Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
|
|
# All rights reserved.
|
|
#
|
|
# This software is supplied "AS IS" without any warranties.
|
|
# RDA assumes no responsibility or liability for the use of the software,
|
|
# conveys no license or title under any patent, copyright, or mask work
|
|
# right to the product. RDA reserves the right to make changes in the
|
|
# software without notification. RDA also make no representation or
|
|
# warranty that such application will be suitable for the specified use
|
|
# without further testing or modification.
|
|
|
|
set(target ql_newlib)
|
|
|
|
add_app_libraries($<TARGET_FILE:${target}>)
|
|
add_library(${target} STATIC)
|
|
set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${SOURCE_TOP_DIR}/components/newlib/armca5)
|
|
target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
|
|
target_include_directories(${target} PUBLIC ${SOURCE_TOP_DIR}/components/newlib/include)
|
|
target_link_libraries(${target} PRIVATE ${libc_file_name} ${libm_file_name} ${libgcc_file_name})
|
|
target_sources(${target} PRIVATE
|
|
ql_newlib.c
|
|
)
|
|
beautify_c_code(${target} ${srcs})
|