2011-11-23 15:51:30 +08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
2012-02-07 14:34:30 +08:00
|
|
|
|
2011-11-23 15:51:30 +08:00
|
|
|
include $(CLEAR_VARS)
|
2012-02-07 14:34:30 +08:00
|
|
|
|
2012-07-20 17:06:00 +08:00
|
|
|
LOCAL_MODULE := cocos_testcpp_common
|
2012-02-07 14:34:30 +08:00
|
|
|
|
2012-07-20 17:06:00 +08:00
|
|
|
LOCAL_MODULE_FILENAME := libtestcppcommon
|
2011-11-23 15:51:30 +08:00
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2012-07-20 17:06:00 +08:00
|
|
|
Classes/AccelerometerTest/AccelerometerTest.cpp \
|
|
|
|
Classes/ActionManagerTest/ActionManagerTest.cpp \
|
|
|
|
Classes/ActionsTest/ActionsTest.cpp \
|
|
|
|
Classes/ActionsEaseTest/ActionsEaseTest.cpp \
|
|
|
|
Classes/ActionsProgressTest/ActionsProgressTest.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-624.cpp \
|
|
|
|
Classes/BugsTest/Bug-886.cpp \
|
|
|
|
Classes/BugsTest/Bug-899.cpp \
|
|
|
|
Classes/BugsTest/Bug-914.cpp \
|
|
|
|
Classes/BugsTest/BugsTest.cpp \
|
|
|
|
Classes/BugsTest/Bug-458/Bug-458.cpp \
|
|
|
|
Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp \
|
2012-11-20 16:34:55 +08:00
|
|
|
Classes/ChipmunkTest/ChipmunkTest.cpp \
|
2012-07-20 17:06:00 +08:00
|
|
|
Classes/ClickAndMoveTest/ClickAndMoveTest.cpp \
|
2012-11-21 15:22:54 +08:00
|
|
|
Classes/ClippingNodeTest/ClippingNodeTest.cpp \
|
2012-07-20 17:06:00 +08:00
|
|
|
Classes/CocosDenshionTest/CocosDenshionTest.cpp \
|
|
|
|
Classes/CurlTest/CurlTest.cpp \
|
|
|
|
Classes/CurrentLanguageTest/CurrentLanguageTest.cpp \
|
|
|
|
Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp \
|
|
|
|
Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp \
|
|
|
|
Classes/EffectsTest/EffectsTest.cpp \
|
2013-06-14 14:34:50 +08:00
|
|
|
Classes/ExtensionsTest/ArmatureTest/ArmatureScene.cpp \
|
2012-07-20 17:06:00 +08:00
|
|
|
Classes/ExtensionsTest/ExtensionsTest.cpp \
|
|
|
|
Classes/ExtensionsTest/NotificationCenterTest/NotificationCenterTest.cpp \
|
|
|
|
Classes/ExtensionsTest/ControlExtensionTest/CCControlScene.cpp \
|
|
|
|
Classes/ExtensionsTest/ControlExtensionTest/CCControlSceneManager.cpp \
|
|
|
|
Classes/ExtensionsTest/ControlExtensionTest/CCControlButtonTest/CCControlButtonTest.cpp \
|
|
|
|
Classes/ExtensionsTest/ControlExtensionTest/CCControlColourPicker/CCControlColourPickerTest.cpp \
|
2012-09-25 18:00:06 +08:00
|
|
|
Classes/ExtensionsTest/ControlExtensionTest/CCControlPotentiometerTest/CCControlPotentiometerTest.cpp \
|
2012-07-20 17:06:00 +08:00
|
|
|
Classes/ExtensionsTest/ControlExtensionTest/CCControlSliderTest/CCControlSliderTest.cpp \
|
2012-09-25 18:00:06 +08:00
|
|
|
Classes/ExtensionsTest/ControlExtensionTest/CCControlStepperTest/CCControlStepperTest.cpp \
|
2012-07-20 17:06:00 +08:00
|
|
|
Classes/ExtensionsTest/ControlExtensionTest/CCControlSwitchTest/CCControlSwitchTest.cpp \
|
|
|
|
Classes/ExtensionsTest/CocosBuilderTest/CocosBuilderTest.cpp \
|
|
|
|
Classes/ExtensionsTest/CocosBuilderTest/HelloCocosBuilder/HelloCocosBuilderLayer.cpp \
|
|
|
|
Classes/ExtensionsTest/CocosBuilderTest/TestHeader/TestHeaderLayer.cpp \
|
|
|
|
Classes/ExtensionsTest/CocosBuilderTest/ButtonTest/ButtonTestLayer.cpp \
|
|
|
|
Classes/ExtensionsTest/CocosBuilderTest/MenuTest/MenuTestLayer.cpp \
|
2012-09-19 17:43:11 +08:00
|
|
|
Classes/ExtensionsTest/CocosBuilderTest/AnimationsTest/AnimationsTestLayer.cpp \
|
2013-03-19 16:59:39 +08:00
|
|
|
Classes/ExtensionsTest/CocosBuilderTest/TimelineCallbackTest/TimelineCallbackTestLayer.cpp \
|
2013-06-04 17:38:43 +08:00
|
|
|
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 \
|
2013-06-14 14:34:50 +08:00
|
|
|
Classes/ExtensionsTest/NetworkTest/HttpClientTest.cpp \
|
|
|
|
Classes/ExtensionsTest/NetworkTest/WebSocketTest.cpp \
|
Implements a socket.io client extension, adds a test case and updates the android makefiles.
Contains the following tasks:
-initial socket.io extension commit
-sioclientimpl subclasses websocket:delegate to respond to websocket events
-implement static connect methods and basic client creation
-move SocketIO class files into correct extension folder (network)
-create SocketIO test in TestCpp
-update project references
-add missing static modifier to connect method
-implement basic test methods
-update extensions tests with SocketIO test entry
-implement basic handshake and opensocket methods for SocketIO
-add Delegate class to handle callbacks, implement virtual Delegate methods in test
-implement socket and client registries for lookup when connecting to hosts and endpoints
-connect delegate onOpen method by separating impl creation from connection
-update test to demonstrate onOpen callback
-create send and emit methods, move SIOClient into header file, add send and emit methods to test
-implement basic socket.io message parsing
-improve logging for events and messages
-add logic to pull event name from payload
-schedule heartbeat to keep connection alive, scheduled for 90% of the heartbeat interval from the server for safety
-add onConnect handler to to catch socket.io onconnect vs websocket onopen
-add disconnect and disconnectFromEndpoint methods to properly disconnect and destroy objects
-modify SIOClientImpl to track _uri for easier lookup in registries
-connect handler for onMessage to message event from socket.io, modify onError handler to take a string instead of WebSocket error code
-create SIOEvent callback type, implement event registry in clients, add test for event registration and callback
-update SIOEvent to use std::function and c++11, utilize cocos2d CC_CALLBACK method to bind selectors, this ensures that the *this reference is properly passed
-check for connect before sending or emitting in the client, cleanup some codes
-change connect logic to reuse existing socket connections instead of opening a new one
-implements get and set Tag methods for clients for easy reference
-improve endpoint handling, add endpoint tests to test layer
-additional error handling within socket disconnect error and failure to open connection
-fixes extracting endpoint from socket.io messages (in cases of the connect message, where there is 1 less colon for the connect message to the default namespace). Also fixes connecting to the default namespace "/" in the connectToEndpoint method
-add disconnect and onClose handlers to client so that onClose is called in the delegate
-add disconnect test methods to test layers
-change c-style casts to static_casts when using a CCDICT_FOREACH
-remove some unneeded namespace completion
-add usage documentation
-add handling for disconnect from server, cleanup some codes
-update comments and documentation in the socketiotest
-update includes so the NDK doesn't complain when compiling with c++11
-add socketio.cpp and test.cpp to the android makefiles
-update test URL to my public server, test script can also be found in my repo at https://github.com/hannon235/socket.io-testserver.git
Signed-off-by: Chris Hannon <himynameschris@gmail.com>
2013-06-26 10:40:01 +08:00
|
|
|
Classes/ExtensionsTest/NetworkTest/SocketIOTest.cpp \
|
2013-06-14 14:34:50 +08:00
|
|
|
Classes/ExtensionsTest/EditBoxTest/EditBoxTest.cpp \
|
|
|
|
Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp \
|
|
|
|
Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp \
|
2013-07-11 14:13:01 +08:00
|
|
|
Classes/ExtensionsTest/Scale9SpriteTest/Scale9SpriteTest.cpp \
|
2012-07-20 17:06:00 +08:00
|
|
|
Classes/FontTest/FontTest.cpp \
|
|
|
|
Classes/IntervalTest/IntervalTest.cpp \
|
|
|
|
Classes/KeypadTest/KeypadTest.cpp \
|
|
|
|
Classes/LabelTest/LabelTest.cpp \
|
|
|
|
Classes/LayerTest/LayerTest.cpp \
|
|
|
|
Classes/NodeTest/NodeTest.cpp \
|
|
|
|
Classes/TextInputTest/TextInputTest.cpp \
|
|
|
|
Classes/MenuTest/MenuTest.cpp \
|
|
|
|
Classes/MotionStreakTest/MotionStreakTest.cpp \
|
|
|
|
Classes/MutiTouchTest/MutiTouchTest.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 \
|
2013-04-26 14:02:13 +08:00
|
|
|
Classes/SpineTest/SpineTest.cpp \
|
2012-07-20 17:06:00 +08:00
|
|
|
Classes/SpriteTest/SpriteTest.cpp \
|
|
|
|
Classes/TextureCacheTest/TextureCacheTest.cpp \
|
|
|
|
Classes/Texture2dTest/Texture2dTest.cpp \
|
2013-05-08 10:53:24 +08:00
|
|
|
Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp \
|
2012-07-20 17:06:00 +08:00
|
|
|
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 \
|
2013-01-28 17:44:53 +08:00
|
|
|
Classes/FileUtilsTest/FileUtilsTest.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 \
|
2012-07-20 17:06:00 +08:00
|
|
|
Classes/controller.cpp \
|
|
|
|
Classes/testBasic.cpp \
|
2012-10-23 17:48:50 +08:00
|
|
|
Classes/AppDelegate.cpp \
|
2013-06-07 14:37:06 +08:00
|
|
|
Classes/BaseTest.cpp \
|
2012-10-23 17:48:50 +08:00
|
|
|
Classes/VisibleRect.cpp
|
2011-11-23 15:51:30 +08:00
|
|
|
|
2013-07-11 15:09:13 +08:00
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH)/Classes
|
|
|
|
|
2012-05-02 12:00:39 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += box2d_static
|
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static
|
2012-07-20 17:06:00 +08:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
|
2012-02-07 14:34:30 +08:00
|
|
|
|
|
|
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
2011-11-23 15:51:30 +08:00
|
|
|
|
2012-02-09 15:49:14 +08:00
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2012-02-07 14:34:30 +08:00
|
|
|
|
2012-07-23 11:07:31 +08:00
|
|
|
$(call import-module,CocosDenshion/android)
|
2012-07-20 17:06:00 +08:00
|
|
|
$(call import-module,external/Box2D)
|
|
|
|
$(call import-module,external/chipmunk)
|
2012-05-02 12:00:39 +08:00
|
|
|
$(call import-module,cocos2dx)
|
2012-07-20 17:06:00 +08:00
|
|
|
$(call import-module,extensions)
|