Skip to content

Commit

Permalink
Clean up project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Mar 11, 2024
1 parent f00f158 commit f281e17
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 36 deletions.
4 changes: 1 addition & 3 deletions docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,7 @@ RECURSIVE = YES
# Note that relative paths are relative to the directory from which doxygen is
# run.

EXCLUDE = ../include/DSPatchVersion.h \
../include/fast_any \
../subprojects \
EXCLUDE = ../include/fast_any \
../tests \
../tutorial

Expand Down
13 changes: 1 addition & 12 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ opencppcoverage = find_program('opencppcoverage', required: false)

opencppcoverage_args = [
'--sources', meson.project_name(),
'--excluded_sources', 'subprojects',
'--excluded_sources', 'tests',
'--excluded_sources', 'tutorial'
]
Expand Down Expand Up @@ -68,13 +67,7 @@ if find_program('cppcheck', required: false).found()
'--suppress=missingIncludeSystem',
'--suppress=*:' + meson.current_source_dir() + '/include/fast_any/any.h',

'-i', meson.current_source_dir() + '/build',
'-i', meson.current_source_dir() + '/builddir',
'-i', meson.current_source_dir() + '/subprojects',

'-I', meson.current_source_dir() + '/include',
'-I', meson.current_source_dir() + '/tests',
'-I', meson.current_source_dir() + '/tutorial',

extra_cppcheck_args,

Expand All @@ -86,12 +79,8 @@ endif

# Configure DSPatch

dspatch_inc = include_directories(
'include'
)

dspatch_dep = declare_dependency(
include_directories: dspatch_inc,
include_directories: include_directories('include'),
dependencies: dependency('threads')
)

Expand Down
2 changes: 1 addition & 1 deletion scripts/clang-format.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for %%f in ("*.cpp", "*.h") do (

for /D %%d in (*) do (
cd %%d
if not %%d==build if not %%d==builddir if not %%d==subprojects call :processDir
if not %%d==build if not %%d==builddir call :processDir
cd ..
)

Expand Down
2 changes: 1 addition & 1 deletion scripts/clang-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
cd "$DIR/.."

find . -iname *.h -o -iname *.cpp | grep -v build | grep -v builddir | grep -v subprojects | xargs clang-format --style=file --verbose -i
find . -iname *.h -o -iname *.cpp | grep -v build | grep -v builddir | xargs clang-format --style=file --verbose -i
11 changes: 0 additions & 11 deletions subprojects/catch/meson.build

This file was deleted.

1 change: 0 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ project(DSPatchTests)

include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../include
${CMAKE_CURRENT_SOURCE_DIR}/../subprojects/catch
${CMAKE_CURRENT_SOURCE_DIR}
)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include <DSPatch.h>

#include <catch.hpp>
#include <catch/catch.hpp>

#include "components/Adder.h"
#include "components/BranchSyncProbe.h"
Expand Down
7 changes: 1 addition & 6 deletions tests/meson.build
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Configure catch

catch = subproject('catch')
catch_dep = catch.get_variable('catch_dep')

# Configure tests

dspatch_tests_src = [
Expand All @@ -16,7 +11,7 @@ dspatch_tests = executable(
format_first,
dspatch_tests_src,
include_directories: dspatch_tests_inc,
dependencies: [dspatch_dep, catch_dep]
dependencies: dspatch_dep
)

# Add code coverage
Expand Down

0 comments on commit f281e17

Please sign in to comment.