Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCF Bridging #588

Closed
wants to merge 49 commits into from
Closed
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
6d37797
- begin to merge ocfbridging to current master...
joochlee Jul 9, 2023
8e6dd3f
modifyitn svr resource update codes
joochlee Jul 28, 2023
5b1e3d3
ongoing...
joochlee Jul 31, 2023
e9e158d
ongoing...
joochlee Aug 9, 2023
cb3cac5
VOD를 추가 및 삭제할때 SVR을 처리해주는 부분 수정
joochlee Oct 29, 2023
04d03e5
minor update
joochlee Dec 3, 2023
7d9d675
- new function: oc_bridge_print_device_list()
joochlee Dec 6, 2023
29cdb4c
doxm_owned_changed(): make all VOD's oc_virtual_device_t.is_vod_onlin…
joochlee Dec 8, 2023
bf4c1f8
oc_ri_get_app_resource_by_device() : make it search collection Resour…
joochlee Dec 9, 2023
75dbb89
debugging for CTT
joochlee Dec 11, 2023
1b53a9f
Merge branch 'bridging' into merge_bridging
joochlee Dec 11, 2023
86b4127
add .project file
joochlee Dec 11, 2023
2883b04
api/unittest/vodmaptest.cpp : GTest is completed
joochlee Dec 20, 2023
edd7610
bridging : clean up codes
joochlee Jan 3, 2024
17908bb
bridging : add .md file, update Makefile to enable bridging feature, …
joochlee Jan 9, 2024
520944c
merge_bridging : restore original contents of "sonar-project.properties"
joochlee Jan 11, 2024
768d827
merge_bridging : remove debug codes
joochlee Jan 11, 2024
ee26341
merge_bridging : typo fix
joochlee Jan 11, 2024
aab6050
Merge branch 'joochlee/feature/merge_bridging' into merge_bridging
Danielius1922 Jan 11, 2024
bcb3671
Merge pull request #584 from joochlee/merge_bridging
Danielius1922 Jan 11, 2024
ff06343
Enable briding in GitHub workflows
Danielius1922 Jan 11, 2024
4377ec7
merge_bridging : fix size_t formatter, doxygen keyword issues
joochlee Jan 12, 2024
6813779
Merge remote-tracking branch 'gh_ssh_jclee/merge_bridging' into merge…
joochlee Jan 12, 2024
cde04f1
merge_bridging : fix code analyzation results
joochlee Jan 12, 2024
61f3c01
merge_bridging : change OC_PRINT_VODSLIST macro into function
joochlee Jan 12, 2024
55f924e
merge_bridging : fix size_t formatter, doxygen keyword issues
joochlee Jan 12, 2024
7730d99
merge_bridging : fix code analyzation results
joochlee Jan 12, 2024
64de7d4
merge_bridging : change OC_PRINT_VODSLIST macro into function
joochlee Jan 12, 2024
38706f5
Automatic format commit
CascodaBot Jan 12, 2024
a3240d0
Merge branch 'master' into joochlee/feature/merge_bridging
Danielius1922 Jan 12, 2024
9ccc15a
merge_bridging : fix sonarcloud analyzation results
joochlee Jan 13, 2024
e29d984
merge_bridging : reformat sources
joochlee Jan 13, 2024
08846e1
merge_bridging : remove unnecessary file
joochlee Jan 13, 2024
f9d37b5
Merge branch 'merge_bridging' into joochlee/feature/merge_bridging
joochlee Jan 13, 2024
c8edd3d
merge_bridging : clean up codes
joochlee Jan 13, 2024
7249cfa
merge_bridging : clean up codes
joochlee Jan 13, 2024
0adf0d3
merge_bridging : fixed sonarcloud issue
joochlee Jan 14, 2024
0e61bdd
Merge pull request #594 from joochlee/joochlee/feature/merge_bridging
Danielius1922 Jan 15, 2024
4d54fc0
Merge branch 'master' into joochlee/feature/merge_bridging
Danielius1922 Jan 26, 2024
1aac6bf
merge_bridging: revert some changes, add unittest for most of new API…
joochlee Jan 22, 2024
ba78f47
merge_briding : fix clang-tidy issue
joochlee Jan 22, 2024
7d6b47b
merge_bridging : fix conditional build issue
joochlee Jan 22, 2024
0ed25ce
merge_bridging : fix unittest issues
joochlee Jan 23, 2024
6c157f6
merge_bridging: fix unittest issues
joochlee Jan 23, 2024
822328e
merge_bridging : fix unittest issues
joochlee Jan 24, 2024
a309cc9
merge_bridging : fix unittest issues
joochlee Jan 24, 2024
371ab70
merge_bridging : fix unittest issues
joochlee Jan 26, 2024
e8c446b
merge_bridging : fix unittest issues
joochlee Jan 26, 2024
316f1c5
merge_bridging : fix unittest issues
joochlee Jan 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/cmake-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ jobs:
- args: "-DOC_SECURITY_ENABLED=OFF -DOC_TCP_ENABLED=ON -DOC_IPV4_ENABLED=ON"
# rep realloc on, ocf 1.1 on
- args: "-DOC_REPRESENTATION_REALLOC_ENCODING_ENABLED=ON -DOC_VERSION_1_1_0_ENABLED=ON"
# everything off (dynamic allocation off, secure off, pki off, idd off, oscore off, well-known core resource off, software update off, maintenance resource off, /oic/res observable off, push notifications off, plgd-time off, introspection off, etag off)
- args: "-DOC_DYNAMIC_ALLOCATION_ENABLED=OFF -DOC_SECURITY_ENABLED=OFF -DOC_PKI_ENABLED=OFF -DOC_IDD_API_ENABLED=OFF -DOC_OSCORE_ENABLED=OFF -DOC_WKCORE_ENABLED=OFF -DOC_SOFTWARE_UPDATE_ENABLED=OFF -DOC_MNT_ENABLED=OFF -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=OFF -DOC_PUSH_ENABLED=OFF -DPLGD_DEV_TIME_ENABLED=OFF -DOC_INTROSPECTION_ENABLED=OFF -DOC_ETAG_ENABLED=OFF"
# everything off (dynamic allocation off, secure off, pki off, idd off, oscore off, well-known core resource off, software update off, maintenance resource off, /oic/res observable off, push notifications off, plgd-time off, introspection off, etag off, bridging off)
- args: "-DOC_DYNAMIC_ALLOCATION_ENABLED=OFF -DOC_SECURITY_ENABLED=OFF -DOC_PKI_ENABLED=OFF -DOC_IDD_API_ENABLED=OFF -DOC_OSCORE_ENABLED=OFF -DOC_WKCORE_ENABLED=OFF -DOC_SOFTWARE_UPDATE_ENABLED=OFF -DOC_MNT_ENABLED=OFF -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=OFF -DOC_PUSH_ENABLED=OFF -DPLGD_DEV_TIME_ENABLED=OFF -DOC_INTROSPECTION_ENABLED=OFF -DOC_ETAG_ENABLED=OFF -DOC_BRIDGE_ENABLED=OFF"
uses: ./.github/workflows/unit-test-with-cfg.yml
with:
build_args: -DOC_LOG_MAXIMUM_LOG_LEVEL=INFO -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON ${{ matrix.args }}
build_args: -DOC_LOG_MAXIMUM_LOG_LEVEL=INFO -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON -DOC_BRIDGE_ENABLED=ON ${{ matrix.args }}
build_type: ${{ (github.event_name == 'workflow_dispatch' && inputs.build_type) || 'Debug' }}
clang: ${{ github.event_name == 'workflow_dispatch' && inputs.clang }}
coverage: false
Expand All @@ -90,7 +90,7 @@ jobs:
- args: "-DOC_DEBUG_ENABLED=ON -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON"
uses: ./.github/workflows/unit-test-with-cfg.yml
with:
build_args: -DOC_LOG_MAXIMUM_LOG_LEVEL=INFO -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON -DBUILD_MBEDTLS_FORCE_3_5_0=ON ${{ matrix.args }}
build_args: -DOC_LOG_MAXIMUM_LOG_LEVEL=INFO -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON -DOC_BRIDGE_ENABLED=ON -DBUILD_MBEDTLS_FORCE_3_5_0=ON ${{ matrix.args }}
build_type: ${{ (github.event_name == 'workflow_dispatch' && inputs.build_type) || 'Debug' }}
clang: ${{ github.event_name == 'workflow_dispatch' && inputs.clang }}
coverage: false
Expand All @@ -100,8 +100,8 @@ jobs:
cmake_linux_preinstalled:
uses: ./.github/workflows/unit-test-with-cfg.yml
with:
# cloud on (ipv4+tcp on), collections create on, maintenance resource on, well-known core resource on, software update on, /oic/res observable on, push notification on, plgd-time on, etag on
build_args: -DOC_LOG_MAXIMUM_LOG_LEVEL=INFO -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON
# cloud on (ipv4+tcp on), collections create on, maintenance resource on, well-known core resource on, software update on, /oic/res observable on, push notification on, plgd-time on, etag on, bridging on
build_args: -DOC_LOG_MAXIMUM_LOG_LEVEL=INFO -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON -DOC_BRIDGE_ENABLED=ON
build_type: ${{ (github.event_name == 'workflow_dispatch' && inputs.build_type) || 'Debug' }}
clang: ${{ github.event_name == 'workflow_dispatch' && inputs.clang }}
coverage: false
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
# install_faketime: true
uses: ./.github/workflows/unit-test-with-cfg.yml
with:
build_args: -DOC_LOG_MAXIMUM_LOG_LEVEL=INFO -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DOC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON ${{ matrix.args }}
build_args: -DOC_LOG_MAXIMUM_LOG_LEVEL=INFO -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DOC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON -DOC_BRIDGE_ENABLED=ON ${{ matrix.args }}
build_type: ${{ (github.event_name == 'workflow_dispatch' && inputs.build_type) || 'Debug' }}
clang: ${{ ((github.event_name == 'workflow_dispatch' && inputs.clang) || matrix.clang) || false }}
coverage: false
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cmake-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
-D OC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON
-D PLGD_DEV_TIME_ENABLED=ON
-D OC_ETAG_ENABLED=ON
-D OC_BRIDGE_ENABLED=ON
-D OC_DEBUG_ENABLED=ON
COMMAND_ERROR_IS_FATAL ANY
)
Expand Down Expand Up @@ -184,6 +185,7 @@ jobs:
-D OC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON \
-D PLGD_DEV_TIME_ENABLED=ON \
-D OC_ETAG_ENABLED=ON \
-D OC_BRIDGE_ENABLED=ON \
-D OC_DEBUG_ENABLED=ON \
${{ matrix.build_args }}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
-DPLGD_DEV_TIME_ENABLED=ON
-DOC_ETAG_ENABLED=ON
-DOC_JSON_ENCODER_ENABLED=ON
-DOC_BRIDGE_ENABLED=ON
-B ${{github.workspace}}/build

