Convert 802.15.4 and nfc to STATIC

pull/15339/head
Jamie Smith 2022-06-05 13:30:47 -07:00 committed by Jay Sridharan
parent f47bbf82da
commit 2e797c3a32
15 changed files with 36 additions and 32 deletions

View File

@ -2,20 +2,18 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# List of all connectivity libraries available. # List of all connectivity libraries available.
add_library(mbed-802.15.4-rf INTERFACE)
add_library(mbed-ble INTERFACE) add_library(mbed-ble INTERFACE)
add_library(mbed-ble-cordio INTERFACE) add_library(mbed-ble-cordio INTERFACE)
add_library(mbed-ble-cordio_ll INTERFACE) add_library(mbed-ble-cordio_ll INTERFACE)
add_library(mbed-nfc INTERFACE)
add_subdirectory(nanostack) add_subdirectory(nanostack)
add_subdirectory(cellular) add_subdirectory(cellular)
add_subdirectory(mbedtls) add_subdirectory(mbedtls)
add_subdirectory(nfc)
add_subdirectory(drivers) add_subdirectory(drivers)
add_subdirectory(FEATURE_BLE) add_subdirectory(FEATURE_BLE)
add_subdirectory(libraries) add_subdirectory(libraries)
add_subdirectory(lorawan) add_subdirectory(lorawan)
add_subdirectory(lwipstack) add_subdirectory(lwipstack)
add_subdirectory(netsocket) add_subdirectory(netsocket)
add_subdirectory(nfc)

View File

@ -1,6 +1,10 @@
# 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
add_library(mbed-802.15.4-rf STATIC EXCLUDE_FROM_ALL)
target_link_libraries(mbed-802.15.4-rf PUBLIC mbed-core-flags)
if("Freescale" IN_LIST MBED_TARGET_LABELS) if("Freescale" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_Freescale) add_subdirectory(TARGET_Freescale)
add_subdirectory(mcr20a-rf-driver) add_subdirectory(mcr20a-rf-driver)

View File

@ -2,11 +2,11 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-802.15.4-rf target_include_directories(mbed-802.15.4-rf
INTERFACE PUBLIC
. .
) )
target_sources(mbed-802.15.4-rf target_sources(mbed-802.15.4-rf
INTERFACE PRIVATE
NanostackRfPhyKw41z.cpp NanostackRfPhyKw41z.cpp
) )

View File

@ -2,11 +2,11 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-802.15.4-rf target_include_directories(mbed-802.15.4-rf
INTERFACE PUBLIC
. .
) )
target_sources(mbed-802.15.4-rf target_sources(mbed-802.15.4-rf
INTERFACE PRIVATE
NanostackRfPhyEfr32.cpp NanostackRfPhyEfr32.cpp
) )

View File

