From 0d0234de2a61ac02ba91b0afd9ca706c093e3d06 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 20 Nov 2012 16:22:14 +0800 Subject: [PATCH] issue #1564: Updated Project configurations for android and win32 since physics_nodes was moved to Extension folder. --- extensions/Android.mk | 4 +++- extensions/cocos-ext.h | 11 +++++++++++ extensions/proj.win32/libExtensions.vcxproj | 10 +++++++--- .../proj.win32/libExtensions.vcxproj.filters | 15 +++++++++++++++ 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/extensions/Android.mk b/extensions/Android.mk index f8dd0a463d..e5a8a7316e 100644 --- a/extensions/Android.mk +++ b/extensions/Android.mk @@ -47,7 +47,9 @@ GUI/CCScrollView/CCTableViewCell.cpp \ GUI/CCScrollView/CCSorting.cpp \ GUI/CCEditBox/CCEditBox.cpp \ GUI/CCEditBox/CCEditBoxImplAndroid.cpp \ -network/HttpClient.cpp +network/HttpClient.cpp \ +physics_nodes/CCPhysicsDebugNode.cpp \ +physics_nodes/CCPhysicsSprite.cpp LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static LOCAL_WHOLE_STATIC_LIBRARIES += cocos_curl_static diff --git a/extensions/cocos-ext.h b/extensions/cocos-ext.h index 55d9bb6f04..3a5e92d30e 100644 --- a/extensions/cocos-ext.h +++ b/extensions/cocos-ext.h @@ -41,5 +41,16 @@ #include "network/HttpResponse.h" #include "network/HttpClient.h" +// Physics integration +#if CC_ENABLE_CHIPMUNK_INTEGRATION +#include "physics_nodes/CCPhysicsDebugNode.h" +#include "physics_nodes/CCPhysicsSprite.h" +#endif + +#if CC_ENABLE_BOX2D_INTEGRATION +#include "physics_nodes/CCPhysicsDebugNode.h" +#include "physics_nodes/CCPhysicsSprite.h" +#endif + #endif /* __COCOS2D_EXT_H__ */ diff --git a/extensions/proj.win32/libExtensions.vcxproj b/extensions/proj.win32/libExtensions.vcxproj index e2b74612a9..54ab75574a 100644 --- a/extensions/proj.win32/libExtensions.vcxproj +++ b/extensions/proj.win32/libExtensions.vcxproj @@ -51,8 +51,8 @@ Disabled - $(ProjectDir)..\..\cocos2dx;$(ProjectDir)..\..\cocos2dx\include;$(ProjectDir)..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\OGLES;..\;%(AdditionalIncludeDirectories) - WIN32;_WINDOWS;_DEBUG;_LIB;COCOS2D_DEBUG=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) + $(ProjectDir)..\..\external\chipmunk\include\chipmunk;$(ProjectDir)..\..\external;$(ProjectDir)..\..\cocos2dx;$(ProjectDir)..\..\cocos2dx\include;$(ProjectDir)..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\OGLES;..\;%(AdditionalIncludeDirectories) + WIN32;_WINDOWS;_DEBUG;_LIB;COCOS2D_DEBUG=1;CC_ENABLE_CHIPMUNK_INTEGRATION=1;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) true EnableFastChecks MultiThreadedDebugDLL @@ -67,7 +67,7 @@ MaxSpeed true - $(ProjectDir)..\..\cocos2dx;$(ProjectDir)..\..\cocos2dx\include;$(ProjectDir)..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\OGLES;..\;%(AdditionalIncludeDirectories) + $(ProjectDir)..\..\external;$(ProjectDir)..\..\cocos2dx;$(ProjectDir)..\..\cocos2dx\include;$(ProjectDir)..\..\cocos2dx\kazmath\include;$(ProjectDir)..\..\cocos2dx\platform\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\pthread;$(ProjectDir)..\..\cocos2dx\platform\third_party\win32\OGLES;..\;%(AdditionalIncludeDirectories) WIN32;_WINDOWS;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;_SCL_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreadedDLL true @@ -120,6 +120,8 @@ + + @@ -172,6 +174,8 @@ + + diff --git a/extensions/proj.win32/libExtensions.vcxproj.filters b/extensions/proj.win32/libExtensions.vcxproj.filters index 5ca80b20d3..a4a9bfadb1 100644 --- a/extensions/proj.win32/libExtensions.vcxproj.filters +++ b/extensions/proj.win32/libExtensions.vcxproj.filters @@ -16,6 +16,9 @@ {2a7741ff-87a5-41c8-8e51-d7a1cf0c8e4d} + + {d5806151-7ae1-4fef-af5a-2fa1d1c7377b} + @@ -141,6 +144,12 @@ GUI\CCControlExtension + + physics_nodes + + + physics_nodes + @@ -289,5 +298,11 @@ GUI\CCControlExtension + + physics_nodes + + + physics_nodes + \ No newline at end of file