2013-03-09 02:00:21 +08:00
|
|
|
EXECUTABLE = TestCpp
|
2013-03-03 10:30:39 +08:00
|
|
|
|
2013-06-29 11:44:14 +08:00
|
|
|
DEFINES += -DCC_KEYBOARD_SUPPORT
|
2013-06-02 10:28:46 +08:00
|
|
|
|
2013-10-22 18:01:56 +08:00
|
|
|
INCLUDES = -I../../../../external \
|
|
|
|
-I../../../../cocos/editor-support \
|
|
|
|
-I../../../../cocos \
|
|
|
|
-I../Classes
|
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
SOURCES = ../Classes/AccelerometerTest/AccelerometerTest.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../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 \
|
2013-09-10 09:53:15 +08:00
|
|
|
../Classes/ExtensionsTest/CocoStudioArmatureTest/ArmatureScene.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioComponentsTest/ComponentsTestScene.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioComponentsTest/EnemyController.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioComponentsTest/GameOverScene.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioComponentsTest/PlayerController.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioComponentsTest/ProjectileController.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioComponentsTest/SceneController.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioSceneTest/SceneEditorTest.cpp \
|
2013-09-17 10:52:42 +08:00
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UIScene.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UISceneManager.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UIDragPanelTest/UIDragPanelTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UILabelAtlasTest/UILabelAtlasTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UILabelBMFontTest/UILabelBMFontTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UILabelTest/UILabelTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UINodeContainerTest/UINodeContainerTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UIPanelTest/UIPanelTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UITextAreaTest/UITextAreaTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UITextButtonTest/UITextButtonTest.cpp \
|
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp \
|
2013-09-16 22:15:29 +08:00
|
|
|
../Classes/ExtensionsTest/CocoStudioGUITest/CocosGUIScene.cpp \
|
2013-07-11 14:13:01 +08:00
|
|
|
../Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.cpp \
|
2013-09-13 18:08:00 +08:00
|
|
|
../Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../Classes/FontTest/FontTest.cpp \
|
|
|
|
../Classes/IntervalTest/IntervalTest.cpp \
|
2013-05-31 20:29:32 +08:00
|
|
|
../Classes/KeyboardTest/KeyboardTest.cpp \
|
2013-10-17 13:36:00 +08:00
|
|
|
../Classes/InputTest/MouseTest.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../Classes/KeypadTest/KeypadTest.cpp \
|
|
|
|
../Classes/LabelTest/LabelTest.cpp \
|
2013-08-15 21:43:58 +08:00
|
|
|
../Classes/LabelTest/LabelTestNew.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../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 \
|
2013-09-06 11:44:10 +08:00
|
|
|
../Classes/PerformanceTest/PerformanceAllocTest.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../Classes/PerformanceTest/PerformanceNodeChildrenTest.cpp \
|
|
|
|
../Classes/PerformanceTest/PerformanceParticleTest.cpp \
|
|
|
|
../Classes/PerformanceTest/PerformanceSpriteTest.cpp \
|
|
|
|
../Classes/PerformanceTest/PerformanceTest.cpp \
|
|
|
|
../Classes/PerformanceTest/PerformanceTextureTest.cpp \
|
|
|
|
../Classes/PerformanceTest/PerformanceTouchesTest.cpp \
|
2013-09-17 10:41:08 +08:00
|
|
|
../Classes/PhysicsTest/PhysicsTest.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../Classes/RenderTextureTest/RenderTextureTest.cpp \
|
|
|
|
../Classes/RotateWorldTest/RotateWorldTest.cpp \
|
|
|
|
../Classes/SceneTest/SceneTest.cpp \
|
|
|
|
../Classes/SchedulerTest/SchedulerTest.cpp \
|
|
|
|
../Classes/ShaderTest/ShaderTest.cpp \
|
2013-09-10 11:00:57 +08:00
|
|
|
../Classes/ShaderTest/ShaderTest2.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../Classes/SpriteTest/SpriteTest.cpp \
|
|
|
|
../Classes/TextInputTest/TextInputTest.cpp \
|
|
|
|
../Classes/Texture2dTest/Texture2dTest.cpp \
|
2013-05-08 10:53:24 +08:00
|
|
|
../Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../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 \
|
2013-04-24 14:58:11 +08:00
|
|
|
../Classes/SpineTest/SpineTest.cpp \
|
2013-05-10 15:37:40 +08:00
|
|
|
../Classes/DataVisitorTest/DataVisitorTest.cpp \
|
2013-05-23 10:09:35 +08:00
|
|
|
../Classes/ConfigurationTest/ConfigurationTest.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../Classes/controller.cpp \
|
|
|
|
../Classes/testBasic.cpp \
|
|
|
|
../Classes/AppDelegate.cpp \
|
2013-06-07 14:37:06 +08:00
|
|
|
../Classes/BaseTest.cpp \
|
2013-04-24 15:15:25 +08:00
|
|
|
../Classes/VisibleRect.cpp \
|
|
|
|
main.cpp
|
2013-03-03 10:30:39 +08:00
|
|
|
|
2013-08-06 11:34:48 +08:00
|
|
|
SHAREDLIBS = -lcocos2d -lcocosdenshion -lcurl -lpng
|
2013-03-03 10:30:39 +08:00
|
|
|
COCOS_LIBS = $(LIB_DIR)/libcocos2d.so $(LIB_DIR)/libcocosdenshion.so
|
|
|
|
|
|
|
|
|
2013-10-22 18:01:56 +08:00
|
|
|
include ../../../../cocos/2d/cocos2dx.mk
|
2013-03-03 10:30:39 +08:00
|
|
|
|
|
|
|
STATICLIBS += \
|
2013-10-22 18:01:56 +08:00
|
|
|
$(STATICLIBS_DIR)/curl/prebuilt/linux/$(POSTFIX)/libcurl.a \
|
2013-04-24 15:15:25 +08:00
|
|
|
$(LIB_DIR)/libextension.a \
|
|
|
|
$(LIB_DIR)/libbox2d.a \
|
2013-10-22 18:01:56 +08:00
|
|
|
$(LIB_DIR)/libchipmunk.a \
|
|
|
|
$(LIB_DIR)/libgui.a \
|
|
|
|
$(LIB_DIR)/libcocosbuilder.a \
|
|
|
|
$(LIB_DIR)/libspine.a \
|
|
|
|
$(LIB_DIR)/libcocostudio.a \
|
|
|
|
$(LIB_DIR)/libnetwork.a
|
2013-03-03 10:30:39 +08:00
|
|
|
|
2012-08-02 13:02:59 +08:00
|
|
|
####### Build rules
|
2013-03-03 10:30:39 +08:00
|
|
|
$(TARGET): $(OBJECTS) $(STATICLIBS) $(COCOS_LIBS) $(CORE_MAKEFILE_LIST)
|
2013-04-24 15:15:25 +08:00
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_LINK)$(CXX) $(CXXFLAGS) $(OBJECTS) -o $@ $(SHAREDLIBS) $(STATICLIBS) $(LIBS)
|
2012-08-27 16:43:02 +08:00
|
|
|
|
2012-08-02 13:02:59 +08:00
|
|
|
####### Compile
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: ../%.cpp $(CORE_MAKEFILE_LIST)
|
2013-04-24 15:15:25 +08:00
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|
2012-09-21 13:34:05 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: %.cpp $(CORE_MAKEFILE_LIST)
|
2013-04-24 15:15:25 +08:00
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CXX)$(CXX) $(CXXFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|
2012-08-27 16:43:02 +08:00
|
|
|
|
2013-03-03 10:30:39 +08:00
|
|
|
$(OBJ_DIR)/%.o: %.c $(CORE_MAKEFILE_LIST)
|
2013-04-24 15:15:25 +08:00
|
|
|
@mkdir -p $(@D)
|
|
|
|
$(LOG_CC)$(CC) $(CCFLAGS) $(INCLUDES) $(DEFINES) -c $< -o $@
|