123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- # Copyright (C) 2020 QUECTEL Technologies Limited and/or its affiliates("QUECTEL").
- # All rights reserved.
- #
- set(target ql_app_bt)
- add_library(${target} STATIC)
- set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
- target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
- target_include_directories(${target} PUBLIC inc)
- #target_link_libraries(${target} PRIVATE ql_api_common)
- target_sources(${target} PRIVATE
- bt_demo.c
- )
- relative_glob(srcs include/*.h src/*.c inc/*.h)
- beautify_c_code(${target} ${srcs})
- if(QL_APP_FEATURE_BT_SPP)
- set(target ql_app_bt_spp)
- add_library(${target} STATIC)
- set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
- target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
- target_include_directories(${target} PUBLIC inc)
- target_link_libraries(${target} PRIVATE ql_app_bt)
- target_sources(${target} PRIVATE
- bt_spp_demo.c
- )
- relative_glob(srcs include/*.h src/*.c inc/*.h)
- beautify_c_code(${target} ${srcs})
- endif()
- if(QL_APP_FEATURE_BT_HFP)
- set(target ql_app_bt_hfp)
- add_library(${target} STATIC)
- set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
- target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
- target_include_directories(${target} PUBLIC inc)
- target_link_libraries(${target} PRIVATE ql_app_bt)
- target_sources(${target} PRIVATE
- bt_hfp_demo.c
- )
- relative_glob(srcs include/*.h src/*.c inc/*.h)
- beautify_c_code(${target} ${srcs})
- endif()
- if(QL_APP_FEATURE_BT_A2DP_AVRCP)
- set(target ql_app_bt_a2dp_avrcp)
- add_library(${target} STATIC)
- set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
- target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
- target_include_directories(${target} PUBLIC inc)
- target_link_libraries(${target} PRIVATE ql_app_bt)
- target_sources(${target} PRIVATE
- bt_a2dp_avrcp_demo.c
- )
- relative_glob(srcs include/*.h src/*.c inc/*.h)
- beautify_c_code(${target} ${srcs})
- endif()
- if(QL_APP_FEATURE_BLE_GATT)
- set(target ql_app_ble_gatt)
- add_library(${target} STATIC)
- set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${out_app_lib_dir})
- target_compile_definitions(${target} PRIVATE OSI_LOG_TAG=LOG_TAG_QUEC)
- target_include_directories(${target} PUBLIC inc)
- target_link_libraries(${target} PRIVATE ql_app_bt)
- target_sources(${target} PRIVATE
- ble_gatt_demo.c
- )
- relative_glob(srcs include/*.h src/*.c inc/*.h)
- beautify_c_code(${target} ${srcs})
- endif()
|