mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
bypass protobuf generation for now - release
This commit is contained in:
@@ -36,11 +36,17 @@ if(UNIX AND NOT APPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Build protobuf code
|
# Build protobuf code
|
||||||
|
if(0)
|
||||||
set(NANOPB_OPTIONS "-I${CMAKE_CURRENT_SOURCE_DIR}")
|
set(NANOPB_OPTIONS "-I${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
file(GLOB PROTOS protobuf/*.proto)
|
file(GLOB PROTOS protobuf/*.proto)
|
||||||
nanopb_generate_cpp(PROTO_SRCS PROTO_HDRS RELPATH ${CMAKE_CURRENT_SOURCE_DIR} ${PROTOS})
|
nanopb_generate_cpp(PROTO_SRCS PROTO_HDRS RELPATH ${CMAKE_CURRENT_SOURCE_DIR} ${PROTOS})
|
||||||
add_custom_target(generate_proto_sources DEPENDS ${PROTO_SRCS} ${PROTO_HDRS})
|
add_custom_target(generate_proto_sources DEPENDS ${PROTO_SRCS} ${PROTO_HDRS})
|
||||||
set_source_files_properties(${PROTO_SRCS} ${PROTO_HDRS} PROPERTIES GENERATED TRUE)
|
set_source_files_properties(${PROTO_SRCS} ${PROTO_HDRS} PROPERTIES GENERATED TRUE)
|
||||||
|
else()
|
||||||
|
list(APPEND SOURCES "protobuf/authentication.pb.c" "protobuf/keyexchange.pb.c" "protobuf/mercury.pb.c" "protobuf/metadata.pb.c" "protobuf/spirc.pb.c")
|
||||||
|
list(APPEND EXTRA_INCLUDES ".")
|
||||||
|
message(WARNING "NOT GENERATING PROTOBUF")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_library(cspot STATIC ${SOURCES} ${PROTO_SRCS})
|
add_library(cspot STATIC ${SOURCES} ${PROTO_SRCS})
|
||||||
# PUBLIC to propagate includes from bell to cspot dependents
|
# PUBLIC to propagate includes from bell to cspot dependents
|
||||||
|
|||||||
Reference in New Issue
Block a user