Skip to content

Commit

Permalink
Build hello world snap based on Matter lighting app
Browse files Browse the repository at this point in the history
  • Loading branch information
MonicaisHer committed Jan 11, 2024
1 parent c944a99 commit 68f1b73
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ A new Matter project.

## Getting Started

This project is a starting point for a Matter application.
This project is a starting point for an simple application based on [Matter SDK](https://github.com/project-chip/connectedhomeip).

For help getting started with Matter development, view the
[Matter SDK](https://github.com/project-chip/connectedhomeip).
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

0 comments on commit 68f1b73

Please sign in to comment.