Skip to content

Removed all autogenerated files, eases updating to newer lib versions. #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ compile_commands.json
build/
.vscode/
.clangd/

# Auto-generated directories
avro/
capnproto/
flatbuffers/
msgpack/
protobuf/
thrift/
36 changes: 31 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,14 @@ set(LINKLIBS
${ZLIB_LIBRARIES}
)


add_custom_target(thrift_make_directory ALL
COMMAND ${CMAKE_COMMAND} -E make_directory thrift
WORKING_DIRECTORY ${cpp_serializers_SOURCE_DIR}
COMMENT "Create thrift/ directory"
)
add_custom_command(
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.thrift
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.thrift thrift_make_directory
COMMAND ${THRIFT_GENERATOR}
ARGS -r -gen cpp -o ${cpp_serializers_SOURCE_DIR}/thrift/ ${cpp_serializers_SOURCE_DIR}/test.thrift
OUTPUT "${cpp_serializers_SOURCE_DIR}/thrift/gen-cpp/test_constants.cpp"
Expand All @@ -235,8 +241,13 @@ set(THRIFT_SERIALIZATION_SOURCES ${cpp_serializers_SOURCE_DIR}/thrift/gen-cpp
${cpp_serializers_SOURCE_DIR}/thrift/gen-cpp/test_types.cpp
)

add_custom_target(protobuf_make_directory ALL
COMMAND ${CMAKE_COMMAND} -E make_directory protobuf
WORKING_DIRECTORY ${cpp_serializers_SOURCE_DIR}
COMMENT "Create protobuf/ directory"
)
add_custom_command(
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.proto
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.proto protobuf_make_directory
COMMAND ${PROTOBUF_GENERATOR}
ARGS -I${cpp_serializers_SOURCE_DIR} --cpp_out=${cpp_serializers_SOURCE_DIR}/protobuf ${cpp_serializers_SOURCE_DIR}/test.proto
OUTPUT "${cpp_serializers_SOURCE_DIR}/protobuf/test.pb.cc"
Expand All @@ -249,8 +260,13 @@ set_source_files_properties(
)
set(PROTOBUF_SERIALIZATION_SOURCES ${cpp_serializers_SOURCE_DIR}/protobuf/test.pb.cc)

add_custom_target(capnproto_make_directory ALL
COMMAND ${CMAKE_COMMAND} -E make_directory capnproto
WORKING_DIRECTORY ${cpp_serializers_SOURCE_DIR}
COMMENT "Create thrift/ directory"
)
add_custom_command(
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.capnp
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.capnp capnproto_make_directory
COMMAND ${CAPNPROTO_GENERATOR}
ARGS compile -I${cpp_serializers_SOURCE_DIR} --src-prefix=${cpp_serializers_SOURCE_DIR} -o${CAPNPROTO_CPP_GENERATOR}:${cpp_serializers_SOURCE_DIR}/capnproto ${cpp_serializers_SOURCE_DIR}/test.capnp
OUTPUT "${cpp_serializers_SOURCE_DIR}/capnproto/test.capnp.c++"
Expand All @@ -263,8 +279,13 @@ set_source_files_properties(
)
set(CAPNPROTO_SERIALIZATION_SOURCES ${cpp_serializers_SOURCE_DIR}/capnproto/test.capnp.c++)

add_custom_target(avro_make_directory ALL
COMMAND ${CMAKE_COMMAND} -E make_directory avro
WORKING_DIRECTORY ${cpp_serializers_SOURCE_DIR}
COMMENT "Create thrift/ directory"
)
add_custom_command(
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.json
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.json avro_make_directory
COMMAND ${AVRO_GENERATOR}
ARGS --input ${cpp_serializers_SOURCE_DIR}/test.json --output ${cpp_serializers_SOURCE_DIR}/avro/record.hpp --namespace avro_test
OUTPUT "${cpp_serializers_SOURCE_DIR}/avro/record.hpp"
Expand All @@ -276,8 +297,13 @@ set_source_files_properties(
)
set(AVRO_SERIALIZATION_SOURCES ${cpp_serializers_SOURCE_DIR}/avro/record.hpp)

add_custom_target(flatbuffers_make_directory ALL
COMMAND ${CMAKE_COMMAND} -E make_directory flatbuffers
WORKING_DIRECTORY ${cpp_serializers_SOURCE_DIR}
COMMENT "Create thrift/ directory"
)
add_custom_command(
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.fbs
DEPENDS ${cpp_serializers_SOURCE_DIR}/test.fbs flatbuffers_make_directory
COMMAND ${FLATBUFFERS_GENERATOR}
ARGS --cpp -o ${cpp_serializers_SOURCE_DIR}/flatbuffers ${cpp_serializers_SOURCE_DIR}/test.fbs
OUTPUT "${cpp_serializers_SOURCE_DIR}/flatbuffers/test_generated.h"
Expand Down
72 changes: 0 additions & 72 deletions avro/record.hpp

This file was deleted.

91 changes: 0 additions & 91 deletions capnproto/test.capnp.c++

This file was deleted.

Loading