flipperdevices / flipperzero-ufbt

Compact tool for building and debugging applications for Flipper Zero.
https://pypi.org/project/ufbt/
GNU General Public License v3.0
494 stars 36 forks source link

How to define header files in Application.fam #36

Closed jpitz31 closed 4 months ago

jpitz31 commented 4 months ago

Sorry not a bug, I am trying to use UFBT to build subghz so I can debug. I am reading the AppManifests.md on how to setup the inclusion of header files ".h"

UFBT is now throwing errors about not finding several header files.

I have tried the parameter sdk_headers in one of the app() functions but UFBT is still throwing errors.

Here is my application.fam function. I have tried several different apptypes, but cannot get the app to build.

App( appid="subghz_start", targets=["f7"], apptype=FlipperAppType.STARTUP, entry_point="subghz_on_system_start", sources=["./scenes/subghz_cli.c", "helpers/subghz_chat.c"], order=40, sdk_headers=["./scenes/subghz_scene.h","./protocol_items.h"] )

Sorry I know you are busy, but cannot find any info or examples on how to include .h files.

Thanks

Joe

hedger commented 4 months ago

ufbt is only designed for building apps of FlipperAppType.EXTERNAL, outside of firmware source tree.

To debug components of standard firmware bundle, please use full firmware sources from https://github.com/flipperdevices/flipperzero-firmware and fbt tool that is a part of that repo.

jpitz31 commented 4 months ago

Thanks

Joe