Skip to content

Commit a4809fe

Browse files
committed
Update rapidjson and make it available as additionnal headers
1 parent 7fffac0 commit a4809fe

39 files changed

+12760
-6648
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ DerivedData
8181
*.perspectivev3
8282
!default.perspectivev3
8383
xcuserdata
84+
xcshareddata/
8485

8586
## Other
8687
*.xccheckout

SConstruct

+4-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ shared_lib = shared_lib_env.SharedLibrary(library_build_prefix+'/lib/sse_dbparse
5757
static_lib = env.StaticLibrary(library_build_prefix+'/lib/sse_dbparser',objects)
5858

5959
headers = Glob('src/*.h') + Glob('src/json/*.h')
60-
headers_lib = [env.Install(library_build_prefix+'/include/sse/dbparser', headers)]
60+
rapidjson = Dir("src/json/rapidjson")
61+
62+
headers_lib = [env.Install(library_build_prefix+'/include/sse/dbparser', headers + [rapidjson])]
63+
# rapidjson_lib = [env.Install(library_build_prefix+'/include/sse/dbparser', rapidjson)]
6164

6265
env.Clean(headers_lib,[library_build_prefix+'/include'])
6366

db-parser.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
163E9E6E1C1744A600E63E9E /* libparser.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 163E9E661C17446D00E63E9E /* libparser.dylib */; };
1414
16A3E4D91C1720AE00383B85 /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 16A3E4CB1C171F2E00383B85 /* main.cpp */; };
1515
315EC2811CB2D7A9009511D5 /* DBParserJSON.h in Headers */ = {isa = PBXBuildFile; fileRef = 162566A41C063DE1004AD24D /* DBParserJSON.h */; settings = {ATTRIBUTES = (Public, ); }; };
16+
6CF416171CB7A3D900C448D4 /* rapidjson in Headers */ = {isa = PBXBuildFile; fileRef = 6CF416161CB7A3D900C448D4 /* rapidjson */; settings = {ATTRIBUTES = (Public, ); }; };
1617
/* End PBXBuildFile section */
1718

1819
/* Begin PBXCopyFilesBuildPhase section */
@@ -63,6 +64,7 @@
6364
16A3E4CB1C171F2E00383B85 /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = main.cpp; path = test/main.cpp; sourceTree = "<group>"; };
6465
16A3E4CC1C171F2E00383B85 /* inverted_index_docs.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = inverted_index_docs.txt; path = test/inverted_index_docs.txt; sourceTree = "<group>"; };
6566
16A3E4D21C17202C00383B85 /* native_test */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = native_test; sourceTree = BUILT_PRODUCTS_DIR; };
67+
6CF416161CB7A3D900C448D4 /* rapidjson */ = {isa = PBXFileReference; lastKnownFileType = folder; name = rapidjson; path = src/json/rapidjson; sourceTree = "<group>"; };
6668
/* End PBXFileReference section */
6769

6870
/* Begin PBXFrameworksBuildPhase section */
@@ -87,6 +89,7 @@
8789
1625668A1C061063004AD24D = {
8890
isa = PBXGroup;
8991
children = (
92+
6CF416161CB7A3D900C448D4 /* rapidjson */,
9093
1625669D1C06109A004AD24D /* src */,
9194
16A3E4CA1C171D2100383B85 /* test */,
9295
162566941C061063004AD24D /* Products */,
@@ -198,6 +201,7 @@
198201
files = (
199202
163E9E6D1C17449200E63E9E /* DBParser.h in Headers */,
200203
315EC2811CB2D7A9009511D5 /* DBParserJSON.h in Headers */,
204+
6CF416171CB7A3D900C448D4 /* rapidjson in Headers */,
201205
);
202206
runOnlyForDeploymentPostprocessing = 0;
203207
};

src/json/DBParserJSON.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "DBParserJSON.h"
22

3-
#include "rapidjson102/filereadstream.h"
4-
#include "rapidjson102/document.h"
3+
#include "rapidjson/filereadstream.h"
4+
#include "rapidjson/document.h"
55
#include <iostream>
66
#include <cstdio>
77

0 commit comments

Comments
 (0)