@ -17,13 +17,13 @@
################################################################################# #################################################################################
target_include_directories(mbed-802.15.4-rf target_include_directories(mbed-802.15.4-rf
INTERFACE PUBLIC
atmel-rf-driver atmel-rf-driver
source source
) )
target_sources(mbed-802.15.4-rf target_sources(mbed-802.15.4-rf
INTERFACE PRIVATE
source/NanostackRfPhyAT86RF215.cpp source/NanostackRfPhyAT86RF215.cpp
source/NanostackRfPhyAtmel.cpp source/NanostackRfPhyAtmel.cpp
source/at24mac.cpp source/at24mac.cpp

View File

@ -17,13 +17,13 @@
################################################################################# #################################################################################
target_include_directories(mbed-802.15.4-rf target_include_directories(mbed-802.15.4-rf
INTERFACE PUBLIC
mcr20a-rf-driver mcr20a-rf-driver
source source
) )
target_sources(mbed-802.15.4-rf target_sources(mbed-802.15.4-rf
INTERFACE PRIVATE
source/MCR20Drv.c source/MCR20Drv.c
source/NanostackRfPhyMcr20a.cpp source/NanostackRfPhyMcr20a.cpp
) )

View File

@ -17,13 +17,13 @@
################################################################################# #################################################################################
target_include_directories(mbed-802.15.4-rf target_include_directories(mbed-802.15.4-rf
INTERFACE PUBLIC
stm-s2lp-rf-driver stm-s2lp-rf-driver
source source
) )
target_sources(mbed-802.15.4-rf target_sources(mbed-802.15.4-rf
INTERFACE PRIVATE
source/NanostackRfPhys2lp.cpp source/NanostackRfPhys2lp.cpp
source/at24mac_s2lp.cpp source/at24mac_s2lp.cpp
source/rf_configuration.c source/rf_configuration.c

View File

@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-nfc target_include_directories(mbed-nfc
INTERFACE PUBLIC
./include ./include
./include/nfc ./include/nfc
./include/nfc/controllers ./include/nfc/controllers
@ -11,7 +11,7 @@ target_include_directories(mbed-nfc
) )
target_sources(mbed-nfc target_sources(mbed-nfc
INTERFACE PRIVATE
source/PN512Driver.cpp source/PN512Driver.cpp
source/PN512SPITransportDriver.cpp source/PN512SPITransportDriver.cpp
source/PN512TransportDriver.cpp source/PN512TransportDriver.cpp

View File

@ -2,12 +2,12 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-nfc target_include_directories(mbed-nfc
INTERFACE PUBLIC
include include
include/nfc include/nfc
) )
target_sources(mbed-nfc target_sources(mbed-nfc
INTERFACE PRIVATE
source/m24sr_driver.cpp source/m24sr_driver.cpp
) )

View File

@ -1,6 +1,8 @@
# 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
add_library(mbed-nfc STATIC EXCLUDE_FROM_ALL)
add_subdirectory(libraries) add_subdirectory(libraries)
if(MBED_OS_ENABLE_TESTS) if(MBED_OS_ENABLE_TESTS)
@ -10,7 +12,7 @@ if(MBED_OS_ENABLE_TESTS)
endif() endif()
target_include_directories(mbed-nfc target_include_directories(mbed-nfc
INTERFACE PUBLIC
. .
./include ./include
./include/nfc ./include/nfc
@ -19,7 +21,7 @@ target_include_directories(mbed-nfc
) )
target_sources(mbed-nfc target_sources(mbed-nfc
INTERFACE PRIVATE
source/NFCController.cpp source/NFCController.cpp
source/NFCControllerDriver.cpp source/NFCControllerDriver.cpp
source/NFCEEPROM.cpp source/NFCEEPROM.cpp
@ -42,11 +44,11 @@ target_sources(mbed-nfc
) )
target_compile_definitions(mbed-nfc target_compile_definitions(mbed-nfc
INTERFACE PUBLIC
MBED_CONF_NFC_PRESENT=1 MBED_CONF_NFC_PRESENT=1
) )
target_link_libraries(mbed-nfc target_link_libraries(mbed-nfc
INTERFACE PUBLIC
mbed-events mbed-events
) )

View File

@ -5,6 +5,6 @@ add_subdirectory(acore)
add_subdirectory(stack) add_subdirectory(stack)
target_include_directories(mbed-nfc target_include_directories(mbed-nfc
INTERFACE PUBLIC
. .
) )

View File

@ -2,13 +2,13 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-nfc target_include_directories(mbed-nfc
INTERFACE PUBLIC
. .
./acore ./acore
) )
target_sources(mbed-nfc target_sources(mbed-nfc
INTERFACE PRIVATE
source/ac_buffer.c source/ac_buffer.c
source/ac_buffer_builder.c source/ac_buffer_builder.c
source/ac_buffer_reader.c source/ac_buffer_reader.c

View File

@ -5,14 +5,14 @@ add_subdirectory(tech)
add_subdirectory(transceiver) add_subdirectory(transceiver)
target_include_directories(mbed-nfc target_include_directories(mbed-nfc
INTERFACE PUBLIC
. .
./ndef ./ndef
./platform ./platform
) )
target_sources(mbed-nfc target_sources(mbed-nfc
INTERFACE PRIVATE
ndef/ndef.c ndef/ndef.c
platform/nfc_scheduler.c platform/nfc_scheduler.c

View File

@ -2,14 +2,14 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-nfc target_include_directories(mbed-nfc
INTERFACE PUBLIC
./iso7816 ./iso7816
./isodep ./isodep
./type4 ./type4
) )
target_sources(mbed-nfc target_sources(mbed-nfc
INTERFACE PRIVATE
iso7816/iso7816.c iso7816/iso7816.c
iso7816/iso7816_app.c iso7816/iso7816_app.c

View File

@ -2,11 +2,11 @@
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-nfc target_include_directories(mbed-nfc
INTERFACE PUBLIC
. .
) )
target_sources(mbed-nfc target_sources(mbed-nfc
INTERFACE PRIVATE
transceiver.c transceiver.c
) )