mirror of https://github.com/axmolengine/axmol.git
Merge pull request #423 from aismann/dev
Enable box2d testbed on linux/macos
This commit is contained in:
parent
d5f6714534
commit
a46bc403ae
|
@ -361,23 +361,21 @@ list(APPEND GAME_HEADER
|
|||
Classes/Box2DTest/Box2dTest.h
|
||||
)
|
||||
|
||||
if(WINDOWS)
|
||||
list(APPEND GAME_HEADER
|
||||
Classes/Box2DTestBed/Test.h
|
||||
Classes/Box2DTestBed/Box2DTestBed.h
|
||||
Classes/Box2DTestBed/CCPhysicsDebugNodeBox2D.h
|
||||
)
|
||||
endif()
|
||||
|
||||
list(APPEND GAME_SOURCE
|
||||
Classes/Box2DTest/Box2dTest.cpp
|
||||
)
|
||||
|
||||
if(WINDOWS)
|
||||
list(APPEND GAME_HEADER
|
||||
if(WINDOWS OR MACOSX OR LINUX)
|
||||
list(APPEND GAME_HEADER
|
||||
Classes/Box2DTestBed/test.h
|
||||
Classes/Box2DTestBed/Box2DTestBed.h
|
||||
Classes/Box2DTestBed/CCPhysicsDebugNodeBox2D.h
|
||||
)
|
||||
|
||||
list(APPEND GAME_SOURCE
|
||||
Classes/Box2DTestBed/Box2DTestBed.cpp
|
||||
Classes/Box2DTestBed/CCPhysicsDebugNodeBox2D.cpp
|
||||
Classes/Box2DTestBed/Test.cpp
|
||||
Classes/Box2DTestBed/test.cpp
|
||||
|
||||
Classes/Box2DTestBed/tests/add_pair.cpp
|
||||
Classes/Box2DTestBed/tests/apply_force.cpp
|
||||
|
@ -439,6 +437,7 @@ if(WINDOWS)
|
|||
Classes/Box2DTestBed/tests/wrecking_ball.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
list(APPEND GAME_HEADER
|
||||
Classes/Physics3DTest/Physics3DTest.h
|
||||
Classes/NavMeshTest/NavMeshTest.h
|
||||
|
@ -451,18 +450,17 @@ list(APPEND GAME_HEADER
|
|||
Classes/PhysicsTest/PhysicsTest.h
|
||||
Classes/ChipmunkTest/ChipmunkTest.h
|
||||
)
|
||||
if(WINDOWS)
|
||||
list(APPEND GAME_HEADER
|
||||
Classes/ChipmunkTestBed/Demo/ChipmunkDemo.h
|
||||
Classes/ChipmunkTestBed/ChipmunkTestBed.h
|
||||
)
|
||||
endif()
|
||||
|
||||
list(APPEND GAME_SOURCE
|
||||
Classes/PhysicsTest/PhysicsTest.cpp
|
||||
Classes/ChipmunkTest/ChipmunkTest.cpp
|
||||
)
|
||||
|
||||
if(WINDOWS OR MACOSX OR LINUX)
|
||||
list(APPEND GAME_HEADER
|
||||
Classes/ChipmunkTestBed/demo/ChipmunkDemo.h
|
||||
Classes/ChipmunkTestBed/ChipmunkTestBed.h
|
||||
)
|
||||
set (TESTBED_C_SORUCES
|
||||
Classes/ChipmunkTestBed/demo/Bench.c
|
||||
Classes/ChipmunkTestBed/demo/Chains.c
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#ifndef __PHYSICSNODES_DEBUGNODE_BOX2D_H__
|
||||
#define __PHYSICSNODES_DEBUGNODE_BOX2D_H__
|
||||
|
||||
#include "Box2D/Box2D.h"
|
||||
#include "box2d/box2d.h"
|
||||
#include "cocos2d.h"
|
||||
|
||||
struct b2AABB;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#ifndef TEST_H
|
||||
#define TEST_H
|
||||
|
||||
#include "Box2D/Box2D.h"
|
||||
#include "box2d/box2d.h"
|
||||
#include "CCPhysicsDebugNodeBox2D.h"
|
||||
|
||||
#include <cstdlib>
|
||||
|
|
|
@ -56,7 +56,7 @@ public:
|
|||
|
||||
|
||||
addTest("Box2D - Basic", []() { return new (std::nothrow) Box2DTests(); });
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
||||
#if defined(CC_PLATFORM_PC)
|
||||
addTest("Box2D - TestBed", []() { return new (std::nothrow) Box2DTestBedTests(); });
|
||||
#endif
|
||||
addTest("Chipmunk2D - Basic", []() { return new ChipmunkTests(); });
|
||||
|
|
Loading…
Reference in New Issue