Consolidate sources #89
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reorganize the source tree to make bpfilter more modular and avoid building the same source file multiple times.
With bfcli being introduced in 90a6136,
src/core
sources were used outside of thebpfilter
daemon, some other features of the build process have also been disabled (or broken) over time.This change reorganize the sources into:
src
: sources for all the project's byproducts:daemon
,library
,cli
. This directory is modular, it containscore
,shared
,lib
, ... Which can then be used to build other binaries. For example,core
andxlate
are used to buildbfcli
.tests
: mostly unit tests for now. End-to-end tests have been removed in a previous commit, as they were unused.doc
: documentation, unmodified except for thecoverage
target.lib
andcli
have been removed, as they also depend onsrc/core
, so they are now modules insrc
.