Skip to content

Commit

Permalink
xrCDB: added to cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed May 30, 2018
1 parent cd1aafe commit 0d7cdb6
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
add_subdirectory(Layers)
#add_subdirectory(xrMisc)
#add_subdirectory(xrAICore)
#add_subdirectory(xrCDB)
add_subdirectory(xrCDB)
add_subdirectory(xrCore)
#add_subdirectory(xrEngine)
#add_subdirectory(xrGame)
Expand Down
14 changes: 14 additions & 0 deletions src/xrCDB/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
project(xrCDB)

list(APPEND DIRS
"."
)

add_dir("${DIRS}")

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../../sdk/include)

add_library(${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES})

set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
target_link_libraries(${PROJECT_NAME} xrCore OPCODE xrAPI)
2 changes: 1 addition & 1 deletion src/xrCDB/ISpatial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "xrEngine/xr_object.h"
#include "xrEngine/PS_Instance.h"
#endif
#include "xrEngine/Device.h"
#include "xrEngine/device.h"
#include "xrEngine/GameFont.h"
#include "xrEngine/PerformanceAlert.hpp"
#include "xrCore/Threading/Lock.hpp"
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions src/xrCDB/xrCDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Opcode
using namespace CDB;
using namespace Opcode;

#if defined(WINDOWS)
BOOL APIENTRY DllMain(HANDLE hModule, u32 ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
Expand All @@ -25,6 +26,7 @@ BOOL APIENTRY DllMain(HANDLE hModule, u32 ul_reason_for_call, LPVOID lpReserved)
}
return TRUE;
}
#endif

// Model building
MODEL::MODEL() :
Expand Down
2 changes: 2 additions & 0 deletions src/xrCDB/xr_area_raypick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#include "xrEngine/xr_collide_form.h"
#include "xrEngine/xr_object.h"
#include "Intersect.hpp"
#if defined(WINDOWS)
#include "d3d9types.h"
#endif

#ifdef DEBUG
static BOOL _cdb_bDebug = false;
Expand Down
4 changes: 4 additions & 0 deletions src/xrEngine/xr_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ class CInifile;
#define CROW_RADIUS2 (60.f)

class IPhysicsShell;
#if defined(WINDOWS)
xr_pure_interface IObjectPhysicsCollision;
#endif

class CAttachmentOwner;
class CInventoryOwner;
Expand Down Expand Up @@ -186,7 +188,9 @@ class IGameObject : public virtual IFactoryObject,
virtual IRenderVisual* Visual() const = 0;
virtual void OnChangeVisual() = 0;
virtual IPhysicsShell* physics_shell() = 0;
#if defined(WINDOWS)
virtual const IObjectPhysicsCollision* physics_collision() = 0;
#endif
// Name management
virtual shared_str cName() const = 0;
virtual void cName_set(shared_str N) = 0;
Expand Down

0 comments on commit 0d7cdb6

Please sign in to comment.