runtime: CMake-ify

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-01-18 15:55:06 +01:00
parent 717609a900
commit 24788185aa
184 changed files with 2957 additions and 2527 deletions
+72
View File
@@ -0,0 +1,72 @@
project(runtime)
add_subdirectory(lib)
add_subdirectory(blitz3d)
add_library(${PROJECT_NAME} MODULE
"bbruntime_dll.hpp"
"bbruntime_dll.cpp"
"resource.hpp"
"bbruntime_dll.rc"
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
runtime_lib
gxruntime
stdutil
)
#target_include_directories(${PROJECT_NAME}
#
#)
if (WIN32)
target_compile_definitions(${PROJECT_NAME}
PRIVATE
_CRT_SECURE_NO_WARNINGS
# windows.h
WIN32_LEAN_AND_MEAN
NOGPICAPMASKS
NOVIRTUALKEYCODES
NOWINMESSAGES
NOWINSTYLES
NOSYSMETRICS
NOMENUS
NOICONS
NOKEYSTATES
NOSYSCOMMANDS
NORASTEROPS
NOSHOWWINDOW
NOATOM
NOCLIPBOARD
NOCOLOR
NOCTLMGR
NODRAWTEXT
#NOGDI
NOKERNEL
#NOUSER
NONLS
#NOMB
NOMEMMGR
NOMETAFILE
NOMINMAX
#NOMSG
NOOPENFILE
NOSCROLL
NOSERVICE
NOSOUND
NOTEXTMETRIC
NOWH
NOWINOFFSETS
NOCOMM
NOKANJI
NOHELP
NOPROFILER
NODEFERWINDOWPOS
NOMCX
NOIME
NOMDI
NOINOUT
)
endif()
+3 -3
View File
@@ -1,8 +1,8 @@
#pragma warning( disable:4786 )
#include "bbruntime_dll.h"
#include "../debugger/debugger.h"
#include "bbruntime_dll.hpp"
#include "../debugger/debugger.hpp"
using namespace std;
@@ -11,7 +11,7 @@ using namespace std;
#include <eh.h>
#include <float.h>
#include "../RuntimeLib/bbruntime.h"
#include "bbruntime.hpp"
class DummyDebugger : public Debugger{
public:
@@ -6,7 +6,7 @@
#include <windows.h>
#include "../stdutil/stdutil.h"
#include "stdutil.hpp"
class Debugger;
+3 -3
View File
@@ -1,13 +1,13 @@
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#include "resource.hpp"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"
#include "afxres.hpp"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
@@ -34,7 +34,7 @@ END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#include ""afxres.h""\r\n"
"#include ""afxres.hpp""\r\n"
"\0"
END
+138
View File
@@ -0,0 +1,138 @@
project(runtime_blitz3d)
add_library(${PROJECT_NAME} STATIC
"animation.cpp"
"animation.hpp"
"animator.cpp"
"animator.hpp"
"blitz3d.hpp"
"brush.cpp"
"brush.hpp"
"cachedtexture.cpp"
"cachedtexture.hpp"
"camera.cpp"
"camera.hpp"
"collision.cpp"
"collision.hpp"
"entity.cpp"
"entity.hpp"
"frustum.cpp"
"frustum.hpp"
"geom.cpp"
"geom.hpp"
"light.cpp"
"light.hpp"
"listener.cpp"
"listener.hpp"
"loader_3ds.cpp"
"loader_3ds.hpp"
"loader_b3d.cpp"
"loader_b3d.hpp"
# "loader_x.cpp"
# "loader_x.hpp"
"md2model.cpp"
"md2model.hpp"
"md2norms.cpp"
"md2norms.hpp"
"md2rep.cpp"
"md2rep.hpp"
"meshcollider.cpp"
"meshcollider.hpp"
"meshloader.cpp"
"meshloader.hpp"
"meshmodel.cpp"
"meshmodel.hpp"
"meshutil.cpp"
"meshutil.hpp"
"mirror.cpp"
"mirror.hpp"
"model.cpp"
"model.hpp"
"object.cpp"
"object.hpp"
"pivot.cpp"
"pivot.hpp"
"planemodel.cpp"
"planemodel.hpp"
"q3bspmodel.cpp"
"q3bspmodel.hpp"
"q3bsprep.cpp"
"q3bsprep.hpp"
"rendercontext.hpp"
"sprite.cpp"
"sprite.hpp"
"std.cpp"
"std.hpp"
"surface.cpp"
"surface.hpp"
"terrain.cpp"
"terrain.hpp"
"terrainrep.cpp"
"terrainrep.hpp"
"texture.cpp"
"texture.hpp"
"world.cpp"
"world.hpp"
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
config
gxruntime
stdutil
PUBLIC
)
target_include_directories(${PROJECT_NAME}
PUBLIC ${PROJECT_SOURCE_DIR}
)
if (WIN32)
target_compile_definitions(${PROJECT_NAME}
PRIVATE
_CRT_SECURE_NO_WARNINGS
# windows.h
WIN32_LEAN_AND_MEAN
NOGPICAPMASKS
NOVIRTUALKEYCODES
NOWINMESSAGES
NOWINSTYLES
NOSYSMETRICS
NOMENUS
NOICONS
NOKEYSTATES
NOSYSCOMMANDS
NORASTEROPS
NOSHOWWINDOW
NOATOM
NOCLIPBOARD
NOCOLOR
NOCTLMGR
NODRAWTEXT
#NOGDI
NOKERNEL
#NOUSER
NONLS
NOMB
NOMEMMGR
NOMETAFILE
NOMINMAX
#NOMSG
NOOPENFILE
NOSCROLL
NOSERVICE
NOSOUND
NOTEXTMETRIC
NOWH
NOWINOFFSETS
NOCOMM
NOKANJI
NOHELP
NOPROFILER
NODEFERWINDOWPOS
NOMCX
NOIME
NOMDI
NOINOUT
)
endif()
@@ -1,6 +1,6 @@
#include "std.h"
#include "animation.h"
#include "std.hpp"
#include "animation.hpp"
struct Animation::Rep{
@@ -4,7 +4,7 @@
#include <list>
#include "geom.h"
#include "geom.hpp"
class Animation{
public:
@@ -1,7 +1,7 @@
#include "std.h"
#include "animator.h"
#include "object.h"
#include "std.hpp"
#include "animator.hpp"
#include "object.hpp"
Animator::Animator( Animator *t ):_seqs( t->_seqs ){
@@ -2,7 +2,7 @@
#ifndef ANIMATOR_H
#define ANIMATOR_H
#include "animation.h"
#include "animation.hpp"
class Object;
@@ -1,5 +1,5 @@
#include "bd2model.h"
#include "bd2model.hpp"
struct BD2Vert{
unsigned char x,y,z,n,u,v;
@@ -1,6 +1,7 @@
#include "std.h"
#include "world.h"
#include "std.hpp"
#include "world.hpp"
#include <cfloat>
static World *w;
@@ -1,8 +1,8 @@
#include "std.h"
#include "brush.h"
#include "std.hpp"
#include "brush.hpp"
#include "../gxruntime/gxgraphics.h"
#include "../gxruntime/gxgraphics.hpp"
struct Brush::Rep{
union{ int ref_cnt;Rep *next; };
@@ -2,8 +2,8 @@
#ifndef BRUSH_H
#define BRUSH_H
#include "geom.h"
#include "texture.h"
#include "geom.hpp"
#include "texture.hpp"
class Brush{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "cachedtexture.h"
#include "std.hpp"
#include "cachedtexture.hpp"
int active_texs;
@@ -2,7 +2,7 @@
#ifndef CACHEDTEXTURE_H
#define CACHEDTEXTURE_H
#include "../gxruntime/gxcanvas.h"
#include "../gxruntime/gxcanvas.hpp"
class CachedTextureFactory{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "camera.h"
#include "std.hpp"
#include "camera.hpp"
extern gxScene *gx_scene;
@@ -2,9 +2,9 @@
#ifndef CAMERA_H
#define CAMERA_H
#include "model.h"
#include "frustum.h"
#include "mirror.h"
#include "model.hpp"
#include "frustum.hpp"
#include "mirror.hpp"
class Camera : public Object{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "collision.h"
#include "std.hpp"
#include "collision.hpp"
const float COLLISION_FLT_EPSILON=.001f;
@@ -2,7 +2,7 @@
#ifndef COLLISION_H
#define COLLISION_H
#include "geom.h"
#include "geom.hpp"
extern const float COLLISION_FLT_EPSILON;
@@ -1,6 +1,6 @@
#include "std.h"
#include "emitter.h"
#include "std.hpp"
#include "emitter.hpp"
Emitter::Emitter(){
}
@@ -2,7 +2,7 @@
#ifndef EMITTER_H
#define EMITTER_H
#include "object.h"
#include "object.hpp"
class gxSound;
class gxChannel;
@@ -1,8 +1,8 @@
#include "std.h"
#include "entity.h"
#include "std.hpp"
#include "entity.hpp"
//#include "stats.h"
//#include "stats.hpp"
Entity *Entity::_orphans, *Entity::_last_orphan;
@@ -4,7 +4,7 @@
#include <list>
#include "geom.h"
#include "geom.hpp"
class Entity;
class Object;
@@ -1,6 +1,6 @@
#include "std.h"
#include "frustum.h"
#include "std.hpp"
#include "frustum.hpp"
Frustum::Frustum(){
}
@@ -2,7 +2,7 @@
#ifndef FRUSTUM_H
#define FRUSTUM_H
#include "geom.h"
#include "geom.hpp"
class Frustum{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "geom.h"
#include "std.hpp"
#include "geom.hpp"
Matrix Matrix::tmps[64];
Transform Transform::tmps[64];
@@ -1,7 +1,7 @@
#include "std.h"
#include "light.h"
#include "../gxruntime/gxscene.h"
#include "std.hpp"
#include "light.hpp"
#include "../gxruntime/gxscene.hpp"
extern gxScene *gx_scene;
@@ -2,9 +2,9 @@
#ifndef LIGHT_H
#define LIGHT_H
#include "geom.h"
#include "object.h"
#include "../gxruntime/gxlight.h"
#include "geom.hpp"
#include "object.hpp"
#include "../gxruntime/gxlight.hpp"
class World;
@@ -1,6 +1,6 @@
#include "std.h"
#include "listener.h"
#include "std.hpp"
#include "listener.hpp"
extern gxAudio *gx_audio;
@@ -2,7 +2,7 @@
#ifndef LISTENER_H
#define LISTENER_H
#include "object.h"
#include "object.hpp"
class Listener : public Object{
public:
@@ -1,7 +1,7 @@
#include "std.h"
#include "meshloader.h"
#include "meshmodel.h"
#include "std.hpp"
#include "meshloader.hpp"
#include "meshmodel.hpp"
struct Surf{
vector<Surface::Triangle> tris;
@@ -1,8 +1,8 @@
#include "std.h"
#include "loader_3ds.h"
#include "meshmodel.h"
#include "animation.h"
#include "std.hpp"
#include "loader_3ds.hpp"
#include "meshmodel.hpp"
#include "animation.hpp"
extern gxRuntime *gx_runtime;
@@ -2,7 +2,7 @@
#ifndef LOADER_3DS_H
#define LOADER_3DS_H
#include "meshloader.h"
#include "meshloader.hpp"
class Loader_3DS : public MeshLoader{
public:
@@ -1,9 +1,9 @@
#include "std.h"
#include "loader_b3d.h"
#include "meshmodel.h"
#include "pivot.h"
#include "meshutil.h"
#include "std.hpp"
#include "loader_b3d.hpp"
#include "meshmodel.hpp"
#include "pivot.hpp"
#include "meshutil.hpp"
//#define SHOW_BONES
@@ -2,7 +2,7 @@
#ifndef LOADER_B3D_H
#define LOADER_B3D_H
#include "meshloader.h"
#include "meshloader.hpp"
class Loader_B3D : public MeshLoader{
public:
@@ -1,13 +1,13 @@
#include "std.h"
#include "loader_x.h"
#include "meshmodel.h"
#include "animation.h"
#include "pivot.h"
#include "std.hpp"
#include "loader_x.hpp"
#include "meshmodel.hpp"
#include "animation.hpp"
#include "pivot.hpp"
#include <windows.h>
//#include <dxfile.h>
#include "../gxruntime/GraphicsRuntime.h"
#include "../gxruntime/GraphicsRuntime.hpp"
#include <d3d9types.h>
#include <d3dx9xof.h>
#include <rmxfguid.h>
@@ -2,7 +2,7 @@
#ifndef LOADER_X_H
#define LOADER_X_H
#include "meshloader.h"
#include "meshloader.hpp"
class Loader_X : public MeshLoader{
public:
@@ -1,7 +1,7 @@
#include "std.h"
#include "md2rep.h"
#include "md2model.h"
#include "std.hpp"
#include "md2rep.hpp"
#include "md2model.hpp"
struct MD2Model::Rep : public MD2Rep{
int ref_cnt;
@@ -2,8 +2,8 @@
#ifndef MD2MODEL_H
#define MD2MODEL_H
#include "model.h"
#include "md2rep.h"
#include "model.hpp"
#include "md2rep.hpp"
class MD2Model : public Model{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "md2norms.h"
#include "std.hpp"
#include "md2norms.hpp"
float md2norms[162][3]={
{-0.525731f, 0.000000f, 0.850651f},
@@ -1,7 +1,7 @@
#include "std.h"
#include "md2rep.h"
#include "md2norms.h"
#include "std.hpp"
#include "md2rep.hpp"
#include "md2norms.hpp"
extern gxRuntime *gx_runtime;
extern gxGraphics *gx_graphics;
@@ -2,7 +2,7 @@
#ifndef MD2REP_H
#define MD2REP_H
#include "model.h"
#include "model.hpp"
class MD2Rep{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "meshcollider.h"
#include "std.hpp"
#include "meshcollider.hpp"
static const int MAX_COLL_TRIS=16;
static vector<Vector> tri_centres;
@@ -2,7 +2,7 @@
#ifndef MESHCOLLIDER_H
#define MESHCOLLIDER_H
#include "collision.h"
#include "collision.hpp"
class MeshCollider{
public:
@@ -1,7 +1,7 @@
#include "std.h"
#include "meshloader.h"
#include "meshmodel.h"
#include "std.hpp"
#include "meshloader.hpp"
#include "meshmodel.hpp"
struct Tri{
int verts[3];
@@ -2,8 +2,8 @@
#ifndef MESHLOADER_H
#define MESHLOADER_H
#include "model.h"
#include "surface.h"
#include "model.hpp"
#include "surface.hpp"
class MeshLoader{
public:
@@ -1,7 +1,7 @@
#include "std.h"
#include "meshmodel.h"
#include "meshcollider.h"
#include "std.hpp"
#include "meshmodel.hpp"
#include "meshcollider.hpp"
extern gxGraphics *gx_graphics;
@@ -2,8 +2,8 @@
#ifndef MESHMODEL_H
#define MESHMODEL_H
#include "model.h"
#include "surface.h"
#include "model.hpp"
#include "surface.hpp"
class MeshCollider;
@@ -2,8 +2,8 @@
#ifndef MESHRENDERER_H
#define MESHRENDERER_H
#include "mesh.h"
#include "model.h"
#include "mesh.hpp"
#include "model.hpp"
class MeshRenderer{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "meshutil.h"
#include "std.hpp"
#include "meshutil.hpp"
MeshModel *MeshUtil::createCube( const Brush &b ){
static Vector norms[]={
@@ -2,7 +2,7 @@
#ifndef MESHUTIL_H
#define MESHUTIL_H
#include "meshmodel.h"
#include "meshmodel.hpp"
struct MeshUtil{
@@ -1,6 +1,6 @@
#include "std.h"
#include "mirror.h"
#include "std.hpp"
#include "mirror.hpp"
Mirror::Mirror(){
}
@@ -2,7 +2,7 @@
#ifndef MIRROR_H
#define MIRROR_H
#include "object.h"
#include "object.hpp"
class Mirror : public Object{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "model.h"
#include "std.hpp"
#include "model.hpp"
extern gxScene *gx_scene;
@@ -2,9 +2,9 @@
#ifndef MODEL_H
#define MODEL_H
#include "brush.h"
#include "object.h"
#include "rendercontext.h"
#include "brush.hpp"
#include "object.hpp"
#include "rendercontext.hpp"
class Sprite;
class Terrain;
@@ -1,6 +1,6 @@
#include "std.h"
#include "object.h"
#include "std.hpp"
#include "object.hpp"
extern gxRuntime *gx_runtime;
@@ -4,9 +4,9 @@
#include <vector>
#include "entity.h"
#include "animator.h"
#include "collision.h"
#include "entity.hpp"
#include "animator.hpp"
#include "collision.hpp"
class gxSound;
@@ -1,6 +1,6 @@
#include "std.h"
#include "pivot.h"
#include "std.hpp"
#include "pivot.hpp"
Pivot::Pivot(){
}
@@ -2,7 +2,7 @@
#ifndef PIVOT_H
#define PIVOT_H
#include "object.h"
#include "object.hpp"
class Pivot : public Object{
public:
@@ -1,8 +1,8 @@
#include "std.h"
#include "planemodel.h"
#include "frustum.h"
#include "camera.h"
#include "std.hpp"
#include "planemodel.hpp"
#include "frustum.hpp"
#include "camera.hpp"
static Vector vts[17][17];
@@ -2,8 +2,8 @@
#ifndef PLANEMODEL_H
#define PLANEMODEL_H
#include "model.h"
#include "brush.h"
#include "model.hpp"
#include "brush.hpp"
class PlaneModel : public Model{
public:
@@ -1,7 +1,7 @@
#include "std.h"
#include "q3bspmodel.h"
#include "q3bsprep.h"
#include "std.hpp"
#include "q3bspmodel.hpp"
#include "q3bsprep.hpp"
struct Q3BSPModel::Rep : public Q3BSPRep{
int ref_cnt;
@@ -2,7 +2,7 @@
#ifndef Q3BSPMODEL_H
#define Q3BSPMODEL_H
#include "model.h"
#include "model.hpp"
class Q3BSPModel : public Model{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "q3bsprep.h"
#include "std.hpp"
#include "q3bsprep.hpp"
/* Quake3 File format types */
@@ -2,8 +2,8 @@
#ifndef Q3BSPREP_H
#define Q3BSPREP_H
#include "model.h"
#include "meshcollider.h"
#include "model.hpp"
#include "meshcollider.hpp"
struct Q3BSPSurf;
struct Q3BSPFace;
@@ -2,7 +2,7 @@
#ifndef RENDERCONTEXT_H
#define RENDERCONTEXT_H
#include "frustum.h"
#include "frustum.hpp"
class RenderContext{
public:
@@ -1,6 +1,6 @@
#include "std.h"
#include "skinmodel.h"
#include "std.hpp"
#include "skinmodel.hpp"
SkinModel::SkinModel(){
setRenderSpace( RENDER_SPACE_WORLD );
@@ -2,7 +2,7 @@
#ifndef SKINMODEL_H
#define SKINMODEL_H
#include "meshmodel.h"
#include "meshmodel.hpp"
class SkinModel : public MeshModel{
vector<Object*> _bones;
@@ -1,6 +1,6 @@
#include "std.h"
#include "sprite.h"
#include "std.hpp"
#include "sprite.hpp"
extern float stats3d[];
@@ -2,9 +2,9 @@
#ifndef SPRITE_H
#define SPRITE_H
#include "model.h"
#include "brush.h"
#include "../gxruntime/gxmesh.h"
#include "model.hpp"
#include "brush.hpp"
#include "../gxruntime/gxmesh.hpp"
class Sprite : public Model{
public:
+2
View File
@@ -0,0 +1,2 @@
#include "std.hpp"
+3 -3
View File
@@ -4,9 +4,9 @@
#pragma warning( disable:4786 )
#include "../config/config.h"
#include "../stdutil/stdutil.h"
#include "../gxruntime/gxruntime.h"
#include "config.hpp"
#include "stdutil.hpp"
#include "gxruntime.hpp"
#include <set>
#include <map>
@@ -1,6 +1,6 @@
#include "std.h"
#include "surface.h"
#include "std.hpp"
#include "surface.hpp"
extern gxGraphics *gx_graphics;
@@ -2,7 +2,7 @@
#ifndef SURFACE_H
#define SURFACE_H
#include "model.h"
#include "model.hpp"
#define MAX_SURFACE_BONES 4
@@ -1,7 +1,7 @@
#include "std.h"
#include "terrain.h"
#include "terrainrep.h"
#include "std.hpp"
#include "terrain.hpp"
#include "terrainrep.hpp"
Terrain::Terrain( int size_shift ):
rep( new TerrainRep( size_shift ) ){
@@ -2,7 +2,7 @@
#ifndef TERRAIN_H
#define TERRAIN_H
#include "model.h"
#include "model.hpp"
struct TerrainRep;
@@ -1,6 +1,6 @@
#include "std.h"
#include "terrainrep.h"
#include "std.hpp"
#include "terrainrep.hpp"
#include <queue>
extern gxRuntime *gx_runtime;
@@ -4,7 +4,7 @@
#include <queue>
#include "model.h"
#include "model.hpp"
struct TerrainRep{
public:
@@ -1,10 +1,10 @@
#include "std.h"
#include "geom.h"
#include "texture.h"
#include "cachedtexture.h"
#include "std.hpp"
#include "geom.hpp"
#include "texture.hpp"
#include "cachedtexture.hpp"
#include "../gxruntime/gxgraphics.h"
#include "../gxruntime/gxgraphics.hpp"
extern gxScene *gx_scene;
extern gxGraphics *gx_graphics;
@@ -4,9 +4,9 @@
#include <string>
#include "cachedtexture.h"
#include "cachedtexture.hpp"
#include "../gxruntime/gxcanvas.h"
#include "../gxruntime/gxcanvas.hpp"
class Texture{
public:
@@ -1,7 +1,7 @@
#include "std.h"
#include "std.hpp"
#include <queue>
#include "world.h"
#include "world.hpp"
//0=tris compared for collision
//1=max proj err of terrain
@@ -4,11 +4,11 @@
#include <list>
#include "model.h"
#include "camera.h"
#include "light.h"
#include "mirror.h"
#include "listener.h"
#include "model.hpp"
#include "camera.hpp"
#include "light.hpp"
#include "mirror.hpp"
#include "listener.hpp"
#define WORLD_COLLISION_TYPES 16
#define WORLD_COLLISION_HITS 4
+104
View File
@@ -0,0 +1,104 @@
project(runtime_lib)
add_library(${PROJECT_NAME} STATIC
"basic.cpp"
"basic.hpp"
"bb_basic.hpp"
"bbaudio.cpp"
"bbaudio.hpp"
"bbbank.cpp"
"bbbank.hpp"
"bbblitz3d.cpp"
"bbblitz3d.hpp"
"bbfilesystem.cpp"
"bbfilesystem.hpp"
"bbgraphics.cpp"
"bbgraphics.hpp"
"bbinput.cpp"
"bbinput.hpp"
"bbmath.cpp"
"bbmath.hpp"
"bbruntime.cpp"
"bbruntime.hpp"
"bbstring.cpp"
"bbstring.hpp"
"bbsys.cpp"
"bbsys.hpp"
# "multiplay.cpp"
# "multiplay.hpp"
# "multiplay_setup.cpp"
# "multiplay_setup.hpp"
# "multiplay_setup.rc"
"resource.hpp"
"runtime.cpp"
"std.cpp"
"std.hpp"
"userlib.cpp"
"userlib.hpp"
"userlibs.cpp"
"userlibs.hpp"
)
target_link_libraries(${PROJECT_NAME}
PUBLIC
stdutil
gxruntime
ddraw
dsound
dxguid
)
target_include_directories(${PROJECT_NAME}
PUBLIC ${PROJECT_SOURCE_DIR}
)
if (WIN32)
target_compile_definitions(${PROJECT_NAME}
PRIVATE
_CRT_SECURE_NO_WARNINGS
# windows.h
WIN32_LEAN_AND_MEAN
NOGPICAPMASKS
NOVIRTUALKEYCODES
#NOWINMESSAGES
NOWINSTYLES
NOSYSMETRICS
NOMENUS
NOICONS
NOKEYSTATES
NOSYSCOMMANDS
NORASTEROPS
NOSHOWWINDOW
NOATOM
NOCLIPBOARD
NOCOLOR
NOCTLMGR
NODRAWTEXT
#NOGDI
NOKERNEL
#NOUSER
#NONLS
NOMB
NOMEMMGR
NOMETAFILE
NOMINMAX
#NOMSG
NOOPENFILE
NOSCROLL
NOSERVICE
NOSOUND
#NOTEXTMETRIC
NOWH
NOWINOFFSETS
NOCOMM
NOKANJI
NOHELP
NOPROFILER
NODEFERWINDOWPOS
NOMCX
NOIME
NOMDI
NOINOUT
)
endif()
@@ -1,5 +1,5 @@
#include "std.h"
#include "bbsys.h"
#include "std.hpp"
#include "bbsys.hpp"
//how many strings allocated
static int stringCnt;

Some files were not shown because too many files have changed in this diff Show More