Skip to content

Commit

Permalink
Create source file list from globbing .hpp / .cpp files.
Browse files Browse the repository at this point in the history
Move util/3rdpart things to /lib

Add /include folder.

Add both to include directories.

synchronize.py is hacky and ugly, but it works.
  • Loading branch information
scamille committed May 4, 2020
1 parent 2d8871b commit dd5abd8
Show file tree
Hide file tree
Showing 110 changed files with 3,921 additions and 3,878 deletions.
2 changes: 1 addition & 1 deletion engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include(../source_files/cmake_engine.txt)

# Define engine library
add_library(engine ${source_files})
target_include_directories(engine PUBLIC . ./util)
target_include_directories(engine PUBLIC . ./include ./lib)

# Make cmake selections visible to C++ code
if(SC_NO_THREADING)
Expand Down
2 changes: 1 addition & 1 deletion engine/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ endif

MKDIR = mkdir
CXX = c++
CPP_FLAGS = -Wall -Wextra -W -I. -I./util -DSC_SHARED_DATA=\"$(SHARED_DATA)\" --std=c++14 -O3 -MMD -MP \
CPP_FLAGS = -Wall -Wextra -W -I. -I./include -I./lib -DSC_SHARED_DATA=\"$(SHARED_DATA)\" --std=c++14 -O3 -MMD -MP \
-Wpedantic \
-Wcast-qual \
-Wconversion-null
Expand Down
2 changes: 1 addition & 1 deletion engine/action/sc_action.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#pragma once

#include "config.hpp"
#include "generic.hpp"
#include "util/generic.hpp"
#include "sc_enums.hpp"
#include "sc_timespan.hpp"
#include "player/target_specific.hpp"
Expand Down
2 changes: 1 addition & 1 deletion engine/action/sc_action_state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string>
#include <iostream>
#include "config.hpp"
#include "generic.hpp"
#include "util/generic.hpp"
#include "sc_enums.hpp"
#include "dbc/data_enums.hh"

Expand Down
2 changes: 1 addition & 1 deletion engine/buff/sc_buff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "sim/event.hpp"
#include "sim/sc_sim.hpp"
#include "sim/real_ppm.hpp"
#include "rng.hpp"
#include "util/rng.hpp"
#include "sim/sc_cooldown.hpp"
#include "sim/sc_expressions.hpp"
#include "dbc/item_database.hpp"
Expand Down
2 changes: 1 addition & 1 deletion engine/dbc/item_armor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef ITEM_ARMOR_HPP
#define ITEM_ARMOR_HPP

#include "generic.hpp"
#include "util/generic.hpp"
#include "util/array_view.hpp"

#include "client_data.hpp"
Expand Down
2 changes: 1 addition & 1 deletion engine/dbc/item_weapon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#ifndef ITEM_WEAPON_HPP
#define ITEM_WEAPON_HPP

#include "generic.hpp"
#include "util/generic.hpp"
#include "util/array_view.hpp"

#include "client_data.hpp"
Expand Down
8 changes: 4 additions & 4 deletions engine/interfaces/sc_bcp_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

#include "simulationcraft.hpp"

#include "util/rapidjson/document.h"
#include "util/rapidjson/stringbuffer.h"
#include "util/rapidjson/prettywriter.h"
#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/prettywriter.h"

#include "../util/utf8-h/utf8.h"
#include "utf8-h/utf8.h"

// ==========================================================================
// Blizzard Community Platform API
Expand Down
6 changes: 3 additions & 3 deletions engine/interfaces/sc_js.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#define RAPIDJSON_HAS_STDSTRING 1
#endif

#include "util/rapidjson/document.h"
#include "util/rapidjson/stringbuffer.h"
#include "util/rapidjson/prettywriter.h"
#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/prettywriter.h"
#include <utility>
#include <string>
#include <vector>
Expand Down
7 changes: 4 additions & 3 deletions engine/interfaces/wowhead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
#include "wowhead.hpp"
#include "simulationcraft.hpp"

#include "util/rapidjson/document.h"
#include "util/rapidjson/stringbuffer.h"
#include "util/rapidjson/prettywriter.h"
#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/prettywriter.h"

namespace {
// source_str ===============================================================
Expand Down
2 changes: 1 addition & 1 deletion engine/item/item.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#pragma once

#include "config.hpp"
#include "generic.hpp"
#include "util/generic.hpp"
#include "sc_enums.hpp"
#include "player/gear_stats.hpp"
#include "sc_timespan.hpp"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit dd5abd8

Please sign in to comment.