Skip to content

Commit

Permalink
Reorganized protobuf (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
techbech authored Oct 10, 2023
1 parent c26b173 commit 2f987fa
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 64 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ endif()
target_link_libraries(abacus PRIVATE steinwurf::endian)
target_link_libraries(abacus PUBLIC steinwurf::protobuf)

target_include_directories(abacus INTERFACE src)
target_include_directories(abacus PUBLIC src)
target_compile_features(abacus PUBLIC cxx_std_14)
add_library(steinwurf::abacus ALIAS abacus)

Expand Down
2 changes: 1 addition & 1 deletion NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ every change, see the Git log.

Latest
------
* tbd
* Patch: Reorganized protobuf.

5.2.1
-----
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/abacus/detail/to_protobuf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#pragma once

#include "../protobuf/abacus_metric.pb.h"
#include "../protobuf/metrics.pb.h"
#include "../view.hpp"

#include "../version.hpp"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/abacus/to_protobuf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.

#include "detail/to_protobuf.hpp"
#include "protobuf/abacus_metric.pb.h"
#include "protobuf/metrics.pb.h"
#include "to_protobuf.hpp"
#include "view.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/abacus/to_protobuf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include <vector>

#include "protobuf/abacus_metric.pb.h"
#include "protobuf/metrics.pb.h"
#include "version.hpp"
#include "view.hpp"

Expand Down
3 changes: 2 additions & 1 deletion wscript
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def build(bld):
use=["protobuf", "endian_includes", "bourne"],
install_path="${PREFIX}/lib",
cxxflags=cxxflags,
includes=["src"],
export_includes=["src"],
)

Expand Down Expand Up @@ -78,7 +79,7 @@ def protogen(ctx):
os.mkdir("src/abacus/protobuf")

ctx.exec_command(
f"./{protoc_location} --cpp_out ./src/abacus/protobuf --proto_path ./protobuf protobuf/*.proto"
f"(./{protoc_location} --cpp_out ./src --proto_path .. ../abacus/protobuf/*.proto)"
)

ctx.exec_command(
Expand Down

0 comments on commit 2f987fa

Please sign in to comment.