- uses: vapier/coverity-scan-action@v1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/sonar-cloud-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
fail-fast: false
matrix:
include:
# cloud (ipv4+tcp) on, collection create on, push on, rfotm on
- build_args: "-DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DOC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON"
# security off, ipv4 on, collection create on, push on, rfotm on
- build_args: "-DOC_SECURITY_ENABLED=OFF -DOC_IPV4_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_PUSH_ENABLED=ON"
# cloud (ipv4+tcp) on, collection create on, push on, rfotm on, bridging on
- build_args: "-DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DOC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON -DOC_BRIDGE_ENABLED=ON"
# security off, ipv4 on, collection create on, push on, rfotm on, bridging on
- build_args: "-DOC_SECURITY_ENABLED=OFF -DOC_IPV4_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DOC_BRIDGE_ENABLED=ON "
# ipv6 dns on, oscore off, rep realloc on, json encoder on
- build_args: "-DOC_DNS_LOOKUP_IPV6_ENABLED=ON -DOC_OSCORE_ENABLED=OFF -DOC_REPRESENTATION_REALLOC_ENCODING_ENABLED=ON -DOC_JSON_ENCODER_ENABLED=ON"
# ipv4 on, tcp on, dynamic allocation off, rfotm on, push off (because it forces dynamic allocation)
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
mkdir build && cd build
# sonar-scanner currently cannot handle multi configuration configuration (ie. compilation of the same file with different defines),
# so we enable as many features as possible so we get max. amount of code analysis
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=ON -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DOC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON -DOC_JSON_ENCODER_ENABLED=ON -DBUILD_TESTING=ON ..
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=ON -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DOC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON -DOC_JSON_ENCODER_ENABLED=ON -DOC_BRIDGE_ENABLED=ON -DBUILD_TESTING=ON ..
cd ..
# for files defined in multiple cmake targets, sonar-scanner seems to take the configuration from the first compilation of the file,
# so we force client-server target to be compiled first so we get analysis of code with both OC_CLIENT and OC_SERVER enabled
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ jobs:
- name: Build with clang and analyze with clang-tidy
run: |
mkdir build && cd build
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DOC_CLANG_TIDY_ENABLED=ON -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DOC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON -DBUILD_TESTING=OFF ..
cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DOC_CLANG_TIDY_ENABLED=ON -DOC_CLOUD_ENABLED=ON -DOC_COLLECTIONS_IF_CREATE_ENABLED=ON -DOC_MNT_ENABLED=ON -DOC_WKCORE_ENABLED=ON -DOC_SOFTWARE_UPDATE_ENABLED=ON -DOC_DISCOVERY_RESOURCE_OBSERVABLE_ENABLED=ON -DOC_PUSH_ENABLED=ON -DOC_RESOURCE_ACCESS_IN_RFOTM_ENABLED=ON -DPLGD_DEV_TIME_ENABLED=ON -DOC_ETAG_ENABLED=ON -DOC_BRIDGE_ENABLED=ON -DBUILD_TESTING=OFF ..
cmake --build .
22 changes: 13 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,13 @@ port/contiki/obj_native/
port/contiki/*.native
port/contiki/symbols.*
port/openthread/output
port/esp32/build/
port/esp32/sdkconfig
port/esp32/esp-idf/
port/esp32/sdkconfig.old
Danielius1922 marked this conversation as resolved.
Show resolved Hide resolved
*.o
*.cmd
*.tmp
*.gcda
*.gcno
.clang-format
_clang-format
Danielius1922 marked this conversation as resolved.
Show resolved Hide resolved
whitespace_commit_checker.sh
port/linux/platformtest
port/linux/storage_test
Expand Down Expand Up @@ -106,12 +104,18 @@ service/resource-directory/client/unittest/obj
#vscode setting files
.vscode

.clang-tidy
# eclipse
.settings
.project
.cproject

# cmake build folder
build
build4test

python/plgd_headers.config
# sonarqube
.scannerwork

# eclipse config file
.cproject
.project
# clang-tidy
.clang-tidy
compile_commands.json
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ set(OC_IPV4_ENABLED OFF CACHE BOOL "Enable IPv4 support.")
set(OC_DNS_LOOKUP_IPV6_ENABLED OFF CACHE BOOL "Enable IPv6 DNS lookup.")
set(OC_PUSH_ENABLED OFF CACHE BOOL "Enable Push Notification.")
set(OC_PUSHDEBUG_ENABLED OFF CACHE BOOL "Enable debug messages for Push Notification.")
set(OC_BRIDGE_ENABLED OFF CACHE BOOL "Enable Bridge Support.")
set(OC_RESOURCE_ACCESS_IN_RFOTM_ENABLED OFF CACHE BOOL "Enable resource access in RFOTM.")
set(OC_MEMORY_TRACE_ENABLED OFF CACHE BOOL "Enable memory tracing.")
if (OC_DEBUG_ENABLED)
Expand Down Expand Up @@ -256,7 +257,7 @@ elseif(OC_COMPILER_IS_GCC OR OC_COMPILER_IS_CLANG)

# TODO: alignment warnings appear on some 32-bit compilers, keep those just
# as warnings for now
oc_add_compile_options(GLOBAL FLAGS -Wno-error=cast-align -Wno-error=deprecated-declarations
oc_add_compile_options(GLOBAL FLAGS -g -Wno-error=cast-align -Wno-error=deprecated-declarations
Danielius1922 marked this conversation as resolved.
Show resolved Hide resolved
-Wno-error=documentation)
if(MINGW OR (WIN32 AND OC_COMPILER_IS_CLANG))
oc_add_compile_options(GLOBAL FLAGS -Wno-error=gnu-offsetof-extensions -Wno-error=sign-compare)
Expand Down Expand Up @@ -310,6 +311,12 @@ if(OC_PUSH_ENABLED)
set(OC_DYNAMIC_ALLOCATION_ENABLED ON)
set(OC_COLLECTIONS_IF_CREATE_ENABLED ON)
endif()

if(OC_BRIDGE_ENABLED)
list(APPEND PUBLIC_COMPILE_DEFINITIONS "OC_BRIDGE")
set(OC_DYNAMIC_ALLOCATION_ENABLED ON)
endif()

if(OC_RESOURCE_ACCESS_IN_RFOTM_ENABLED)
if(NOT OC_SECURITY_ENABLED)
message(FATAL_ERROR "Cannot enable resource access in RFOTM without security")
Expand Down
Loading
Loading