Skip to content

Commit f66742e

Browse files
author
Unify Automated
committed
Release ver_1.3.0
1 parent d26badb commit f66742e

File tree

14,156 files changed

+3253153
-839884
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

14,156 files changed

+3253153
-839884
lines changed

.cargo/config

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[target.armv7-unknown-linux-gnueabihf]
22
linker = "arm-linux-gnueabihf-g++"
3-
rustflags = ["-C", "link-args=-Wl,--unresolved-symbols=ignore-in-object-files"]
43

5-
[target.x86_64-unknown-linux-gnu]
6-
rustflags = ["-C", "link-args=-Wl,--unresolved-symbols=ignore-in-object-files"]
4+
[target.aarch64-unknown-linux-gnu]
5+
linker = "aarch64-linux-gnu-g++"
76

.devcontainer/devcontainer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"cmake.buildDirectory": "${workspaceRoot}/build_docker",
2020
"C_Cpp.default.cStandard": "c99",
2121
"C_Cpp.default.cppStandard": "c++11",
22-
"clang-format.executable": "/usr/bin/clang-format-10"
22+
"clang-format.executable": "/usr/bin/clang-format-12"
2323
},
2424
// Install extensions for vscode
2525
"extensions": [
@@ -32,8 +32,8 @@
3232
"containerUser": "user",
3333
"remoteUser": "user",
3434
"updateRemoteUserUID": true,
35-
// Install clang-format-10
36-
"postCreateCommand": "curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - && echo \"deb http://apt.llvm.org/buster/ llvm-toolchain-buster-10 main\" | sudo tee /etc/apt/sources.list.d/llvm.list && sudo apt-get update && sudo apt-get install -y clang-format-10 && sudo update-binfmts --enable",
35+
// Install clang-format-12
36+
"postCreateCommand": "curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - && echo \"deb http://apt.llvm.org/bullseye/ llvm-toolchain-bullseye-12 main\" | sudo tee /etc/apt/sources.list.d/llvm.list && sudo apt-get update && sudo apt-get install -y clang-format-12 && sudo update-binfmts --enable",
3737
"runArgs": [
3838
// Uncomment when using a ptrace-based debugger like C++, Go, and Rust
3939
//"--cap-add=SYS_PTRACE",

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"zap_2022.1.10_amd64.deb" filter=lfs diff=lfs merge=lfs -text
2-
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
32
"slc_cli_linux.zip" filter=lfs diff=lfs merge=lfs -text
3+
"zap_apack_linux.zip" filter=lfs diff=lfs merge=lfs -text
44
"zap-2022.1.10.dmg" filter=lfs diff=lfs merge=lfs -text
55
"zap_apack_mac.zip" filter=lfs diff=lfs merge=lfs -text
66
"slc_cli_mac.zip" filter=lfs diff=lfs merge=lfs -text

.vscode/cspell.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"etimer",
1616
"fixt",
1717
"Jenkinsfile",
18-
"libuic",
18+
"libunify",
1919
"mkdir",
2020
"mosquitto",
2121
"mqtt",

.vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"label": "build_and_launch_debug_on_rpi",
1313
"type": "shell",
1414
"dependsOn": "build_rpi",
15-
"command": "scp build_armhf/components/libuic.so build_armhf/applications/zpc/zpc pi@${input:rpi_ip}:. && ssh -t pi@${input:rpi_ip} \"gdbserver localhost:3001 ./zpc --zpc.datastore_file uic.db\"",
15+
"command": "scp build_armhf/applications/zpc/zpc pi@${input:rpi_ip}:. && ssh -t pi@${input:rpi_ip} \"gdbserver localhost:3001 ./zpc --zpc.datastore_file uic.db\"",
1616
"problemMatcher": []
1717
}
1818
],

.vscode/zpc.code-snippets

