Skip to content

Commit f281e17

Browse files
Clean up project structure
1 parent f00f158 commit f281e17

File tree

9 files changed

+6
-36
lines changed

9 files changed

+6
-36
lines changed

Diff for: docs/Doxyfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -703,9 +703,7 @@ RECURSIVE = YES
703703
# Note that relative paths are relative to the directory from which doxygen is
704704
# run.
705705

706-
EXCLUDE = ../include/DSPatchVersion.h \
707-
../include/fast_any \
708-
../subprojects \
706+
EXCLUDE = ../include/fast_any \
709707
../tests \
710708
../tutorial
711709

Diff for: meson.build

+1-12
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ opencppcoverage = find_program('opencppcoverage', required: false)
1212

1313
opencppcoverage_args = [
1414
'--sources', meson.project_name(),
15-
'--excluded_sources', 'subprojects',
1615
'--excluded_sources', 'tests',
1716
'--excluded_sources', 'tutorial'
1817
]
@@ -68,13 +67,7 @@ if find_program('cppcheck', required: false).found()
6867
'--suppress=missingIncludeSystem',
6968
'--suppress=*:' + meson.current_source_dir() + '/include/fast_any/any.h',
7069

71-
'-i', meson.current_source_dir() + '/build',
72-
'-i', meson.current_source_dir() + '/builddir',
73-
'-i', meson.current_source_dir() + '/subprojects',
74-
7570
'-I', meson.current_source_dir() + '/include',
76-
'-I', meson.current_source_dir() + '/tests',
77-
'-I', meson.current_source_dir() + '/tutorial',
7871

7972
extra_cppcheck_args,
8073

@@ -86,12 +79,8 @@ endif
8679

8780
# Configure DSPatch
8881

89-
dspatch_inc = include_directories(
90-
'include'
91-
)
92-
9382
dspatch_dep = declare_dependency(
94-
include_directories: dspatch_inc,
83+
include_directories: include_directories('include'),
9584
dependencies: dependency('threads')
9685
)
9786

Diff for: scripts/clang-format.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ for %%f in ("*.cpp", "*.h") do (
1212

1313
for /D %%d in (*) do (
1414
cd %%d
15-
if not %%d==build if not %%d==builddir if not %%d==subprojects call :processDir
15+
if not %%d==build if not %%d==builddir call :processDir
1616
cd ..
1717
)
1818

Diff for: scripts/clang-format.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
44
cd "$DIR/.."
55

6-
find . -iname *.h -o -iname *.cpp | grep -v build | grep -v builddir | grep -v subprojects | xargs clang-format --style=file --verbose -i
6+
find . -iname *.h -o -iname *.cpp | grep -v build | grep -v builddir | xargs clang-format --style=file --verbose -i

Diff for: subprojects/catch/meson.build

-11
This file was deleted.

Diff for: tests/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ project(DSPatchTests)
22

33
include_directories(
44
${CMAKE_CURRENT_SOURCE_DIR}/../include
5-
${CMAKE_CURRENT_SOURCE_DIR}/../subprojects/catch
65
${CMAKE_CURRENT_SOURCE_DIR}
76
)
87

File renamed without changes.

Diff for: tests/main.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3030

3131
#include <DSPatch.h>
3232

33-
#include <catch.hpp>
33+
#include <catch/catch.hpp>
3434

3535
#include "components/Adder.h"
3636
#include "components/BranchSyncProbe.h"

Diff for: tests/meson.build

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Configure catch
2-
3-
catch = subproject('catch')
4-
catch_dep = catch.get_variable('catch_dep')
5-
61
# Configure tests
72

83
dspatch_tests_src = [
@@ -16,7 +11,7 @@ dspatch_tests = executable(
1611
format_first,
1712
dspatch_tests_src,
1813
include_directories: dspatch_tests_inc,
19-
dependencies: [dspatch_dep, catch_dep]
14+
dependencies: dspatch_dep
2015
)
2116

2217
# Add code coverage

0 commit comments

Comments
 (0)