Skip to content

Commit

Permalink
cbor binding
Browse files Browse the repository at this point in the history
  • Loading branch information
TingDaoK committed Jun 12, 2024
1 parent c5f770b commit da3c3a7
Show file tree
Hide file tree
Showing 6 changed files with 621 additions and 6 deletions.
14 changes: 9 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ file(GLOB AWS_CRT_ENDPOINT_HEADERS
"include/aws/crt/endpoints/*.h"
)

file(GLOB AWS_CRT_EXTERNAL_HEADERS
"include/aws/crt/external/*.h"
file(GLOB AWS_CRT_CBOR_HEADERS
"include/aws/crt/cbor/*.h"
)

file(GLOB AWS_CRT_PUBLIC_HEADERS
Expand All @@ -184,6 +184,7 @@ file(GLOB AWS_CRT_PUBLIC_HEADERS
${AWS_CRT_MQTT_HEADERS}
${AWS_CRT_HTTP_HEADERS}
${AWS_CRT_ENDPOINT_HEADERS}
${AWS_CRT_CBOR_HEADERS}
)

if(BUILD_DEPS)
Expand Down Expand Up @@ -228,8 +229,8 @@ file(GLOB AWS_CRT_ENDPOINTS_SRC
"source/endpoints/*.cpp"
)

file(GLOB AWS_CRT_EXTERNAL_SRC
"source/external/*.cpp"
file(GLOB AWS_CRT_CBOR_SRC
"source/cbor/*.cpp"
)

file(GLOB AWS_CRT_CPP_SRC
Expand All @@ -241,7 +242,7 @@ file(GLOB AWS_CRT_CPP_SRC
${AWS_CRT_MQTT_SRC}
${AWS_CRT_HTTP_SRC}
${AWS_CRT_ENDPOINTS_SRC}
${AWS_CRT_EXTERNAL_SRC}
${AWS_CRT_CBOR_SRC}
)

if(WIN32)
Expand All @@ -254,6 +255,7 @@ if(WIN32)
source_group("Header Files\\aws\\crt\\mqtt" FILES ${AWS_CRT_MQTT_HEADERS})
source_group("Header Files\\aws\\crt\\http" FILES ${AWS_CRT_HTTP_HEADERS})
source_group("Header Files\\aws\\crt\\endpoints" FILES ${AWS_CRT_ENDPOINT_HEADERS})
source_group("Header Files\\aws\\crt\\cbor" FILES ${AWS_CRT_CBOR_HEADERS})

source_group("Source Files" FILES ${AWS_CRT_SRC})
source_group("Source Files\\auth" FILES ${AWS_CRT_AUTH_SRC})
Expand All @@ -263,6 +265,7 @@ if(WIN32)
source_group("Source Files\\mqtt" FILES ${AWS_CRT_MQTT_SRC})
source_group("Source Files\\http" FILES ${AWS_CRT_HTTP_SRC})
source_group("Source Files\\endpoints" FILES ${AWS_CRT_ENDPOINTS_SRC})
source_group("Source Files\\cbor" FILES ${AWS_CRT_CBOR_SRC})
endif()
endif()

Expand Down Expand Up @@ -332,6 +335,7 @@ install(FILES ${AWS_CRT_IOT_HEADERS} DESTINATION "include/aws/iot" COMPONENT Dev
install(FILES ${AWS_CRT_MQTT_HEADERS} DESTINATION "include/aws/crt/mqtt" COMPONENT Development)
install(FILES ${AWS_CRT_HTTP_HEADERS} DESTINATION "include/aws/crt/http" COMPONENT Development)
install(FILES ${AWS_CRT_ENDPOINT_HEADERS} DESTINATION "include/aws/crt/endpoints" COMPONENT Development)
install(FILES ${AWS_CRT_CBOR_HEADERS} DESTINATION "include/aws/crt/cbor" COMPONENT Development)

install(
TARGETS ${PROJECT_NAME}
Expand Down
2 changes: 1 addition & 1 deletion crt/aws-c-common
Submodule aws-c-common updated 90 files
+1 −1 .clang-tidy
+1 −1 .github/workflows/ci.yml
+10 −1 CMakeLists.txt
+26 −0 THIRD-PARTY-LICENSES.txt
+1 −0 cmake/AwsTestHarness.cmake
+449 −0 include/aws/common/cbor.h
+2 −0 include/aws/common/error.h
+14 −0 include/aws/common/hash_table.h
+28 −0 include/aws/common/host_utils.h
+5 −0 include/aws/common/linked_list.h
+4 −0 include/aws/common/linked_list.inl
+1 −0 include/aws/common/logging.h
+18 −0 include/aws/common/macros.h
+19 −0 include/aws/common/private/byte_buf.h
+7 −3 include/aws/common/private/external_module_impl.h
+0 −103 include/aws/common/promise.h
+12 −24 include/aws/testing/aws_test_harness.h
+129 −0 scripts/import_libcbor.py
+4 −4 source/arch/intel/encoding_avx2.c
+6 −3 source/array_list.c
+14 −0 source/byte_buf.c
+647 −0 source/cbor.c
+11 −1 source/common.c
+2 −2 source/encoding.c
+17 −3 source/external/cJSON.c
+1 −1 source/external/cJSON.h
+19 −0 source/external/libcbor/allocators.c
+425 −0 source/external/libcbor/cbor.c
+74 −0 source/external/libcbor/cbor.h
+131 −0 source/external/libcbor/cbor/arrays.c
+137 −0 source/external/libcbor/cbor/arrays.h
+119 −0 source/external/libcbor/cbor/bytestrings.c
+150 −0 source/external/libcbor/cbor/bytestrings.h
+121 −0 source/external/libcbor/cbor/callbacks.c
+189 −0 source/external/libcbor/cbor/callbacks.h
+14 −0 source/external/libcbor/cbor/cbor_export.h
+163 −0 source/external/libcbor/cbor/common.c
+339 −0 source/external/libcbor/cbor/common.h
+46 −0 source/external/libcbor/cbor/configuration.h
+264 −0 source/external/libcbor/cbor/data.h
+200 −0 source/external/libcbor/cbor/encoding.c
+140 −0 source/external/libcbor/cbor/encoding.h
+189 −0 source/external/libcbor/cbor/floats_ctrls.c
+240 −0 source/external/libcbor/cbor/floats_ctrls.h
+422 −0 source/external/libcbor/cbor/internal/builder_callbacks.c
+85 −0 source/external/libcbor/cbor/internal/builder_callbacks.h
+98 −0 source/external/libcbor/cbor/internal/encoders.c
+41 −0 source/external/libcbor/cbor/internal/encoders.h
+80 −0 source/external/libcbor/cbor/internal/loaders.c
+43 −0 source/external/libcbor/cbor/internal/loaders.h
+57 −0 source/external/libcbor/cbor/internal/memory_utils.c
+50 −0 source/external/libcbor/cbor/internal/memory_utils.h
+33 −0 source/external/libcbor/cbor/internal/stack.c
+53 −0 source/external/libcbor/cbor/internal/stack.h
+95 −0 source/external/libcbor/cbor/internal/unicode.c
+33 −0 source/external/libcbor/cbor/internal/unicode.h
+190 −0 source/external/libcbor/cbor/ints.c
+211 −0 source/external/libcbor/cbor/ints.h
+125 −0 source/external/libcbor/cbor/maps.c
+121 −0 source/external/libcbor/cbor/maps.h
+368 −0 source/external/libcbor/cbor/serialization.c
+168 −0 source/external/libcbor/cbor/serialization.h
+600 −0 source/external/libcbor/cbor/streaming.c
+37 −0 source/external/libcbor/cbor/streaming.h
+142 −0 source/external/libcbor/cbor/strings.c
+183 −0 source/external/libcbor/cbor/strings.h
+46 −0 source/external/libcbor/cbor/tags.c
+74 −0 source/external/libcbor/cbor/tags.h
+8 −0 source/hash_table.c
+114 −0 source/host_utils.c
+1 −1 source/json.c
+1 −1 source/memtrace.c
+0 −118 source/promise.c
+3 −3 source/task_scheduler.c
+15 −6 source/uri.c
+12 −6 tests/CMakeLists.txt
+2 −2 tests/atomics_test.c
+489 −0 tests/cbor_test.c
+87 −0 tests/fuzz/cbor_decoding_transitive.c
+66 −0 tests/fuzz/cbor_double_encode_decode.c
+73 −0 tests/host_util_test.c
+23 −0 tests/linked_list_test.c
+0 −181 tests/promise_test.c
+2 −2 tests/thread_test.c
+2 −2 tests/uri_test.c
+1 −1 verification/cbmc/include/proof_helpers/aws_byte_cursor_read_common.h
+1 −1 verification/cbmc/include/proof_helpers/make_common_data_structures.h
+8 −8 verification/cbmc/include/proof_helpers/nondet.h
+1 −1 verification/cbmc/sources/make_common_data_structures.c
+1 −1 verification/cbmc/stubs/abort_override_assert_false.c
Loading

0 comments on commit da3c3a7

Please sign in to comment.