Skip to content

Commit

Permalink
Refactor manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
meganetaaan committed Sep 8, 2023
1 parent dfb2f04 commit 1058fa3
Show file tree
Hide file tree
Showing 12 changed files with 131 additions and 55 deletions.
3 changes: 2 additions & 1 deletion firmware/mods/face_tracker/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"include": [
"$(MODDABLE)/examples/manifest_mod.json"
"$(MODDABLE)/examples/manifest_mod.json",
"$(MODULES)/data/text/decoder/manifest.json"
],
"modules": {
"*": "./mod"
Expand Down
17 changes: 17 additions & 0 deletions firmware/stackchan/ble/manifest_ble.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"include": [
"$(MODULES)/network/ble/manifest_server.json",
"$(MODULES)/network/ble/manifest_client.json"
],
"modules": {
"*": [
"$(MODULES)/network/ble/uart/uartserver",
"./stk-server",
"./beacon-packet"
]
},
"preload": [
"stk-server",
"beacon-packet"
]
}
14 changes: 0 additions & 14 deletions firmware/stackchan/ble/services/stk.json

This file was deleted.

13 changes: 13 additions & 0 deletions firmware/stackchan/dialogues/manifest_dialogue.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"include": [
"$(MODDABLE)/examples/io/tcp/fetch/manifest_fetch.json"
],
"modules": {
"*": [
"./*"
]
},
"preload": [
"dialugue-chatgpt"
]
}
23 changes: 23 additions & 0 deletions firmware/stackchan/drivers/manifest_driver.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"include": [
"$(MODDABLE)/examples/manifest_base.json",
"$(MODDABLE)/examples/manifest_typings.json",
"$(MODULES)/pins/servo/manifest.json",
"../../extern/scservo/src/manifest-driver.json",
"../../extern/rs30x/src/manifest-driver.json",
"../utilities/manifest_utility.json"
],
"modules": {
"*": [
"./*"
]
},
"preload": [
"dynamixel",
"dynamixel-driver",
"none-driver",
"rs30x-driver",
"scservo-driver",
"sg90-driver"
]
}
46 changes: 7 additions & 39 deletions firmware/stackchan/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,58 +4,29 @@
},
"include": [
"$(MODDABLE)/examples/manifest_base.json",
"$(MODDABLE)/examples/manifest_net.json",
"$(MODDABLE)/examples/manifest_typings.json",
"$(MODDABLE)/examples/pins/audioout/resource-stream/manifest_streamer.json",
"$(MODDABLE)/examples/io/tcp/fetch/manifest_fetch.json",
"$(MODDABLE)/examples/io/tcp/websocket/manifest_websocket.json",
"$(MODULES)/base/modules/manifest.json",
"$(MODULES)/base/deepEqual/manifest.json",
"$(MODULES)/base/structuredClone/manifest.json",
"$(MODULES)/data/text/decoder/manifest.json",
"$(MODULES)/files/preference/manifest.json",
"$(MODULES)/files/file/manifest_littlefs.json",
"$(MODULES)/network/ble/manifest_server.json",
"$(MODULES)/network/ble/manifest_client.json",
"$(MODULES)/network/mdns/manifest.json",
"$(MODULES)/pins/servo/manifest.json",
"$(MODULES)/pins/i2s/manifest.json",
"../extern/manifest_extern.json",
"./drivers/manifest_driver.json",
"./ble/manifest_ble.json",
"./dialogues/manifest_dialogue.json",
"./renderers/manifest_renderer.json",
"./manifest_wavstream.json",
"./services/manifest_service.json",
"./speech/manifest_speech.json",
"./utilities/manifest_utility.json",
"./manifest_typings.json"
],
"modules": {
"*": [
"$(MODULES)/network/ble/uart/uartserver",
"./ble/stk-server",
"./ble/beacon-packet",
"./utilities/*",
"./drivers/*",
"./services/*",
"./speech/*",
"./dialogue/*",
"./touch",
"./robot",
"./main"
],
"default-mods/*": "./default-mods/*"
},
"preload": [
"http",
"tts-local",
"tts-voicevox",
"dialugue-chatgpt",
"dynamixel",
"dynamixel-driver",
"stk-server",
"robot",
"touch"
],
"ble": {
"*": [
"$(MODULES)/network/ble/uart/bleservices/*"
]
},
"strip": [],
"creation": {
"static": 98304,
Expand Down Expand Up @@ -104,9 +75,6 @@
},
"platforms": {
"esp32/m5stack_core2": {
"include": [
"./manifest_8mb_flash.json"
],
"config": {
"driver": {
"pwmPan": 19,
Expand Down
3 changes: 2 additions & 1 deletion firmware/stackchan/renderers/manifest_renderer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"include": [
"$(MODDABLE)/examples/manifest_commodetto.json",
"$(MODULES)/commodetto/outline/manifest.json"
"$(MODULES)/commodetto/outline/manifest.json",
"../utilities/manifest_utility.json"
],
"modules": {
"*": [
Expand Down
25 changes: 25 additions & 0 deletions firmware/stackchan/services/manifest_service.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"include": [
"$(MODDABLE)/examples/manifest_base.json",
"$(MODDABLE)/examples/manifest_net.json",
"$(MODDABLE)/examples/manifest_typings.json",
"$(MODDABLE)/examples/io/tcp/websocket/manifest_websocket.json",
"$(MODULES)/network/ble/manifest_server.json",
"$(MODULES)/network/ble/manifest_client.json",
"$(MODULES)/network/mdns/manifest.json",
"../utilities/manifest_utility.json"
],
"modules": {
"*": [
"./*",
"$(MODULES)/network/ble/uart/uartserver",
"../../typings/btutils",
"../../typings/uartserver"
]
},
"ble": {
"*": [
"$(MODULES)/network/ble/uart/bleservices/*"
]
}
}
24 changes: 24 additions & 0 deletions firmware/stackchan/speech/manifest_speech.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"include": [
"$(MODDABLE)/examples/manifest_typings.json",
"$(MODDABLE)/examples/pins/audioout/resource-stream/manifest_streamer.json",
"$(MODDABLE)/examples/pins/audioout/elevenlabs-stream/manifest_elevenlabsstreamer.json",
"$(MODULES)/files/file/manifest_littlefs.json",
"./manifest_wavstream.json"
],
"modules": {
"*": [
"./*",
"$(MODULES)/network/ble/uart/uartserver",
"../../typings/elevenlabsstreamer",
"../../typings/resourcestreamer",
"../../typings/wavstreamer"
]
},
"preload": [
"tts-local",
"tts-remote",
"tts-voicevox",
"tts-elevenlabs"
]
}
File renamed without changes.
18 changes: 18 additions & 0 deletions firmware/stackchan/utilities/manifest_utility.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"include": [
"$(MODDABLE)/examples/manifest_base.json",
"$(MODULES)/files/preference/manifest.json",
"$(MODULES)/base/structuredClone/manifest.json",
"$(MODULES)/base/deepEqual/manifest.json",
"$(MODDABLE)/examples/manifest_typings.json"
],
"modules": {
"*": [
"./*"
]
},
"preload": [
"consts",
"stackchan-util"
]
}

0 comments on commit 1058fa3

Please sign in to comment.