Skip to content

Commit

Permalink
Draft version
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Feb 19, 2024
0 parents commit f51e0d4
Show file tree
Hide file tree
Showing 6 changed files with 644 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "FAP: Build for multiple SDK sources"
# This will build your app for dev and release channels on GitHub.
# It will also build your app every day to make sure it's up to date with the latest SDK changes.
# See https://github.com/marketplace/actions/build-flipper-application-package-fap for more information

on:
push:
## put your main branch name under "branches"
#branches:
# - master
pull_request:
schedule:
# do a build every day
- cron: "1 1 * * *"

jobs:
ufbt-build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: dev channel
sdk-channel: dev
- name: release channel
sdk-channel: release
# You can add unofficial channels here. See ufbt action docs for more info.
name: 'ufbt: Build for ${{ matrix.name }}'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build with ufbt
uses: flipperdevices/[email protected]
id: build-app
with:
sdk-channel: ${{ matrix.sdk-channel }}
- name: Upload app artifacts
uses: actions/upload-artifact@v3
with:
# See ufbt action docs for other output variables
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
path: ${{ steps.build-app.outputs.fap-artifacts }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dist/*
.vscode
.clang-format
.editorconfig
.env
.ufbt
140 changes: 140 additions & 0 deletions application.fam
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# For details & more options, see documentation/AppManifests.md in firmware repo

App(
appid="zenoh_sub", # Must be unique
name="Zenoh subscriber", # Displayed in menus
apptype=FlipperAppType.EXTERNAL,
entry_point="zenoh_sub_app",
stack_size=32760,
fap_category="Examples",
# Optional values
# fap_version="0.1",
fap_icon="template.png", # 10x10 1-bit PNG
# fap_description="A simple app",
# fap_author="J. Doe",
# fap_weburl="https://github.com/user/template",
fap_icon_assets="images", # Image assets to compile for this application
cdefines=[
"ZENOH_FLIPPER=1",
"Z_FEATURE_UNICAST_TRANSPORT=1",
#"Z_FEATURE_MULTI_THREAD=0",
"Z_FEATURE_LINK_TCP=0",
"Z_FEATURE_LINK_SERIAL=1",
"Z_FEATURE_LINK_UDP_UNICAST=0",
"Z_FEATURE_LINK_UDP_MULTICAST=0",
"Z_FEATURE_SCOUTING_UDP=0",
"Z_BUILD_DEBUG=1",
"ZENOH_DEBUG=5",
"Z_FEATURE_QUERYABLE=0",
"Z_FEATURE_QUERY=0",
"Z_FEATURE_ATTACHMENT=0",
#"Z_FEATURE_DYNAMIC_MEMORY_ALLOCATION=1",
"Z_FEATURE_FRAGMENTATION=0",
#"Z_FEATURE_PUBLICATION=0",
"Z_BATCH_UNICAST_SIZE=20480",
#"Z_FEATURE_SUBSCRIPTION=0",
],
fap_private_libs=[
Lib(
name="zenoh-pico",
fap_include_paths=["include"],
sources=[
"src/collections/intmap.c",
"src/collections/string.c",
"src/collections/list.c",
"src/collections/vec.c",
"src/collections/bytes.c",
"src/utils/pointers.c",
"src/utils/string.c",
"src/utils/uuid.c",
"src/utils/encoding.c",
"src/utils/checksum.c",
"src/api/api.c",
"src/link/config/bt.c",
"src/link/config/tcp.c",
"src/link/config/serial.c",
"src/link/config/udp.c",
"src/link/config/ws.c",
"src/link/multicast/bt.c",
"src/link/multicast/udp.c",
"src/link/link.c",
"src/link/unicast/tcp.c",
"src/link/unicast/serial.c",
"src/link/unicast/udp.c",
"src/link/unicast/ws.c",
"src/link/endpoint.c",
"src/net/query.c",
"src/net/logger.c",
"src/net/primitives.c",
"src/net/config.c",
"src/net/subscribe.c",
"src/net/memory.c",
"src/net/session.c",
"src/net/publish.c",
"src/transport/transport.c",
"src/transport/peer_entry.c",
"src/transport/manager.c",
"src/transport/multicast.c",
"src/transport/multicast/transport.c",
"src/transport/multicast/rx.c",
"src/transport/multicast/lease.c",
"src/transport/multicast/read.c",
"src/transport/multicast/tx.c",
"src/transport/unicast/transport.c",
"src/transport/unicast/rx.c",
"src/transport/unicast/lease.c",
"src/transport/unicast/read.c",
"src/transport/unicast/tx.c",
"src/transport/common/rx.c",
"src/transport/common/lease.c",
"src/transport/common/read.c",
"src/transport/common/tx.c",
"src/transport/raweth/config.c",
"src/transport/raweth/rx.c",
"src/transport/raweth/read.c",
"src/transport/raweth/link.c",
"src/transport/raweth/tx.c",
"src/transport/unicast.c",
"src/transport/utils.c",
"src/system/flipper/system.c",
"src/system/flipper/network.c",
"src/protocol/keyexpr.c",
"src/protocol/codec/transport.c",
"src/protocol/codec/declarations.c",
"src/protocol/codec/core.c",
"src/protocol/codec/message.c",
"src/protocol/codec/ext.c",
"src/protocol/codec/network.c",
"src/protocol/iobuf.c",
"src/protocol/config.c",
"src/protocol/core.c",
"src/protocol/definitions/transport.c",
"src/protocol/definitions/declarations.c",
"src/protocol/definitions/message.c",
"src/protocol/definitions/network.c",
"src/protocol/codec.c",
"src/protocol/ext.c",
"src/session/query.c",
"src/session/reply.c",
"src/session/resource.c",
"src/session/subscription.c",
"src/session/queryable.c",
"src/session/push.c",
"src/session/rx.c",
"src/session/tx.c",
"src/session/utils.c",
"src/session/scout.c",
],
cflags=[
"-Wno-error=redundant-decls",
"-Wno-error=implicit-function-declaration",
"-Wno-error=unused-variable",
"-Wno-error=unused-parameter",
"-Wno-error=unused-but-set-variable",
"-Wno-error=unused-but-set-parameter",
"-Wno-error=unused-function",
"-Wno-error=cast-function-type",
],
),
],
)
Empty file added images/.gitkeep
Empty file.
Binary file added template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f51e0d4

Please sign in to comment.