mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-15 17:18:01 +00:00
b85a50f912
* Lib: added nanopb * Hal rfid: fixed confused arguments * Lib: update makefile, include nanopb * Lib: remove nanopb * Lib: add nanopb as submodule * Assets: remove protobuf * Assets: add protobuf message definitions as submodule * WIP: [FL-1792] Add Protobuf RPC * WIP: RPC add ping * Add Ping * Fix Ping, Add (WIP) storage * Update submodule * ble-glue: add ptotobuf to ble * WIP: Add storage list test * revert applications.mk * Add Storage List command * ble-glue: fix fast updating rx charachteristic * ble serial: split long ble packets * Add Storage Read/Write/Mkdir/Delete * Disable tests * Rename Element -> File * Add md5sum, fix test leak * Regenerate Protobuf * Fix review comments * ble-glue: sync f7 target Co-authored-by: Albert Kharisov <albert@flipperdevices.com> Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
19 lines
968 B
Makefile
19 lines
968 B
Makefile
ASSETS_DIR := $(PROJECT_ROOT)/assets
|
|
ASSETS_COMPILLER := $(PROJECT_ROOT)/scripts/assets.py
|
|
ASSETS_COMPILED_DIR := $(ASSETS_DIR)/compiled
|
|
ASSETS_SOURCE_DIR := $(ASSETS_DIR)/icons
|
|
|
|
ASSETS_SOURCES += $(shell find $(ASSETS_SOURCE_DIR) -type f -iname '*.png' -or -iname 'frame_rate')
|
|
ASSETS += $(ASSETS_COMPILED_DIR)/assets_icons.c
|
|
|
|
PROTOBUF_SOURCE_DIR := $(ASSETS_DIR)/protobuf
|
|
PROTOBUF_COMPILER := $(PROJECT_ROOT)/lib/nanopb/generator/nanopb_generator.py
|
|
PROTOBUF_COMPILED_DIR := $(ASSETS_COMPILED_DIR)
|
|
PROTOBUF_SOURCES := $(shell find $(PROTOBUF_SOURCE_DIR) -type f -iname '*.proto')
|
|
#PROTOBUF_FILENAMES := $(notdir $(PROTOBUF))
|
|
PROTOBUF_FILENAMES := $(notdir $(addsuffix .pb.c,$(basename $(PROTOBUF_SOURCES))))
|
|
PROTOBUF := $(addprefix $(PROTOBUF_COMPILED_DIR)/,$(PROTOBUF_FILENAMES))
|
|
PROTOBUF_CFLAGS += -DPB_ENABLE_MALLOC -DPB_WITHOUT_64BIT
|
|
|
|
CFLAGS += -I$(ASSETS_COMPILED_DIR) $(PROTOBUF_CFLAGS)
|
|
C_SOURCES += $(wildcard $(ASSETS_COMPILED_DIR)/*.c)
|