Skip to content

Commit ebe6fc2

Browse files
authored
Make headers include relative to project-root. (openscad#5312)
1 parent f23b152 commit ebe6fc2

File tree

435 files changed

+1502
-1497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

435 files changed

+1502
-1497
lines changed

CMakeLists.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,12 +511,16 @@ endif()
511511

512512
target_include_directories(OpenSCAD PRIVATE
513513
"src"
514-
"src/core"
515-
"src/core/customizer"
516514
"src/ext"
517-
"src/ext/json"
518515
"src/ext/lexertl/include"
519516
"src/ext/libtess2/Include"
517+
518+
# All the following should go away, not needed anymore after
519+
# PR #5312. Left here for now in case there are on-going PRs that
520+
# rely on these. Should be removed soon.
521+
"src/core"
522+
"src/core/customizer"
523+
"src/ext/json"
520524
"src/ext"
521525
"src/geometry"
522526
"src/geometry/cgal"

src/Cache.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
#include <cstddef>
4848
#include <unordered_map>
49-
#include "printutils.h"
49+
#include "utils/printutils.h"
5050

5151
template <class Key, class T>
5252
class Cache

src/Feature.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <utility>
99

1010
#include "Feature.h"
11-
#include "printutils.h"
11+
#include "utils/printutils.h"
1212

1313
/**
1414
* Feature registration map/list for later lookup. This must be initialized

src/Feature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <map>
77
#include <vector>
88

9-
#include "exceptions.h"
9+
#include "utils/exceptions.h"
1010

1111
class Feature
1212
{

src/FontCache.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
#include <utility>
3434

3535
#include "FontCache.h"
36-
#include "PlatformUtils.h"
37-
#include "printutils.h"
38-
#include "version_helper.h"
36+
#include "platform/PlatformUtils.h"
37+
#include "utils/printutils.h"
38+
#include "utils/version_helper.h"
3939

4040
extern std::vector<std::string> librarypath;
4141

src/LibraryInfo.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#include <string>
44
#include <vector>
55

6-
#include "version_check.h"
7-
#include "PlatformUtils.h"
6+
#include "utils/version_check.h"
7+
#include "platform/PlatformUtils.h"
88
#include "version.h"
99
#include "Feature.h"
1010

@@ -13,11 +13,11 @@
1313

1414
#ifndef OPENSCAD_NOGUI
1515
#include <Qsci/qsciglobal.h>
16-
#include "input/InputDriverManager.h"
16+
#include "gui/input/InputDriverManager.h"
1717
#endif
1818

1919
#ifdef ENABLE_CGAL
20-
#include "cgal.h"
20+
#include "geometry/cgal/cgal.h"
2121
#include <boost/algorithm/string.hpp>
2222
#if defined(__GNUG__)
2323
#define GCC_INT_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100)

src/RenderStatistic.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@
2525

2626

2727
#include <fstream>
28-
#include <json.hpp>
28+
#include "json/json.hpp"
2929
#include <string>
3030
#include <vector>
3131

32-
#include "printutils.h"
33-
#include "GeometryCache.h"
34-
#include "PolySet.h"
35-
#include "Polygon2d.h"
32+
#include "utils/printutils.h"
33+
#include "geometry/GeometryCache.h"
34+
#include "geometry/PolySet.h"
35+
#include "geometry/Polygon2d.h"
3636
#ifdef ENABLE_CGAL
37-
#include "CGAL_Nef_polyhedron.h"
38-
#include "CGALHybridPolyhedron.h"
39-
#include "CGALCache.h"
37+
#include "geometry/cgal/CGAL_Nef_polyhedron.h"
38+
#include "geometry/cgal/CGALHybridPolyhedron.h"
39+
#include "geometry/cgal/CGALCache.h"
4040
#endif // ENABLE_CGAL
4141

4242
#ifdef ENABLE_MANIFOLD
43-
#include "ManifoldGeometry.h"
44-
#include "manifoldutils.h"
43+
#include "geometry/manifold/ManifoldGeometry.h"
44+
#include "geometry/manifold/manifoldutils.h"
4545
#endif // ENABLE_MANIFOLD
4646

4747
#include "RenderStatistic.h"

src/RenderStatistic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
#include <string>
3030
#include <vector>
3131

32-
#include "Camera.h"
33-
#include "Geometry.h"
32+
#include "glview/Camera.h"
33+
#include "geometry/Geometry.h"
3434

3535
/**
3636
* An utility class to collect and print rendering statistics for the given

src/core/AST.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#include "AST.h"
1+
#include "core/AST.h"
22
#include <sstream>
33
#include <string>
4-
#include "boost-utils.h"
4+
#include "utils/boost-utils.h"
55

66
const Location Location::NONE(0, 0, 0, 0, std::make_shared<fs::path>(fs::path{}));
77

src/core/Arguments.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
*
2525
*/
2626

27-
#include "Arguments.h"
28-
#include "Expression.h"
27+
#include "core/Arguments.h"
28+
#include "core/Expression.h"
2929

3030
Arguments::Arguments(const AssignmentList& argument_expressions, const std::shared_ptr<const Context>& context) :
3131
evaluation_session(context->session())

0 commit comments

Comments
 (0)