Skip to content

Commit

Permalink
remove pch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubpa committed Feb 5, 2022
1 parent 98feb39 commit b2f9ac4
Show file tree
Hide file tree
Showing 32 changed files with 34 additions and 28 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)

project(UECS VERSION 0.16.2)
project(UECS VERSION 0.17.0)
message(STATUS "[Project] ${PROJECT_NAME}")

include(cmake/InitUCMake.cmake)
Expand Down
1 change: 1 addition & 0 deletions include/UECS/CommandBuffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <functional>
#include <vector>
#include <span>

namespace Ubpa::UECS {
class CommandBuffer {
Expand Down
1 change: 1 addition & 0 deletions include/UECS/EntityMngr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace Ubpa::UECS {
class IListener;
class Archetype;
class synchronized_monotonic_buffer_resource;
class Chunk;

// Entity Manager of World
// auto maintain Component's lifecycle ({default|copy|move} constructor, destructor)
Expand Down
2 changes: 0 additions & 2 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ Ubpa_AddTarget(
L_OPTION
${l_options}
)

target_precompile_headers(${tname} PRIVATE "${PROJECT_SOURCE_DIR}/include/UECS/UECS.hpp")
2 changes: 2 additions & 0 deletions src/core/CmptTraits.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include <UECS/CmptTraits.hpp>

#include <UECS/Entity.hpp>

using namespace Ubpa;
using namespace Ubpa::UECS;

Expand Down
3 changes: 1 addition & 2 deletions src/core/EntityMngr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

#include "Archetype.hpp"

#include <UECS/SystemFunc.hpp>
#include <UECS/IListener.hpp>
#include <UECS/CommandBuffer.hpp>
#include <UECS/World.hpp>

using namespace Ubpa::UECS;
using namespace std;
Expand Down
2 changes: 2 additions & 0 deletions src/core/Schedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include "SysFuncGraph.hpp"

#include <UECS/World.hpp>

using namespace Ubpa;
using namespace Ubpa::UECS;
using namespace std;
Expand Down
2 changes: 2 additions & 0 deletions src/core/SysFuncGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#include <cassert>

#include <USmallFlat/small_vector.hpp>

using namespace Ubpa::UECS;
using namespace std;

Expand Down
1 change: 1 addition & 0 deletions src/core/SysFuncGraph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <unordered_set>
#include <vector>
#include <memory_resource>
#include <span>

namespace Ubpa::UECS {
class SystemFunc;
Expand Down
2 changes: 1 addition & 1 deletion src/test/00_basic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/01_tag/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/02_order/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/03_query_entity/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/04_filter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/05_alignment/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/07_overload/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/08_job/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/10_instantiate/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/11_runtime_cmpt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/12_framegraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/13_performance/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/14_serialize/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/15_chunk_job/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/16_singleton/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/17_serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/18_copy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/19_direct_run/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/20_system_lifecycle/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/21_random/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/22_change_filter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/23_syncpoint/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

2 changes: 1 addition & 1 deletion src/test/24_rsrc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Ubpa_AddTarget(
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

0 comments on commit b2f9ac4

Please sign in to comment.