-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build flipper protobuf plugin, update compiled files for qmake
- Loading branch information
Showing
34 changed files
with
687 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
qt_add_plugin(flipperproto0 | ||
CLASS_NAME "ProtobufPlugin" | ||
) | ||
|
||
file(GLOB PLUGIN_CXX_SOURCES | ||
"*.cpp" | ||
) | ||
|
||
file(GLOB PLUGIN_PROTO_FILES | ||
"flipperzero-protobuf/*.proto" | ||
) | ||
|
||
nanopb_generate_cpp( | ||
PLUGIN_PROTO_SOURCES | ||
PLUGIN_PROTO_HEADERS | ||
${PLUGIN_PROTO_FILES} | ||
) | ||
|
||
set_source_files_properties( | ||
${PLUGIN_PROTO_SOURCES} | ||
${PLUGIN_PROTO_HEADERS} | ||
PROPERTIES GENERATED TRUE) | ||
|
||
target_sources(flipperproto0 | ||
PRIVATE | ||
${PLUGIN_CXX_SOURCES} | ||
${PLUGIN_PROTO_SOURCES} | ||
) | ||
|
||
target_include_directories(flipperproto0 | ||
PRIVATE | ||
${NANOPB_INCLUDE_DIRS} | ||
${CMAKE_CURRENT_BINARY_DIR} | ||
) | ||
|
||
target_compile_definitions(flipperproto0 | ||
PRIVATE | ||
"-DPB_ENABLE_MALLOC" | ||
) | ||
|
||
target_link_libraries(flipperproto0 | ||
PRIVATE | ||
protobufinterface | ||
Qt::Core | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule flipperzero-protobuf
added at
1956b8
2 changes: 1 addition & 1 deletion
2
...s/flipperproto0/messages/application.pb.c → ...erzero-protobuf-compiled/application.pb.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
plugins/flipperproto0/flipperzero-protobuf-compiled/desktop.pb.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* Automatically generated nanopb constant definitions */ | ||
/* Generated by nanopb-0.4.9-dev */ | ||
|
||
#include "desktop.pb.h" | ||
#if PB_PROTO_HEADER_VERSION != 40 | ||
#error Regenerate this file with the current version of nanopb generator. | ||
#endif | ||
|
||
PB_BIND(PB_Desktop_IsLockedRequest, PB_Desktop_IsLockedRequest, AUTO) | ||
|
||
|
||
PB_BIND(PB_Desktop_UnlockRequest, PB_Desktop_UnlockRequest, AUTO) | ||
|
||
|
||
PB_BIND(PB_Desktop_StatusSubscribeRequest, PB_Desktop_StatusSubscribeRequest, AUTO) | ||
|
||
|
||
PB_BIND(PB_Desktop_StatusUnsubscribeRequest, PB_Desktop_StatusUnsubscribeRequest, AUTO) | ||
|
||
|
||
PB_BIND(PB_Desktop_Status, PB_Desktop_Status, AUTO) | ||
|
||
|
||
|
Oops, something went wrong.