zephyr/subsys/net/lib/lwm2m/CMakeLists.txt
Sebastian Bøe c2c8c849b6 cmake: Don't have users call zephyr_link_interface on mbedTLS
Libraries that use mbedTLS have been invoking
zephyr_link_interface(mbedTLS). It is not clear what the intent of
this code has been, but it is redundant with the mbedTLS build
scripts, so it can be safely removed.

In addition to being redundant, it causes problems as it introduces an
ordering dependency, with this code mbedTLS must be declared before
users of mbedTLS are declared. Since this code is redundant, this
ordering dependency is also unnecessary.

This code is believed to have been added early on by accident and
copied through cargo-cult programming since.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
2019-05-11 08:35:26 -04:00

46 lines
1 KiB
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_library()
zephyr_include_directories(.)
zephyr_library_sources(
lwm2m_engine.c
lwm2m_obj_security.c
lwm2m_obj_server.c
lwm2m_obj_device.c
lwm2m_rw_plain_text.c
lwm2m_rw_oma_tlv.c
lwm2m_util.c
)
# LWM2M RD Client Support
zephyr_library_sources_ifdef(CONFIG_LWM2M_RD_CLIENT_SUPPORT
lwm2m_rd_client.c
)
# LWM2M Object Support
zephyr_library_sources_ifdef(CONFIG_LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT
lwm2m_obj_firmware.c
)
zephyr_library_sources_ifdef(CONFIG_LWM2M_FIRMWARE_UPDATE_PULL_SUPPORT
lwm2m_obj_firmware_pull.c
)
# JSON Support
zephyr_library_sources_ifdef(CONFIG_LWM2M_RW_JSON_SUPPORT
lwm2m_rw_json.c
)
# IPSO Objects
zephyr_library_sources_ifdef(CONFIG_LWM2M_IPSO_TEMP_SENSOR
ipso_temp_sensor.c
)
zephyr_library_sources_ifdef(CONFIG_LWM2M_IPSO_LIGHT_CONTROL
ipso_light_control.c
)
zephyr_library_sources_ifdef(CONFIG_LWM2M_IPSO_TIMER
ipso_timer.c
)
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)