mirror of https://github.com/axmolengine/axmol.git
Qt 5: Build test application (Cpp/TestCpp)
This commit is contained in:
parent
8044c52d6d
commit
366dbeda31
|
@ -15,4 +15,5 @@ SUBDIRS += extensions/proj.qt5/extensions.pro
|
|||
# Examples
|
||||
SUBDIRS += samples/Cpp/HelloCpp/proj.qt5/HelloCpp.pro
|
||||
SUBDIRS += samples/Cpp/SimpleGame/proj.qt5/SimpleGame.pro
|
||||
SUBDIRS += samples/Cpp/TestCpp/proj.qt5/TestCpp.pro
|
||||
|
||||
|
|
|
@ -32,7 +32,11 @@ LINK_AGAINST_COCOS2DX = -L$${LIB_OUTPUT_DIR} -lcocos2d $${COCOS2DX_SYSTEM_LIBS}
|
|||
# CocosDenshion (audio library)
|
||||
QT += multimedia
|
||||
INCLUDEPATH += $${PWD}/../../CocosDenshion/include
|
||||
LINK_AGAINST_COCOSDENSHION = -L$${LIB_OUTPUT_DIR} -lcocosdenshion
|
||||
LINK_AGAINST_COCOSDENSHION = -lcocosdenshion
|
||||
|
||||
# Extensions library
|
||||
INCLUDEPATH += $${PWD}/../../extensions
|
||||
LINK_AGAINST_COCOSEXTENSION = -lextension -lbox2d -lchipmunk -lcurl
|
||||
|
||||
# Physics engines (pick one)
|
||||
DEFINES += CC_ENABLE_CHIPMUNK_INTEGRATION
|
||||
|
|
|
@ -0,0 +1,113 @@
|
|||
|
||||
include(../../../../cocos2dx/proj.qt5/common.pri)
|
||||
|
||||
TARGET = TestCpp
|
||||
|
||||
INCLUDEPATH += ..
|
||||
INCLUDEPATH += ../Classes
|
||||
|
||||
SOURCES += main.cpp
|
||||
SOURCES += ../Classes/AccelerometerTest/AccelerometerTest.cpp \
|
||||
../Classes/ActionManagerTest/ActionManagerTest.cpp \
|
||||
../Classes/ActionsEaseTest/ActionsEaseTest.cpp \
|
||||
../Classes/ActionsProgressTest/ActionsProgressTest.cpp \
|
||||
../Classes/ActionsTest/ActionsTest.cpp \
|
||||
../Classes/Box2DTest/Box2dTest.cpp \
|
||||
../Classes/Box2DTestBed/Box2dView.cpp \
|
||||
../Classes/Box2DTestBed/GLES-Render.cpp \
|
||||
../Classes/Box2DTestBed/Test.cpp \
|
||||
../Classes/Box2DTestBed/TestEntries.cpp \
|
||||
../Classes/BugsTest/Bug-1159.cpp \
|
||||
../Classes/BugsTest/Bug-1174.cpp \
|
||||
../Classes/BugsTest/Bug-350.cpp \
|
||||
../Classes/BugsTest/Bug-422.cpp \
|
||||
../Classes/BugsTest/Bug-458/Bug-458.cpp \
|
||||
../Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp \
|
||||
../Classes/BugsTest/Bug-624.cpp \
|
||||
../Classes/BugsTest/Bug-886.cpp \
|
||||
../Classes/BugsTest/Bug-899.cpp \
|
||||
../Classes/BugsTest/Bug-914.cpp \
|
||||
../Classes/BugsTest/BugsTest.cpp \
|
||||
../Classes/ChipmunkTest/ChipmunkTest.cpp \
|
||||
../Classes/ClickAndMoveTest/ClickAndMoveTest.cpp \
|
||||
../Classes/ClippingNodeTest/ClippingNodeTest.cpp \
|
||||
../Classes/CocosDenshionTest/CocosDenshionTest.cpp \
|
||||
../Classes/CurlTest/CurlTest.cpp \
|
||||
../Classes/CurrentLanguageTest/CurrentLanguageTest.cpp \
|
||||
../Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp \
|
||||
../Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp \
|
||||
../Classes/EffectsTest/EffectsTest.cpp \
|
||||
../Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.cpp \
|
||||
../Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.cpp \
|
||||
../Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.cpp \
|
||||
../Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp \
|
||||
../Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.cpp \
|
||||
../Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.cpp \
|
||||
../Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.cpp \
|
||||
../Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.cpp \
|
||||
../Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.cpp \
|
||||
../Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.cpp \
|
||||
../Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.cpp \
|
||||
../Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.cpp \
|
||||
../Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.cpp \
|
||||
../Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.cpp \
|
||||
../Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.cpp \
|
||||
../Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp \
|
||||
../Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp \
|
||||
../Classes/ExtensionsTest/ExtensionsTest.cpp \
|
||||
../Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.cpp \
|
||||
../Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp \
|
||||
../Classes/ExtensionsTest/ComponentsTest/ComponentsTestScene.cpp \
|
||||
../Classes/ExtensionsTest/ComponentsTest/EnemyController.cpp \
|
||||
../Classes/ExtensionsTest/ComponentsTest/GameOverScene.cpp \
|
||||
../Classes/ExtensionsTest/ComponentsTest/PlayerController.cpp \
|
||||
../Classes/ExtensionsTest/ComponentsTest/ProjectileController.cpp \
|
||||
../Classes/ExtensionsTest/ComponentsTest/SceneController.cpp \
|
||||
../Classes/ExtensionsTest/ArmatureTest/ArmatureScene.cpp \
|
||||
../Classes/FontTest/FontTest.cpp \
|
||||
../Classes/IntervalTest/IntervalTest.cpp \
|
||||
../Classes/KeypadTest/KeypadTest.cpp \
|
||||
../Classes/LabelTest/LabelTest.cpp \
|
||||
../Classes/LayerTest/LayerTest.cpp \
|
||||
../Classes/MenuTest/MenuTest.cpp \
|
||||
../Classes/MotionStreakTest/MotionStreakTest.cpp \
|
||||
../Classes/MutiTouchTest/MutiTouchTest.cpp \
|
||||
../Classes/NodeTest/NodeTest.cpp \
|
||||
../Classes/ParallaxTest/ParallaxTest.cpp \
|
||||
../Classes/ParticleTest/ParticleTest.cpp \
|
||||
../Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp \
|
||||
../Classes/PerformanceTest/PerformanceParticleTest.cpp \
|
||||
../Classes/PerformanceTest/PerformanceSpriteTest.cpp \
|
||||
../Classes/PerformanceTest/PerformanceTest.cpp \
|
||||
../Classes/PerformanceTest/PerformanceTextureTest.cpp \
|
||||
../Classes/PerformanceTest/PerformanceTouchesTest.cpp \
|
||||
../Classes/RenderTextureTest/RenderTextureTest.cpp \
|
||||
../Classes/RotateWorldTest/RotateWorldTest.cpp \
|
||||
../Classes/SceneTest/SceneTest.cpp \
|
||||
../Classes/SchedulerTest/SchedulerTest.cpp \
|
||||
../Classes/ShaderTest/ShaderTest.cpp \
|
||||
../Classes/SpriteTest/SpriteTest.cpp \
|
||||
../Classes/TextInputTest/TextInputTest.cpp \
|
||||
../Classes/Texture2dTest/Texture2dTest.cpp \
|
||||
../Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp \
|
||||
../Classes/TextureCacheTest/TextureCacheTest.cpp \
|
||||
../Classes/TileMapTest/TileMapTest.cpp \
|
||||
../Classes/TouchesTest/Ball.cpp \
|
||||
../Classes/TouchesTest/Paddle.cpp \
|
||||
../Classes/TouchesTest/TouchesTest.cpp \
|
||||
../Classes/TransitionsTest/TransitionsTest.cpp \
|
||||
../Classes/UserDefaultTest/UserDefaultTest.cpp \
|
||||
../Classes/ZwoptexTest/ZwoptexTest.cpp \
|
||||
../Classes/FileUtilsTest/FileUtilsTest.cpp \
|
||||
../Classes/SpineTest/SpineTest.cpp \
|
||||
../Classes/DataVisitorTest/DataVisitorTest.cpp \
|
||||
../Classes/ConfigurationTest/ConfigurationTest.cpp \
|
||||
../Classes/controller.cpp \
|
||||
../Classes/testBasic.cpp \
|
||||
../Classes/AppDelegate.cpp \
|
||||
../Classes/VisibleRect.cpp
|
||||
|
||||
LIBS += $${LINK_AGAINST_COCOS2DX}
|
||||
LIBS += $${LINK_AGAINST_COCOSDENSHION}
|
||||
LIBS += $${LINK_AGAINST_COCOSEXTENSION}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
#include "../Classes/AppDelegate.h"
|
||||
#include "cocos2d.h"
|
||||
#include "CCEGLView.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <string>
|
||||
|
||||
USING_NS_CC;
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
// create the application instance
|
||||
AppDelegate app;
|
||||
CCEGLView* eglView = CCEGLView::sharedOpenGLView();
|
||||
eglView->setFrameSize(800, 480);
|
||||
return CCApplication::sharedApplication()->run();
|
||||
}
|
Loading…
Reference in New Issue