diff --git a/HelloWorld/android/jni/helloworld/Android.mk b/HelloWorld/android/jni/helloworld/Android.mk index af15d39e8f97..738111fb7d59 100644 --- a/HelloWorld/android/jni/helloworld/Android.mk +++ b/HelloWorld/android/jni/helloworld/Android.mk @@ -7,9 +7,9 @@ LOCAL_SRC_FILES := main.cpp \ ../../../HelloWorldScene.cpp LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \ + $(LOCAL_PATH)/../../../../cocos2dx/platform \ $(LOCAL_PATH)/../../../../cocos2dx/include \ - $(LOCAL_PATH)/../../.. \ - $(LOCAL_PATH)/../../../../platform_support/include + $(LOCAL_PATH)/../../.. LOCAL_LDLIBS := -L$(LOCAL_PATH)/../../libs/armeabi -lcocos2d -llog diff --git a/HelloWorld/uphone/HelloWorld.uphone.vcproj b/HelloWorld/uphone/HelloWorld.uphone.vcproj index 050ba87cc181..18eae1cb9266 100644 --- a/HelloWorld/uphone/HelloWorld.uphone.vcproj +++ b/HelloWorld/uphone/HelloWorld.uphone.vcproj @@ -4,6 +4,7 @@ Version="9.00" Name="HelloWorld" ProjectGUID="{74589012-5241-4918-997A-C0105ABD4DEC}" + RootNamespace="HelloWorld" TargetFrameworkVersion="131072" > @@ -40,7 +41,7 @@ * m_pTextures; - NSLock *m_pDictLock; - NSLock *m_pContextLock; + CCLock *m_pDictLock; + CCLock *m_pContextLock; private: // @todo void addImageWithAsyncObject(CCAsyncObject* async); diff --git a/cocos2dx/include/FileUtils.h b/cocos2dx/include/FileUtils.h index f24f7f99cfb4..3462a0ae4c3d 100644 --- a/cocos2dx/include/FileUtils.h +++ b/cocos2dx/include/FileUtils.h @@ -25,7 +25,8 @@ THE SOFTWARE. #ifndef __SUPPORT_FILE_SUPPORT_FILEUTILS_H__ #define __SUPPORT_FILE_SUPPORT_FILEUTILS_H__ -#include "ccxString.h" +#include "CCCommon.h" +#include namespace cocos2d { @@ -55,7 +56,7 @@ class CC_DLL FileUtils @returns const char * without the HD suffix @since v0.99.5 */ - static ccxString& ccRemoveHDSuffixFromFile(ccxString& path); + static std::string& ccRemoveHDSuffixFromFile(std::string& path); }; } // namespace cocos2d diff --git a/platform_support/src/CCCommon.cpp b/cocos2dx/platform/CCCommon.cpp similarity index 100% rename from platform_support/src/CCCommon.cpp rename to cocos2dx/platform/CCCommon.cpp diff --git a/platform_support/include/CCCommon.h b/cocos2dx/platform/CCCommon.h similarity index 94% rename from platform_support/include/CCCommon.h rename to cocos2dx/platform/CCCommon.h index 1af9d2245e54..4e7e7d2668d2 100644 --- a/platform_support/include/CCCommon.h +++ b/cocos2dx/platform/CCCommon.h @@ -45,7 +45,7 @@ static const int kMaxLogLen = 255; /** @brief Output Debug message. */ -void CC_DLL_PS CCLog(const char * pszFormat, ...); +void CC_DLL CCLog(const char * pszFormat, ...); struct ccxNullDeleter { template< class TPTR > void operator()(TPTR ) {} }; struct ccxNewDeleter { template< class TPTR > void operator()(TPTR p) { delete p; } }; @@ -83,7 +83,7 @@ class ccxScopedPtr // noncopyable @brief A simple scoped point for array. */ template< class T, class D = ccxNewArrayDeleter > -class CC_DLL_PS ccxScopedArray // noncopyable +class CC_DLL ccxScopedArray // noncopyable : private D { public: diff --git a/platform_support/src/ccxGL.cpp b/cocos2dx/platform/CCGL.cpp similarity index 98% rename from platform_support/src/ccxGL.cpp rename to cocos2dx/platform/CCGL.cpp index 83b2bbb7acbc..b50eaf176d97 100644 --- a/platform_support/src/ccxGL.cpp +++ b/cocos2dx/platform/CCGL.cpp @@ -1,33 +1,33 @@ -/**************************************************************************** -Copyright (c) 2010 cocos2d-x.org - -http://www.cocos2d-x.org - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -****************************************************************************/ - -#include "ccxGL.h" - -#if defined(CC_PLATFORM_MOBILE) - -#include "CCStdC.h" - +/**************************************************************************** +Copyright (c) 2010 cocos2d-x.org + +http://www.cocos2d-x.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +****************************************************************************/ + +#include "CCGL.h" + +#if defined(CC_PLATFORM_MOBILE) + +#include "CCStdC.h" + NS_CC_BEGIN; void gluPerspective(GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar) @@ -126,8 +126,8 @@ void gluLookAt(float fEyeX, float fEyeY, float fEyeZ, /* Translate Eye to Origin */ glTranslatef(-fEyeX, -fEyeY, -fEyeZ); -} - -NS_CC_END; - -#endif // CC_PLATFORM_MOBILE +} + +NS_CC_END; + +#endif // CC_PLATFORM_MOBILE diff --git a/cocos2dx/platform/CCGL.h b/cocos2dx/platform/CCGL.h index 3f705aaf15cb..e4faf2c4fd66 100644 --- a/cocos2dx/platform/CCGL.h +++ b/cocos2dx/platform/CCGL.h @@ -1,25 +1,25 @@ -/**************************************************************************** -Copyright (c) 2010 cocos2d-x.org - -http://www.cocos2d-x.org - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +/**************************************************************************** +Copyright (c) 2010 cocos2d-x.org + +http://www.cocos2d-x.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. ****************************************************************************/ #ifndef __PLATFOMR_CCGL_H__ @@ -29,9 +29,8 @@ THE SOFTWARE. // Common layer for OpenGL stuff // -#include "ccxGL.h" -#include "CCEGLView.h" - +#include "CCEGLView.h" + // iOS #if defined(CC_PLATFORM_MOBILE) #define CC_GLVIEW cocos2d::CCEGLView @@ -70,4 +69,51 @@ THE SOFTWARE. #endif +#include "CCCommon.h" + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) +#include "OpenGLES/ES1/gl.h" +#include "OpenGLES/ES1/glext.h" +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) +#include +#include +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) +#include +#include +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_UPHONE) +#include +#include +#endif + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) +#include +#include +#endif + +#if defined(CC_PLATFORM_MOBILE) + +NS_CC_BEGIN; + +/* +OpenGL GLU implementation +*/ + +/** OpenGL gluLookAt implementation */ +void CC_DLL gluLookAt(GLfloat fEyeX, GLfloat fEyeY, GLfloat fEyeZ, + GLfloat fLookAtX, GLfloat fLookAtY, GLfloat fLookAtZ, + GLfloat fUpX, GLfloat fUpY, GLfloat fUpZ); + +/** OpenGL gluPerspective implementation */ +void CC_DLL gluPerspective(GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar); + +NS_CC_END; + +#endif + #endif // __PLATFOMR_CCGL_H__ diff --git a/platform_support/src/CCImage.cpp b/cocos2dx/platform/CCImage.cpp similarity index 94% rename from platform_support/src/CCImage.cpp rename to cocos2dx/platform/CCImage.cpp index 10d81a916c99..0dd58d34b307 100644 --- a/platform_support/src/CCImage.cpp +++ b/cocos2dx/platform/CCImage.cpp @@ -24,9 +24,10 @@ THE SOFTWARE. #include "CCImage.h" -#include "ccxString.h" +#include "CCCommon.h" #include "CCStdC.h" #include "png.h" +#include #define QGLOBAL_H // defined for uphone #include "jpeglib.h" @@ -62,7 +63,7 @@ static void pngReadCallback(png_structp png_ptr, png_bytep data, png_size_t leng NS_CC_BEGIN; -static void CCMessageBox(const ccxString& msg, const ccxString& title); +static void CCMessageBox(const std::string& msg, const std::string& title); ////////////////////////////////////////////////////////////////////////// // Impliment CCImage @@ -118,8 +119,8 @@ bool CCImage::initWithImageFile(const char * strPath, EImageFormat eImgFmt/* = e } if (! bRet && CCImage::getIsPopupNotify()) { - ccxString title = "cocos2d-x error!"; - ccxString msg = "Load "; + std::string title = "cocos2d-x error!"; + std::string msg = "Load "; msg.append(strPath).append(" failed!"); CCMessageBox(msg, title); diff --git a/platform_support/include/CCImage.h b/cocos2dx/platform/CCImage.h similarity index 96% rename from platform_support/include/CCImage.h rename to cocos2dx/platform/CCImage.h index 2cdbcfb64f09..8f70d404bd4a 100644 --- a/platform_support/include/CCImage.h +++ b/cocos2dx/platform/CCImage.h @@ -29,7 +29,7 @@ THE SOFTWARE. NS_CC_BEGIN; -class CC_DLL_PS CCImage +class CC_DLL CCImage { public: CCImage(); diff --git a/platform_support/include/CCLibxml2.h b/cocos2dx/platform/CCLibxml2.h similarity index 100% rename from platform_support/include/CCLibxml2.h rename to cocos2dx/platform/CCLibxml2.h diff --git a/platform_support/include/CCPlatformConfig.h b/cocos2dx/platform/CCPlatformConfig.h similarity index 95% rename from platform_support/include/CCPlatformConfig.h rename to cocos2dx/platform/CCPlatformConfig.h index d62163a5c5cf..fa80b648727f 100644 --- a/platform_support/include/CCPlatformConfig.h +++ b/cocos2dx/platform/CCPlatformConfig.h @@ -37,7 +37,7 @@ There are config below: // pre configure ////////////////////////////////////////////////////////////////////////// -// define supported target platform macro which ccx uses. +// define supported target platform macro which CC uses. #define CC_PLATFORM_UNKNOWN 0 #define CC_PLATFORM_IOS 1 #define CC_PLATFORM_MAC 2 diff --git a/cocos2dx/platform/CCPlatformMacros.h b/cocos2dx/platform/CCPlatformMacros.h index 4fbd06002d98..436e7a72b3be 100644 --- a/cocos2dx/platform/CCPlatformMacros.h +++ b/cocos2dx/platform/CCPlatformMacros.h @@ -37,16 +37,137 @@ #include "platform/MacGLView.h" #endif -/** @def CC_ENABLE_CACHE_TEXTTURE_DATA -Enable it if you want to cache the texture data. -Basically,it's only enabled in android - -It's new in cocos2d-x since v0.99.5 -*/ -#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) - #define CC_ENABLE_CACHE_TEXTTURE_DATA 1 -#else - #define CC_ENABLE_CACHE_TEXTTURE_DATA 0 +/** @def CC_ENABLE_CACHE_TEXTTURE_DATA +Enable it if you want to cache the texture data. +Basically,it's only enabled in android + +It's new in cocos2d-x since v0.99.5 +*/ +#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) + #define CC_ENABLE_CACHE_TEXTTURE_DATA 1 +#else + #define CC_ENABLE_CACHE_TEXTTURE_DATA 0 #endif + +// generic macros + +// namespace cocos2d {} +#define NS_CC_BEGIN namespace cocos2d { +#define NS_CC_END } +#define USING_NS_CC using namespace cocos2d + +/** CC_PROPERTY_READONLY is used to declare a protected variable. + We can use getter to read the variable. + @param varType : the type of variable. + @param varName : variable name. + @param funName : "get + funName" is the name of the getter. + @warning : The getter is a public virtual function, you should rewrite it first. + The variables and methods declared after CC_PROPERTY_READONLY are all public. + If you need protected or private, please declare. + */ +#define CC_PROPERTY_READONLY(varType, varName, funName)\ +protected: varType varName;\ +public: virtual varType get##funName(void); + +/** CC_PROPERTY is used to declare a protected variable. + We can use getter to read the variable, and use the setter to change the variable. + @param varType : the type of variable. + @param varName : variable name. + @param funName : "get + funName" is the name of the getter. + "set + funName" is the name of the setter. + @warning : The getter and setter are public virtual functions, you should rewrite them first. + The variables and methods declared after CC_PROPERTY are all public. + If you need protected or private, please declare. + */ +#define CC_PROPERTY(varType, varName, funName)\ +protected: varType varName;\ +public: virtual varType get##funName(void);\ +public: virtual void set##funName(varType var); + +/** CC_SYNTHESIZE_READONLY is used to declare a protected variable. + We can use getter to read the variable. + @param varType : the type of variable. + @param varName : variable name. + @param funName : "get + funName" is the name of the getter. + @warning : The getter is a public inline function. + The variables and methods declared after CC_SYNTHESIZE_READONLY are all public. + If you need protected or private, please declare. + */ +#define CC_SYNTHESIZE_READONLY(varType, varName, funName)\ +protected: varType varName;\ +public: inline varType get##funName(void) const { return varName; } + +/** CC_SYNTHESIZE is used to declare a protected variable. + We can use getter to read the variable, and use the setter to change the variable. + @param varType : the type of variable. + @param varName : variable name. + @param funName : "get + funName" is the name of the getter. + "set + funName" is the name of the setter. + @warning : The getter and setter are public inline functions. + The variables and methods declared after CC_SYNTHESIZE are all public. + If you need protected or private, please declare. + */ +#define CC_SYNTHESIZE(varType, varName, funName)\ +protected: varType varName;\ +public: inline varType get##funName(void) const { return varName; }\ +public: inline void set##funName(varType var){ varName = var; } + +#define CC_SAFE_DELETE(p) if(p) { delete p; p = 0; } +#define CC_SAFE_DELETE_ARRAY(p) if(p) { delete[] p; p = 0; } +#define CC_SAFE_FREE(p) if(p) { free(p); p = 0; } +#define CC_SAFE_RELEASE(p) if(p) { p->release(); } +#define CC_SAFE_RELEASE_NULL(p) if(p) { p->release(); p = 0; } +#define CC_SAFE_RETAIN(p) if(p) { p->retain(); } +#define CC_BREAK_IF(cond) if(cond) break; + + +// cocos2d debug +#if !defined(COCOS2D_DEBUG) || COCOS2D_DEBUG == 0 +#define CCLOG(...) do {} while (0) +#define CCLOGINFO(...) do {} while (0) +#define CCLOGERROR(...) do {} while (0) + +#elif COCOS2D_DEBUG == 1 +#define CCLOG(format, ...) cocos2d::CCLog(format, ##__VA_ARGS__) +#define CCLOGERROR(format,...) cocos2d::CCLog(format, ##__VA_ARGS__) +#define CCLOGINFO(format,...) do {} while (0) + +#elif COCOS2D_DEBUG > 1 +#define CCLOG(format, ...) cocos2d::CCLog(format, ##__VA_ARGS__) +#define CCLOGERROR(format,...) cocos2d::CCLog(format, ##__VA_ARGS__) +#define CCLOGINFO(format,...) cocos2d::CCLog(format, ##__VA_ARGS__) +#endif // COCOS2D_DEBUG + +// shared library declartor +#define CC_DLL + +// assertion +#include +#define CC_ASSERT(cond) assert(cond) + +// platform depended macros + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) + + #undef CC_DLL + #if defined(_USRDLL) + #define CC_DLL __declspec(dllexport) + #else /* use a DLL library */ + #define CC_DLL __declspec(dllimport) + #endif + +#endif // CC_PLATFORM_WIN32 + +#if (CC_TARGET_PLATFORM == CC_PLATFORM_UPHONE && defined(_TRANZDA_VM_)) + + #undef CC_DLL + #if defined(SS_MAKEDLL) + #define CC_DLL __declspec(dllexport) + #else /* use a DLL library */ + #define CC_DLL __declspec(dllimport) + #endif + +#endif // uphone VM + #endif // __CC_PLATFORM_MACROS_H__ diff --git a/platform_support/src/CCStdC.cpp b/cocos2dx/platform/CCStdC.cpp similarity index 93% rename from platform_support/src/CCStdC.cpp rename to cocos2dx/platform/CCStdC.cpp index 723ad0e42eab..087fc5b1c357 100644 --- a/platform_support/src/CCStdC.cpp +++ b/cocos2dx/platform/CCStdC.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) -int CC_DLL_PS gettimeofday(struct timeval * val, struct timezone *) +int CC_DLL gettimeofday(struct timeval * val, struct timezone *) { if (val) { diff --git a/platform_support/include/CCStdC.h b/cocos2dx/platform/CCStdC.h similarity index 94% rename from platform_support/include/CCStdC.h rename to cocos2dx/platform/CCStdC.h index c12dc3dd74b9..f97d91666bb8 100644 --- a/platform_support/include/CCStdC.h +++ b/cocos2dx/platform/CCStdC.h @@ -77,7 +77,7 @@ struct timezone int tz_dsttime; }; -int CC_DLL_PS gettimeofday(struct timeval *, struct timezone *); +int CC_DLL gettimeofday(struct timeval *, struct timezone *); #endif // CC_PLATFORM_WIN32 diff --git a/platform_support/src/CCThread.cpp b/cocos2dx/platform/CCThread.cpp similarity index 100% rename from platform_support/src/CCThread.cpp rename to cocos2dx/platform/CCThread.cpp diff --git a/platform_support/include/CCThread.h b/cocos2dx/platform/CCThread.h similarity index 82% rename from platform_support/include/CCThread.h rename to cocos2dx/platform/CCThread.h index eea222857589..aeebfc5426e1 100644 --- a/platform_support/include/CCThread.h +++ b/cocos2dx/platform/CCThread.h @@ -22,8 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ****************************************************************************/ -#ifndef __CC_THREAD_H_YANGWS_20110114__ -#define __CC_THREAD_H_YANGWS_20110114__ +#ifndef __CC_PLATFORM_THREAD_H__ +#define __CC_PLATFORM_THREAD_H__ #include "CCCommon.h" @@ -35,26 +35,26 @@ NS_CC_BEGIN; @warning Don't enter a CCLock twice in the same thread. */ -class CC_DLL_PS ccxLock +class CC_DLL CCLock { public: - ccxLock(); - ~ccxLock(); + CCLock(); + ~CCLock(); void lock(); void unlock(); private: class Impl; - ccxScopedPtr m_pImp; + ccxScopedPtr m_pImp; }; #else // CC_SUPPORT_MULTITHREAD -class CC_DLL_PS ccxLock +class CC_DLL CCLock { public: - ccxLock() {} - ~ccxLock() {} + CCLock() {} + ~CCLock() {} void lock() {} void unlock() {} @@ -64,4 +64,4 @@ class CC_DLL_PS ccxLock NS_CC_END; -#endif // __CC_THREAD_H_YANGWS_20110114__ +#endif // __CC_PLATFORM_THREAD_H__ diff --git a/platform_support/src/android/CCImage_android.cpp b/cocos2dx/platform/android/CCImage_android.cpp similarity index 94% rename from platform_support/src/android/CCImage_android.cpp rename to cocos2dx/platform/android/CCImage_android.cpp index e71d1c2367d3..c165b371a12e 100644 --- a/platform_support/src/android/CCImage_android.cpp +++ b/cocos2dx/platform/android/CCImage_android.cpp @@ -43,7 +43,7 @@ static int sk_atomic_dec(int *value) NS_CC_BEGIN; // android not support -void CCMessageBox(const ccxString& msg, const ccxString& title) +void CCMessageBox(const std::string& msg, const std::string& title) { } diff --git a/platform_support/src/android/CCThread_android.cpp b/cocos2dx/platform/android/CCThread_android.cpp similarity index 87% rename from platform_support/src/android/CCThread_android.cpp rename to cocos2dx/platform/android/CCThread_android.cpp index 95ad9a6df636..537eb7690d54 100644 --- a/platform_support/src/android/CCThread_android.cpp +++ b/cocos2dx/platform/android/CCThread_android.cpp @@ -25,11 +25,11 @@ THE SOFTWARE. #if CCX_SUPPORT_MULTITHREAD #include -#include "ccxThread.h" +#include "CCThread.h" NS_CC_BEGIN; -class CCXLock::Impl +class CCLock::Impl { public: Impl() @@ -45,12 +45,12 @@ class CCXLock::Impl sem_t m_sMutex; }; -CCXLock::CCXLock() -: m_pImp(new CCXLock::Impl) +CCLock::CCLock() +: m_pImp(new CCLock::Impl) { } -CCXLock::~CCXLock() +CCLock::~CCLock() { if (m_pImp) { @@ -58,7 +58,7 @@ CCXLock::~CCXLock() } } -void CCXLock::lock() +void CCLock::lock() { if (m_pImp) { @@ -66,7 +66,7 @@ void CCXLock::lock() } } -void CCXLock::unlock() +void CCLock::unlock() { if (m_pImp) { diff --git a/platform_support/src/ios/CCImage_ios.mm b/cocos2dx/platform/ios/CCImage_ios.mm similarity index 100% rename from platform_support/src/ios/CCImage_ios.mm rename to cocos2dx/platform/ios/CCImage_ios.mm diff --git a/cocos2dx/platform/platform.h b/cocos2dx/platform/platform.h index 61e95fb56c51..d5c0d8859cf4 100644 --- a/cocos2dx/platform/platform.h +++ b/cocos2dx/platform/platform.h @@ -42,8 +42,6 @@ class CCTime static void timersubCocos2d(struct cc_timeval *out, struct cc_timeval *start, struct cc_timeval *end); }; -class NSLock : public ccxLock{}; - NS_CC_END; #endif // __PLATFORM_H__ diff --git a/platform_support/third_party/android/iconv/iconv.h b/cocos2dx/platform/third_party/android/iconv/iconv.h similarity index 100% rename from platform_support/third_party/android/iconv/iconv.h rename to cocos2dx/platform/third_party/android/iconv/iconv.h diff --git a/platform_support/third_party/android/libjpeg/jconfig.h b/cocos2dx/platform/third_party/android/libjpeg/jconfig.h similarity index 100% rename from platform_support/third_party/android/libjpeg/jconfig.h rename to cocos2dx/platform/third_party/android/libjpeg/jconfig.h diff --git a/platform_support/third_party/android/libjpeg/jconfig_linux.h b/cocos2dx/platform/third_party/android/libjpeg/jconfig_linux.h similarity index 100% rename from platform_support/third_party/android/libjpeg/jconfig_linux.h rename to cocos2dx/platform/third_party/android/libjpeg/jconfig_linux.h diff --git a/platform_support/third_party/android/libjpeg/jconfig_win.h b/cocos2dx/platform/third_party/android/libjpeg/jconfig_win.h similarity index 100% rename from platform_support/third_party/android/libjpeg/jconfig_win.h rename to cocos2dx/platform/third_party/android/libjpeg/jconfig_win.h diff --git a/platform_support/third_party/android/libjpeg/jerror.h b/cocos2dx/platform/third_party/android/libjpeg/jerror.h similarity index 100% rename from platform_support/third_party/android/libjpeg/jerror.h rename to cocos2dx/platform/third_party/android/libjpeg/jerror.h diff --git a/platform_support/third_party/android/libjpeg/jmorecfg.h b/cocos2dx/platform/third_party/android/libjpeg/jmorecfg.h similarity index 100% rename from platform_support/third_party/android/libjpeg/jmorecfg.h rename to cocos2dx/platform/third_party/android/libjpeg/jmorecfg.h diff --git a/platform_support/third_party/android/libjpeg/jpeglib.h b/cocos2dx/platform/third_party/android/libjpeg/jpeglib.h similarity index 100% rename from platform_support/third_party/android/libjpeg/jpeglib.h rename to cocos2dx/platform/third_party/android/libjpeg/jpeglib.h diff --git a/platform_support/third_party/android/libpng/png.h b/cocos2dx/platform/third_party/android/libpng/png.h similarity index 100% rename from platform_support/third_party/android/libpng/png.h rename to cocos2dx/platform/third_party/android/libpng/png.h diff --git a/platform_support/third_party/android/libpng/pngconf.h b/cocos2dx/platform/third_party/android/libpng/pngconf.h similarity index 100% rename from platform_support/third_party/android/libpng/pngconf.h rename to cocos2dx/platform/third_party/android/libpng/pngconf.h diff --git a/platform_support/third_party/android/libraries/libjpeg.a b/cocos2dx/platform/third_party/android/libraries/libjpeg.a similarity index 100% rename from platform_support/third_party/android/libraries/libjpeg.a rename to cocos2dx/platform/third_party/android/libraries/libjpeg.a diff --git a/platform_support/third_party/android/libraries/libpng.a b/cocos2dx/platform/third_party/android/libraries/libpng.a similarity index 100% rename from platform_support/third_party/android/libraries/libpng.a rename to cocos2dx/platform/third_party/android/libraries/libpng.a diff --git a/platform_support/third_party/android/libraries/libsgl.so b/cocos2dx/platform/third_party/android/libraries/libsgl.so similarity index 100% rename from platform_support/third_party/android/libraries/libsgl.so rename to cocos2dx/platform/third_party/android/libraries/libsgl.so diff --git a/platform_support/third_party/android/libraries/libskia.so b/cocos2dx/platform/third_party/android/libraries/libskia.so similarity index 100% rename from platform_support/third_party/android/libraries/libskia.so rename to cocos2dx/platform/third_party/android/libraries/libskia.so diff --git a/platform_support/third_party/android/libraries/libxml2.a b/cocos2dx/platform/third_party/android/libraries/libxml2.a similarity index 100% rename from platform_support/third_party/android/libraries/libxml2.a rename to cocos2dx/platform/third_party/android/libraries/libxml2.a diff --git a/platform_support/third_party/android/libxml2/libxml/DOCBparser.h b/cocos2dx/platform/third_party/android/libxml2/libxml/DOCBparser.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/DOCBparser.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/DOCBparser.h diff --git a/platform_support/third_party/android/libxml2/libxml/HTMLparser.h b/cocos2dx/platform/third_party/android/libxml2/libxml/HTMLparser.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/HTMLparser.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/HTMLparser.h diff --git a/platform_support/third_party/android/libxml2/libxml/HTMLtree.h b/cocos2dx/platform/third_party/android/libxml2/libxml/HTMLtree.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/HTMLtree.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/HTMLtree.h diff --git a/platform_support/third_party/android/libxml2/libxml/SAX.h b/cocos2dx/platform/third_party/android/libxml2/libxml/SAX.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/SAX.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/SAX.h diff --git a/platform_support/third_party/android/libxml2/libxml/SAX2.h b/cocos2dx/platform/third_party/android/libxml2/libxml/SAX2.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/SAX2.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/SAX2.h diff --git a/platform_support/third_party/android/libxml2/libxml/c14n.h b/cocos2dx/platform/third_party/android/libxml2/libxml/c14n.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/c14n.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/c14n.h diff --git a/platform_support/third_party/android/libxml2/libxml/catalog.h b/cocos2dx/platform/third_party/android/libxml2/libxml/catalog.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/catalog.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/catalog.h diff --git a/platform_support/third_party/android/libxml2/libxml/chvalid.h b/cocos2dx/platform/third_party/android/libxml2/libxml/chvalid.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/chvalid.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/chvalid.h diff --git a/platform_support/third_party/android/libxml2/libxml/debugXML.h b/cocos2dx/platform/third_party/android/libxml2/libxml/debugXML.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/debugXML.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/debugXML.h diff --git a/platform_support/third_party/android/libxml2/libxml/dict.h b/cocos2dx/platform/third_party/android/libxml2/libxml/dict.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/dict.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/dict.h diff --git a/platform_support/third_party/android/libxml2/libxml/encoding.h b/cocos2dx/platform/third_party/android/libxml2/libxml/encoding.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/encoding.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/encoding.h diff --git a/platform_support/third_party/android/libxml2/libxml/entities.h b/cocos2dx/platform/third_party/android/libxml2/libxml/entities.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/entities.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/entities.h diff --git a/platform_support/third_party/android/libxml2/libxml/globals.h b/cocos2dx/platform/third_party/android/libxml2/libxml/globals.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/globals.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/globals.h diff --git a/platform_support/third_party/android/libxml2/libxml/hash.h b/cocos2dx/platform/third_party/android/libxml2/libxml/hash.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/hash.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/hash.h diff --git a/platform_support/third_party/android/libxml2/libxml/list.h b/cocos2dx/platform/third_party/android/libxml2/libxml/list.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/list.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/list.h diff --git a/platform_support/third_party/android/libxml2/libxml/nanoftp.h b/cocos2dx/platform/third_party/android/libxml2/libxml/nanoftp.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/nanoftp.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/nanoftp.h diff --git a/platform_support/third_party/android/libxml2/libxml/nanohttp.h b/cocos2dx/platform/third_party/android/libxml2/libxml/nanohttp.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/nanohttp.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/nanohttp.h diff --git a/platform_support/third_party/android/libxml2/libxml/parser.h b/cocos2dx/platform/third_party/android/libxml2/libxml/parser.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/parser.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/parser.h diff --git a/platform_support/third_party/android/libxml2/libxml/parserInternals.h b/cocos2dx/platform/third_party/android/libxml2/libxml/parserInternals.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/parserInternals.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/parserInternals.h diff --git a/platform_support/third_party/android/libxml2/libxml/pattern.h b/cocos2dx/platform/third_party/android/libxml2/libxml/pattern.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/pattern.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/pattern.h diff --git a/platform_support/third_party/android/libxml2/libxml/relaxng.h b/cocos2dx/platform/third_party/android/libxml2/libxml/relaxng.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/relaxng.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/relaxng.h diff --git a/platform_support/third_party/android/libxml2/libxml/schemasInternals.h b/cocos2dx/platform/third_party/android/libxml2/libxml/schemasInternals.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/schemasInternals.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/schemasInternals.h diff --git a/platform_support/third_party/android/libxml2/libxml/schematron.h b/cocos2dx/platform/third_party/android/libxml2/libxml/schematron.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/schematron.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/schematron.h diff --git a/platform_support/third_party/android/libxml2/libxml/threads.h b/cocos2dx/platform/third_party/android/libxml2/libxml/threads.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/threads.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/threads.h diff --git a/platform_support/third_party/android/libxml2/libxml/tree.h b/cocos2dx/platform/third_party/android/libxml2/libxml/tree.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/tree.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/tree.h diff --git a/platform_support/third_party/android/libxml2/libxml/uri.h b/cocos2dx/platform/third_party/android/libxml2/libxml/uri.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/uri.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/uri.h diff --git a/platform_support/third_party/android/libxml2/libxml/valid.h b/cocos2dx/platform/third_party/android/libxml2/libxml/valid.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/valid.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/valid.h diff --git a/platform_support/third_party/android/libxml2/libxml/xinclude.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xinclude.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xinclude.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xinclude.h diff --git a/platform_support/third_party/android/libxml2/libxml/xlink.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xlink.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xlink.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xlink.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlIO.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlIO.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlIO.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlIO.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlautomata.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlautomata.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlautomata.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlautomata.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlerror.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlerror.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlerror.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlerror.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlexports.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlexports.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlexports.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlexports.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlmemory.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlmemory.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlmemory.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlmemory.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlmodule.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlmodule.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlmodule.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlmodule.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlreader.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlreader.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlreader.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlreader.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlregexp.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlregexp.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlregexp.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlregexp.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlsave.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlsave.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlsave.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlsave.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlschemas.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlschemas.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlschemas.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlschemas.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlschemastypes.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlschemastypes.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlschemastypes.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlschemastypes.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlstring.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlstring.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlstring.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlstring.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlunicode.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlunicode.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlunicode.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlunicode.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlversion.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlversion.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlversion.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlversion.h diff --git a/platform_support/third_party/android/libxml2/libxml/xmlwriter.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xmlwriter.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xmlwriter.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xmlwriter.h diff --git a/platform_support/third_party/android/libxml2/libxml/xpath.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xpath.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xpath.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xpath.h diff --git a/platform_support/third_party/android/libxml2/libxml/xpathInternals.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xpathInternals.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xpathInternals.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xpathInternals.h diff --git a/platform_support/third_party/android/libxml2/libxml/xpointer.h b/cocos2dx/platform/third_party/android/libxml2/libxml/xpointer.h similarity index 100% rename from platform_support/third_party/android/libxml2/libxml/xpointer.h rename to cocos2dx/platform/third_party/android/libxml2/libxml/xpointer.h diff --git a/platform_support/third_party/android/skia/animator/SkAnimator.h b/cocos2dx/platform/third_party/android/skia/animator/SkAnimator.h similarity index 100% rename from platform_support/third_party/android/skia/animator/SkAnimator.h rename to cocos2dx/platform/third_party/android/skia/animator/SkAnimator.h diff --git a/platform_support/third_party/android/skia/animator/SkAnimatorView.h b/cocos2dx/platform/third_party/android/skia/animator/SkAnimatorView.h similarity index 100% rename from platform_support/third_party/android/skia/animator/SkAnimatorView.h rename to cocos2dx/platform/third_party/android/skia/animator/SkAnimatorView.h diff --git a/platform_support/third_party/android/skia/core/Sk64.h b/cocos2dx/platform/third_party/android/skia/core/Sk64.h similarity index 100% rename from platform_support/third_party/android/skia/core/Sk64.h rename to cocos2dx/platform/third_party/android/skia/core/Sk64.h diff --git a/platform_support/third_party/android/skia/core/SkAutoKern.h b/cocos2dx/platform/third_party/android/skia/core/SkAutoKern.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkAutoKern.h rename to cocos2dx/platform/third_party/android/skia/core/SkAutoKern.h diff --git a/platform_support/third_party/android/skia/core/SkBitmap.h b/cocos2dx/platform/third_party/android/skia/core/SkBitmap.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkBitmap.h rename to cocos2dx/platform/third_party/android/skia/core/SkBitmap.h diff --git a/platform_support/third_party/android/skia/core/SkBlitRow.h b/cocos2dx/platform/third_party/android/skia/core/SkBlitRow.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkBlitRow.h rename to cocos2dx/platform/third_party/android/skia/core/SkBlitRow.h diff --git a/platform_support/third_party/android/skia/core/SkBlitter.h b/cocos2dx/platform/third_party/android/skia/core/SkBlitter.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkBlitter.h rename to cocos2dx/platform/third_party/android/skia/core/SkBlitter.h diff --git a/platform_support/third_party/android/skia/core/SkBounder.h b/cocos2dx/platform/third_party/android/skia/core/SkBounder.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkBounder.h rename to cocos2dx/platform/third_party/android/skia/core/SkBounder.h diff --git a/platform_support/third_party/android/skia/core/SkBuffer.h b/cocos2dx/platform/third_party/android/skia/core/SkBuffer.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkBuffer.h rename to cocos2dx/platform/third_party/android/skia/core/SkBuffer.h diff --git a/platform_support/third_party/android/skia/core/SkCanvas.h b/cocos2dx/platform/third_party/android/skia/core/SkCanvas.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkCanvas.h rename to cocos2dx/platform/third_party/android/skia/core/SkCanvas.h diff --git a/platform_support/third_party/android/skia/core/SkChunkAlloc.h b/cocos2dx/platform/third_party/android/skia/core/SkChunkAlloc.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkChunkAlloc.h rename to cocos2dx/platform/third_party/android/skia/core/SkChunkAlloc.h diff --git a/platform_support/third_party/android/skia/core/SkColor.h b/cocos2dx/platform/third_party/android/skia/core/SkColor.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkColor.h rename to cocos2dx/platform/third_party/android/skia/core/SkColor.h diff --git a/platform_support/third_party/android/skia/core/SkColorFilter.h b/cocos2dx/platform/third_party/android/skia/core/SkColorFilter.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkColorFilter.h rename to cocos2dx/platform/third_party/android/skia/core/SkColorFilter.h diff --git a/platform_support/third_party/android/skia/core/SkColorPriv.h b/cocos2dx/platform/third_party/android/skia/core/SkColorPriv.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkColorPriv.h rename to cocos2dx/platform/third_party/android/skia/core/SkColorPriv.h diff --git a/platform_support/third_party/android/skia/core/SkColorShader.h b/cocos2dx/platform/third_party/android/skia/core/SkColorShader.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkColorShader.h rename to cocos2dx/platform/third_party/android/skia/core/SkColorShader.h diff --git a/platform_support/third_party/android/skia/core/SkComposeShader.h b/cocos2dx/platform/third_party/android/skia/core/SkComposeShader.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkComposeShader.h rename to cocos2dx/platform/third_party/android/skia/core/SkComposeShader.h diff --git a/platform_support/third_party/android/skia/core/SkDeque.h b/cocos2dx/platform/third_party/android/skia/core/SkDeque.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkDeque.h rename to cocos2dx/platform/third_party/android/skia/core/SkDeque.h diff --git a/platform_support/third_party/android/skia/core/SkDescriptor.h b/cocos2dx/platform/third_party/android/skia/core/SkDescriptor.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkDescriptor.h rename to cocos2dx/platform/third_party/android/skia/core/SkDescriptor.h diff --git a/platform_support/third_party/android/skia/core/SkDevice.h b/cocos2dx/platform/third_party/android/skia/core/SkDevice.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkDevice.h rename to cocos2dx/platform/third_party/android/skia/core/SkDevice.h diff --git a/platform_support/third_party/android/skia/core/SkDither.h b/cocos2dx/platform/third_party/android/skia/core/SkDither.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkDither.h rename to cocos2dx/platform/third_party/android/skia/core/SkDither.h diff --git a/platform_support/third_party/android/skia/core/SkDraw.h b/cocos2dx/platform/third_party/android/skia/core/SkDraw.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkDraw.h rename to cocos2dx/platform/third_party/android/skia/core/SkDraw.h diff --git a/platform_support/third_party/android/skia/core/SkDrawFilter.h b/cocos2dx/platform/third_party/android/skia/core/SkDrawFilter.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkDrawFilter.h rename to cocos2dx/platform/third_party/android/skia/core/SkDrawFilter.h diff --git a/platform_support/third_party/android/skia/core/SkDrawLooper.h b/cocos2dx/platform/third_party/android/skia/core/SkDrawLooper.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkDrawLooper.h rename to cocos2dx/platform/third_party/android/skia/core/SkDrawLooper.h diff --git a/platform_support/third_party/android/skia/core/SkEdgeClipper.h b/cocos2dx/platform/third_party/android/skia/core/SkEdgeClipper.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkEdgeClipper.h rename to cocos2dx/platform/third_party/android/skia/core/SkEdgeClipper.h diff --git a/platform_support/third_party/android/skia/core/SkEndian.h b/cocos2dx/platform/third_party/android/skia/core/SkEndian.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkEndian.h rename to cocos2dx/platform/third_party/android/skia/core/SkEndian.h diff --git a/platform_support/third_party/android/skia/core/SkFDot6.h b/cocos2dx/platform/third_party/android/skia/core/SkFDot6.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkFDot6.h rename to cocos2dx/platform/third_party/android/skia/core/SkFDot6.h diff --git a/platform_support/third_party/android/skia/core/SkFixed.h b/cocos2dx/platform/third_party/android/skia/core/SkFixed.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkFixed.h rename to cocos2dx/platform/third_party/android/skia/core/SkFixed.h diff --git a/platform_support/third_party/android/skia/core/SkFlate.h b/cocos2dx/platform/third_party/android/skia/core/SkFlate.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkFlate.h rename to cocos2dx/platform/third_party/android/skia/core/SkFlate.h diff --git a/platform_support/third_party/android/skia/core/SkFlattenable.h b/cocos2dx/platform/third_party/android/skia/core/SkFlattenable.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkFlattenable.h rename to cocos2dx/platform/third_party/android/skia/core/SkFlattenable.h diff --git a/platform_support/third_party/android/skia/core/SkFloatBits.h b/cocos2dx/platform/third_party/android/skia/core/SkFloatBits.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkFloatBits.h rename to cocos2dx/platform/third_party/android/skia/core/SkFloatBits.h diff --git a/platform_support/third_party/android/skia/core/SkFloatingPoint.h b/cocos2dx/platform/third_party/android/skia/core/SkFloatingPoint.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkFloatingPoint.h rename to cocos2dx/platform/third_party/android/skia/core/SkFloatingPoint.h diff --git a/platform_support/third_party/android/skia/core/SkFontHost.h b/cocos2dx/platform/third_party/android/skia/core/SkFontHost.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkFontHost.h rename to cocos2dx/platform/third_party/android/skia/core/SkFontHost.h diff --git a/platform_support/third_party/android/skia/core/SkGeometry.h b/cocos2dx/platform/third_party/android/skia/core/SkGeometry.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkGeometry.h rename to cocos2dx/platform/third_party/android/skia/core/SkGeometry.h diff --git a/platform_support/third_party/android/skia/core/SkGlobals.h b/cocos2dx/platform/third_party/android/skia/core/SkGlobals.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkGlobals.h rename to cocos2dx/platform/third_party/android/skia/core/SkGlobals.h diff --git a/platform_support/third_party/android/skia/core/SkGraphics.h b/cocos2dx/platform/third_party/android/skia/core/SkGraphics.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkGraphics.h rename to cocos2dx/platform/third_party/android/skia/core/SkGraphics.h diff --git a/platform_support/third_party/android/skia/core/SkLineClipper.h b/cocos2dx/platform/third_party/android/skia/core/SkLineClipper.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkLineClipper.h rename to cocos2dx/platform/third_party/android/skia/core/SkLineClipper.h diff --git a/platform_support/third_party/android/skia/core/SkMMapStream.h b/cocos2dx/platform/third_party/android/skia/core/SkMMapStream.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkMMapStream.h rename to cocos2dx/platform/third_party/android/skia/core/SkMMapStream.h diff --git a/platform_support/third_party/android/skia/core/SkMallocPixelRef.h b/cocos2dx/platform/third_party/android/skia/core/SkMallocPixelRef.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkMallocPixelRef.h rename to cocos2dx/platform/third_party/android/skia/core/SkMallocPixelRef.h diff --git a/platform_support/third_party/android/skia/core/SkMask.h b/cocos2dx/platform/third_party/android/skia/core/SkMask.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkMask.h rename to cocos2dx/platform/third_party/android/skia/core/SkMask.h diff --git a/platform_support/third_party/android/skia/core/SkMaskFilter.h b/cocos2dx/platform/third_party/android/skia/core/SkMaskFilter.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkMaskFilter.h rename to cocos2dx/platform/third_party/android/skia/core/SkMaskFilter.h diff --git a/platform_support/third_party/android/skia/core/SkMath.h b/cocos2dx/platform/third_party/android/skia/core/SkMath.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkMath.h rename to cocos2dx/platform/third_party/android/skia/core/SkMath.h diff --git a/platform_support/third_party/android/skia/core/SkMatrix.h b/cocos2dx/platform/third_party/android/skia/core/SkMatrix.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkMatrix.h rename to cocos2dx/platform/third_party/android/skia/core/SkMatrix.h diff --git a/platform_support/third_party/android/skia/core/SkOSFile.h b/cocos2dx/platform/third_party/android/skia/core/SkOSFile.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkOSFile.h rename to cocos2dx/platform/third_party/android/skia/core/SkOSFile.h diff --git a/platform_support/third_party/android/skia/core/SkPackBits.h b/cocos2dx/platform/third_party/android/skia/core/SkPackBits.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPackBits.h rename to cocos2dx/platform/third_party/android/skia/core/SkPackBits.h diff --git a/platform_support/third_party/android/skia/core/SkPaint.h b/cocos2dx/platform/third_party/android/skia/core/SkPaint.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPaint.h rename to cocos2dx/platform/third_party/android/skia/core/SkPaint.h diff --git a/platform_support/third_party/android/skia/core/SkPath.h b/cocos2dx/platform/third_party/android/skia/core/SkPath.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPath.h rename to cocos2dx/platform/third_party/android/skia/core/SkPath.h diff --git a/platform_support/third_party/android/skia/core/SkPathEffect.h b/cocos2dx/platform/third_party/android/skia/core/SkPathEffect.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPathEffect.h rename to cocos2dx/platform/third_party/android/skia/core/SkPathEffect.h diff --git a/platform_support/third_party/android/skia/core/SkPathMeasure.h b/cocos2dx/platform/third_party/android/skia/core/SkPathMeasure.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPathMeasure.h rename to cocos2dx/platform/third_party/android/skia/core/SkPathMeasure.h diff --git a/platform_support/third_party/android/skia/core/SkPerspIter.h b/cocos2dx/platform/third_party/android/skia/core/SkPerspIter.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPerspIter.h rename to cocos2dx/platform/third_party/android/skia/core/SkPerspIter.h diff --git a/platform_support/third_party/android/skia/core/SkPicture.h b/cocos2dx/platform/third_party/android/skia/core/SkPicture.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPicture.h rename to cocos2dx/platform/third_party/android/skia/core/SkPicture.h diff --git a/platform_support/third_party/android/skia/core/SkPixelRef.h b/cocos2dx/platform/third_party/android/skia/core/SkPixelRef.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPixelRef.h rename to cocos2dx/platform/third_party/android/skia/core/SkPixelRef.h diff --git a/platform_support/third_party/android/skia/core/SkPoint.h b/cocos2dx/platform/third_party/android/skia/core/SkPoint.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPoint.h rename to cocos2dx/platform/third_party/android/skia/core/SkPoint.h diff --git a/platform_support/third_party/android/skia/core/SkPostConfig.h b/cocos2dx/platform/third_party/android/skia/core/SkPostConfig.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPostConfig.h rename to cocos2dx/platform/third_party/android/skia/core/SkPostConfig.h diff --git a/platform_support/third_party/android/skia/core/SkPreConfig.h b/cocos2dx/platform/third_party/android/skia/core/SkPreConfig.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPreConfig.h rename to cocos2dx/platform/third_party/android/skia/core/SkPreConfig.h diff --git a/platform_support/third_party/android/skia/core/SkPtrRecorder.h b/cocos2dx/platform/third_party/android/skia/core/SkPtrRecorder.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkPtrRecorder.h rename to cocos2dx/platform/third_party/android/skia/core/SkPtrRecorder.h diff --git a/platform_support/third_party/android/skia/core/SkRandom.h b/cocos2dx/platform/third_party/android/skia/core/SkRandom.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkRandom.h rename to cocos2dx/platform/third_party/android/skia/core/SkRandom.h diff --git a/platform_support/third_party/android/skia/core/SkRasterizer.h b/cocos2dx/platform/third_party/android/skia/core/SkRasterizer.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkRasterizer.h rename to cocos2dx/platform/third_party/android/skia/core/SkRasterizer.h diff --git a/platform_support/third_party/android/skia/core/SkReader32.h b/cocos2dx/platform/third_party/android/skia/core/SkReader32.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkReader32.h rename to cocos2dx/platform/third_party/android/skia/core/SkReader32.h diff --git a/platform_support/third_party/android/skia/core/SkRect.h b/cocos2dx/platform/third_party/android/skia/core/SkRect.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkRect.h rename to cocos2dx/platform/third_party/android/skia/core/SkRect.h diff --git a/platform_support/third_party/android/skia/core/SkRefCnt.h b/cocos2dx/platform/third_party/android/skia/core/SkRefCnt.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkRefCnt.h rename to cocos2dx/platform/third_party/android/skia/core/SkRefCnt.h diff --git a/platform_support/third_party/android/skia/core/SkRegion.h b/cocos2dx/platform/third_party/android/skia/core/SkRegion.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkRegion.h rename to cocos2dx/platform/third_party/android/skia/core/SkRegion.h diff --git a/platform_support/third_party/android/skia/core/SkScalar.h b/cocos2dx/platform/third_party/android/skia/core/SkScalar.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkScalar.h rename to cocos2dx/platform/third_party/android/skia/core/SkScalar.h diff --git a/platform_support/third_party/android/skia/core/SkScalarCompare.h b/cocos2dx/platform/third_party/android/skia/core/SkScalarCompare.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkScalarCompare.h rename to cocos2dx/platform/third_party/android/skia/core/SkScalarCompare.h diff --git a/platform_support/third_party/android/skia/core/SkScalerContext.h b/cocos2dx/platform/third_party/android/skia/core/SkScalerContext.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkScalerContext.h rename to cocos2dx/platform/third_party/android/skia/core/SkScalerContext.h diff --git a/platform_support/third_party/android/skia/core/SkScan.h b/cocos2dx/platform/third_party/android/skia/core/SkScan.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkScan.h rename to cocos2dx/platform/third_party/android/skia/core/SkScan.h diff --git a/platform_support/third_party/android/skia/core/SkShader.h b/cocos2dx/platform/third_party/android/skia/core/SkShader.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkShader.h rename to cocos2dx/platform/third_party/android/skia/core/SkShader.h diff --git a/platform_support/third_party/android/skia/core/SkShape.h b/cocos2dx/platform/third_party/android/skia/core/SkShape.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkShape.h rename to cocos2dx/platform/third_party/android/skia/core/SkShape.h diff --git a/platform_support/third_party/android/skia/core/SkSize.h b/cocos2dx/platform/third_party/android/skia/core/SkSize.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkSize.h rename to cocos2dx/platform/third_party/android/skia/core/SkSize.h diff --git a/platform_support/third_party/android/skia/core/SkStream.h b/cocos2dx/platform/third_party/android/skia/core/SkStream.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkStream.h rename to cocos2dx/platform/third_party/android/skia/core/SkStream.h diff --git a/platform_support/third_party/android/skia/core/SkString.h b/cocos2dx/platform/third_party/android/skia/core/SkString.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkString.h rename to cocos2dx/platform/third_party/android/skia/core/SkString.h diff --git a/platform_support/third_party/android/skia/core/SkStroke.h b/cocos2dx/platform/third_party/android/skia/core/SkStroke.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkStroke.h rename to cocos2dx/platform/third_party/android/skia/core/SkStroke.h diff --git a/platform_support/third_party/android/skia/core/SkTDArray.h b/cocos2dx/platform/third_party/android/skia/core/SkTDArray.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkTDArray.h rename to cocos2dx/platform/third_party/android/skia/core/SkTDArray.h diff --git a/platform_support/third_party/android/skia/core/SkTDStack.h b/cocos2dx/platform/third_party/android/skia/core/SkTDStack.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkTDStack.h rename to cocos2dx/platform/third_party/android/skia/core/SkTDStack.h diff --git a/platform_support/third_party/android/skia/core/SkTDict.h b/cocos2dx/platform/third_party/android/skia/core/SkTDict.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkTDict.h rename to cocos2dx/platform/third_party/android/skia/core/SkTDict.h diff --git a/platform_support/third_party/android/skia/core/SkTRegistry.h b/cocos2dx/platform/third_party/android/skia/core/SkTRegistry.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkTRegistry.h rename to cocos2dx/platform/third_party/android/skia/core/SkTRegistry.h diff --git a/platform_support/third_party/android/skia/core/SkTSearch.h b/cocos2dx/platform/third_party/android/skia/core/SkTSearch.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkTSearch.h rename to cocos2dx/platform/third_party/android/skia/core/SkTSearch.h diff --git a/platform_support/third_party/android/skia/core/SkTemplates.h b/cocos2dx/platform/third_party/android/skia/core/SkTemplates.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkTemplates.h rename to cocos2dx/platform/third_party/android/skia/core/SkTemplates.h diff --git a/platform_support/third_party/android/skia/core/SkThread.h b/cocos2dx/platform/third_party/android/skia/core/SkThread.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkThread.h rename to cocos2dx/platform/third_party/android/skia/core/SkThread.h diff --git a/platform_support/third_party/android/skia/core/SkThread_platform.h b/cocos2dx/platform/third_party/android/skia/core/SkThread_platform.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkThread_platform.h rename to cocos2dx/platform/third_party/android/skia/core/SkThread_platform.h diff --git a/platform_support/third_party/android/skia/core/SkTime.h b/cocos2dx/platform/third_party/android/skia/core/SkTime.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkTime.h rename to cocos2dx/platform/third_party/android/skia/core/SkTime.h diff --git a/platform_support/third_party/android/skia/core/SkTypeface.h b/cocos2dx/platform/third_party/android/skia/core/SkTypeface.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkTypeface.h rename to cocos2dx/platform/third_party/android/skia/core/SkTypeface.h diff --git a/platform_support/third_party/android/skia/core/SkTypes.h b/cocos2dx/platform/third_party/android/skia/core/SkTypes.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkTypes.h rename to cocos2dx/platform/third_party/android/skia/core/SkTypes.h diff --git a/platform_support/third_party/android/skia/core/SkUnPreMultiply.h b/cocos2dx/platform/third_party/android/skia/core/SkUnPreMultiply.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkUnPreMultiply.h rename to cocos2dx/platform/third_party/android/skia/core/SkUnPreMultiply.h diff --git a/platform_support/third_party/android/skia/core/SkUnitMapper.h b/cocos2dx/platform/third_party/android/skia/core/SkUnitMapper.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkUnitMapper.h rename to cocos2dx/platform/third_party/android/skia/core/SkUnitMapper.h diff --git a/platform_support/third_party/android/skia/core/SkUserConfig.h b/cocos2dx/platform/third_party/android/skia/core/SkUserConfig.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkUserConfig.h rename to cocos2dx/platform/third_party/android/skia/core/SkUserConfig.h diff --git a/platform_support/third_party/android/skia/core/SkUtils.h b/cocos2dx/platform/third_party/android/skia/core/SkUtils.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkUtils.h rename to cocos2dx/platform/third_party/android/skia/core/SkUtils.h diff --git a/platform_support/third_party/android/skia/core/SkWriter32.h b/cocos2dx/platform/third_party/android/skia/core/SkWriter32.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkWriter32.h rename to cocos2dx/platform/third_party/android/skia/core/SkWriter32.h diff --git a/platform_support/third_party/android/skia/core/SkXfermode.h b/cocos2dx/platform/third_party/android/skia/core/SkXfermode.h similarity index 100% rename from platform_support/third_party/android/skia/core/SkXfermode.h rename to cocos2dx/platform/third_party/android/skia/core/SkXfermode.h diff --git a/platform_support/third_party/android/skia/effects/Sk1DPathEffect.h b/cocos2dx/platform/third_party/android/skia/effects/Sk1DPathEffect.h similarity index 100% rename from platform_support/third_party/android/skia/effects/Sk1DPathEffect.h rename to cocos2dx/platform/third_party/android/skia/effects/Sk1DPathEffect.h diff --git a/platform_support/third_party/android/skia/effects/Sk2DPathEffect.h b/cocos2dx/platform/third_party/android/skia/effects/Sk2DPathEffect.h similarity index 100% rename from platform_support/third_party/android/skia/effects/Sk2DPathEffect.h rename to cocos2dx/platform/third_party/android/skia/effects/Sk2DPathEffect.h diff --git a/platform_support/third_party/android/skia/effects/SkAvoidXfermode.h b/cocos2dx/platform/third_party/android/skia/effects/SkAvoidXfermode.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkAvoidXfermode.h rename to cocos2dx/platform/third_party/android/skia/effects/SkAvoidXfermode.h diff --git a/platform_support/third_party/android/skia/effects/SkBlurDrawLooper.h b/cocos2dx/platform/third_party/android/skia/effects/SkBlurDrawLooper.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkBlurDrawLooper.h rename to cocos2dx/platform/third_party/android/skia/effects/SkBlurDrawLooper.h diff --git a/platform_support/third_party/android/skia/effects/SkBlurMaskFilter.h b/cocos2dx/platform/third_party/android/skia/effects/SkBlurMaskFilter.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkBlurMaskFilter.h rename to cocos2dx/platform/third_party/android/skia/effects/SkBlurMaskFilter.h diff --git a/platform_support/third_party/android/skia/effects/SkColorMatrix.h b/cocos2dx/platform/third_party/android/skia/effects/SkColorMatrix.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkColorMatrix.h rename to cocos2dx/platform/third_party/android/skia/effects/SkColorMatrix.h diff --git a/platform_support/third_party/android/skia/effects/SkColorMatrixFilter.h b/cocos2dx/platform/third_party/android/skia/effects/SkColorMatrixFilter.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkColorMatrixFilter.h rename to cocos2dx/platform/third_party/android/skia/effects/SkColorMatrixFilter.h diff --git a/platform_support/third_party/android/skia/effects/SkCornerPathEffect.h b/cocos2dx/platform/third_party/android/skia/effects/SkCornerPathEffect.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkCornerPathEffect.h rename to cocos2dx/platform/third_party/android/skia/effects/SkCornerPathEffect.h diff --git a/platform_support/third_party/android/skia/effects/SkDashPathEffect.h b/cocos2dx/platform/third_party/android/skia/effects/SkDashPathEffect.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkDashPathEffect.h rename to cocos2dx/platform/third_party/android/skia/effects/SkDashPathEffect.h diff --git a/platform_support/third_party/android/skia/effects/SkDiscretePathEffect.h b/cocos2dx/platform/third_party/android/skia/effects/SkDiscretePathEffect.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkDiscretePathEffect.h rename to cocos2dx/platform/third_party/android/skia/effects/SkDiscretePathEffect.h diff --git a/platform_support/third_party/android/skia/effects/SkDrawExtraPathEffect.h b/cocos2dx/platform/third_party/android/skia/effects/SkDrawExtraPathEffect.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkDrawExtraPathEffect.h rename to cocos2dx/platform/third_party/android/skia/effects/SkDrawExtraPathEffect.h diff --git a/platform_support/third_party/android/skia/effects/SkEmbossMaskFilter.h b/cocos2dx/platform/third_party/android/skia/effects/SkEmbossMaskFilter.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkEmbossMaskFilter.h rename to cocos2dx/platform/third_party/android/skia/effects/SkEmbossMaskFilter.h diff --git a/platform_support/third_party/android/skia/effects/SkGradientShader.h b/cocos2dx/platform/third_party/android/skia/effects/SkGradientShader.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkGradientShader.h rename to cocos2dx/platform/third_party/android/skia/effects/SkGradientShader.h diff --git a/platform_support/third_party/android/skia/effects/SkGroupShape.h b/cocos2dx/platform/third_party/android/skia/effects/SkGroupShape.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkGroupShape.h rename to cocos2dx/platform/third_party/android/skia/effects/SkGroupShape.h diff --git a/platform_support/third_party/android/skia/effects/SkKernel33MaskFilter.h b/cocos2dx/platform/third_party/android/skia/effects/SkKernel33MaskFilter.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkKernel33MaskFilter.h rename to cocos2dx/platform/third_party/android/skia/effects/SkKernel33MaskFilter.h diff --git a/platform_support/third_party/android/skia/effects/SkLayerDrawLooper.h b/cocos2dx/platform/third_party/android/skia/effects/SkLayerDrawLooper.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkLayerDrawLooper.h rename to cocos2dx/platform/third_party/android/skia/effects/SkLayerDrawLooper.h diff --git a/platform_support/third_party/android/skia/effects/SkLayerRasterizer.h b/cocos2dx/platform/third_party/android/skia/effects/SkLayerRasterizer.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkLayerRasterizer.h rename to cocos2dx/platform/third_party/android/skia/effects/SkLayerRasterizer.h diff --git a/platform_support/third_party/android/skia/effects/SkPaintFlagsDrawFilter.h b/cocos2dx/platform/third_party/android/skia/effects/SkPaintFlagsDrawFilter.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkPaintFlagsDrawFilter.h rename to cocos2dx/platform/third_party/android/skia/effects/SkPaintFlagsDrawFilter.h diff --git a/platform_support/third_party/android/skia/effects/SkPixelXorXfermode.h b/cocos2dx/platform/third_party/android/skia/effects/SkPixelXorXfermode.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkPixelXorXfermode.h rename to cocos2dx/platform/third_party/android/skia/effects/SkPixelXorXfermode.h diff --git a/platform_support/third_party/android/skia/effects/SkPorterDuff.h b/cocos2dx/platform/third_party/android/skia/effects/SkPorterDuff.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkPorterDuff.h rename to cocos2dx/platform/third_party/android/skia/effects/SkPorterDuff.h diff --git a/platform_support/third_party/android/skia/effects/SkRectShape.h b/cocos2dx/platform/third_party/android/skia/effects/SkRectShape.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkRectShape.h rename to cocos2dx/platform/third_party/android/skia/effects/SkRectShape.h diff --git a/platform_support/third_party/android/skia/effects/SkTableMaskFilter.h b/cocos2dx/platform/third_party/android/skia/effects/SkTableMaskFilter.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkTableMaskFilter.h rename to cocos2dx/platform/third_party/android/skia/effects/SkTableMaskFilter.h diff --git a/platform_support/third_party/android/skia/effects/SkTransparentShader.h b/cocos2dx/platform/third_party/android/skia/effects/SkTransparentShader.h similarity index 100% rename from platform_support/third_party/android/skia/effects/SkTransparentShader.h rename to cocos2dx/platform/third_party/android/skia/effects/SkTransparentShader.h diff --git a/platform_support/third_party/android/skia/graphics/DoxygenMain.dox b/cocos2dx/platform/third_party/android/skia/graphics/DoxygenMain.dox similarity index 100% rename from platform_support/third_party/android/skia/graphics/DoxygenMain.dox rename to cocos2dx/platform/third_party/android/skia/graphics/DoxygenMain.dox diff --git a/platform_support/third_party/android/skia/images/SkFlipPixelRef.h b/cocos2dx/platform/third_party/android/skia/images/SkFlipPixelRef.h similarity index 100% rename from platform_support/third_party/android/skia/images/SkFlipPixelRef.h rename to cocos2dx/platform/third_party/android/skia/images/SkFlipPixelRef.h diff --git a/platform_support/third_party/android/skia/images/SkImageDecoder.h b/cocos2dx/platform/third_party/android/skia/images/SkImageDecoder.h similarity index 100% rename from platform_support/third_party/android/skia/images/SkImageDecoder.h rename to cocos2dx/platform/third_party/android/skia/images/SkImageDecoder.h diff --git a/platform_support/third_party/android/skia/images/SkImageEncoder.h b/cocos2dx/platform/third_party/android/skia/images/SkImageEncoder.h similarity index 100% rename from platform_support/third_party/android/skia/images/SkImageEncoder.h rename to cocos2dx/platform/third_party/android/skia/images/SkImageEncoder.h diff --git a/platform_support/third_party/android/skia/images/SkImageRef.h b/cocos2dx/platform/third_party/android/skia/images/SkImageRef.h similarity index 100% rename from platform_support/third_party/android/skia/images/SkImageRef.h rename to cocos2dx/platform/third_party/android/skia/images/SkImageRef.h diff --git a/platform_support/third_party/android/skia/images/SkImageRef_GlobalPool.h b/cocos2dx/platform/third_party/android/skia/images/SkImageRef_GlobalPool.h similarity index 100% rename from platform_support/third_party/android/skia/images/SkImageRef_GlobalPool.h rename to cocos2dx/platform/third_party/android/skia/images/SkImageRef_GlobalPool.h diff --git a/platform_support/third_party/android/skia/images/SkJpegUtility.h b/cocos2dx/platform/third_party/android/skia/images/SkJpegUtility.h similarity index 100% rename from platform_support/third_party/android/skia/images/SkJpegUtility.h rename to cocos2dx/platform/third_party/android/skia/images/SkJpegUtility.h diff --git a/platform_support/third_party/android/skia/images/SkMovie.h b/cocos2dx/platform/third_party/android/skia/images/SkMovie.h similarity index 100% rename from platform_support/third_party/android/skia/images/SkMovie.h rename to cocos2dx/platform/third_party/android/skia/images/SkMovie.h diff --git a/platform_support/third_party/android/skia/images/SkPageFlipper.h b/cocos2dx/platform/third_party/android/skia/images/SkPageFlipper.h similarity index 100% rename from platform_support/third_party/android/skia/images/SkPageFlipper.h rename to cocos2dx/platform/third_party/android/skia/images/SkPageFlipper.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFCatalog.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFCatalog.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFCatalog.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFCatalog.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFDevice.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFDevice.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFDevice.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFDevice.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFDocument.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFDocument.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFDocument.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFDocument.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFFont.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFFont.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFFont.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFFont.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFFormXObject.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFFormXObject.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFFormXObject.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFFormXObject.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFGraphicState.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFGraphicState.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFGraphicState.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFGraphicState.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFImage.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFImage.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFImage.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFImage.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFPage.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFPage.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFPage.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFPage.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFStream.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFStream.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFStream.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFStream.h diff --git a/platform_support/third_party/android/skia/pdf/SkPDFTypes.h b/cocos2dx/platform/third_party/android/skia/pdf/SkPDFTypes.h similarity index 100% rename from platform_support/third_party/android/skia/pdf/SkPDFTypes.h rename to cocos2dx/platform/third_party/android/skia/pdf/SkPDFTypes.h diff --git a/platform_support/third_party/android/skia/ports/SkHarfBuzzFont.h b/cocos2dx/platform/third_party/android/skia/ports/SkHarfBuzzFont.h similarity index 100% rename from platform_support/third_party/android/skia/ports/SkHarfBuzzFont.h rename to cocos2dx/platform/third_party/android/skia/ports/SkHarfBuzzFont.h diff --git a/platform_support/third_party/android/skia/ports/SkStream_Win.h b/cocos2dx/platform/third_party/android/skia/ports/SkStream_Win.h similarity index 100% rename from platform_support/third_party/android/skia/ports/SkStream_Win.h rename to cocos2dx/platform/third_party/android/skia/ports/SkStream_Win.h diff --git a/platform_support/third_party/android/skia/svg/SkSVGAttribute.h b/cocos2dx/platform/third_party/android/skia/svg/SkSVGAttribute.h similarity index 100% rename from platform_support/third_party/android/skia/svg/SkSVGAttribute.h rename to cocos2dx/platform/third_party/android/skia/svg/SkSVGAttribute.h diff --git a/platform_support/third_party/android/skia/svg/SkSVGBase.h b/cocos2dx/platform/third_party/android/skia/svg/SkSVGBase.h similarity index 100% rename from platform_support/third_party/android/skia/svg/SkSVGBase.h rename to cocos2dx/platform/third_party/android/skia/svg/SkSVGBase.h diff --git a/platform_support/third_party/android/skia/svg/SkSVGPaintState.h b/cocos2dx/platform/third_party/android/skia/svg/SkSVGPaintState.h similarity index 100% rename from platform_support/third_party/android/skia/svg/SkSVGPaintState.h rename to cocos2dx/platform/third_party/android/skia/svg/SkSVGPaintState.h diff --git a/platform_support/third_party/android/skia/svg/SkSVGParser.h b/cocos2dx/platform/third_party/android/skia/svg/SkSVGParser.h similarity index 100% rename from platform_support/third_party/android/skia/svg/SkSVGParser.h rename to cocos2dx/platform/third_party/android/skia/svg/SkSVGParser.h diff --git a/platform_support/third_party/android/skia/svg/SkSVGTypes.h b/cocos2dx/platform/third_party/android/skia/svg/SkSVGTypes.h similarity index 100% rename from platform_support/third_party/android/skia/svg/SkSVGTypes.h rename to cocos2dx/platform/third_party/android/skia/svg/SkSVGTypes.h diff --git a/platform_support/third_party/android/skia/text/SkTextLayout.h b/cocos2dx/platform/third_party/android/skia/text/SkTextLayout.h similarity index 100% rename from platform_support/third_party/android/skia/text/SkTextLayout.h rename to cocos2dx/platform/third_party/android/skia/text/SkTextLayout.h diff --git a/platform_support/third_party/android/skia/utils/SkBoundaryPatch.h b/cocos2dx/platform/third_party/android/skia/utils/SkBoundaryPatch.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkBoundaryPatch.h rename to cocos2dx/platform/third_party/android/skia/utils/SkBoundaryPatch.h diff --git a/platform_support/third_party/android/skia/utils/SkCamera.h b/cocos2dx/platform/third_party/android/skia/utils/SkCamera.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkCamera.h rename to cocos2dx/platform/third_party/android/skia/utils/SkCamera.h diff --git a/platform_support/third_party/android/skia/utils/SkCubicInterval.h b/cocos2dx/platform/third_party/android/skia/utils/SkCubicInterval.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkCubicInterval.h rename to cocos2dx/platform/third_party/android/skia/utils/SkCubicInterval.h diff --git a/platform_support/third_party/android/skia/utils/SkCullPoints.h b/cocos2dx/platform/third_party/android/skia/utils/SkCullPoints.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkCullPoints.h rename to cocos2dx/platform/third_party/android/skia/utils/SkCullPoints.h diff --git a/platform_support/third_party/android/skia/utils/SkDumpCanvas.h b/cocos2dx/platform/third_party/android/skia/utils/SkDumpCanvas.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkDumpCanvas.h rename to cocos2dx/platform/third_party/android/skia/utils/SkDumpCanvas.h diff --git a/platform_support/third_party/android/skia/utils/SkGLCanvas.h b/cocos2dx/platform/third_party/android/skia/utils/SkGLCanvas.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkGLCanvas.h rename to cocos2dx/platform/third_party/android/skia/utils/SkGLCanvas.h diff --git a/platform_support/third_party/android/skia/utils/SkInterpolator.h b/cocos2dx/platform/third_party/android/skia/utils/SkInterpolator.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkInterpolator.h rename to cocos2dx/platform/third_party/android/skia/utils/SkInterpolator.h diff --git a/platform_support/third_party/android/skia/utils/SkLayer.h b/cocos2dx/platform/third_party/android/skia/utils/SkLayer.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkLayer.h rename to cocos2dx/platform/third_party/android/skia/utils/SkLayer.h diff --git a/platform_support/third_party/android/skia/utils/SkMeshUtils.h b/cocos2dx/platform/third_party/android/skia/utils/SkMeshUtils.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkMeshUtils.h rename to cocos2dx/platform/third_party/android/skia/utils/SkMeshUtils.h diff --git a/platform_support/third_party/android/skia/utils/SkNWayCanvas.h b/cocos2dx/platform/third_party/android/skia/utils/SkNWayCanvas.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkNWayCanvas.h rename to cocos2dx/platform/third_party/android/skia/utils/SkNWayCanvas.h diff --git a/platform_support/third_party/android/skia/utils/SkNinePatch.h b/cocos2dx/platform/third_party/android/skia/utils/SkNinePatch.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkNinePatch.h rename to cocos2dx/platform/third_party/android/skia/utils/SkNinePatch.h diff --git a/platform_support/third_party/android/skia/utils/SkParse.h b/cocos2dx/platform/third_party/android/skia/utils/SkParse.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkParse.h rename to cocos2dx/platform/third_party/android/skia/utils/SkParse.h diff --git a/platform_support/third_party/android/skia/utils/SkParsePaint.h b/cocos2dx/platform/third_party/android/skia/utils/SkParsePaint.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkParsePaint.h rename to cocos2dx/platform/third_party/android/skia/utils/SkParsePaint.h diff --git a/platform_support/third_party/android/skia/utils/SkParsePath.h b/cocos2dx/platform/third_party/android/skia/utils/SkParsePath.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkParsePath.h rename to cocos2dx/platform/third_party/android/skia/utils/SkParsePath.h diff --git a/platform_support/third_party/android/skia/utils/SkProxyCanvas.h b/cocos2dx/platform/third_party/android/skia/utils/SkProxyCanvas.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkProxyCanvas.h rename to cocos2dx/platform/third_party/android/skia/utils/SkProxyCanvas.h diff --git a/platform_support/third_party/android/skia/utils/SkSfntUtils.h b/cocos2dx/platform/third_party/android/skia/utils/SkSfntUtils.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkSfntUtils.h rename to cocos2dx/platform/third_party/android/skia/utils/SkSfntUtils.h diff --git a/platform_support/third_party/android/skia/utils/SkTextBox.h b/cocos2dx/platform/third_party/android/skia/utils/SkTextBox.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkTextBox.h rename to cocos2dx/platform/third_party/android/skia/utils/SkTextBox.h diff --git a/platform_support/third_party/android/skia/utils/SkTextFormatParams.h b/cocos2dx/platform/third_party/android/skia/utils/SkTextFormatParams.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkTextFormatParams.h rename to cocos2dx/platform/third_party/android/skia/utils/SkTextFormatParams.h diff --git a/platform_support/third_party/android/skia/utils/SkUnitMappers.h b/cocos2dx/platform/third_party/android/skia/utils/SkUnitMappers.h similarity index 100% rename from platform_support/third_party/android/skia/utils/SkUnitMappers.h rename to cocos2dx/platform/third_party/android/skia/utils/SkUnitMappers.h diff --git a/platform_support/third_party/android/skia/utils/mac/SkCGUtils.h b/cocos2dx/platform/third_party/android/skia/utils/mac/SkCGUtils.h similarity index 100% rename from platform_support/third_party/android/skia/utils/mac/SkCGUtils.h rename to cocos2dx/platform/third_party/android/skia/utils/mac/SkCGUtils.h diff --git a/platform_support/third_party/android/skia/views/SkApplication.h b/cocos2dx/platform/third_party/android/skia/views/SkApplication.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkApplication.h rename to cocos2dx/platform/third_party/android/skia/views/SkApplication.h diff --git a/platform_support/third_party/android/skia/views/SkBGViewArtist.h b/cocos2dx/platform/third_party/android/skia/views/SkBGViewArtist.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkBGViewArtist.h rename to cocos2dx/platform/third_party/android/skia/views/SkBGViewArtist.h diff --git a/platform_support/third_party/android/skia/views/SkBorderView.h b/cocos2dx/platform/third_party/android/skia/views/SkBorderView.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkBorderView.h rename to cocos2dx/platform/third_party/android/skia/views/SkBorderView.h diff --git a/platform_support/third_party/android/skia/views/SkEvent.h b/cocos2dx/platform/third_party/android/skia/views/SkEvent.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkEvent.h rename to cocos2dx/platform/third_party/android/skia/views/SkEvent.h diff --git a/platform_support/third_party/android/skia/views/SkEventSink.h b/cocos2dx/platform/third_party/android/skia/views/SkEventSink.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkEventSink.h rename to cocos2dx/platform/third_party/android/skia/views/SkEventSink.h diff --git a/platform_support/third_party/android/skia/views/SkImageView.h b/cocos2dx/platform/third_party/android/skia/views/SkImageView.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkImageView.h rename to cocos2dx/platform/third_party/android/skia/views/SkImageView.h diff --git a/platform_support/third_party/android/skia/views/SkKey.h b/cocos2dx/platform/third_party/android/skia/views/SkKey.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkKey.h rename to cocos2dx/platform/third_party/android/skia/views/SkKey.h diff --git a/platform_support/third_party/android/skia/views/SkMetaData.h b/cocos2dx/platform/third_party/android/skia/views/SkMetaData.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkMetaData.h rename to cocos2dx/platform/third_party/android/skia/views/SkMetaData.h diff --git a/platform_support/third_party/android/skia/views/SkOSMenu.h b/cocos2dx/platform/third_party/android/skia/views/SkOSMenu.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkOSMenu.h rename to cocos2dx/platform/third_party/android/skia/views/SkOSMenu.h diff --git a/platform_support/third_party/android/skia/views/SkOSSound.h b/cocos2dx/platform/third_party/android/skia/views/SkOSSound.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkOSSound.h rename to cocos2dx/platform/third_party/android/skia/views/SkOSSound.h diff --git a/platform_support/third_party/android/skia/views/SkOSWindow_Mac.h b/cocos2dx/platform/third_party/android/skia/views/SkOSWindow_Mac.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkOSWindow_Mac.h rename to cocos2dx/platform/third_party/android/skia/views/SkOSWindow_Mac.h diff --git a/platform_support/third_party/android/skia/views/SkOSWindow_SDL.h b/cocos2dx/platform/third_party/android/skia/views/SkOSWindow_SDL.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkOSWindow_SDL.h rename to cocos2dx/platform/third_party/android/skia/views/SkOSWindow_SDL.h diff --git a/platform_support/third_party/android/skia/views/SkOSWindow_Unix.h b/cocos2dx/platform/third_party/android/skia/views/SkOSWindow_Unix.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkOSWindow_Unix.h rename to cocos2dx/platform/third_party/android/skia/views/SkOSWindow_Unix.h diff --git a/platform_support/third_party/android/skia/views/SkOSWindow_Win.h b/cocos2dx/platform/third_party/android/skia/views/SkOSWindow_Win.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkOSWindow_Win.h rename to cocos2dx/platform/third_party/android/skia/views/SkOSWindow_Win.h diff --git a/platform_support/third_party/android/skia/views/SkOSWindow_wxwidgets.h b/cocos2dx/platform/third_party/android/skia/views/SkOSWindow_wxwidgets.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkOSWindow_wxwidgets.h rename to cocos2dx/platform/third_party/android/skia/views/SkOSWindow_wxwidgets.h diff --git a/platform_support/third_party/android/skia/views/SkProgressBarView.h b/cocos2dx/platform/third_party/android/skia/views/SkProgressBarView.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkProgressBarView.h rename to cocos2dx/platform/third_party/android/skia/views/SkProgressBarView.h diff --git a/platform_support/third_party/android/skia/views/SkScrollBarView.h b/cocos2dx/platform/third_party/android/skia/views/SkScrollBarView.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkScrollBarView.h rename to cocos2dx/platform/third_party/android/skia/views/SkScrollBarView.h diff --git a/platform_support/third_party/android/skia/views/SkStackViewLayout.h b/cocos2dx/platform/third_party/android/skia/views/SkStackViewLayout.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkStackViewLayout.h rename to cocos2dx/platform/third_party/android/skia/views/SkStackViewLayout.h diff --git a/platform_support/third_party/android/skia/views/SkSystemEventTypes.h b/cocos2dx/platform/third_party/android/skia/views/SkSystemEventTypes.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkSystemEventTypes.h rename to cocos2dx/platform/third_party/android/skia/views/SkSystemEventTypes.h diff --git a/platform_support/third_party/android/skia/views/SkView.h b/cocos2dx/platform/third_party/android/skia/views/SkView.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkView.h rename to cocos2dx/platform/third_party/android/skia/views/SkView.h diff --git a/platform_support/third_party/android/skia/views/SkViewInflate.h b/cocos2dx/platform/third_party/android/skia/views/SkViewInflate.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkViewInflate.h rename to cocos2dx/platform/third_party/android/skia/views/SkViewInflate.h diff --git a/platform_support/third_party/android/skia/views/SkWidget.h b/cocos2dx/platform/third_party/android/skia/views/SkWidget.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkWidget.h rename to cocos2dx/platform/third_party/android/skia/views/SkWidget.h diff --git a/platform_support/third_party/android/skia/views/SkWidgetViews.h b/cocos2dx/platform/third_party/android/skia/views/SkWidgetViews.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkWidgetViews.h rename to cocos2dx/platform/third_party/android/skia/views/SkWidgetViews.h diff --git a/platform_support/third_party/android/skia/views/SkWindow.h b/cocos2dx/platform/third_party/android/skia/views/SkWindow.h similarity index 100% rename from platform_support/third_party/android/skia/views/SkWindow.h rename to cocos2dx/platform/third_party/android/skia/views/SkWindow.h diff --git a/platform_support/third_party/android/skia/xml/SkBML_WXMLParser.h b/cocos2dx/platform/third_party/android/skia/xml/SkBML_WXMLParser.h similarity index 100% rename from platform_support/third_party/android/skia/xml/SkBML_WXMLParser.h rename to cocos2dx/platform/third_party/android/skia/xml/SkBML_WXMLParser.h diff --git a/platform_support/third_party/android/skia/xml/SkBML_XMLParser.h b/cocos2dx/platform/third_party/android/skia/xml/SkBML_XMLParser.h similarity index 100% rename from platform_support/third_party/android/skia/xml/SkBML_XMLParser.h rename to cocos2dx/platform/third_party/android/skia/xml/SkBML_XMLParser.h diff --git a/platform_support/third_party/android/skia/xml/SkDOM.h b/cocos2dx/platform/third_party/android/skia/xml/SkDOM.h similarity index 100% rename from platform_support/third_party/android/skia/xml/SkDOM.h rename to cocos2dx/platform/third_party/android/skia/xml/SkDOM.h diff --git a/platform_support/third_party/android/skia/xml/SkJS.h b/cocos2dx/platform/third_party/android/skia/xml/SkJS.h similarity index 100% rename from platform_support/third_party/android/skia/xml/SkJS.h rename to cocos2dx/platform/third_party/android/skia/xml/SkJS.h diff --git a/platform_support/third_party/android/skia/xml/SkXMLParser.h b/cocos2dx/platform/third_party/android/skia/xml/SkXMLParser.h similarity index 100% rename from platform_support/third_party/android/skia/xml/SkXMLParser.h rename to cocos2dx/platform/third_party/android/skia/xml/SkXMLParser.h diff --git a/platform_support/third_party/android/skia/xml/SkXMLWriter.h b/cocos2dx/platform/third_party/android/skia/xml/SkXMLWriter.h similarity index 100% rename from platform_support/third_party/android/skia/xml/SkXMLWriter.h rename to cocos2dx/platform/third_party/android/skia/xml/SkXMLWriter.h diff --git a/platform_support/third_party/win32/OGLES/EGL/egl.h b/cocos2dx/platform/third_party/win32/OGLES/EGL/egl.h similarity index 100% rename from platform_support/third_party/win32/OGLES/EGL/egl.h rename to cocos2dx/platform/third_party/win32/OGLES/EGL/egl.h diff --git a/platform_support/third_party/win32/OGLES/EGL/eglext.h b/cocos2dx/platform/third_party/win32/OGLES/EGL/eglext.h similarity index 100% rename from platform_support/third_party/win32/OGLES/EGL/eglext.h rename to cocos2dx/platform/third_party/win32/OGLES/EGL/eglext.h diff --git a/platform_support/third_party/win32/OGLES/EGL/eglplatform.h b/cocos2dx/platform/third_party/win32/OGLES/EGL/eglplatform.h similarity index 100% rename from platform_support/third_party/win32/OGLES/EGL/eglplatform.h rename to cocos2dx/platform/third_party/win32/OGLES/EGL/eglplatform.h diff --git a/platform_support/third_party/win32/OGLES/GLES/egl.h b/cocos2dx/platform/third_party/win32/OGLES/GLES/egl.h similarity index 100% rename from platform_support/third_party/win32/OGLES/GLES/egl.h rename to cocos2dx/platform/third_party/win32/OGLES/GLES/egl.h diff --git a/platform_support/third_party/win32/OGLES/GLES/gl.h b/cocos2dx/platform/third_party/win32/OGLES/GLES/gl.h similarity index 100% rename from platform_support/third_party/win32/OGLES/GLES/gl.h rename to cocos2dx/platform/third_party/win32/OGLES/GLES/gl.h diff --git a/platform_support/third_party/win32/OGLES/GLES/glext.h b/cocos2dx/platform/third_party/win32/OGLES/GLES/glext.h similarity index 100% rename from platform_support/third_party/win32/OGLES/GLES/glext.h rename to cocos2dx/platform/third_party/win32/OGLES/GLES/glext.h diff --git a/platform_support/third_party/win32/OGLES/GLES/glplatform.h b/cocos2dx/platform/third_party/win32/OGLES/GLES/glplatform.h similarity index 100% rename from platform_support/third_party/win32/OGLES/GLES/glplatform.h rename to cocos2dx/platform/third_party/win32/OGLES/GLES/glplatform.h diff --git a/platform_support/third_party/win32/OGLES/KHR/khrplatform.h b/cocos2dx/platform/third_party/win32/OGLES/KHR/khrplatform.h similarity index 100% rename from platform_support/third_party/win32/OGLES/KHR/khrplatform.h rename to cocos2dx/platform/third_party/win32/OGLES/KHR/khrplatform.h diff --git a/platform_support/third_party/win32/iconv/iconv.h b/cocos2dx/platform/third_party/win32/iconv/iconv.h similarity index 100% rename from platform_support/third_party/win32/iconv/iconv.h rename to cocos2dx/platform/third_party/win32/iconv/iconv.h diff --git a/platform_support/third_party/win32/libjpeg/jconfig.h b/cocos2dx/platform/third_party/win32/libjpeg/jconfig.h similarity index 100% rename from platform_support/third_party/win32/libjpeg/jconfig.h rename to cocos2dx/platform/third_party/win32/libjpeg/jconfig.h diff --git a/platform_support/third_party/win32/libjpeg/jconfig_linux.h b/cocos2dx/platform/third_party/win32/libjpeg/jconfig_linux.h similarity index 100% rename from platform_support/third_party/win32/libjpeg/jconfig_linux.h rename to cocos2dx/platform/third_party/win32/libjpeg/jconfig_linux.h diff --git a/platform_support/third_party/win32/libjpeg/jconfig_win.h b/cocos2dx/platform/third_party/win32/libjpeg/jconfig_win.h similarity index 100% rename from platform_support/third_party/win32/libjpeg/jconfig_win.h rename to cocos2dx/platform/third_party/win32/libjpeg/jconfig_win.h diff --git a/platform_support/third_party/win32/libjpeg/jerror.h b/cocos2dx/platform/third_party/win32/libjpeg/jerror.h similarity index 100% rename from platform_support/third_party/win32/libjpeg/jerror.h rename to cocos2dx/platform/third_party/win32/libjpeg/jerror.h diff --git a/platform_support/third_party/win32/libjpeg/jmorecfg.h b/cocos2dx/platform/third_party/win32/libjpeg/jmorecfg.h similarity index 100% rename from platform_support/third_party/win32/libjpeg/jmorecfg.h rename to cocos2dx/platform/third_party/win32/libjpeg/jmorecfg.h diff --git a/platform_support/third_party/win32/libjpeg/jpeglib.h b/cocos2dx/platform/third_party/win32/libjpeg/jpeglib.h similarity index 100% rename from platform_support/third_party/win32/libjpeg/jpeglib.h rename to cocos2dx/platform/third_party/win32/libjpeg/jpeglib.h diff --git a/platform_support/third_party/win32/libpng/png.h b/cocos2dx/platform/third_party/win32/libpng/png.h similarity index 100% rename from platform_support/third_party/win32/libpng/png.h rename to cocos2dx/platform/third_party/win32/libpng/png.h diff --git a/platform_support/third_party/win32/libpng/pngconf.h b/cocos2dx/platform/third_party/win32/libpng/pngconf.h similarity index 100% rename from platform_support/third_party/win32/libpng/pngconf.h rename to cocos2dx/platform/third_party/win32/libpng/pngconf.h diff --git a/platform_support/third_party/win32/libraries/iconv.dll b/cocos2dx/platform/third_party/win32/libraries/iconv.dll similarity index 100% rename from platform_support/third_party/win32/libraries/iconv.dll rename to cocos2dx/platform/third_party/win32/libraries/iconv.dll diff --git a/platform_support/third_party/win32/libraries/libEGL.dll b/cocos2dx/platform/third_party/win32/libraries/libEGL.dll similarity index 100% rename from platform_support/third_party/win32/libraries/libEGL.dll rename to cocos2dx/platform/third_party/win32/libraries/libEGL.dll diff --git a/platform_support/third_party/win32/libraries/libEGL.lib b/cocos2dx/platform/third_party/win32/libraries/libEGL.lib similarity index 100% rename from platform_support/third_party/win32/libraries/libEGL.lib rename to cocos2dx/platform/third_party/win32/libraries/libEGL.lib diff --git a/platform_support/third_party/win32/libraries/libgles_cm.dll b/cocos2dx/platform/third_party/win32/libraries/libgles_cm.dll similarity index 100% rename from platform_support/third_party/win32/libraries/libgles_cm.dll rename to cocos2dx/platform/third_party/win32/libraries/libgles_cm.dll diff --git a/platform_support/third_party/win32/libraries/libgles_cm.lib b/cocos2dx/platform/third_party/win32/libraries/libgles_cm.lib similarity index 100% rename from platform_support/third_party/win32/libraries/libgles_cm.lib rename to cocos2dx/platform/third_party/win32/libraries/libgles_cm.lib diff --git a/platform_support/third_party/win32/libraries/libiconv.lib b/cocos2dx/platform/third_party/win32/libraries/libiconv.lib similarity index 100% rename from platform_support/third_party/win32/libraries/libiconv.lib rename to cocos2dx/platform/third_party/win32/libraries/libiconv.lib diff --git a/platform_support/third_party/win32/libraries/libjpeg.lib b/cocos2dx/platform/third_party/win32/libraries/libjpeg.lib similarity index 100% rename from platform_support/third_party/win32/libraries/libjpeg.lib rename to cocos2dx/platform/third_party/win32/libraries/libjpeg.lib diff --git a/platform_support/third_party/win32/libraries/libpng.lib b/cocos2dx/platform/third_party/win32/libraries/libpng.lib similarity index 100% rename from platform_support/third_party/win32/libraries/libpng.lib rename to cocos2dx/platform/third_party/win32/libraries/libpng.lib diff --git a/platform_support/third_party/win32/libraries/libxml2.dll b/cocos2dx/platform/third_party/win32/libraries/libxml2.dll similarity index 100% rename from platform_support/third_party/win32/libraries/libxml2.dll rename to cocos2dx/platform/third_party/win32/libraries/libxml2.dll diff --git a/platform_support/third_party/win32/libraries/libxml2.lib b/cocos2dx/platform/third_party/win32/libraries/libxml2.lib similarity index 100% rename from platform_support/third_party/win32/libraries/libxml2.lib rename to cocos2dx/platform/third_party/win32/libraries/libxml2.lib diff --git a/platform_support/third_party/win32/libraries/libzlib.lib b/cocos2dx/platform/third_party/win32/libraries/libzlib.lib similarity index 100% rename from platform_support/third_party/win32/libraries/libzlib.lib rename to cocos2dx/platform/third_party/win32/libraries/libzlib.lib diff --git a/platform_support/third_party/win32/libraries/zlib1.dll b/cocos2dx/platform/third_party/win32/libraries/zlib1.dll similarity index 100% rename from platform_support/third_party/win32/libraries/zlib1.dll rename to cocos2dx/platform/third_party/win32/libraries/zlib1.dll diff --git a/platform_support/third_party/win32/libxml2/libxml/DOCBparser.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/DOCBparser.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/DOCBparser.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/DOCBparser.h diff --git a/platform_support/third_party/win32/libxml2/libxml/HTMLparser.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/HTMLparser.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/HTMLparser.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/HTMLparser.h diff --git a/platform_support/third_party/win32/libxml2/libxml/HTMLtree.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/HTMLtree.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/HTMLtree.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/HTMLtree.h diff --git a/platform_support/third_party/win32/libxml2/libxml/SAX.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/SAX.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/SAX.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/SAX.h diff --git a/platform_support/third_party/win32/libxml2/libxml/SAX2.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/SAX2.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/SAX2.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/SAX2.h diff --git a/platform_support/third_party/win32/libxml2/libxml/c14n.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/c14n.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/c14n.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/c14n.h diff --git a/platform_support/third_party/win32/libxml2/libxml/catalog.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/catalog.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/catalog.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/catalog.h diff --git a/platform_support/third_party/win32/libxml2/libxml/chvalid.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/chvalid.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/chvalid.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/chvalid.h diff --git a/platform_support/third_party/win32/libxml2/libxml/debugXML.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/debugXML.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/debugXML.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/debugXML.h diff --git a/platform_support/third_party/win32/libxml2/libxml/dict.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/dict.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/dict.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/dict.h diff --git a/platform_support/third_party/win32/libxml2/libxml/encoding.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/encoding.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/encoding.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/encoding.h diff --git a/platform_support/third_party/win32/libxml2/libxml/entities.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/entities.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/entities.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/entities.h diff --git a/platform_support/third_party/win32/libxml2/libxml/globals.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/globals.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/globals.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/globals.h diff --git a/platform_support/third_party/win32/libxml2/libxml/hash.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/hash.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/hash.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/hash.h diff --git a/platform_support/third_party/win32/libxml2/libxml/list.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/list.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/list.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/list.h diff --git a/platform_support/third_party/win32/libxml2/libxml/nanoftp.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/nanoftp.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/nanoftp.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/nanoftp.h diff --git a/platform_support/third_party/win32/libxml2/libxml/nanohttp.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/nanohttp.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/nanohttp.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/nanohttp.h diff --git a/platform_support/third_party/win32/libxml2/libxml/parser.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/parser.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/parser.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/parser.h diff --git a/platform_support/third_party/win32/libxml2/libxml/parserInternals.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/parserInternals.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/parserInternals.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/parserInternals.h diff --git a/platform_support/third_party/win32/libxml2/libxml/pattern.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/pattern.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/pattern.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/pattern.h diff --git a/platform_support/third_party/win32/libxml2/libxml/relaxng.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/relaxng.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/relaxng.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/relaxng.h diff --git a/platform_support/third_party/win32/libxml2/libxml/schemasInternals.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/schemasInternals.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/schemasInternals.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/schemasInternals.h diff --git a/platform_support/third_party/win32/libxml2/libxml/schematron.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/schematron.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/schematron.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/schematron.h diff --git a/platform_support/third_party/win32/libxml2/libxml/threads.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/threads.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/threads.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/threads.h diff --git a/platform_support/third_party/win32/libxml2/libxml/tree.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/tree.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/tree.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/tree.h diff --git a/platform_support/third_party/win32/libxml2/libxml/uri.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/uri.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/uri.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/uri.h diff --git a/platform_support/third_party/win32/libxml2/libxml/valid.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/valid.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/valid.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/valid.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xinclude.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xinclude.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xinclude.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xinclude.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xlink.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xlink.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xlink.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xlink.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlIO.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlIO.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlIO.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlIO.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlautomata.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlautomata.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlautomata.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlautomata.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlerror.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlerror.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlerror.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlerror.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlexports.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlexports.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlexports.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlexports.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlmemory.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlmemory.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlmemory.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlmemory.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlmodule.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlmodule.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlmodule.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlmodule.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlreader.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlreader.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlreader.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlreader.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlregexp.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlregexp.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlregexp.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlregexp.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlsave.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlsave.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlsave.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlsave.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlschemas.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlschemas.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlschemas.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlschemas.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlschemastypes.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlschemastypes.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlschemastypes.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlschemastypes.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlstring.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlstring.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlstring.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlstring.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlunicode.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlunicode.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlunicode.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlunicode.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlversion.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlversion.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlversion.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlversion.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xmlwriter.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xmlwriter.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xmlwriter.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xmlwriter.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xpath.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xpath.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xpath.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xpath.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xpathInternals.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xpathInternals.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xpathInternals.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xpathInternals.h diff --git a/platform_support/third_party/win32/libxml2/libxml/xpointer.h b/cocos2dx/platform/third_party/win32/libxml2/libxml/xpointer.h similarity index 100% rename from platform_support/third_party/win32/libxml2/libxml/xpointer.h rename to cocos2dx/platform/third_party/win32/libxml2/libxml/xpointer.h diff --git a/platform_support/third_party/win32/third_party_versions.txt b/cocos2dx/platform/third_party/win32/third_party_versions.txt similarity index 100% rename from platform_support/third_party/win32/third_party_versions.txt rename to cocos2dx/platform/third_party/win32/third_party_versions.txt diff --git a/platform_support/third_party/win32/zlib/zconf.h b/cocos2dx/platform/third_party/win32/zlib/zconf.h similarity index 100% rename from platform_support/third_party/win32/zlib/zconf.h rename to cocos2dx/platform/third_party/win32/zlib/zconf.h diff --git a/platform_support/third_party/win32/zlib/zlib.h b/cocos2dx/platform/third_party/win32/zlib/zlib.h similarity index 100% rename from platform_support/third_party/win32/zlib/zlib.h rename to cocos2dx/platform/third_party/win32/zlib/zlib.h diff --git a/cocos2dx/platform/uphone/CCAccelerometer_uphone.cpp b/cocos2dx/platform/uphone/CCAccelerometer_uphone.cpp index bcba7c879759..c0957d139194 100644 --- a/cocos2dx/platform/uphone/CCAccelerometer_uphone.cpp +++ b/cocos2dx/platform/uphone/CCAccelerometer_uphone.cpp @@ -175,7 +175,7 @@ void CCAccelerometer::addDelegate(CCAccelerometerDelegate* pDelegate) } } -void CCAccelerometer::didAccelerate(UIAcceleration* pAccelerationValue) +void CCAccelerometer::didAccelerate(CCAcceleration* pAccelerationValue) { CCAccelerometerHandler *pHandler; CCAccelerometerDelegate *pDelegate; diff --git a/cocos2dx/platform/uphone/CCAccelerometer_uphone.h b/cocos2dx/platform/uphone/CCAccelerometer_uphone.h index 7b4b97ec571e..6f0b4b07513c 100644 --- a/cocos2dx/platform/uphone/CCAccelerometer_uphone.h +++ b/cocos2dx/platform/uphone/CCAccelerometer_uphone.h @@ -87,7 +87,7 @@ class CC_DLL CCAccelerometer /** @brief call delegates' didAccelerate function */ - void didAccelerate(UIAcceleration* pAccelerationValue); + void didAccelerate(CCAcceleration* pAccelerationValue); protected: typedef CCMutableArray AccDelegateArray; diff --git a/cocos2dx/platform/uphone/CCEGLView_uphone.cpp b/cocos2dx/platform/uphone/CCEGLView_uphone.cpp index 0d38700b0076..f62b8619706c 100644 --- a/cocos2dx/platform/uphone/CCEGLView_uphone.cpp +++ b/cocos2dx/platform/uphone/CCEGLView_uphone.cpp @@ -309,7 +309,7 @@ Boolean CCEGLView::EventHandler(TApplication * pApp, EventType * pEvent) TG3_SENSOR_TYPE_ACCELEROMETER == data.sensorMask) { // convert the data to iphone format - UIAcceleration AccValue; + CCAcceleration AccValue; AccValue.x = -(data.acceleration.x / TG3_GRAVITY_EARTH); AccValue.y = -(data.acceleration.y / TG3_GRAVITY_EARTH); AccValue.z = -(data.acceleration.z / TG3_GRAVITY_EARTH); diff --git a/platform_support/src/uphone/CCImage_uphone.cpp b/cocos2dx/platform/uphone/CCImage_uphone.cpp similarity index 96% rename from platform_support/src/uphone/CCImage_uphone.cpp rename to cocos2dx/platform/uphone/CCImage_uphone.cpp index 019fff80e57d..88d86746d2bc 100644 --- a/platform_support/src/uphone/CCImage_uphone.cpp +++ b/cocos2dx/platform/uphone/CCImage_uphone.cpp @@ -29,7 +29,7 @@ NS_CC_BEGIN typedef std::basic_string stdTUString; -void CCMessageBox(const ccxString& msg, const ccxString& title) +void CCMessageBox(const std::string& msg, const std::string& title) { TUChar szText[256] = { 0 }; TUString::StrUtf8ToStrUnicode(szText,(Char*)msg.c_str()); diff --git a/platform_support/src/uphone/CCThread_uphone.cpp b/cocos2dx/platform/uphone/CCThread_uphone.cpp similarity index 88% rename from platform_support/src/uphone/CCThread_uphone.cpp rename to cocos2dx/platform/uphone/CCThread_uphone.cpp index 90c87e99f3ac..3633eb75a42f 100644 --- a/platform_support/src/uphone/CCThread_uphone.cpp +++ b/cocos2dx/platform/uphone/CCThread_uphone.cpp @@ -25,11 +25,11 @@ THE SOFTWARE. #if CCX_SUPPORT_MULTITHREAD #include "TG3.h" -#include "ccxThread.h" +#include "CCThread.h" NS_CC_BEGIN; -class CCXLock::Impl +class CCLock::Impl { public: Impl() @@ -51,16 +51,16 @@ class CCXLock::Impl SS_LOCK_t *m_pLock; }; -CCXLock::CCXLock() -: m_pImp(new CCXLock::Impl) +CCLock::CCLock() +: m_pImp(new CCLock::Impl) { } -CCXLock::~CCXLock() +CCLock::~CCLock() { } -void CCXLock::lock() +void CCLock::lock() { if (m_pImp) { @@ -68,7 +68,7 @@ void CCXLock::lock() } } -void CCXLock::unlock() +void CCLock::unlock() { if (m_pImp) { diff --git a/cocos2dx/platform/win32/CCFileUtils_win32.cpp b/cocos2dx/platform/win32/CCFileUtils_win32.cpp index 3bd9e31f1e17..e09634d36960 100644 --- a/cocos2dx/platform/win32/CCFileUtils_win32.cpp +++ b/cocos2dx/platform/win32/CCFileUtils_win32.cpp @@ -251,11 +251,11 @@ const char* CCFileUtils::fullPathFromRelativePath(const char *pszRelativePath) #if (CC_IS_RETINA_DISPLAY_SUPPORTED) if (CC_CONTENT_SCALE_FACTOR() != 1.0f) { - ccxString hiRes = pRet->m_sString.c_str(); - ccxString::size_type pos = hiRes.find_last_of("/\\"); - ccxString::size_type dotPos = hiRes.find_last_of("."); + std::string hiRes = pRet->m_sString.c_str(); + std::string::size_type pos = hiRes.find_last_of("/\\"); + std::string::size_type dotPos = hiRes.find_last_of("."); - if (ccxString::npos != dotPos && dotPos > pos) + if (std::string::npos != dotPos && dotPos > pos) { hiRes.insert(dotPos, CC_RETINA_DISPLAY_FILENAME_SUFFIX); } diff --git a/platform_support/src/win32/ccimage_win32.cpp b/cocos2dx/platform/win32/CCImage_win32.cpp similarity index 96% rename from platform_support/src/win32/ccimage_win32.cpp rename to cocos2dx/platform/win32/CCImage_win32.cpp index faf2bb2921cf..42ca84ec96b1 100644 --- a/platform_support/src/win32/ccimage_win32.cpp +++ b/cocos2dx/platform/win32/CCImage_win32.cpp @@ -24,7 +24,7 @@ THE SOFTWARE. NS_CC_BEGIN; -void CCMessageBox(const ccxString& msg, const ccxString& title) +void CCMessageBox(const std::string& msg, const std::string& title) { MessageBoxA(NULL, msg.c_str(), title.c_str(), MB_OK); } diff --git a/platform_support/src/win32/CCThread_win32.cpp b/cocos2dx/platform/win32/CCThread_win32.cpp similarity index 100% rename from platform_support/src/win32/CCThread_win32.cpp rename to cocos2dx/platform/win32/CCThread_win32.cpp diff --git a/cocos2dx/proj.uphone/cocos2d-uphone.vcproj b/cocos2dx/proj.uphone/cocos2d-uphone.vcproj index 9dc550a1ba47..99de4f71bd0a 100644 --- a/cocos2dx/proj.uphone/cocos2d-uphone.vcproj +++ b/cocos2dx/proj.uphone/cocos2d-uphone.vcproj @@ -40,7 +40,7 @@ + + + + @@ -940,6 +948,10 @@ RelativePath="..\platform\CCFileUtils_platform.h" > + + @@ -948,10 +960,22 @@ RelativePath="..\platform\CCGrid_mobile.cpp" > + + + + + + @@ -972,10 +996,30 @@ RelativePath="..\platform\CCParticleSystemPoint_platform.h" > + + + + + + + + + + diff --git a/cocos2dx/proj.win32/cocos2d-win32.vcproj b/cocos2dx/proj.win32/cocos2d-win32.vcproj index b9519b460da5..2c90396b3396 100644 --- a/cocos2dx/proj.win32/cocos2d-win32.vcproj +++ b/cocos2dx/proj.win32/cocos2d-win32.vcproj @@ -41,7 +41,7 @@ + + + + @@ -730,6 +738,10 @@ RelativePath="..\platform\CCFileUtils_platform.h" > + + @@ -738,10 +750,22 @@ RelativePath="..\platform\CCGrid_mobile.cpp" > + + + + + + @@ -766,10 +790,30 @@ RelativePath="..\platform\CCParticleSystemPoint_platform.h" > + + + + + + + + + + diff --git a/cocos2dx/support/file_support/FileUtils.cpp b/cocos2dx/support/file_support/FileUtils.cpp index 84eb7fbf9bbe..31cef51f71d5 100644 --- a/cocos2dx/support/file_support/FileUtils.cpp +++ b/cocos2dx/support/file_support/FileUtils.cpp @@ -95,16 +95,16 @@ unsigned char* FileUtils::getFileDataFromZip(const char* pszZipFilePath, const c return pBuffer; } -ccxString& FileUtils::ccRemoveHDSuffixFromFile(ccxString& path) +std::string& FileUtils::ccRemoveHDSuffixFromFile(std::string& path) { #if CC_IS_RETINA_DISPLAY_SUPPORTED if( CC_CONTENT_SCALE_FACTOR() == 2 ) { - ccxString::size_type pos = path.rfind("/") + 1; // the begin index of last part of path + std::string::size_type pos = path.rfind("/") + 1; // the begin index of last part of path - ccxString::size_type suffixPos = path.rfind(CC_RETINA_DISPLAY_FILENAME_SUFFIX); - if (ccxString::npos != suffixPos && suffixPos > pos) + std::string::size_type suffixPos = path.rfind(CC_RETINA_DISPLAY_FILENAME_SUFFIX); + if (std::string::npos != suffixPos && suffixPos > pos) { CCLog("cocos2d: FilePath(%s) contains suffix(%s), remove it.", path.c_str(), CC_RETINA_DISPLAY_FILENAME_SUFFIX); diff --git a/cocos2dx/textures/CCTextureCache.cpp b/cocos2dx/textures/CCTextureCache.cpp index fa1a03ac767a..78df647fa741 100644 --- a/cocos2dx/textures/CCTextureCache.cpp +++ b/cocos2dx/textures/CCTextureCache.cpp @@ -71,8 +71,8 @@ CCTextureCache::CCTextureCache() CCAssert(g_sharedTextureCache == NULL, "Attempted to allocate a second instance of a singleton."); m_pTextures = new CCMutableDictionary(); - m_pDictLock = new NSLock(); - m_pContextLock = new NSLock(); + m_pDictLock = new CCLock(); + m_pContextLock = new CCLock(); } CCTextureCache::~CCTextureCache() @@ -181,7 +181,7 @@ CCTexture2D * CCTextureCache::addImage(const char * path) m_pDictLock->lock(); // remove possible -HD suffix to prevent caching the same image twice (issue #1040) - ccxString pathKey = path; + std::string pathKey = path; CCFileUtils::ccRemoveHDSuffixFromFile(pathKey); texture = m_pTextures->objectForKey(pathKey); diff --git a/platform_support/README.txt b/platform_support/README.txt deleted file mode 100644 index e5c95d5482c1..000000000000 --- a/platform_support/README.txt +++ /dev/null @@ -1,13 +0,0 @@ -1. Introduction - - Deal with difference of C std library, C++ std library, libxml2 and other 3rd-party libraries among each platform. - Provide some functions which cocos2d-x used. - -2. Release Note - - a. Rename CCX_PLATFORM_IPHONE to CCX_PLATFORM_IOS - -3. Todo - - a. Remove macro CCX_PLATFORM_MOBILE and CCX_PLATFORM_PC - diff --git a/platform_support/include/CCPlatformMacros.h b/platform_support/include/CCPlatformMacros.h deleted file mode 100644 index feefd277492a..000000000000 --- a/platform_support/include/CCPlatformMacros.h +++ /dev/null @@ -1,153 +0,0 @@ -/**************************************************************************** -Copyright (c) 2010 cocos2d-x.org - -http://www.cocos2d-x.org - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -****************************************************************************/ - -#ifndef __CC_MACROS_H_YANGWS_20110111__ -#define __CC_MACROS_H_YANGWS_20110111__ - -#include "CCPlatformConfig.h" - -// generic macros - -// namespace cocos2d {} -#define NS_CC_BEGIN namespace cocos2d { -#define NS_CC_END } -#define USING_NS_CC using namespace cocos2d - -/** CC_PROPERTY_READONLY is used to declare a protected variable. - We can use getter to read the variable. - @param varType : the type of variable. - @param varName : variable name. - @param funName : "get + funName" is the name of the getter. - @warning : The getter is a public virtual function, you should rewrite it first. - The variables and methods declared after CC_PROPERTY_READONLY are all public. - If you need protected or private, please declare. - */ -#define CC_PROPERTY_READONLY(varType, varName, funName)\ -protected: varType varName;\ -public: virtual varType get##funName(void); - -/** CC_PROPERTY is used to declare a protected variable. - We can use getter to read the variable, and use the setter to change the variable. - @param varType : the type of variable. - @param varName : variable name. - @param funName : "get + funName" is the name of the getter. - "set + funName" is the name of the setter. - @warning : The getter and setter are public virtual functions, you should rewrite them first. - The variables and methods declared after CC_PROPERTY are all public. - If you need protected or private, please declare. - */ -#define CC_PROPERTY(varType, varName, funName)\ -protected: varType varName;\ -public: virtual varType get##funName(void);\ -public: virtual void set##funName(varType var); - -/** CC_SYNTHESIZE_READONLY is used to declare a protected variable. - We can use getter to read the variable. - @param varType : the type of variable. - @param varName : variable name. - @param funName : "get + funName" is the name of the getter. - @warning : The getter is a public inline function. - The variables and methods declared after CC_SYNTHESIZE_READONLY are all public. - If you need protected or private, please declare. - */ -#define CC_SYNTHESIZE_READONLY(varType, varName, funName)\ -protected: varType varName;\ -public: inline varType get##funName(void) const { return varName; } - -/** CC_SYNTHESIZE is used to declare a protected variable. - We can use getter to read the variable, and use the setter to change the variable. - @param varType : the type of variable. - @param varName : variable name. - @param funName : "get + funName" is the name of the getter. - "set + funName" is the name of the setter. - @warning : The getter and setter are public inline functions. - The variables and methods declared after CC_SYNTHESIZE are all public. - If you need protected or private, please declare. - */ -#define CC_SYNTHESIZE(varType, varName, funName)\ -protected: varType varName;\ -public: inline varType get##funName(void) const { return varName; }\ -public: inline void set##funName(varType var){ varName = var; } - -#define CC_SAFE_DELETE(p) if(p) { delete p; p = 0; } -#define CC_SAFE_DELETE_ARRAY(p) if(p) { delete[] p; p = 0; } -#define CC_SAFE_FREE(p) if(p) { free(p); p = 0; } -#define CC_SAFE_RELEASE(p) if(p) { p->release(); } -#define CC_SAFE_RELEASE_NULL(p) if(p) { p->release(); p = 0; } -#define CC_SAFE_RETAIN(p) if(p) { p->retain(); } -#define CC_BREAK_IF(cond) if(cond) break; - - -// cocos2d debug -#if !defined(COCOS2D_DEBUG) || COCOS2D_DEBUG == 0 -#define CCLOG(...) do {} while (0) -#define CCLOGINFO(...) do {} while (0) -#define CCLOGERROR(...) do {} while (0) - -#elif COCOS2D_DEBUG == 1 -#define CCLOG(format, ...) cocos2d::CCLog(format, ##__VA_ARGS__) -#define CCLOGERROR(format,...) cocos2d::CCLog(format, ##__VA_ARGS__) -#define CCLOGINFO(format,...) do {} while (0) - -#elif COCOS2D_DEBUG > 1 -#define CCLOG(format, ...) cocos2d::CCLog(format, ##__VA_ARGS__) -#define CCLOGERROR(format,...) cocos2d::CCLog(format, ##__VA_ARGS__) -#define CCLOGINFO(format,...) cocos2d::CCLog(format, ##__VA_ARGS__) -#endif // COCOS2D_DEBUG - -// shared library declartor -#define CC_DLL - -// assertion -#include -#define CC_ASSERT(cond) assert(cond) - -// platform depended macros - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) - - #undef CC_DLL - #if defined(_USRDLL) - #define CC_DLL __declspec(dllexport) - #else /* use a DLL library */ - #define CC_DLL __declspec(dllimport) - #endif - -#endif // CC_PLATFORM_WIN32 - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_UPHONE && defined(_TRANZDA_VM_)) - - #undef CC_DLL - #if defined(SS_MAKEDLL) - #define CC_DLL __declspec(dllexport) - #else /* use a DLL library */ - #define CC_DLL __declspec(dllimport) - #endif - -#endif // uphone VM - -// shared library declator for platform_support project -#define CC_DLL_PS CC_DLL - -#endif // __CC_MACROS_H_YANGWS_20110111__ diff --git a/platform_support/include/ccxGL.h b/platform_support/include/ccxGL.h deleted file mode 100644 index 92263d7662a2..000000000000 --- a/platform_support/include/ccxGL.h +++ /dev/null @@ -1,75 +0,0 @@ -/**************************************************************************** -Copyright (c) 2010 cocos2d-x.org - -http://www.cocos2d-x.org - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -****************************************************************************/ - -#ifndef __CC_GL_H__ -#define __CC_GL_H__ - -#include "CCCommon.h" - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) -#include "OpenGLES/ES1/gl.h" -#include "OpenGLES/ES1/glext.h" -#endif - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) -#include -#include -#endif - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) -#include -#include -#endif - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_UPHONE) -#include -#include -#endif - -#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) -#include -#include -#endif - -#if defined(CC_PLATFORM_MOBILE) - -NS_CC_BEGIN; - -/* -OpenGL GLU implementation -*/ - -/** OpenGL gluLookAt implementation */ -void CC_DLL_PS gluLookAt(GLfloat fEyeX, GLfloat fEyeY, GLfloat fEyeZ, - GLfloat fLookAtX, GLfloat fLookAtY, GLfloat fLookAtZ, - GLfloat fUpX, GLfloat fUpY, GLfloat fUpZ); - -/** OpenGL gluPerspective implementation */ -void CC_DLL_PS gluPerspective(GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar); - -NS_CC_END; - -#endif - -#endif // __CC_GL_H__ diff --git a/platform_support/include/ccxString.h b/platform_support/include/ccxString.h deleted file mode 100644 index a4fa5b618031..000000000000 --- a/platform_support/include/ccxString.h +++ /dev/null @@ -1,329 +0,0 @@ -/**************************************************************************** -Copyright (c) 2010 cocos2d-x.org - -http://www.cocos2d-x.org - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -****************************************************************************/ - -#ifndef __CC_STRING_H_YANGWS_20110127__ -#define __CC_STRING_H_YANGWS_20110127__ - -#include "CCCommon.h" - -/** -@file -@brief cocos2d-x uses std::string or std::wstring as ccxString now. - -There are some useful tool for ccxString: -- ccxStringTrim -- ccxStringCompareIgnoreCase -- ccxStringToUpper -- ccxStringToLower -- ccxStringReplaceText -- ccxStringExplode -@todo ccxStringPrintf, ccxStringConvertToAnsi, ccxStringConvertToWide -*/ - -#include - -NS_CC_BEGIN; - -typedef std::string ccxAString; -typedef ccxAString ccxString; - -// ccxStringTrim -/** -@todo ccxStringTrim must re-implement. -Because basic_string is not have the same implement on different platform. -*/ -#if 0 -template -inline std::basic_string<_E, Tr, AllocT >& ccxStringTrim(std::basic_string<_E, Tr, AllocT >& str, - const _E* blanks) -{ - typedef std::basic_string<_E, Tr, AllocT > StringT; - - StringT::size_type pos1 = str.find_first_not_of(blanks); - if (pos1 == StringT::npos) - { - str.erase(); - return str; - } - - StringT::size_type count = str.find_last_not_of(blanks) - pos1 + 1; - if (str.length() != count) - str = str.substr(pos1, count); - return str; -} - -// ccxStringCompareIgnoreCase -inline int compareCharIgnoreCase(int left, int right) -{ - return tolower(left) - tolower(right); -} - -template -inline int compareElementsByIterator(LeftIter leftIterBegin, - LeftIter leftIterEnd, - RightIter rightIterBegin, - RightIter rightIterEnd, - CompT cmp) -{ - int ret = 0; - for (; - (leftIterBegin != leftIterEnd) && (rightIterBegin != rightIterEnd); - ++leftIterBegin, ++rightIterBegin) - if (ret = cmp(*leftIterBegin, *rightIterBegin)) break; - return ret; -} - -template -inline int ccxStringCompareIgnoreCase(std::basic_string<_E, Tr, AllocT >& left, - std::basic_string<_E, Tr, AllocT >& right) -{ - return compareElementsByIterator(left.begin(), left.end(), - right.begin(), right.end(), compareCharIgnoreCase); -} - -// ccxStringToUpper -template -inline std::basic_string<_E, Tr, AllocT >& ccxStringToUpper(std::basic_string<_E, Tr, AllocT >& str) -{ - transform(str.begin(), str.end(), str.begin(), toupper); - return str; -} - -// ccxStringToLower -template -inline std::basic_string<_E, Tr, AllocT >& ccxStringToLower(std::basic_string<_E, Tr, AllocT >& str) -{ - transform(str.begin(), str.end(), str.begin(), tolower); - return str; -} - -/** -@brief Replace the sub text to another text in string. -@param text The string will be processed. -@param findText The sub text will be replaced. -@param replaceText The new sub text. -@return The reference of string which after replace text. -*/ -template -inline StringT& ccxStringReplaceText(StringT& text, - const StringT& findText, - const StringT& replaceText) -{ - typedef typename StringT::size_type size_type; - size_type pos = 0; - while ((pos = text.find(findText, pos)) != StringT::npos) - { - text.replace(pos, findText.size(), replaceText); - pos += replaceText.size(); - } - return text; -} - -// ccxStringExplode - -// ccxString Explode Flags -enum -{ - kefTrim = 0x1, - kefSkipEmpty = 0x2, - kefEraseDelimiters = 0x4, // only support left right pair delimiter - kefDefaultFlag = 0xff, -}; - -/** -@brief Verify every tokens parsed by ccxStringExplode from sequence. -*/ -template -struct TokenVerifier -{ - template - StringT * operator()(StringT& token, - const StringT& delimiters) - { - if (kefTrim & flag) ccxStringTrim(token); - return (kefSkipEmpty & flag && token.length() <= 0) ? 0 : &token; - } - - template - StringT * operator()(StringT& token, - const StringT& deliLeft, - const StringT& deliRight) - { - if (kefEraseDelimiters & flag) token = token.substr(1, token.length() - 2); - if (kefTrim & flag) ccxStringTrim(token); - return (kefSkipEmpty & flag && token.length() <= 0) ? 0 : &token; - } -}; - -/** -@brief Splits a given string into tokens separated by supplied delimiters as a string. - -Every token will be processed by verifier before save to container. -@param container The container of token, which stored in. -@param sequence The string which contained tokens. -@param delimiters The possible delimiters, one delimiter is a char element. -@param verifier The functor for process tokens. -@return The count of tokens which saved to container. -*/ -template -inline int ccxStringExplode(ContainerT& container, - const StringT& sequence, - const StringT& delimiters, - VerifierT& verifier) -{ - int nRet = 0; // the count of tokens parsed from sequence - StringT::size_type lastPos = sequence.find_first_not_of(delimiters, 0); - StringT::size_type pos = lastPos; - - StringT * pToken = 0; - while (StringT::npos != pos) - { - // find the next delimiter pos - pos = sequence.find_first_of(delimiters, lastPos); - StringT token = sequence.substr(lastPos, pos - lastPos); - if (pToken = verifier(token, delimiters)) - { - container.push_back(*pToken); - ++nRet; - } - lastPos = pos + 1; - } - - return nRet; -} - -/** -@brief Splits a given string into tokens separated by supplied delimiters as a string. - -Every token will be processed by default verifier, which erase the delimiters, trim it and skip empty token. -@param container The container of token, which stored in. -@param sequence The string which contained tokens. -@param delimiters The possible delimiters, one delimiter is a char element. -@return The count of tokens which saved to container. -*/ -template -inline int ccxStringExplode(ContainerT& container, - const StringT& sequence, - const StringT& delimiters) -{ - return ccxStringExplode(container, sequence, delimiters, - TokenVerifier()); -} - -/** -@brief Splits a given string into tokens separated by one starting delimiter and ending one. - -Every token will be processed by verifier before save to container. -@param container The container of token, which stored in. -@param sequence The string which contained tokens. -@param deliLeft The possible starting delimiters, one delimiter is a char element. -@param deliRight The possible ending delimiters, one delimiter is a char element. -@param verifier The functor for process tokens. -@return The count of tokens which saved to container. -*/ -template -inline int ccxStringExplode2(ContainerT& container, - const StringT& sequence, - const StringT& deliLeft, - const StringT& deliRight, - VerifierT& verifier) -{ - int nRet = 0; // the count of tokens parsed from sequence - StringT::size_type lpos = sequence.find_first_of(deliLeft, 0); - StringT::size_type rpos = sequence.find_first_of(deliRight, lpos + 1); - - StringT * pToken = 0; - while (StringT::npos != lpos && StringT::npos != rpos) - { - // find the token, get sub string with delimiters - StringT token = sequence.substr(lpos, rpos - lpos + 1); - if (pToken = verifier(token, deliLeft, deliRight)) - { - container.push_back(*pToken); - ++nRet; - } - lpos = sequence.find_first_of(deliLeft, rpos + 1); - rpos = sequence.find_first_of(deliRight, lpos + 1); - } - - return nRet; -} - -/** -@brief Splits a given string into tokens separated by one starting delimiter and ending one. - -Every token will be processed by default verifier, which erase the delimiters, trim it and skip empty token. -@param container The container of token, which stored in. -@param sequence The string which contained tokens. -@param deliLeft The possible starting delimiters, one delimiter is a char element. -@param deliRight The possible ending delimiters, one delimiter is a char element. -@return The count of tokens which saved to container. -*/ -template -inline int ccxStringExplode2(ContainerT& container, - const StringT& sequence, - const StringT& deliLeft, - const StringT& deliRight) -{ - return ccxStringExplode2(container, sequence, deliLeft, deliRight, - TokenVerifier()); -} - -#if ! (CC_SUPPORT_UNICODE) - -// ccxAstring - -typedef std::string ccxAString; -typedef ccxAString ccxString; - -template -inline void ccxStringTrim(std::basic_string& str) -{ - const char blanks[] = { ' ', '\t', '\r', '\n', '\0' }; - ccxStringTrim(str, blanks); -} - -#else // CC_SUPPORT_UNICODE - -// ccxWString - -typedef std::wstring ccxWString; -typedef ccxWString ccxString; - -template -inline inline void ccxStringTrim(std::basic_string& str) -{ - const wchar_t blanks[] = - { - ' ', 12288, '\t', '\r', '\n', '\0' - }; - ccxStringTrim(str, blanks); -} - -#endif // CC_SUPPORT_UNICODE -#endif - -NS_CC_END; - -#endif // __CC_STRING_H_YANGWS_20110127__ diff --git a/platform_support/proj.uphone/Makefile.ARM b/platform_support/proj.uphone/Makefile.ARM deleted file mode 100644 index 3ed3b77140c1..000000000000 --- a/platform_support/proj.uphone/Makefile.ARM +++ /dev/null @@ -1,68 +0,0 @@ - -############################################################################ -# -# Makefile for building : PlatformSupport_Arm.TMK3 -# Created by TMK3_V2.3, please do not modify. -# -############################################################################# - -TO_PROJECT_ROOT = ../../../PRJ_TG3 -OUTPUT_FILENAME = libPlatformSupportStatic.a - -include $(TO_PROJECT_ROOT)/MakeInclude/Makefile_Base_StaticLib.ARM -include $(TO_PROJECT_ROOT)/MakeInclude/Makefile_TOPS_Def.ARM - -DEFINES += -DCCX_UNDER_UPHONE \ - -D__TG3_PURE_DLL__ -INCLUDE_PATH += -I../include -I$(TO_PROJECT_ROOT)/Include/ThirdParty/libxml2 \ - -I$(TO_PROJECT_ROOT)/Include/ThirdParty/iconv \ - -I$(TO_PROJECT_ROOT)/Include/ThirdParty/libpng \ - -I$(TO_PROJECT_ROOT)/Include/ThirdParty/libjpeg - -OBJECTS_DIR = ./Debug-ARM -DESTDIR = $(TO_PROJECT_ROOT)/$(BIN_OUTPUT_DIR) -TARGET = $(DESTDIR)/$(OUTPUT_FILENAME) - -DEL_FILE = rm -f -MKDIR = mkdir -p - -first: all - -OBJECTS = \ - $(OBJECTS_DIR)/ccxCommon.o \ - $(OBJECTS_DIR)/ccxGL.o \ - $(OBJECTS_DIR)/ccxImage.o \ - $(OBJECTS_DIR)/ccxStdC.o \ - $(OBJECTS_DIR)/ccxThread.o - -ADD_OBJECTS += - -$(OBJECTS_DIR) : - $(MKDIR) $(OBJECTS_DIR) - -$(DESTDIR) : - $(MKDIR) $(DESTDIR) - -all : $(OBJECTS_DIR) $(DESTDIR) $(TARGET) - -$(TARGET) : $(OBJECTS) - $(LINK) $(LINK_FLAGS) -o $(TARGET) $(SYS_OBJECTS) $(OBJECTS) $(ADD_OBJECTS) $(LIBS) $(SYS_LIBS) - -clean : - -$(DEL_FILE) $(OBJECTS) - -$(DEL_FILE) $(TARGET) - -$(OBJECTS_DIR)/ccxCommon.o : ../src/ccxCommon.cpp - $(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/ccxCommon.o ../src/ccxCommon.cpp - -$(OBJECTS_DIR)/ccxGL.o : ../src/ccxGL.cpp - $(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/ccxGL.o ../src/ccxGL.cpp - -$(OBJECTS_DIR)/ccxImage.o : ../src/ccxImage.cpp - $(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/ccxImage.o ../src/ccxImage.cpp - -$(OBJECTS_DIR)/ccxStdC.o : ../src/ccxStdC.cpp - $(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/ccxStdC.o ../src/ccxStdC.cpp - -$(OBJECTS_DIR)/ccxThread.o : ../src/ccxThread.cpp - $(CXX) -c $(CXX_FLAGS) $(INCLUDE_PATH) $(LAST_INCLUDE_PATH) -o $(OBJECTS_DIR)/ccxThread.o ../src/ccxThread.cpp diff --git a/platform_support/proj.uphone/PlatformSupport.uphone.vcproj b/platform_support/proj.uphone/PlatformSupport.uphone.vcproj deleted file mode 100644 index c6b926ecf8d6..000000000000 --- a/platform_support/proj.uphone/PlatformSupport.uphone.vcproj +++ /dev/null @@ -1,253 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform_support/proj.uphone/PlatformSupport_Arm.TMK3 b/platform_support/proj.uphone/PlatformSupport_Arm.TMK3 deleted file mode 100644 index 47743c992e29..000000000000 --- a/platform_support/proj.uphone/PlatformSupport_Arm.TMK3 +++ /dev/null @@ -1,56 +0,0 @@ -; -; TG3 Makefile Auto Create Script -; -; ˵���� -; 1.�ڵȺ���߲�Ҫ�пո� -; 2.���е�·����ʹ��"/"���ָ� -; 3.���е��ļ����������пո� -; 4.ֻ�ܶԵ�ǰĿ¼������Ŀ¼�µ�.c��.cpp����Makefile - -;��TMK3�ļ�Ŀ¼λ�õ���Ŀ��Ŀ¼֮���ת������֧�ֶ����������ж���������һ��Ϊ׼ -;�� ./$(TO_PROJECT_ROOT)/ ������Ŀ�ĸ�Ŀ¼ -TO_PROJECT_ROOT=../../PRJ_TG3 - -;���Ŀ������֣���֧�ֶ����������ж���������һ��Ϊ׼ -OUTPUT_FILENAME=libPlatformSupport.so - -;������������TMK3�ļ������ļ��ͱ��ļ�һ�𹹳�MakeFile������ -;������Գ�����TMK3�ļ��ڵ�����ط������Ѿ����ڵ���������� -;ע�⣺���֧�־���·�������ǿ���ʹ��$(TO_PROJECT_ROOT)�����ļ��� -INCLUDE_TMK3=$(TO_PROJECT_ROOT)/MakeInclude/TG3_APP_Arm.TMK3 ;TOPS��׼Ӧ�ã�������̬��� - -;Ԥ���崮������MakeFile��ʱ��ֱ�ӷ���MakeFile��ǰ�� -;��ʽ��PRE_DEFINE=STRING������MakeFile��ʱ��"PRE_DEFINE="��������з�ע�ͷ������ַ��������MakeFileǰ�� -;���磺PRE_DEFINE=AAA=BBB�������AAA=BBB��MakeFile�� -;����ʹ�ö��PRE_DEFINE����Ҳ����ʹ��PRE_DEFINE1��PRE_DEFINE2�ȷ�ʽ��MakeFile�����ݳ���˳��(�������ִ�С)���� - -;C��C++Ԥ����꣬����ʹ�ö��DEFINES����Ҳ����ʹ��DEFINES1��DEFINES2�ȷ�ʽ��MakeFile�����ݳ���˳��(�������ִ�С)���� -DEFINES=-DCCX_UNDER_UPHONE ;��������Ӧ�õ��Զ���ꡣע�⣺ITOPS�Լ������趨����Զ��������ʴ������������Ӧ���Լ����еĶ��弴�� -DEFINES=-D__TG3_PURE_DLL__ ;���ɵ��Ǵ���̬�⣨��˼�ǣ�����TOPSӦ�ã���������TCOM����� - -;����·����֧�ֻ��У����治Ҫ�����з���������ʹ��INCLUDE_PATH1��INCLUDE_PATH2�ȱ������� -;�к���Ҫ������������Ծ -INCLUDE_PATH=-I./include -I$(TO_PROJECT_ROOT)/Include/ThirdParty/libxml2 -INCLUDE_PATH=-I$(TO_PROJECT_ROOT)/Include/ThirdParty/iconv -INCLUDE_PATH=-I$(TO_PROJECT_ROOT)/Include/ThirdParty/libpng -INCLUDE_PATH=-I$(TO_PROJECT_ROOT)/Include/ThirdParty/libjpeg - -;���ӵĿ��ļ�������ʹ�ö��LIBS����Ҳ����ʹ��LIBS1��LIBS2�ȷ�ʽ��MakeFile�����ݳ���˳��(�������ִ�С)���� -;LIBS=-lMyLib ;Ӧ�ö�������ӿ⡣ע�⣺ITOPS�Լ���������Զ����������ҿ����·��Ҳ�Ѿ��������ʴ������������Ӧ���Լ����еĿ�����ּ��� - -LIBS= -;ǿ�ư����ļ������֣�����ʹ��ͨ�����һ��Ҫʹ����Ի��߾���·�� -;����Ҫ��ʹ�����·��������ļ�֮��ʹ�á�|���ָ� -;ǿ�ư����ļ�ָ���Dz��ڱ��ļ��м������ļ����µ�.c��.cpp��.o�ļ� -;����ʹ�ö��INCLUDEFILE����Ҳ����ʹ��INCLUDEFILE1��INCLUDEFILE2�ȷ�ʽ��MakeFile�����ݳ���˳��(�������ִ�С)���� -INCLUDEFILE= - -;ǿ���ų��ļ�������ʹ��ͨ�����һ��Ҫʹ�����·�� -;����ļ�֮��ʹ�á�|���ָ���·��������"./"��"../"��ʼ -;ֻ�ܶ�.c��.cpp�ļ������ų� -;���Ҫ�ų���Ŀ¼���ļ�ҲҪ����"./" -;����ʹ�ö��EXCLUDEFILE����Ҳ����ʹ��EXCLUDEFILE1��EXCLUDEFILE2�ȷ�ʽ��MakeFile�����ݳ���˳��(�������ִ�С)���� -EXCLUDEFILE= ./src/uphone/ -EXCLUDEFILE= ./src/win32/ -EXCLUDEFILE= ./src/android/ -EXCLUDEFILE= ./src/ios/ diff --git a/platform_support/proj.win32/libPlatformSupport.win32.vcproj b/platform_support/proj.win32/libPlatformSupport.win32.vcproj deleted file mode 100644 index 2aa73e435702..000000000000 --- a/platform_support/proj.win32/libPlatformSupport.win32.vcproj +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform_support/src/uphone/NewDeleteOp.cpp b/platform_support/src/uphone/NewDeleteOp.cpp deleted file mode 100644 index e773818e7af1..000000000000 --- a/platform_support/src/uphone/NewDeleteOp.cpp +++ /dev/null @@ -1,82 +0,0 @@ - -/*! -* @file NewDeleteOp.cpp -* @author ȫ�Ǵ� -* @brief -* -* @section Copyright -* =======================================================================
-*
-* Copyright (c) 2005-2010 Tranzda Technologies Co.,Ltd.
-* ������ȫ�Ǵ�Ƽ����޹�˾ ��Ȩ����2005-2010
-*
-* PROPRIETARY RIGHTS of Tranzda Technologies Co.,Ltd. are involved in
-* the subject matter of this material. All manufacturing, reproduction,
-* use, and sales rights pertaining to this subject matter are governed
-* by the license agreement. The recipient of this software implicitly
-* accepts the terms of the license.
-* �������ĵ�������������ȫ�Ǵ�Ƽ����޹�˾�ĺϷ��ʲ����κ���ʿ�Ķ���ʹ
-* �ñ����ϱ�������Ӧ��������Ȩ,�е��������κͽ�����Ӧ�ķ���Լ����
-*
-* ��˾��ַ�� http://www.tranzda.com
-* ��˾���䣺support@tranzda.com
-* =======================================================================
-*/ - -#include "ssTypes.h" -#include "TG3_Type.h" -#include "TG3_Memory.h" - -#ifdef new -#undef new -#endif - -#ifdef delete -#undef delete -#endif - -#ifndef _WIN32 - #define __cdecl -#endif - -void * __cdecl operator new(unsigned int size) -{ - return TMalloc(size); -} - -void * __cdecl operator new[](unsigned int size) -{ - return TMalloc(size); -} - -void * __cdecl operator new(unsigned int size, const unsigned short * fileName, int lineNo) -{ - return TMallocEx(size, fileName, lineNo); -} - -void * __cdecl operator new[](unsigned int size, const unsigned short * fileName, int lineNo) -{ - return TMallocEx(size, fileName, lineNo); -} - -void __cdecl operator delete(void *p) -{ - TFree(p); -} - -void __cdecl operator delete[](void *p) -{ - TFree(p); -} - -void __cdecl operator delete(void *p, const unsigned short * fileName, int lineNo) -{ - TFreeEx(p, fileName, lineNo); -} - -void __cdecl operator delete[](void *p, const unsigned short * fileName, int lineNo) -{ - TFreeEx(p, fileName, lineNo); -} - - diff --git a/platform_support/src/win32/ccxImage_win32.cpp b/platform_support/src/win32/ccxImage_win32.cpp deleted file mode 100644 index 6440288117a8..000000000000 --- a/platform_support/src/win32/ccxImage_win32.cpp +++ /dev/null @@ -1,338 +0,0 @@ -/**************************************************************************** -Copyright (c) 2010 cocos2d-x.org - -http://www.cocos2d-x.org - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -****************************************************************************/ - -NS_CC_BEGIN; - -void ccxMessageBox(const ccxString& msg, const ccxString& title) -{ - MessageBoxA(NULL, msg.c_str(), title.c_str(), MB_OK); -} - -/** -@brief A memory DC which uses to draw text on bitmap. -*/ -class BitmapDC -{ -public: - BitmapDC(HWND hWnd = NULL) - : m_hDC(NULL) - , m_hBmp(NULL) - , m_hFont((HFONT)GetStockObject(DEFAULT_GUI_FONT)) - { - HDC hdc = GetDC(hWnd); - m_hDC = CreateCompatibleDC(hdc); - ReleaseDC(hWnd, hdc); - } - - ~BitmapDC() - { - prepareBitmap(0, 0); - if (m_hDC) - { - DeleteDC(m_hDC); - } - } - - bool setFont(const char * pFontName = NULL, int nSize = 0) - { - bool bRet = false; - do - { - HFONT hDefFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT); - LOGFONTA tNewFont = {0}; - LOGFONTA tOldFont = {0}; - GetObjectA(hDefFont, sizeof(tNewFont), &tNewFont); - if (pFontName) - { - strcpy_s(tNewFont.lfFaceName, LF_FACESIZE, pFontName); - } - if (nSize) - { - tNewFont.lfHeight = -nSize; - } - GetObjectA(m_hFont, sizeof(tOldFont), &tOldFont); - - if (tOldFont.lfHeight == tNewFont.lfHeight - && ! strcpy(tOldFont.lfFaceName, tNewFont.lfFaceName)) - { - // already has the font - bRet = true; - break; - } - - // delete old font - if (m_hFont != hDefFont) - { - DeleteObject(m_hFont); - } - m_hFont = NULL; - - // create new font - m_hFont = CreateFontIndirectA(&tNewFont); - if (! m_hFont) - { - // create failed, use default font - m_hFont = hDefFont; - break; - } - - bRet = true; - } while (0); - return bRet; - } - - SIZE sizeWithText(const char * pszText, int nLen, DWORD dwFmt, LONG nWidthLimit) - { - SIZE tRet = {0}; - do - { - CC_BREAK_IF(! pszText || nLen <= 0); - - RECT rc = {0, 0, 0, 0}; - DWORD dwCalcFmt = DT_CALCRECT; - - if (nWidthLimit > 0) - { - rc.right = nWidthLimit; - dwCalcFmt |= DT_WORDBREAK - | (dwFmt & DT_CENTER) - | (dwFmt & DT_RIGHT); - } - // use current font to measure text extent - HGDIOBJ hOld = SelectObject(m_hDC, m_hFont); - - // measure text size - DrawTextA(m_hDC, pszText, nLen, &rc, dwCalcFmt); - SelectObject(m_hDC, hOld); - - tRet.cx = rc.right; - tRet.cy = rc.bottom; - } while (0); - - return tRet; - } - - bool prepareBitmap(int nWidth, int nHeight) - { - // release bitmap - if (m_hBmp) - { - DeleteObject(m_hBmp); - m_hBmp = NULL; - } - if (nWidth > 0 && nHeight > 0) - { - m_hBmp = CreateBitmap(nWidth, nHeight, 1, 32, NULL); - if (! m_hBmp) - { - return false; - } - } - return true; - } - - int drawText(const char * pszText, SIZE& tSize, CCImage::ETextAlign eAlign) - { - int nRet = 0; - do - { - CC_BREAK_IF(! pszText); - - DWORD dwFmt = DT_WORDBREAK; - DWORD dwHoriFlag = eAlign & 0x0f; - DWORD dwVertFlag = (eAlign & 0xf0) >> 4; - - switch (dwHoriFlag) - { - case 1: // left - dwFmt |= DT_LEFT; - break; - case 2: // right - dwFmt |= DT_RIGHT; - break; - case 3: // center - dwFmt |= DT_CENTER; - break; - } - - int nLen = strlen(pszText); - SIZE newSize = sizeWithText(pszText, nLen, dwFmt, tSize.cx); - - RECT rcText = {0}; - // if content width is 0, use text size as content size - if (tSize.cx <= 0) - { - tSize = newSize; - rcText.right = newSize.cx; - rcText.bottom = newSize.cy; - } - else - { - - LONG offsetX = 0; - LONG offsetY = 0; - rcText.right = newSize.cx; // store the text width to rectangle - - // calculate text horizontal offset - if (1 != dwHoriFlag // and text isn't align to left - && newSize.cx < tSize.cx) // and text's width less then content width, - { // then need adjust offset of X. - offsetX = (2 == dwHoriFlag) ? tSize.cx - newSize.cx // align to right - : (tSize.cx - newSize.cx) / 2; // align to center - } - - // if content height is 0, use text height as content height - // else if content height less than text height, use content height to draw text - if (tSize.cy <= 0) - { - tSize.cy = newSize.cy; - dwFmt |= DT_NOCLIP; - rcText.bottom = newSize.cy; // store the text height to rectangle - } - else if (tSize.cy < newSize.cy) - { - // content height larger than text height need, clip text to rect - rcText.bottom = tSize.cy; - } - else - { - rcText.bottom = newSize.cy; // store the text height to rectangle - - // content larger than text, need adjust vertical position - dwFmt |= DT_NOCLIP; - - // calculate text vertical offset - offsetY = (2 == dwVertFlag) ? tSize.cy - newSize.cy // align to bottom - : (3 == dwVertFlag) ? (tSize.cy - newSize.cy) / 2 // align to middle - : 0; // align to top - } - - if (offsetX || offsetY) - { - OffsetRect(&rcText, offsetX, offsetY); - } - } - - CC_BREAK_IF(! prepareBitmap(tSize.cx, tSize.cy)); - - // draw text - HGDIOBJ hOldFont = SelectObject(m_hDC, m_hFont); - HGDIOBJ hOldBmp = SelectObject(m_hDC, m_hBmp); - - RECT rc = {0, 0, tSize.cx, tSize.cy}; - SetBkMode(m_hDC, TRANSPARENT); - SetTextColor(m_hDC, RGB(255, 255, 255)); // white color - nRet = DrawTextA(m_hDC, pszText, nLen, &rcText, dwFmt); - - SelectObject(m_hDC, hOldBmp); - SelectObject(m_hDC, hOldFont); - } while (0); - return nRet; - } - - CC_SYNTHESIZE_READONLY(HDC, m_hDC, DC); - CC_SYNTHESIZE_READONLY(HBITMAP, m_hBmp, Bitmap); -private: - friend class CCImage; - HFONT m_hFont; -}; - -static BitmapDC& sharedBitmapDC() -{ - static BitmapDC s_BmpDC; - return s_BmpDC; -} - -bool CCImage::initWithString( - const char * pText, - int nWidth/* = 0*/, - int nHeight/* = 0*/, - ETextAlign eAlignMask/* = kAlignCenter*/, - const char * pFontName/* = nil*/, - int nSize/* = 0*/) -{ - bool bRet = false; - do - { - CC_BREAK_IF(! pText); - int nLen = strlen(pText); - - BitmapDC& dc = sharedBitmapDC(); - - if (! dc.setFont(pFontName, nSize)) - { - CCLog("Can't found font(%s), use system default", pFontName); - } - - // draw text - SIZE size = {nWidth, nHeight}; - CC_BREAK_IF(! dc.drawText(pText, size, eAlignMask)); - - m_pData.reset(new ccxByte[size.cx * size.cy * 4]); - CC_BREAK_IF(! m_pData.get()); - - struct - { - BITMAPINFOHEADER bmiHeader; - int mask[4]; - } bi = {0}; - bi.bmiHeader.biSize = sizeof(bi.bmiHeader); - CC_BREAK_IF(! GetDIBits(dc.getDC(), dc.getBitmap(), 0, 0, - NULL, (LPBITMAPINFO)&bi, DIB_RGB_COLORS)); - - m_nWidth = (ccxInt16)size.cx; - m_nHeight = (ccxInt16)size.cy; - m_bHasAlpha = true; - m_bPreMulti = false; - m_nBitsPerComponent = 8; - - // copy pixed data - bi.bmiHeader.biHeight = (bi.bmiHeader.biHeight > 0) - ? - bi.bmiHeader.biHeight : bi.bmiHeader.biHeight; - GetDIBits(dc.getDC(), dc.getBitmap(), 0, m_nHeight, m_pData.get(), - (LPBITMAPINFO)&bi, DIB_RGB_COLORS); - - // change pixel's alpha value to 255, when it's RGB != 0 - COLORREF * pPixel = NULL; - for (int y = 0; y < m_nHeight; ++y) - { - pPixel = (COLORREF *)m_pData.get() + y * m_nWidth; - for (int x = 0; x < m_nWidth; ++x) - { - COLORREF& clr = *pPixel; - if (GetRValue(clr) || GetGValue(clr) || GetBValue(clr)) - { - clr |= 0xff000000; - } - ++pPixel; - } - } - - bRet = true; - } while (0); - - return bRet; -} - -NS_CC_END; diff --git a/tests/test.android/jni/tests/Android.mk b/tests/test.android/jni/tests/Android.mk index 68fc9d172a4b..4fad09c3555c 100644 --- a/tests/test.android/jni/tests/Android.mk +++ b/tests/test.android/jni/tests/Android.mk @@ -64,12 +64,12 @@ LOCAL_SRC_FILES := main.cpp \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../cocos2dx \ $(LOCAL_PATH)/../../../../cocos2dx/include \ + $(LOCAL_PATH)/../../../../cocos2dx/platform \ $(LOCAL_PATH)/../../../tests \ $(LOCAL_PATH)/../../../.. \ $(LOCAL_PATH)/../../.. \ $(LOCAL_PATH)/../../../../chipmunk/include/chipmunk \ - $(LOCAL_PATH)/../../../../CocosDenshion/include \ - $(LOCAL_PATH)/../../../../platform_support/include + $(LOCAL_PATH)/../../../../CocosDenshion/include # it is used for ndk-r4 LOCAL_LDLIBS := -L$(LOCAL_PATH)/../../libs/armeabi \ diff --git a/tests/test.uphone/test.uphone.vcproj b/tests/test.uphone/test.uphone.vcproj index 64ef08cbe9ac..f74e984d5b5c 100644 --- a/tests/test.uphone/test.uphone.vcproj +++ b/tests/test.uphone/test.uphone.vcproj @@ -41,7 +41,7 @@