forked from canonical/snapcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build hello world snap based on Matter lighting app
- Loading branch information
1 parent
c944a99
commit 68f1b73
Showing
2 changed files
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 42 additions & 8 deletions
50
tests/spread/plugins/craft-parts/build-and-run-hello/matter-hello/snap/snapcraft.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,54 @@ | ||
name: matter-hello | ||
version: "1.0" | ||
summary: simple matter application | ||
description: build an application using Matter SDK and say "hello world" | ||
description: build an example lighting application using Matter SDK and say "hello world" | ||
base: core22 | ||
confinement: strict | ||
|
||
apps: | ||
hello: | ||
command: | ||
hello | ||
lighting: | ||
daemon: simple | ||
install-mode: disable | ||
command: bin/lighting-app | ||
plugs: | ||
- network | ||
- network-bind | ||
- bluez | ||
- avahi-control | ||
- gpio-memory-control | ||
- otbr-dbus-wpan0 | ||
|
||
parts: | ||
matter: | ||
lighting-hello: | ||
plugin: matter | ||
matter-sdk-version: "master" | ||
matter-zap-version: "v2023.11.13" | ||
hello: | ||
plugin: dump | ||
source: . | ||
source: app | ||
override-build: | | ||
craftctl default | ||
cd $CRAFT_PART_BUILD/matter | ||
# Build a lighting example | ||
cd examples/lighting-app/linux | ||
gn gen out/build --args='is_debug=true' | ||
ninja -C out/build | ||
# ldd out/build/chip-lighting-app | ||
# mkdir -p $CRAFT_PART_INSTALL/bin | ||
# cp out/build/chip-lighting-app $CRAFT_PART_INSTALL/bin/lighting-app | ||
build-packages: | ||
- gcc | ||
- git | ||
- g++ | ||
- libdbus-1-dev | ||
- libglib2.0-dev | ||
- libssl-dev | ||
- ninja-build | ||
- pkg-config | ||
- python-is-python3 | ||
- python3-dev | ||
- python3-venv | ||
- unzip | ||
|