|
1 | | -# Copyright 2017-2024 AVSystem <avsystem@avsystem.com> |
| 1 | +# Copyright 2017-2025 AVSystem <avsystem@avsystem.com> |
2 | 2 | # AVSystem Anjay LwM2M SDK |
3 | 3 | # All rights reserved. |
4 | 4 | # |
|
8 | 8 | cmake_minimum_required(VERSION 3.6.0) |
9 | 9 |
|
10 | 10 | project(anjay C) |
11 | | -set(ANJAY_VERSION "3.8.1" CACHE STRING "Anjay library version") |
| 11 | +set(ANJAY_VERSION "3.9.0" CACHE STRING "Anjay library version") |
12 | 12 | set(ANJAY_BINARY_VERSION 1.0.0) |
13 | 13 |
|
14 | 14 | set(ANJAY_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") |
@@ -272,6 +272,7 @@ option(WITHOUT_IP_STICKINESS "Disable support for IP stickiness" OFF) |
272 | 272 | option(WITHOUT_COMPOSITE_OPERATIONS "Disable composite operations" OFF) |
273 | 273 | cmake_dependent_option(WITH_SENML_JSON "Enable support for SenML JSON content format" ON WITH_LWM2M11 OFF) |
274 | 274 | cmake_dependent_option(WITH_CBOR "Enable support for CBOR and SenML CBOR content formats" ON WITH_LWM2M11 OFF) |
| 275 | +cmake_dependent_option(WITH_LWM2M_GATEWAY "Enable support /25 LwM2M Gateway Object" OFF "WITH_LWM2M11;NOT WITH_CORE_PERSISTENCE" OFF) |
275 | 276 | cmake_dependent_option(WITH_SEND "Enable support for LwM2M 1.1 Send operation" ON "WITH_CBOR OR WITH_SENML_JSON" OFF) |
276 | 277 | option(WITHOUT_QUEUE_MODE_AUTOCLOSE "Disable automatic closing of server connection sockets after MAX_TRANSMIT_WAIT of inactivity" OFF) |
277 | 278 |
|
@@ -352,6 +353,7 @@ add_library(anjay |
352 | 353 | include_public/anjay/io.h |
353 | 354 | include_public/anjay/ipso_objects.h |
354 | 355 | include_public/anjay/ipso_objects_v2.h |
| 356 | + include_public/anjay/lwm2m_gateway.h |
355 | 357 | include_public/anjay/lwm2m_send.h |
356 | 358 | include_public/anjay/security.h |
357 | 359 | include_public/anjay/server.h |
@@ -492,6 +494,7 @@ add_library(anjay |
492 | 494 | src/modules/ipso/anjay_ipso_button.c |
493 | 495 | src/modules/ipso_v2/anjay_ipso_v2_3d_sensor.c |
494 | 496 | src/modules/ipso_v2/anjay_ipso_v2_basic_sensor.c |
| 497 | + src/modules/lwm2m_gateway/anjay_lwm2m_gateway.c |
495 | 498 | src/modules/security/anjay_mod_security.c |
496 | 499 | src/modules/security/anjay_mod_security.h |
497 | 500 | src/modules/security/anjay_security_persistence.c |
@@ -561,6 +564,7 @@ set(ANJAY_WITH_SEND "${WITH_SEND}") |
561 | 564 | set(ANJAY_WITH_SENML_JSON "${WITH_SENML_JSON}") |
562 | 565 | set(ANJAY_WITHOUT_QUEUE_MODE_AUTOCLOSE "${WITHOUT_QUEUE_MODE_AUTOCLOSE}") |
563 | 566 | set(ANJAY_WITH_CONN_STATUS_API "${WITH_CONN_STATUS_API}") |
| 567 | +set(ANJAY_WITH_LWM2M_GATEWAY "${WITH_LWM2M_GATEWAY}") |
564 | 568 |
|
565 | 569 | configure_file(include_public/anjay/anjay_config.h.in |
566 | 570 | include_public/anjay/anjay_config.h) |
@@ -870,6 +874,10 @@ if(WITH_SEND) |
870 | 874 | install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include_public/anjay/lwm2m_send.h" |
871 | 875 | DESTINATION include/anjay) |
872 | 876 | endif() |
| 877 | +if(WITH_LWM2M_GATEWAY) |
| 878 | + install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include_public/anjay/lwm2m_gateway.h" |
| 879 | + DESTINATION include/anjay) |
| 880 | +endif() |
873 | 881 | if(WITH_MODULE_access_control) |
874 | 882 | install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include_public/anjay/access_control.h" |
875 | 883 | DESTINATION include/anjay) |
|
0 commit comments