mirror of https://github.com/ARMmbed/mbed-os.git
Convert 802.15.4 and nfc to STATIC
parent
f47bbf82da
commit
2e797c3a32
|
@ -2,20 +2,18 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# List of all connectivity libraries available.
|
||||
add_library(mbed-802.15.4-rf INTERFACE)
|
||||
|
||||
add_library(mbed-ble INTERFACE)
|
||||
add_library(mbed-ble-cordio INTERFACE)
|
||||
add_library(mbed-ble-cordio_ll INTERFACE)
|
||||
|
||||
add_library(mbed-nfc INTERFACE)
|
||||
|
||||
add_subdirectory(nanostack)
|
||||
add_subdirectory(cellular)
|
||||
add_subdirectory(mbedtls)
|
||||
add_subdirectory(nfc)
|
||||
add_subdirectory(drivers)
|
||||
add_subdirectory(FEATURE_BLE)
|
||||
add_subdirectory(libraries)
|
||||
add_subdirectory(lorawan)
|
||||
add_subdirectory(lwipstack)
|
||||
add_subdirectory(netsocket)
|
||||
add_subdirectory(nfc)
|
||||
add_subdirectory(netsocket)
|
|
@ -1,6 +1,10 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# 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)
|
||||
add_subdirectory(TARGET_Freescale)
|
||||
add_subdirectory(mcr20a-rf-driver)
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
NanostackRfPhyKw41z.cpp
|
||||
)
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
NanostackRfPhyEfr32.cpp
|
||||
)
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
#################################################################################
|
||||
|
||||
target_include_directories(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
atmel-rf-driver
|
||||
source
|
||||
)
|
||||
|
||||
target_sources(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
source/NanostackRfPhyAT86RF215.cpp
|
||||
source/NanostackRfPhyAtmel.cpp
|
||||
source/at24mac.cpp
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
#################################################################################
|
||||
|
||||
target_include_directories(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
mcr20a-rf-driver
|
||||
source
|
||||
)
|
||||
|
||||
target_sources(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
source/MCR20Drv.c
|
||||
source/NanostackRfPhyMcr20a.cpp
|
||||
)
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
#################################################################################
|
||||
|
||||
target_include_directories(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
stm-s2lp-rf-driver
|
||||
source
|
||||
)
|
||||
|
||||
target_sources(mbed-802.15.4-rf
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
source/NanostackRfPhys2lp.cpp
|
||||
source/at24mac_s2lp.cpp
|
||||
source/rf_configuration.c
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
./include
|
||||
./include/nfc
|
||||
./include/nfc/controllers
|
||||
|
@ -11,7 +11,7 @@ target_include_directories(mbed-nfc
|
|||
)
|
||||
|
||||
target_sources(mbed-nfc
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
source/PN512Driver.cpp
|
||||
source/PN512SPITransportDriver.cpp
|
||||
source/PN512TransportDriver.cpp
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
include
|
||||
include/nfc
|
||||
)
|
||||
|
||||
target_sources(mbed-nfc
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
source/m24sr_driver.cpp
|
||||
)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(mbed-nfc STATIC EXCLUDE_FROM_ALL)
|
||||
|
||||
add_subdirectory(libraries)
|
||||
|
||||
if(MBED_OS_ENABLE_TESTS)
|
||||
|
@ -10,7 +12,7 @@ if(MBED_OS_ENABLE_TESTS)
|
|||
endif()
|
||||
|
||||
target_include_directories(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
.
|
||||
./include
|
||||
./include/nfc
|
||||
|
@ -19,7 +21,7 @@ target_include_directories(mbed-nfc
|
|||
)
|
||||
|
||||
target_sources(mbed-nfc
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
source/NFCController.cpp
|
||||
source/NFCControllerDriver.cpp
|
||||
source/NFCEEPROM.cpp
|
||||
|
@ -42,11 +44,11 @@ target_sources(mbed-nfc
|
|||
)
|
||||
|
||||
target_compile_definitions(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
MBED_CONF_NFC_PRESENT=1
|
||||
)
|
||||
|
||||
target_link_libraries(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
mbed-events
|
||||
)
|
||||
|
|
|
@ -5,6 +5,6 @@ add_subdirectory(acore)
|
|||
add_subdirectory(stack)
|
||||
|
||||
target_include_directories(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
.
|
||||
)
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
.
|
||||
./acore
|
||||
)
|
||||
|
||||
target_sources(mbed-nfc
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
source/ac_buffer.c
|
||||
source/ac_buffer_builder.c
|
||||
source/ac_buffer_reader.c
|
||||
|
|
|
@ -5,14 +5,14 @@ add_subdirectory(tech)
|
|||
add_subdirectory(transceiver)
|
||||
|
||||
target_include_directories(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
.
|
||||
./ndef
|
||||
./platform
|
||||
)
|
||||
|
||||
target_sources(mbed-nfc
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
ndef/ndef.c
|
||||
|
||||
platform/nfc_scheduler.c
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
./iso7816
|
||||
./isodep
|
||||
./type4
|
||||
)
|
||||
|
||||
target_sources(mbed-nfc
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
iso7816/iso7816.c
|
||||
iso7816/iso7816_app.c
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-nfc
|
||||
INTERFACE
|
||||
PUBLIC
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-nfc
|
||||
INTERFACE
|
||||
PRIVATE
|
||||
transceiver.c
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue