Skip to content

Commit

Permalink
bypass protobuf generation for now - release
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Nov 20, 2022
1 parent 5df5618 commit 0e12f7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/spotify/cspot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,17 @@ if(UNIX AND NOT APPLE)
endif()

# Build protobuf code
if(0)
set(NANOPB_OPTIONS "-I${CMAKE_CURRENT_SOURCE_DIR}")
file(GLOB PROTOS protobuf/*.proto)
nanopb_generate_cpp(PROTO_SRCS PROTO_HDRS RELPATH ${CMAKE_CURRENT_SOURCE_DIR} ${PROTOS})
add_custom_target(generate_proto_sources DEPENDS ${PROTO_SRCS} ${PROTO_HDRS})
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})
# PUBLIC to propagate includes from bell to cspot dependents
Expand Down

0 comments on commit 0e12f7f

Please sign in to comment.