aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorthecharlesblake2018-04-06 13:58:01 +0100
committerthecharlesblake2018-04-06 13:58:01 +0100
commite7ceb086a4e8aed29becbc94c3160d896a70450b (patch)
tree50f59d060cd2f1c64f6f2dbbeaedaf604bca67be /src/main
parentMerge pull request #50 from thecharlesblake/benchmark-option (diff)
downloadmetasol-e7ceb086a4e8aed29becbc94c3160d896a70450b.tar.gz
metasol-e7ceb086a4e8aed29becbc94c3160d896a70450b.zip

Fix build to work on lab clients

Diffstat (limited to 'src/main')
-rw-r--r--src/main/game/game_state.cpp2
-rw-r--r--src/main/game/game_state.h2
-rw-r--r--src/main/game/sol_rules.h2
-rw-r--r--src/main/input-output/input/json-parsing/deal_parser.h5
-rw-r--r--src/main/input-output/input/json-parsing/json_helper.cpp2
-rw-r--r--src/main/input-output/input/json-parsing/json_helper.h2
-rw-r--r--src/main/main.cpp4
7 files changed, 9 insertions, 10 deletions
diff --git a/src/main/game/game_state.cpp b/src/main/game/game_state.cpp
index 897adf1..50b8f19 100644
--- a/src/main/game/game_state.cpp
+++ b/src/main/game/game_state.cpp
@@ -8,10 +8,10 @@
#include <algorithm>
#include <functional>
-#include <rapidjson/document.h>
#include <boost/functional/hash.hpp>
#include "game_state.h"
+#include "../../../lib/rapidjson/document.h"
#include "../input-output/input/json-parsing/deal_parser.h"
#include "../input-output/output/state_printer.h"
#include "../input-output/output/log_helper.h"
diff --git a/src/main/game/game_state.h b/src/main/game/game_state.h
index a49db2c..0be07ae 100644
--- a/src/main/game/game_state.h
+++ b/src/main/game/game_state.h
@@ -9,10 +9,10 @@
#include <list>
#include <string>
-#include <rapidjson/document.h>
#include <boost/functional/hash.hpp>
#include <boost/optional/optional.hpp>
+#include "../../../lib/rapidjson/document.h"
#include "card.h"
#include "pile.h"
#include "sol_rules.h"
diff --git a/src/main/game/sol_rules.h b/src/main/game/sol_rules.h
index 0314af5..adab00d 100644
--- a/src/main/game/sol_rules.h
+++ b/src/main/game/sol_rules.h
@@ -7,7 +7,7 @@
#include <string>
-#include <rapidjson/document.h>
+#include "../../../lib/rapidjson/document.h"
struct sol_rules {
sol_rules();
diff --git a/src/main/input-output/input/json-parsing/deal_parser.h b/src/main/input-output/input/json-parsing/deal_parser.h
index 7aa3afe..dc67573 100644
--- a/src/main/input-output/input/json-parsing/deal_parser.h
+++ b/src/main/input-output/input/json-parsing/deal_parser.h
@@ -8,8 +8,9 @@
#include <vector>
#include <boost/optional.hpp>
-#include <rapidjson/document.h>
-#include <rapidjson/schema.h>
+
+#include "../../../../../lib/rapidjson/document.h"
+#include "../../../../../lib/rapidjson/schema.h"
class game_state;
diff --git a/src/main/input-output/input/json-parsing/json_helper.cpp b/src/main/input-output/input/json-parsing/json_helper.cpp
index 927787c..1d1ed85 100644
--- a/src/main/input-output/input/json-parsing/json_helper.cpp
+++ b/src/main/input-output/input/json-parsing/json_helper.cpp
@@ -4,9 +4,9 @@
#include <fstream>
#include <sstream>
-#include <rapidjson/stringbuffer.h>
#include "json_helper.h"
+#include "../../../../../lib/rapidjson/stringbuffer.h"
#include "../../output/log_helper.h"
using namespace std;
diff --git a/src/main/input-output/input/json-parsing/json_helper.h b/src/main/input-output/input/json-parsing/json_helper.h
index 9a9500a..b5e2d51 100644
--- a/src/main/input-output/input/json-parsing/json_helper.h
+++ b/src/main/input-output/input/json-parsing/json_helper.h
@@ -7,7 +7,7 @@
#include <string>
-#include <rapidjson/schema.h>
+#include "../../../../../lib/rapidjson/schema.h"
class json_helper {
public:
diff --git a/src/main/main.cpp b/src/main/main.cpp
index c279f1f..a8080d5 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -1,8 +1,7 @@
#include <boost/program_options.hpp>
#include <boost/optional.hpp>
-#include <rapidjson/document.h>
-#include <gperftools/profiler.h>
+#include "../../lib/rapidjson/document.h"
#include "input-output/input/command_line_helper.h"
#include "input-output/input/sol_preset_types.h"
#include "input-output/input/json-parsing/json_helper.h"
@@ -135,7 +134,6 @@ void solve_game(const game_state& gs, bool short_sol, bool classify) {
} else {
solution = solv->run() == solver::sol_state::solved;
}
- ProfilerStop();
if (solution) {
if (!classify) solv->print_solution();