File tree Expand file tree Collapse file tree 9 files changed +41
-27
lines changed Expand file tree Collapse file tree 9 files changed +41
-27
lines changed Original file line number Diff line number Diff line change @@ -3,5 +3,6 @@ add_subdirectory(luabind)
3
3
add_subdirectory (lzo )
4
4
add_subdirectory (cximage )
5
5
add_subdirectory (NVTT )
6
+ add_subdirectory (OPCODE )
6
7
#add_subdirectory(gli)
7
8
#add_subdirectory(glew)
Original file line number Diff line number Diff line change
1
+ project (OPCODE )
2
+ add_dir (
3
+ "."
4
+ )
5
+
6
+ set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake )
7
+
8
+ include_directories (${CMAKE_CURRENT_SOURCE_DIR} /../../src ${CMAKE_CURRENT_SOURCE_DIR} /../../sdk/include )
9
+
10
+ add_library (${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES} )
11
+
12
+ set_target_properties (${PROJECT_NAME} PROPERTIES PREFIX "" )
13
+ target_link_libraries (${PROJECT_NAME} xrCore )
Original file line number Diff line number Diff line change 20
20
#ifndef __OPC_TREEBUILDERS_H__
21
21
#define __OPC_TREEBUILDERS_H__
22
22
23
- #include " opc_aabbtree .h"
23
+ #include " OPC_AABBTree .h"
24
24
#include " xrCore/xrPool.h"
25
25
26
26
// ! Tree splitting rules
Original file line number Diff line number Diff line change 10
10
// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
11
11
// Include Guard
12
12
#pragma once
13
+ #if !defined (_MSC_VER)
14
+ #include < stdint.h>
15
+ #endif
13
16
#ifndef __ICETYPES_H__
14
17
#define __ICETYPES_H__
15
18
@@ -42,8 +45,13 @@ typedef signed short sword; //!< sizeof(sword) must be 2
42
45
typedef unsigned short uword; // !< sizeof(uword) must be 2
43
46
typedef signed int sdword; // !< sizeof(sdword) must be 4
44
47
typedef unsigned int udword; // !< sizeof(udword) must be 4
48
+ #if defined (_MSC_VER)
45
49
typedef signed __int64 sqword; // !< sizeof(sqword) must be 8
46
50
typedef unsigned __int64 uqword; // !< sizeof(uqword) must be 8
51
+ #else
52
+ typedef int64_t sqword; // !< sizeof(sqword) must be 8
53
+ typedef uint64_t uqword; // !< sizeof(uqword) must be 8
54
+ #endif
47
55
typedef float float32; // !< sizeof(float32) must be 4
48
56
typedef double float64; // !< sizeof(float64) must be 4
49
57
@@ -69,10 +77,11 @@ typedef udword RTYPE; //!< Relationship-type (!) between owners and references
69
77
#define INVALID_NUMBER 0xDEADBEEF // !< Standard junk value
70
78
71
79
// Define BOOL if needed
80
+ #if defined (_MSC_VER)
72
81
#ifndef BOOL
73
82
typedef int BOOL; // !< Another boolean type.
74
83
#endif
75
-
84
+ # endif
76
85
// ! Union of a float and a sdword
77
86
typedef union
78
87
{
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ using namespace IceCore;
58
58
#endif
59
59
60
60
#ifndef __ICEMATHS_H__
61
- #include < Math .h>
61
+ #include < math .h>
62
62
#define ICEMATHS_API OPCODE_API
63
63
namespace IceMaths
64
64
{
Original file line number Diff line number Diff line change 1
1
macro (add_dir DIRS )
2
2
foreach (dir ${DIRS} )
3
- message ( "adding " ${dir} )
3
+ message ( "adding ${dir} to ${PROJECT_NAME} " )
4
4
include_directories (${dir} )
5
- file ( GLOB ${dir} __INCLUDES_H ${dir} *.h )
6
- file ( GLOB ${dir} __INCLUDES_HPP ${dir} *.hpp )
7
- list ( APPEND XRCORE__INCLUDES ${${dir}__INCLUDES_H} ${${dir}__INCLUDES_HPP} )
8
- file ( GLOB ${dir} __SOURCES ${dir} *.cpp )
9
- list ( APPEND XRCORE__SOURCES ${${dir}__SOURCES} )
5
+ file ( GLOB ${dir} __INCLUDES_H ${dir} ${dir} / *.h )
6
+ file ( GLOB ${dir} __INCLUDES_HPP ${dir} ${dir} / *.hpp )
7
+ list ( APPEND ${PROJECT_NAME} __INCLUDES ${${dir}__INCLUDES_H} ${${dir}__INCLUDES_HPP} )
8
+ file ( GLOB ${dir} __SOURCES ${dir} ${dir} / *.cpp )
9
+ list ( APPEND ${PROJECT_NAME} __SOURCES ${${dir}__SOURCES} )
10
10
endforeach ()
11
11
endmacro ()
Original file line number Diff line number Diff line change 3
3
#pragma once
4
4
5
5
#include " RenderVisual.h"
6
- #include " Layers\ xrRender\ KinematicsAddBoneTransform.hpp" // --#SM+#--
6
+ #include " Layers/ xrRender/ KinematicsAddBoneTransform.hpp" // --#SM+#--
7
7
8
8
typedef void (*UpdateCallback)(IKinematics* P);
9
9
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- add_dir (
1
+ project (xrCore )
2
+
3
+ list (APPEND DIRS
2
4
"."
3
5
"Animation"
4
6
"Compression"
@@ -10,13 +12,13 @@ add_dir (
10
12
"Text"
11
13
"Threading"
12
14
"XML"
13
- xrCore )
15
+ )
14
16
15
- message ( "path " ${CMAKE_CURRENT_SOURCE_DIR} )
17
+ add_dir ( " ${DIRS} " )
16
18
17
19
include_directories (${CMAKE_CURRENT_SOURCE_DIR} /.. ${CMAKE_CURRENT_SOURCE_DIR} /../../sdk/include )
18
20
19
- add_library (xrCore SHARED ${XRCORE__SOURCES} ${XRCORE__INCLUDES } )
21
+ add_library (${PROJECT_NAME} SHARED ${${PROJECT_NAME}__SOURCES} ${${PROJECT_NAME}__INCLUDES } )
20
22
21
- set_target_properties (xrCore PROPERTIES PREFIX "" )
22
- target_link_libraries (xrCore ${SDL2_LIB} ${OPENSSL_LIBRARIES} ${LZO_LIBRARY} ${CRYPTO_LIBRARY} ${PUGIXML_LIBRARY} )
23
+ set_target_properties (${PROJECT_NAME} PROPERTIES PREFIX "" )
24
+ target_link_libraries (${PROJECT_NAME} ${SDL2_LIB} ${OPENSSL_LIBRARIES} ${LZO_LIBRARY} ${CRYPTO_LIBRARY} ${PUGIXML_LIBRARY} )
You can’t perform that action at this time.
0 commit comments