CMake: Revert mbed-trace CMake input source file to match upstream repository (#13590)

As there is currently no mbed-trace library, statements related to that
target have been commented out.
pull/13566/head
Hugues Kamba 2020-09-11 15:06:23 +01:00 committed by Hugues Kamba
parent 47f61485b8
commit 0f7d03ae1c
2 changed files with 19 additions and 9 deletions

View File

@ -1,15 +1,7 @@
# Copyright (c) 2020 ARM Limited. All rights reserved. # Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
if(DEFINED TARGET_LIKE_X86_LINUX_NATIVE) add_subdirectory(source)
add_definitions("-g -O0 -fprofile-arcs -ftest-coverage")
# target_link_libraries(mbed-os gcov nanostack-libservice)
elseif(DEFINED TARGET_LIKE_X86_OSX_NATIVE)
add_definitions("-g -O0")
# target_link_libraries(mbed-os nanostack-libservice)
else()
# target_link_libraries(mbed-os nanostack-libservice)
endif()
target_include_directories(mbed-os target_include_directories(mbed-os
PUBLIC PUBLIC

View File

@ -0,0 +1,18 @@
if(DEFINED TARGET_LIKE_X86_LINUX_NATIVE)
# add_library( mbed-trace
# mbed_trace.c
# )
add_definitions("-g -O0 -fprofile-arcs -ftest-coverage")
# target_link_libraries(mbed-trace gcov nanostack-libservice)
elseif(DEFINED TARGET_LIKE_X86_OSX_NATIVE)
# add_library( mbed-trace
# mbed_trace.c
# )
add_definitions("-g -O0")
# target_link_libraries(mbed-trace nanostack-libservice)
# else()
# add_library( mbed-trace
# mbed_trace.c
# )
# target_link_libraries(mbed-trace nanostack-libservice)
endif()