+71
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,77 @@
132132
],
133133
"description": "Unity Test"
134134
},
135+
"ZPC Unity Test with Attribute Store and contiki helpers": {
136+
"prefix": "zpc",
137+
"scope": "c,cpp",
138+
"body": [
139+
"/******************************************************************************",
140+
" * # License",
141+
" * <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>",
142+
" ******************************************************************************",
143+
" * The licensor of this software is Silicon Laboratories Inc. Your use of this",
144+
" * software is governed by the terms of Silicon Labs Master Software License",
145+
" * Agreement (MSLA) available at",
146+
" * www.silabs.com/about-us/legal/master-software-license-agreement. This",
147+
" * software is distributed to you in Source Code format and is governed by the",
148+
" * sections of the MSLA applicable to Source Code.",
149+
" *",
150+
" *****************************************************************************/",
151+
"#include \"unity.h\"",
152+
"",
153+
"// Includes from other components",
154+
"#include \"datastore.h\"",
155+
"#include \"attribute_store.h\"",
156+
"#include \"attribute_store_helper.h\"",
157+
"#include \"attribute_store_fixt.h\"",
158+
"",
159+
"// Interface includes",
160+
"#include \"attribute_store_defined_attribute_types.h\"",
161+
"",
162+
"// ZPC includes",
163+
"#include \"zpc_attribute_store_type_registration.h\"",
164+
"#include \"zwave_utils.h\"",
165+
"#include \"zwave_controller_types.h\"",
166+
"",
167+
"// Test helpers",
168+
"#include \"zpc_attribute_store_test_helper.h\"",
169+
"#include \"contiki_test_helper.h\"",
170+
"",
171+
"// Mock includes",
172+
"",
173+
"",
174+
"",
175+
"/// Setup the test suite (called once before all test_xxx functions are called)",
176+
"void suiteSetUp()",
177+
"{",
178+
" datastore_init(\":memory:\");",
179+
" attribute_store_init();",
180+
" zpc_attribute_store_register_known_attribute_types();",
181+
" zpc_attribute_store_test_helper_create_network();",
182+
" zwave_unid_set_home_id(home_id);",
183+
" contiki_test_helper_init();",
184+
"}",
185+
"",
186+
"/// Teardown the test suite (called once after all test_xxx functions are called)",
187+
"int suiteTearDown(int num_failures)",
188+
"{",
189+
" attribute_store_teardown();",
190+
" datastore_teardown();",
191+
" return num_failures;",
192+
"}",
193+
"",
194+
"/// Called before each and every test",
195+
"void setUp()",
196+
"{}",
197+
"",
198+
"/// Called after each and every test",
199+
"void tearDown()",
200+
"{}",
201+
"",
202+
"void test_${TM_FILENAME_BASE}(){}"
203+
],
204+
"description": "ZPC Unity Test with Attribute Store and contiki helpers"
205+
},
135206
"Rust file": {
136207
"prefix": "zpc",
137208
"scope": "rust",

CMakeLists.txt

+21-29
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.19)
1+
cmake_minimum_required(VERSION 3.21)
22

33
# ##############################################################################
44
# Modules
@@ -15,7 +15,6 @@ message(STATUS "Building Unify with BUILD_TYPE=${CMAKE_BUILD_TYPE}")
1515

1616
include(cmake/include/version.cmake)
1717
include(cmake/include/build_permutations.cmake)
18-
include(cmake/include/link_wrap.cmake)
1918

2019
project(
2120
uic
@@ -39,15 +38,28 @@ include(cmake/include/doxygen.cmake)
3938
include(cmake/include/package-helper.cmake)
4039
include(cmake/include/uic_helper.cmake)
4140

42-
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
43-
OR NOT DEFINED CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
41+
if(BUILD_TESTING)
42+
include(components/testframework/target_add_unittest.cmake)
43+
endif()
44+
45+
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
4446
set(CMAKE_INSTALL_PREFIX
4547
"/usr"
4648
CACHE PATH "default install path" FORCE)
4749
endif()
4850

51+
message(STATUS "Installing to ${CMAKE_INSTALL_PREFIX}")
52+
53+
##########
54+
# Python #
55+
##########
56+
find_package(Python3 REQUIRED)
57+
58+
########
59+
# Rust #
60+
########
4961
enable_language(Rust)
50-
set(RUST_MIN_VERSION 1.60)
62+
set(RUST_MIN_VERSION 1.64)
5163
if(CMAKE_Rust_COMPILER_VERSION VERSION_LESS RUST_MIN_VERSION)
5264
message(
5365
FATAL_ERROR
@@ -56,38 +68,18 @@ if(CMAKE_Rust_COMPILER_VERSION VERSION_LESS RUST_MIN_VERSION)
5668
see https://www.rust-lang.org/tools/install documentation for further details."
5769
)
5870
endif()
71+
5972
include(CMakeCargo)
73+
6074
# ##############################################################################
6175
# Global includes
6276
# ##############################################################################
6377
include_directories(include ${CMAKE_CURRENT_BINARY_DIR}/include)
6478

65-
add_custom_command(
66-
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/include/sl_status_strings.h
67-
COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/scripts/sl_status_strings.sh >
68-
${CMAKE_CURRENT_BINARY_DIR}/include/sl_status_strings.h
69-
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/include/sl_status.h
70-
${CMAKE_CURRENT_SOURCE_DIR}/scripts/sl_status_strings.sh)
71-
add_custom_target(
72-
sl_status_strings
73-
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/include/sl_status_strings.h)
74-
7579
# ##############################################################################
7680
# Subdirectories
77-
# ##############################################################################
81+
# #############################################################################
7882
add_subdirectory(components)
7983
add_subdirectory(applications)
80-
8184
include(cmake/include/package.cmake)
82-
83-
# This is for generating cmake/release-version.cmake to add to source package
84-
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/release-version.cmake.in
85-
${CMAKE_BINARY_DIR}/cmake/release-version.cmake)
86-
add_custom_target(
87-
uic_source
88-
COMMAND cp ${CMAKE_BINARY_DIR}/cmake/release-version.cmake
89-
${CMAKE_CURRENT_SOURCE_DIR}/cmake/release-version.cmake
90-
COMMAND ${CMAKE_MAKE_PROGRAM} package_source
91-
COMMAND rm ${CMAKE_CURRENT_SOURCE_DIR}/cmake/release-version.cmake)
92-
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/uic_version.h.in
93-
${CMAKE_BINARY_DIR}/include/uic_version.h)
85+
include(cmake/include/version_file.cmake)

0 commit comments

Comments
 (0)