mirror of https://github.com/axmolengine/axmol.git
merge cocos
This commit is contained in:
commit
a980a2efa4
|
@ -6,6 +6,8 @@ cocos2d-x-3.3?? ??
|
||||||
[NEW] Renderer: added TriangleCommand
|
[NEW] Renderer: added TriangleCommand
|
||||||
[NEW] UI: added `WebView` on iOS and Android
|
[NEW] UI: added `WebView` on iOS and Android
|
||||||
|
|
||||||
|
[FIX] C++: CMake works for Mac builds
|
||||||
|
[FIX] C++: Reorganized cocos2d/platform folder. Easier to add new platforms
|
||||||
[FIX] EditBox: moved to ui:EditBox
|
[FIX] EditBox: moved to ui:EditBox
|
||||||
[FIX] HttpClient: condition variable sleep on unrelated mutex
|
[FIX] HttpClient: condition variable sleep on unrelated mutex
|
||||||
[FIX] Node: create unneeded temple `Vec2` object in `setPosition(int, int)`, `setPositionX()` and `setPositionY()`
|
[FIX] Node: create unneeded temple `Vec2` object in `setPosition(int, int)`, `setPositionX()` and `setPositionY()`
|
||||||
|
|
|
@ -27,8 +27,8 @@ cmake_minimum_required(VERSION 2.8)
|
||||||
project (Cocos2dx)
|
project (Cocos2dx)
|
||||||
|
|
||||||
# The version number
|
# The version number
|
||||||
set(Cocos2dxSamples_VERSION_MAJOR 3)
|
set(COCOS2D_X_VERSION 3.3.0)
|
||||||
set(Cocos2dxSamples_VERSION_MINOR 1)
|
#set(CMAKE_C_COMPILER_INIT g++)
|
||||||
|
|
||||||
include(build/BuildHelpers.CMakeLists.txt)
|
include(build/BuildHelpers.CMakeLists.txt)
|
||||||
|
|
||||||
|
@ -58,10 +58,14 @@ if(WINDOWS)
|
||||||
ADD_DEFINITIONS (-D_USRDLL -DCOCOS2DXWIN32_EXPORTS -D_WINDOWS -DWIN32)
|
ADD_DEFINITIONS (-D_USRDLL -DCOCOS2DXWIN32_EXPORTS -D_WINDOWS -DWIN32)
|
||||||
set(PLATFORM_FOLDER win32)
|
set(PLATFORM_FOLDER win32)
|
||||||
elseif(MACOSX)
|
elseif(MACOSX)
|
||||||
|
ADD_DEFINITIONS (-DCC_TARGET_OS_MAC)
|
||||||
|
ADD_DEFINITIONS (-DUSE_FILE32API)
|
||||||
set(PLATFORM_FOLDER mac)
|
set(PLATFORM_FOLDER mac)
|
||||||
else(LINUX)
|
elseif(LINUX)
|
||||||
ADD_DEFINITIONS(-DLINUX)
|
ADD_DEFINITIONS(-DLINUX)
|
||||||
set(PLATFORM_FOLDER linux)
|
set(PLATFORM_FOLDER linux)
|
||||||
|
else()
|
||||||
|
message( FATAL_ERROR "Unsupported platform, CMake will exit" )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
|
@ -78,15 +82,28 @@ endif()
|
||||||
|
|
||||||
# architecture
|
# architecture
|
||||||
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
||||||
set(ARCH_DIR "64-bit")
|
set(ARCH_DIR "64-bit")
|
||||||
|
elseif ( CMAKE_SIZEOF_VOID_P EQUAL 4 )
|
||||||
|
set(ARCH_DIR "32-bit")
|
||||||
else()
|
else()
|
||||||
set(ARCH_DIR "32-bit")
|
message( FATAL_ERROR "Unsupported architecture, CMake will exit" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Specific Include Directories
|
||||||
|
if(LINUX)
|
||||||
|
set(PLATFORM_INCLUDE_DIR
|
||||||
|
/usr/include
|
||||||
|
/usr/include/GLFW
|
||||||
|
/usr/local/include/GLFW
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
set(PLATFORM_INCLUDE_DIR
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/external/glfw3/include/${PLATFORM_FOLDER}
|
||||||
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
/usr/include
|
${PLATFORM_INCLUDE_DIR}
|
||||||
/usr/include/GLFW
|
|
||||||
/usr/local/include/GLFW
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/cocos
|
${CMAKE_CURRENT_SOURCE_DIR}/cocos
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/cocos/platform/${PLATFORM_FOLDER}
|
${CMAKE_CURRENT_SOURCE_DIR}/cocos/platform/${PLATFORM_FOLDER}
|
||||||
|
@ -94,15 +111,32 @@ include_directories(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/external
|
${CMAKE_CURRENT_SOURCE_DIR}/external
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Specific Link Directories
|
||||||
|
if(LINUX)
|
||||||
|
set(PLATFORM_LINK_DIR
|
||||||
|
/usr/local/lib
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/external/${PLATFORM_FOLDER}-specific/fmod/prebuilt/${ARCH_DIR}
|
||||||
|
)
|
||||||
|
set(PLATFORM_FOLDER_ARCH
|
||||||
|
${PLATFORM_FOLDER}/${ARCH_DIR}
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
set(PLATFORM_FOLDER_ARCH
|
||||||
|
${PLATFORM_FOLDER}
|
||||||
|
)
|
||||||
|
set(PLATFORM_LINK_DIR
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/external/glfw3/prebuilt/${PLATFORM_FOLDER_ARCH}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
link_directories(
|
link_directories(
|
||||||
/usr/local/lib
|
${PLATFORM_LINK_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/external/jpeg/prebuilt/${PLATFORM_FOLDER}/${ARCH_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}/external/jpeg/prebuilt/${PLATFORM_FOLDER_ARCH}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/external/tiff/prebuilt/${PLATFORM_FOLDER}/${ARCH_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}/external/tiff/prebuilt/${PLATFORM_FOLDER_ARCH}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/external/webp/prebuilt/${PLATFORM_FOLDER}/${ARCH_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}/external/webp/prebuilt/${PLATFORM_FOLDER_ARCH}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/external/png/prebuilt/${PLATFORM_FOLDER}/${ARCH_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}/external/png/prebuilt/${PLATFORM_FOLDER_ARCH}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/external/freetype2/prebuilt/${PLATFORM_FOLDER}/${ARCH_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}/external/freetype2/prebuilt/${PLATFORM_FOLDER_ARCH}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/external/websockets/prebuilt/${PLATFORM_FOLDER}/${ARCH_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}/external/websockets/prebuilt/${PLATFORM_FOLDER_ARCH}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/external/${PLATFORM_FOLDER}-specific/fmod/prebuilt/${ARCH_DIR}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# libcocos2d.a
|
# libcocos2d.a
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -27,7 +27,7 @@ THE SOFTWARE.
|
||||||
|
|
||||||
#include "2d/CCActionCamera.h"
|
#include "2d/CCActionCamera.h"
|
||||||
#include "2d/CCNode.h"
|
#include "2d/CCNode.h"
|
||||||
#include "CCStdC.h"
|
#include "platform/CCStdC.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
//
|
//
|
||||||
|
|
|
@ -26,16 +26,17 @@ THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "2d/CCActionInterval.h"
|
#include "2d/CCActionInterval.h"
|
||||||
|
|
||||||
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "2d/CCSprite.h"
|
#include "2d/CCSprite.h"
|
||||||
#include "2d/CCNode.h"
|
#include "2d/CCNode.h"
|
||||||
#include "2d/CCSpriteFrame.h"
|
#include "2d/CCSpriteFrame.h"
|
||||||
#include "CCStdC.h"
|
|
||||||
#include "2d/CCActionInstant.h"
|
#include "2d/CCActionInstant.h"
|
||||||
#include "base/CCDirector.h"
|
#include "base/CCDirector.h"
|
||||||
#include "base/CCEventCustom.h"
|
#include "base/CCEventCustom.h"
|
||||||
#include "base/CCEventDispatcher.h"
|
#include "base/CCEventDispatcher.h"
|
||||||
|
#include "platform/CCStdC.h"
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CC_ANIMATION_H__
|
#ifndef __CC_ANIMATION_H__
|
||||||
#define __CC_ANIMATION_H__
|
#define __CC_ANIMATION_H__
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
#include "base/CCValue.h"
|
#include "base/CCValue.h"
|
||||||
#include "base/CCVector.h"
|
#include "base/CCVector.h"
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define __MISCNODE_CCCLIPPING_NODE_H__
|
#define __MISCNODE_CCCLIPPING_NODE_H__
|
||||||
|
|
||||||
#include "2d/CCNode.h"
|
#include "2d/CCNode.h"
|
||||||
#include "CCGL.h"
|
#include "platform/CCGL.h"
|
||||||
#include "renderer/CCGroupCommand.h"
|
#include "renderer/CCGroupCommand.h"
|
||||||
#include "renderer/CCCustomCommand.h"
|
#include "renderer/CCCustomCommand.h"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "2d/CCDrawNode.h"
|
#include "2d/CCDrawNode.h"
|
||||||
#include "CCGL.h"
|
|
||||||
#include "base/CCEventType.h"
|
#include "base/CCEventType.h"
|
||||||
#include "base/CCConfiguration.h"
|
#include "base/CCConfiguration.h"
|
||||||
#include "renderer/CCRenderer.h"
|
#include "renderer/CCRenderer.h"
|
||||||
|
@ -31,6 +30,7 @@
|
||||||
#include "base/CCDirector.h"
|
#include "base/CCDirector.h"
|
||||||
#include "base/CCEventListenerCustom.h"
|
#include "base/CCEventListenerCustom.h"
|
||||||
#include "base/CCEventDispatcher.h"
|
#include "base/CCEventDispatcher.h"
|
||||||
|
#include "platform/CCGL.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -41,12 +41,12 @@ THE SOFTWARE.
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include "CCGL.h"
|
#include "2d/CCActionCatmullRom.h"
|
||||||
#include "base/CCDirector.h"
|
#include "base/CCDirector.h"
|
||||||
#include "renderer/ccGLStateCache.h"
|
#include "renderer/ccGLStateCache.h"
|
||||||
#include "renderer/CCGLProgramCache.h"
|
#include "renderer/CCGLProgramCache.h"
|
||||||
#include "2d/CCActionCatmullRom.h"
|
|
||||||
#include "renderer/CCRenderer.h"
|
#include "renderer/CCRenderer.h"
|
||||||
|
#include "platform/CCGL.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
|
|
|
@ -25,12 +25,13 @@
|
||||||
#ifndef _CCFontAtlas_h_
|
#ifndef _CCFontAtlas_h_
|
||||||
#define _CCFontAtlas_h_
|
#define _CCFontAtlas_h_
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
|
||||||
#include "base/CCRef.h"
|
|
||||||
#include "CCStdC.h" // ssize_t on windows
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
#include "base/CCRef.h"
|
||||||
|
#include "platform/CCStdC.h" // ssize_t on windows
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
//fwd
|
//fwd
|
||||||
|
|
|
@ -25,7 +25,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CC_GL_BUFFERED_NODE__
|
#ifndef __CC_GL_BUFFERED_NODE__
|
||||||
#define __CC_GL_BUFFERED_NODE__
|
#define __CC_GL_BUFFERED_NODE__
|
||||||
|
|
||||||
#include "CCGL.h"
|
#include "platform/CCGL.h"
|
||||||
|
|
||||||
class GLBufferedNode
|
class GLBufferedNode
|
||||||
{
|
{
|
||||||
|
|
|
@ -27,7 +27,7 @@ THE SOFTWARE.
|
||||||
#define __EFFECTS_CCGRABBER_H__
|
#define __EFFECTS_CCGRABBER_H__
|
||||||
|
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
#include "CCGL.h"
|
#include "platform/CCGL.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ THE SOFTWARE.
|
||||||
#include "renderer/ccGLStateCache.h"
|
#include "renderer/ccGLStateCache.h"
|
||||||
#include "renderer/CCRenderer.h"
|
#include "renderer/CCRenderer.h"
|
||||||
#include "renderer/CCTexture2D.h"
|
#include "renderer/CCTexture2D.h"
|
||||||
#include "CCGL.h"
|
#include "platform/CCGL.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
// implementation of GridBase
|
// implementation of GridBase
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef _CCLabelTextFormatter_h_
|
#ifndef _CCLabelTextFormatter_h_
|
||||||
#define _CCLabelTextFormatter_h_
|
#define _CCLabelTextFormatter_h_
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -26,9 +26,9 @@ THE SOFTWARE.
|
||||||
#include "2d/CCMenu.h"
|
#include "2d/CCMenu.h"
|
||||||
#include "base/CCDirector.h"
|
#include "base/CCDirector.h"
|
||||||
#include "base/CCTouch.h"
|
#include "base/CCTouch.h"
|
||||||
#include "CCStdC.h"
|
|
||||||
#include "base/CCEventListenerTouch.h"
|
#include "base/CCEventListenerTouch.h"
|
||||||
#include "base/CCEventDispatcher.h"
|
#include "base/CCEventDispatcher.h"
|
||||||
|
#include "platform/CCStdC.h"
|
||||||
#include "deprecated/CCString.h"
|
#include "deprecated/CCString.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -25,7 +25,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CCTWEENFUNCTION_H__
|
#ifndef __CCTWEENFUNCTION_H__
|
||||||
#define __CCTWEENFUNCTION_H__
|
#define __CCTWEENFUNCTION_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -341,7 +341,7 @@
|
||||||
<ClCompile Include="..\platform\winrt\inet_ntop_winrt.cpp" />
|
<ClCompile Include="..\platform\winrt\inet_ntop_winrt.cpp" />
|
||||||
<ClCompile Include="..\platform\winrt\InputEvent.cpp" />
|
<ClCompile Include="..\platform\winrt\InputEvent.cpp" />
|
||||||
<ClCompile Include="..\platform\winrt\sha1.cpp" />
|
<ClCompile Include="..\platform\winrt\sha1.cpp" />
|
||||||
<ClCompile Include="..\platform\wp8\CCGLViewImpl.cpp" />
|
<ClCompile Include="..\platform\wp8\CCGLViewImpl-wp8.cpp" />
|
||||||
<ClCompile Include="..\platform\wp8\Direct3DBase.cpp" />
|
<ClCompile Include="..\platform\wp8\Direct3DBase.cpp" />
|
||||||
<ClCompile Include="..\platform\wp8\DirectXBase.cpp" />
|
<ClCompile Include="..\platform\wp8\DirectXBase.cpp" />
|
||||||
<ClCompile Include="..\platform\wp8\pch.cpp">
|
<ClCompile Include="..\platform\wp8\pch.cpp">
|
||||||
|
@ -495,8 +495,6 @@
|
||||||
<ClInclude Include="..\base\ccMacros.h" />
|
<ClInclude Include="..\base\ccMacros.h" />
|
||||||
<ClInclude Include="..\base\CCMap.h" />
|
<ClInclude Include="..\base\CCMap.h" />
|
||||||
<ClInclude Include="..\base\CCNS.h" />
|
<ClInclude Include="..\base\CCNS.h" />
|
||||||
<ClInclude Include="..\base\CCPlatformConfig.h" />
|
|
||||||
<ClInclude Include="..\base\CCPlatformMacros.h" />
|
|
||||||
<ClInclude Include="..\base\CCProfiling.h" />
|
<ClInclude Include="..\base\CCProfiling.h" />
|
||||||
<ClInclude Include="..\base\CCProtocols.h" />
|
<ClInclude Include="..\base\CCProtocols.h" />
|
||||||
<ClInclude Include="..\base\ccRandom.h" />
|
<ClInclude Include="..\base\ccRandom.h" />
|
||||||
|
@ -553,13 +551,19 @@
|
||||||
<ClInclude Include="..\physics\chipmunk\CCPhysicsJointInfo_chipmunk.h" />
|
<ClInclude Include="..\physics\chipmunk\CCPhysicsJointInfo_chipmunk.h" />
|
||||||
<ClInclude Include="..\physics\chipmunk\CCPhysicsShapeInfo_chipmunk.h" />
|
<ClInclude Include="..\physics\chipmunk\CCPhysicsShapeInfo_chipmunk.h" />
|
||||||
<ClInclude Include="..\physics\chipmunk\CCPhysicsWorldInfo_chipmunk.h" />
|
<ClInclude Include="..\physics\chipmunk\CCPhysicsWorldInfo_chipmunk.h" />
|
||||||
|
<ClInclude Include="..\platform\CCApplication.h" />
|
||||||
<ClInclude Include="..\platform\CCApplicationProtocol.h" />
|
<ClInclude Include="..\platform\CCApplicationProtocol.h" />
|
||||||
<ClInclude Include="..\platform\CCCommon.h" />
|
<ClInclude Include="..\platform\CCCommon.h" />
|
||||||
<ClInclude Include="..\platform\CCDevice.h" />
|
<ClInclude Include="..\platform\CCDevice.h" />
|
||||||
<ClInclude Include="..\platform\CCFileUtils.h" />
|
<ClInclude Include="..\platform\CCFileUtils.h" />
|
||||||
|
<ClInclude Include="..\platform\CCGL.h" />
|
||||||
<ClInclude Include="..\platform\CCGLView.h" />
|
<ClInclude Include="..\platform\CCGLView.h" />
|
||||||
<ClInclude Include="..\platform\CCImage.h" />
|
<ClInclude Include="..\platform\CCImage.h" />
|
||||||
|
<ClInclude Include="..\platform\CCPlatformConfig.h" />
|
||||||
|
<ClInclude Include="..\platform\CCPlatformDefine.h" />
|
||||||
|
<ClInclude Include="..\platform\CCPlatformMacros.h" />
|
||||||
<ClInclude Include="..\platform\CCSAXParser.h" />
|
<ClInclude Include="..\platform\CCSAXParser.h" />
|
||||||
|
<ClInclude Include="..\platform\CCStdC.h" />
|
||||||
<ClInclude Include="..\platform\CCThread.h" />
|
<ClInclude Include="..\platform\CCThread.h" />
|
||||||
<ClInclude Include="..\platform\winrt\CCApplication.h" />
|
<ClInclude Include="..\platform\winrt\CCApplication.h" />
|
||||||
<ClInclude Include="..\platform\winrt\CCFileUtilsWinRT.h" />
|
<ClInclude Include="..\platform\winrt\CCFileUtilsWinRT.h" />
|
||||||
|
@ -576,7 +580,7 @@
|
||||||
<ClInclude Include="..\platform\winrt\InputEvent.h" />
|
<ClInclude Include="..\platform\winrt\InputEvent.h" />
|
||||||
<ClInclude Include="..\platform\winrt\InputEventTypes.h" />
|
<ClInclude Include="..\platform\winrt\InputEventTypes.h" />
|
||||||
<ClInclude Include="..\platform\winrt\sha1.h" />
|
<ClInclude Include="..\platform\winrt\sha1.h" />
|
||||||
<ClInclude Include="..\platform\wp8\CCGLViewImpl.h" />
|
<ClInclude Include="..\platform\wp8\CCGLViewImpl-wp8.h" />
|
||||||
<ClInclude Include="..\platform\wp8\Direct3DBase.h" />
|
<ClInclude Include="..\platform\wp8\Direct3DBase.h" />
|
||||||
<ClInclude Include="..\platform\wp8\DirectXBase.h" />
|
<ClInclude Include="..\platform\wp8\DirectXBase.h" />
|
||||||
<ClInclude Include="..\platform\wp8\pch.h" />
|
<ClInclude Include="..\platform\wp8\pch.h" />
|
||||||
|
|
|
@ -611,9 +611,6 @@
|
||||||
<ClCompile Include="..\platform\CCGLView.cpp">
|
<ClCompile Include="..\platform\CCGLView.cpp">
|
||||||
<Filter>platform</Filter>
|
<Filter>platform</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\platform\wp8\CCGLViewImpl.cpp">
|
|
||||||
<Filter>platform\wp8</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="CCProtectedNode.cpp">
|
<ClCompile Include="CCProtectedNode.cpp">
|
||||||
<Filter>2d</Filter>
|
<Filter>2d</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
@ -659,6 +656,9 @@
|
||||||
<ClCompile Include="..\3d\CCMeshVertexIndexData.cpp">
|
<ClCompile Include="..\3d\CCMeshVertexIndexData.cpp">
|
||||||
<Filter>3d</Filter>
|
<Filter>3d</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\platform\wp8\CCGLViewImpl-wp8.cpp">
|
||||||
|
<Filter>platform\wp8</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\physics\CCPhysicsBody.h">
|
<ClInclude Include="..\physics\CCPhysicsBody.h">
|
||||||
|
@ -1105,12 +1105,6 @@
|
||||||
<ClInclude Include="..\base\CCNS.h">
|
<ClInclude Include="..\base\CCNS.h">
|
||||||
<Filter>base</Filter>
|
<Filter>base</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\base\CCPlatformConfig.h">
|
|
||||||
<Filter>base</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\base\CCPlatformMacros.h">
|
|
||||||
<Filter>base</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\base\CCProfiling.h">
|
<ClInclude Include="..\base\CCProfiling.h">
|
||||||
<Filter>base</Filter>
|
<Filter>base</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -1298,9 +1292,6 @@
|
||||||
<ClInclude Include="..\platform\CCGLView.h">
|
<ClInclude Include="..\platform\CCGLView.h">
|
||||||
<Filter>platform</Filter>
|
<Filter>platform</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\platform\wp8\CCGLViewImpl.h">
|
|
||||||
<Filter>platform\wp8</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="CCProtectedNode.h">
|
<ClInclude Include="CCProtectedNode.h">
|
||||||
<Filter>2d</Filter>
|
<Filter>2d</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -1346,6 +1337,27 @@
|
||||||
<ClInclude Include="..\3d\CCMeshVertexIndexData.h">
|
<ClInclude Include="..\3d\CCMeshVertexIndexData.h">
|
||||||
<Filter>3d</Filter>
|
<Filter>3d</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\CCApplication.h">
|
||||||
|
<Filter>platform</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\CCGL.h">
|
||||||
|
<Filter>platform</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\CCPlatformConfig.h">
|
||||||
|
<Filter>platform</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\CCPlatformDefine.h">
|
||||||
|
<Filter>platform</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\CCPlatformMacros.h">
|
||||||
|
<Filter>platform</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\CCStdC.h">
|
||||||
|
<Filter>platform</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\wp8\CCGLViewImpl-wp8.h">
|
||||||
|
<Filter>platform\wp8</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\math\Mat4.inl">
|
<None Include="..\math\Mat4.inl">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Debug|Win32">
|
<ProjectConfiguration Include="Debug|Win32">
|
||||||
<Configuration>Debug</Configuration>
|
<Configuration>Debug</Configuration>
|
||||||
|
@ -375,12 +375,12 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\chipmunk\prebuilt\releas
|
||||||
<ClCompile Include="..\platform\CCImage.cpp" />
|
<ClCompile Include="..\platform\CCImage.cpp" />
|
||||||
<ClCompile Include="..\platform\CCSAXParser.cpp" />
|
<ClCompile Include="..\platform\CCSAXParser.cpp" />
|
||||||
<ClCompile Include="..\platform\CCThread.cpp" />
|
<ClCompile Include="..\platform\CCThread.cpp" />
|
||||||
<ClCompile Include="..\platform\desktop\CCGLViewImpl.cpp" />
|
<ClCompile Include="..\platform\desktop\CCGLViewImpl-desktop.cpp" />
|
||||||
<ClCompile Include="..\platform\win32\CCApplication.cpp" />
|
<ClCompile Include="..\platform\win32\CCApplication-win32.cpp" />
|
||||||
<ClCompile Include="..\platform\win32\CCCommon.cpp" />
|
<ClCompile Include="..\platform\win32\CCCommon-win32.cpp" />
|
||||||
<ClCompile Include="..\platform\win32\CCDevice.cpp" />
|
<ClCompile Include="..\platform\win32\CCDevice-win32.cpp" />
|
||||||
<ClCompile Include="..\platform\win32\CCFileUtilsWin32.cpp" />
|
<ClCompile Include="..\platform\win32\CCFileUtils-win32.cpp" />
|
||||||
<ClCompile Include="..\platform\win32\CCStdC.cpp" />
|
<ClCompile Include="..\platform\win32\CCStdC-win32.cpp" />
|
||||||
<ClCompile Include="..\renderer\CCBatchCommand.cpp" />
|
<ClCompile Include="..\renderer\CCBatchCommand.cpp" />
|
||||||
<ClCompile Include="..\renderer\CCCustomCommand.cpp" />
|
<ClCompile Include="..\renderer\CCCustomCommand.cpp" />
|
||||||
<ClCompile Include="..\renderer\CCGLProgram.cpp" />
|
<ClCompile Include="..\renderer\CCGLProgram.cpp" />
|
||||||
|
@ -409,7 +409,7 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\chipmunk\prebuilt\releas
|
||||||
<ClCompile Include="..\ui\UICheckBox.cpp" />
|
<ClCompile Include="..\ui\UICheckBox.cpp" />
|
||||||
<ClCompile Include="..\ui\UIDeprecated.cpp" />
|
<ClCompile Include="..\ui\UIDeprecated.cpp" />
|
||||||
<ClCompile Include="..\ui\UIEditBox\UIEditBox.cpp" />
|
<ClCompile Include="..\ui\UIEditBox\UIEditBox.cpp" />
|
||||||
<ClCompile Include="..\ui\UIEditBox\UIEditBoxImplWin.cpp" />
|
<ClCompile Include="..\ui\UIEditBox\UIEditBoxImpl-win32.cpp" />
|
||||||
<ClCompile Include="..\ui\UIHBox.cpp" />
|
<ClCompile Include="..\ui\UIHBox.cpp" />
|
||||||
<ClCompile Include="..\ui\UIHelper.cpp" />
|
<ClCompile Include="..\ui\UIHelper.cpp" />
|
||||||
<ClCompile Include="..\ui\UIImageView.cpp" />
|
<ClCompile Include="..\ui\UIImageView.cpp" />
|
||||||
|
@ -749,12 +749,12 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\chipmunk\prebuilt\releas
|
||||||
<ClInclude Include="..\platform\CCImage.h" />
|
<ClInclude Include="..\platform\CCImage.h" />
|
||||||
<ClInclude Include="..\platform\CCSAXParser.h" />
|
<ClInclude Include="..\platform\CCSAXParser.h" />
|
||||||
<ClInclude Include="..\platform\CCThread.h" />
|
<ClInclude Include="..\platform\CCThread.h" />
|
||||||
<ClInclude Include="..\platform\desktop\CCGLViewImpl.h" />
|
<ClInclude Include="..\platform\desktop\CCGLViewImpl-desktop.h" />
|
||||||
<ClInclude Include="..\platform\win32\CCApplication.h" />
|
<ClInclude Include="..\platform\win32\CCApplication-win32.h" />
|
||||||
<ClInclude Include="..\platform\win32\CCFileUtilsWin32.h" />
|
<ClInclude Include="..\platform\win32\CCFileUtils-win32.h" />
|
||||||
<ClInclude Include="..\platform\win32\CCGL.h" />
|
<ClInclude Include="..\platform\win32\CCGL-win32.h" />
|
||||||
<ClInclude Include="..\platform\win32\CCPlatformDefine.h" />
|
<ClInclude Include="..\platform\win32\CCPlatformDefine-win32.h" />
|
||||||
<ClInclude Include="..\platform\win32\CCStdC.h" />
|
<ClInclude Include="..\platform\win32\CCStdC-win32.h" />
|
||||||
<ClInclude Include="..\platform\win32\compat\stdint.h" />
|
<ClInclude Include="..\platform\win32\compat\stdint.h" />
|
||||||
<ClInclude Include="..\renderer\CCBatchCommand.h" />
|
<ClInclude Include="..\renderer\CCBatchCommand.h" />
|
||||||
<ClInclude Include="..\renderer\CCCustomCommand.h" />
|
<ClInclude Include="..\renderer\CCCustomCommand.h" />
|
||||||
|
@ -786,8 +786,8 @@ xcopy /Y /Q "$(ProjectDir)..\..\external\win32-specific\chipmunk\prebuilt\releas
|
||||||
<ClInclude Include="..\ui\UICheckBox.h" />
|
<ClInclude Include="..\ui\UICheckBox.h" />
|
||||||
<ClInclude Include="..\ui\UIDeprecated.h" />
|
<ClInclude Include="..\ui\UIDeprecated.h" />
|
||||||
<ClInclude Include="..\ui\UIEditBox\UIEditBox.h" />
|
<ClInclude Include="..\ui\UIEditBox\UIEditBox.h" />
|
||||||
|
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImpl-win32.h" />
|
||||||
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImpl.h" />
|
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImpl.h" />
|
||||||
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImplWin.h" />
|
|
||||||
<ClInclude Include="..\ui\UIHBox.h" />
|
<ClInclude Include="..\ui\UIHBox.h" />
|
||||||
<ClInclude Include="..\ui\UIHelper.h" />
|
<ClInclude Include="..\ui\UIHelper.h" />
|
||||||
<ClInclude Include="..\ui\UIImageView.h" />
|
<ClInclude Include="..\ui\UIImageView.h" />
|
||||||
|
|
|
@ -631,21 +631,6 @@
|
||||||
<ClCompile Include="..\renderer\CCTextureCache.cpp">
|
<ClCompile Include="..\renderer\CCTextureCache.cpp">
|
||||||
<Filter>renderer</Filter>
|
<Filter>renderer</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\platform\win32\CCApplication.cpp">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\platform\win32\CCCommon.cpp">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\platform\win32\CCDevice.cpp">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\platform\win32\CCFileUtilsWin32.cpp">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\platform\win32\CCStdC.cpp">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\math\CCAffineTransform.cpp">
|
<ClCompile Include="..\math\CCAffineTransform.cpp">
|
||||||
<Filter>math</Filter>
|
<Filter>math</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
@ -718,9 +703,6 @@
|
||||||
<ClCompile Include="..\storage\local-storage\LocalStorage.cpp">
|
<ClCompile Include="..\storage\local-storage\LocalStorage.cpp">
|
||||||
<Filter>storage</Filter>
|
<Filter>storage</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\platform\desktop\CCGLViewImpl.cpp">
|
|
||||||
<Filter>platform\desktop</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\platform\CCGLView.cpp">
|
<ClCompile Include="..\platform\CCGLView.cpp">
|
||||||
<Filter>platform</Filter>
|
<Filter>platform</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
@ -1129,9 +1111,6 @@
|
||||||
<ClCompile Include="..\ui\UIEditBox\UIEditBox.cpp">
|
<ClCompile Include="..\ui\UIEditBox\UIEditBox.cpp">
|
||||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\ui\UIEditBox\UIEditBoxImplWin.cpp">
|
|
||||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControl.cpp">
|
<ClCompile Include="..\..\extensions\GUI\CCControlExtension\CCControl.cpp">
|
||||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
@ -1168,6 +1147,27 @@
|
||||||
<ClCompile Include="..\ui\proj.win32\Win32InputBox.cpp">
|
<ClCompile Include="..\ui\proj.win32\Win32InputBox.cpp">
|
||||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\platform\win32\CCApplication-win32.cpp">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\platform\win32\CCCommon-win32.cpp">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\platform\win32\CCDevice-win32.cpp">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\platform\win32\CCFileUtils-win32.cpp">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\platform\win32\CCStdC-win32.cpp">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\platform\desktop\CCGLViewImpl-desktop.cpp">
|
||||||
|
<Filter>platform\desktop</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\ui\UIEditBox\UIEditBoxImpl-win32.cpp">
|
||||||
|
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\physics\CCPhysicsBody.h">
|
<ClInclude Include="..\physics\CCPhysicsBody.h">
|
||||||
|
@ -1642,21 +1642,6 @@
|
||||||
<ClInclude Include="..\platform\win32\compat\stdint.h">
|
<ClInclude Include="..\platform\win32\compat\stdint.h">
|
||||||
<Filter>platform\win32\compat</Filter>
|
<Filter>platform\win32\compat</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\platform\win32\CCApplication.h">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\platform\win32\CCFileUtilsWin32.h">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\platform\win32\CCGL.h">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\platform\win32\CCPlatformDefine.h">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\platform\win32\CCStdC.h">
|
|
||||||
<Filter>platform\win32</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\math\CCAffineTransform.h">
|
<ClInclude Include="..\math\CCAffineTransform.h">
|
||||||
<Filter>math</Filter>
|
<Filter>math</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -1747,9 +1732,6 @@
|
||||||
<ClInclude Include="..\storage\local-storage\LocalStorage.h">
|
<ClInclude Include="..\storage\local-storage\LocalStorage.h">
|
||||||
<Filter>storage</Filter>
|
<Filter>storage</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\platform\desktop\CCGLViewImpl.h">
|
|
||||||
<Filter>platform\desktop</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\platform\CCGLView.h">
|
<ClInclude Include="..\platform\CCGLView.h">
|
||||||
<Filter>platform</Filter>
|
<Filter>platform</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -2254,9 +2236,6 @@
|
||||||
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImpl.h">
|
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImpl.h">
|
||||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImplWin.h">
|
|
||||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControl.h">
|
<ClInclude Include="..\..\extensions\GUI\CCControlExtension\CCControl.h">
|
||||||
<Filter>extension\GUI\CCControlExtensions</Filter>
|
<Filter>extension\GUI\CCControlExtensions</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -2296,6 +2275,27 @@
|
||||||
<ClInclude Include="..\ui\proj.win32\Win32InputBox.h">
|
<ClInclude Include="..\ui\proj.win32\Win32InputBox.h">
|
||||||
<Filter>ui\UIWidgets\EditBox</Filter>
|
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\win32\CCApplication-win32.h">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\win32\CCFileUtils-win32.h">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\win32\CCGL-win32.h">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\win32\CCPlatformDefine-win32.h">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\win32\CCStdC-win32.h">
|
||||||
|
<Filter>platform\win32</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\platform\desktop\CCGLViewImpl-desktop.h">
|
||||||
|
<Filter>platform\desktop</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\ui\UIEditBox\UIEditBoxImpl-win32.h">
|
||||||
|
<Filter>ui\UIWidgets\EditBox</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\math\Mat4.inl">
|
<None Include="..\math\Mat4.inl">
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
#include "math/CCMath.h"
|
#include "math/CCMath.h"
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCConsole.h"
|
#include "base/CCConsole.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "3d/CCMesh.h"
|
#include "3d/CCMesh.h"
|
||||||
|
|
||||||
#include "base/CCDirector.h"
|
#include "base/CCDirector.h"
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/ccMacros.h"
|
#include "base/ccMacros.h"
|
||||||
#include "platform/CCFileUtils.h"
|
#include "platform/CCFileUtils.h"
|
||||||
#include "renderer/CCTextureCache.h"
|
#include "renderer/CCTextureCache.h"
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
set(COCOS_3D_SRC
|
|
||||||
CCRay.cpp
|
|
||||||
CCAABB.cpp
|
|
||||||
CCOBB.cpp
|
|
||||||
CCAnimate3D.cpp
|
|
||||||
CCAnimation3D.cpp
|
|
||||||
CCAttachNode.cpp
|
|
||||||
CCBundle3D.cpp
|
|
||||||
CCBundleReader.cpp
|
|
||||||
CCMesh.cpp
|
|
||||||
CCMeshSkin.cpp
|
|
||||||
CCMeshVertexIndexData.cpp
|
|
||||||
CCSprite3DMaterial.cpp
|
|
||||||
CCObjLoader.cpp
|
|
||||||
CCSkeleton3D.cpp
|
|
||||||
CCSprite3D.cpp
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
include_directories(
|
|
||||||
3d
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(cocos3d STATIC
|
|
||||||
${COCOS_3D_SRC}
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(cocos3d
|
|
||||||
cocos2d
|
|
||||||
)
|
|
||||||
|
|
||||||
set_target_properties(cocos3d
|
|
||||||
PROPERTIES
|
|
||||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
||||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
|
||||||
)
|
|
|
@ -25,19 +25,7 @@
|
||||||
#ifndef __COCOS_3D_COCOS3D_H__
|
#ifndef __COCOS_3D_COCOS3D_H__
|
||||||
#define __COCOS_3D_COCOS3D_H__
|
#define __COCOS_3D_COCOS3D_H__
|
||||||
|
|
||||||
//3d
|
// DON'T ADD FILES HERE
|
||||||
#include "3d/CCAABB.h"
|
// ADD THEM IN THE COCOS2D.H HEADER FILE
|
||||||
#include "3d/CCOBB.h"
|
|
||||||
#include "3d/CCRay.h"
|
|
||||||
#include "3d/CCSprite3D.h"
|
|
||||||
#include "3d/CCMesh.h"
|
|
||||||
#include "3d/CCMeshSkin.h"
|
|
||||||
#include "3d/CCAnimate3D.h"
|
|
||||||
#include "3d/CCAnimation3D.h"
|
|
||||||
#include "3d/CCSprite3DMaterial.h"
|
|
||||||
#include "3d/CCAttachNode.h"
|
|
||||||
#include "3d/CCMeshVertexIndexData.h"
|
|
||||||
#include "3d/CCBillBoard.h"
|
|
||||||
#include "3d/CCSkeleton3D.h"
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -122,7 +122,7 @@ base/CCScheduler.cpp \
|
||||||
base/CCScriptSupport.cpp \
|
base/CCScriptSupport.cpp \
|
||||||
base/CCTouch.cpp \
|
base/CCTouch.cpp \
|
||||||
base/CCUserDefault.cpp \
|
base/CCUserDefault.cpp \
|
||||||
base/CCUserDefaultAndroid.cpp \
|
base/CCUserDefault-android.cpp \
|
||||||
base/CCValue.cpp \
|
base/CCValue.cpp \
|
||||||
base/TGAlib.cpp \
|
base/TGAlib.cpp \
|
||||||
base/ZipUtils.cpp \
|
base/ZipUtils.cpp \
|
||||||
|
|
|
@ -42,69 +42,604 @@ include_directories(
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../external/websockets/include/${PLATFORM_FOLDER}
|
${CMAKE_CURRENT_SOURCE_DIR}/../external/websockets/include/${PLATFORM_FOLDER}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../external/xxhash
|
${CMAKE_CURRENT_SOURCE_DIR}/../external/xxhash
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../external/ConvertUTF
|
${CMAKE_CURRENT_SOURCE_DIR}/../external/ConvertUTF
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../external/linux-specific/fmod/include/${ARCH_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}/../external/${PLATFORM_FOLDER}-specific/fmod/include/${ARCH_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
# cocos2d source files and header files
|
# cocos2d source files and header files
|
||||||
file(GLOB core_source_files
|
#
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/cocos2d.cpp"
|
# From CMake page:
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/base/ccFPSImages.c"
|
# We do not recommend using GLOB to collect a list of source files from your source tree.
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/2d/*.cpp"
|
# If no CMakeLists.txt file changes when a source is added or removed then the generated
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/3d/*.cpp"
|
# build system cannot know when to ask CMake to regenerate.)
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/audio/linux/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/base/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/deprecated/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/editor-support/cocosbuilder/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/editor-support/spine/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/math/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/network/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/physics/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/physics/chipmunk/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/platform/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/platform/linux/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/platform/desktop/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/renderer/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/storage/local-storage/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/ui/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../external/tinyxml2/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../external/xxhash/*.c"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../external/unzip/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../external/chipmunk/src/*.c"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../external/chipmunk/src/constraints/*.c"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../external/edtaa3func/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../external/ConvertUTF/*.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../external/ConvertUTF/*.c"
|
|
||||||
)
|
|
||||||
file(GLOB_RECURSE cocostudio_source_files "${CMAKE_CURRENT_SOURCE_DIR}/editor-support/cocostudio/*.cpp")
|
|
||||||
file(GLOB_RECURSE extensions_source_files "${CMAKE_CURRENT_SOURCE_DIR}/../extensions/*.cpp")
|
|
||||||
file(GLOB_RECURSE box2d_source_files "${CMAKE_CURRENT_SOURCE_DIR}/../external/Box2D/*.cpp")
|
|
||||||
set(cocos2d_source_files ${chipmunk_source_files} ${box2d_source_files} ${core_source_files} ${cocostudio_source_files} ${extensions_source_files})
|
|
||||||
# exclude files specific for other platforms
|
|
||||||
list(REMOVE_ITEM cocos2d_source_files
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/base/CCController-android.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/base/CCUserDefaultAndroid.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/ui/UIVideoPlayerAndroid.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/ui/UIWebView.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/ui/UIWebViewImpl_android.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/storage/local-storage/LocalStorageAndroid.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/base/CCEventController.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/base/CCEventListenerController.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/editor-support/cocostudio/proj.wp8/pch.cpp"
|
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/../extensions/proj.wp8/pch.cpp")
|
|
||||||
|
|
||||||
add_library(cocos2d STATIC ${cocos2d_source_files})
|
set(COCOS2D_BASE_SRC
|
||||||
|
|
||||||
|
cocos2d.cpp
|
||||||
|
|
||||||
|
base/ccFPSImages.c
|
||||||
|
base/CCAutoreleasePool.cpp
|
||||||
|
base/CCCamera.cpp
|
||||||
|
base/CCConfiguration.cpp
|
||||||
|
base/CCConsole.cpp
|
||||||
|
base/CCController-android.cpp
|
||||||
|
base/CCController.cpp
|
||||||
|
base/CCData.cpp
|
||||||
|
base/CCDataVisitor.cpp
|
||||||
|
base/CCDirector.cpp
|
||||||
|
base/CCEvent.cpp
|
||||||
|
base/CCEventAcceleration.cpp
|
||||||
|
base/CCEventController.cpp
|
||||||
|
base/CCEventCustom.cpp
|
||||||
|
base/CCEventDispatcher.cpp
|
||||||
|
base/CCEventFocus.cpp
|
||||||
|
base/CCEventKeyboard.cpp
|
||||||
|
base/CCEventListener.cpp
|
||||||
|
base/CCEventListenerAcceleration.cpp
|
||||||
|
base/CCEventListenerController.cpp
|
||||||
|
base/CCEventListenerCustom.cpp
|
||||||
|
base/CCEventListenerFocus.cpp
|
||||||
|
base/CCEventListenerKeyboard.cpp
|
||||||
|
base/CCEventListenerMouse.cpp
|
||||||
|
base/CCEventListenerTouch.cpp
|
||||||
|
base/CCEventMouse.cpp
|
||||||
|
base/CCEventTouch.cpp
|
||||||
|
base/CCIMEDispatcher.cpp
|
||||||
|
base/CCNS.cpp
|
||||||
|
base/CCProfiling.cpp
|
||||||
|
base/CCRef.cpp
|
||||||
|
base/CCScheduler.cpp
|
||||||
|
base/CCScriptSupport.cpp
|
||||||
|
base/CCTouch.cpp
|
||||||
|
base/CCUserDefault.cpp
|
||||||
|
base/CCUserDefault-android.cpp
|
||||||
|
base/CCValue.cpp
|
||||||
|
base/ObjectFactory.cpp
|
||||||
|
base/TGAlib.cpp
|
||||||
|
base/ZipUtils.cpp
|
||||||
|
base/atitc.cpp
|
||||||
|
base/base64.cpp
|
||||||
|
base/ccCArray.cpp
|
||||||
|
base/ccRandom.cpp
|
||||||
|
base/ccTypes.cpp
|
||||||
|
base/ccUTF8.cpp
|
||||||
|
base/ccUtils.cpp
|
||||||
|
base/etc1.cpp
|
||||||
|
base/pvr.cpp
|
||||||
|
base/s3tc.cpp
|
||||||
|
|
||||||
|
2d/CCAction.cpp
|
||||||
|
2d/CCActionCamera.cpp
|
||||||
|
2d/CCActionCatmullRom.cpp
|
||||||
|
2d/CCActionEase.cpp
|
||||||
|
2d/CCActionGrid.cpp
|
||||||
|
2d/CCActionGrid3D.cpp
|
||||||
|
2d/CCActionInstant.cpp
|
||||||
|
2d/CCActionInterval.cpp
|
||||||
|
2d/CCActionManager.cpp
|
||||||
|
2d/CCActionPageTurn3D.cpp
|
||||||
|
2d/CCActionProgressTimer.cpp
|
||||||
|
2d/CCActionTiledGrid.cpp
|
||||||
|
2d/CCActionTween.cpp
|
||||||
|
2d/CCAnimation.cpp
|
||||||
|
2d/CCAnimationCache.cpp
|
||||||
|
2d/CCAtlasNode.cpp
|
||||||
|
2d/CCClippingNode.cpp
|
||||||
|
2d/CCComponent.cpp
|
||||||
|
2d/CCComponentContainer.cpp
|
||||||
|
2d/CCDrawNode.cpp
|
||||||
|
2d/CCDrawingPrimitives.cpp
|
||||||
|
2d/CCFastTMXLayer.cpp
|
||||||
|
2d/CCFastTMXTiledMap.cpp
|
||||||
|
2d/CCFont.cpp
|
||||||
|
2d/CCFontAtlas.cpp
|
||||||
|
2d/CCFontAtlasCache.cpp
|
||||||
|
2d/CCFontCharMap.cpp
|
||||||
|
2d/CCFontFNT.cpp
|
||||||
|
2d/CCFontFreeType.cpp
|
||||||
|
2d/CCGLBufferedNode.cpp
|
||||||
|
2d/CCGrabber.cpp
|
||||||
|
2d/CCGrid.cpp
|
||||||
|
2d/CCLabel.cpp
|
||||||
|
2d/CCLabelAtlas.cpp
|
||||||
|
2d/CCLabelBMFont.cpp
|
||||||
|
2d/CCLabelTTF.cpp
|
||||||
|
2d/CCLabelTextFormatter.cpp
|
||||||
|
2d/CCLayer.cpp
|
||||||
|
2d/CCMenu.cpp
|
||||||
|
2d/CCMenuItem.cpp
|
||||||
|
2d/CCMotionStreak.cpp
|
||||||
|
2d/CCNode.cpp
|
||||||
|
2d/CCNodeGrid.cpp
|
||||||
|
2d/CCParallaxNode.cpp
|
||||||
|
2d/CCParticleBatchNode.cpp
|
||||||
|
2d/CCParticleExamples.cpp
|
||||||
|
2d/CCParticleSystem.cpp
|
||||||
|
2d/CCParticleSystemQuad.cpp
|
||||||
|
2d/CCProgressTimer.cpp
|
||||||
|
2d/CCProtectedNode.cpp
|
||||||
|
2d/CCRenderTexture.cpp
|
||||||
|
2d/CCScene.cpp
|
||||||
|
2d/CCSprite.cpp
|
||||||
|
2d/CCSpriteBatchNode.cpp
|
||||||
|
2d/CCSpriteFrame.cpp
|
||||||
|
2d/CCSpriteFrameCache.cpp
|
||||||
|
2d/CCTMXLayer.cpp
|
||||||
|
2d/CCTMXObjectGroup.cpp
|
||||||
|
2d/CCTMXTiledMap.cpp
|
||||||
|
2d/CCTMXXMLParser.cpp
|
||||||
|
2d/CCTextFieldTTF.cpp
|
||||||
|
2d/CCTileMapAtlas.cpp
|
||||||
|
2d/CCTransition.cpp
|
||||||
|
2d/CCTransitionPageTurn.cpp
|
||||||
|
2d/CCTransitionProgress.cpp
|
||||||
|
2d/CCTweenFunction.cpp
|
||||||
|
|
||||||
|
3d/CCAABB.cpp
|
||||||
|
3d/CCAnimate3D.cpp
|
||||||
|
3d/CCAnimation3D.cpp
|
||||||
|
3d/CCAttachNode.cpp
|
||||||
|
3d/CCBundle3D.cpp
|
||||||
|
3d/CCBundleReader.cpp
|
||||||
|
3d/CCMesh.cpp
|
||||||
|
3d/CCMeshSkin.cpp
|
||||||
|
3d/CCMeshVertexIndexData.cpp
|
||||||
|
3d/CCOBB.cpp
|
||||||
|
3d/CCObjLoader.cpp
|
||||||
|
3d/CCRay.cpp
|
||||||
|
3d/CCSkeleton3D.cpp
|
||||||
|
3d/CCSprite3D.cpp
|
||||||
|
3d/CCSprite3DMaterial.cpp
|
||||||
|
|
||||||
|
network/HttpClient.cpp
|
||||||
|
network/SocketIO.cpp
|
||||||
|
network/WebSocket.cpp
|
||||||
|
|
||||||
|
ui/CocosGUI.cpp
|
||||||
|
ui/UIButton.cpp
|
||||||
|
ui/UICheckBox.cpp
|
||||||
|
ui/UIDeprecated.cpp
|
||||||
|
ui/UIHBox.cpp
|
||||||
|
ui/UIHelper.cpp
|
||||||
|
ui/UIImageView.cpp
|
||||||
|
ui/UILayout.cpp
|
||||||
|
ui/UILayoutManager.cpp
|
||||||
|
ui/UILayoutParameter.cpp
|
||||||
|
ui/UIListView.cpp
|
||||||
|
ui/UILoadingBar.cpp
|
||||||
|
ui/UIPageView.cpp
|
||||||
|
ui/UIRelativeBox.cpp
|
||||||
|
ui/UIRichText.cpp
|
||||||
|
ui/UIScale9Sprite.cpp
|
||||||
|
ui/UIScrollView.cpp
|
||||||
|
ui/UISlider.cpp
|
||||||
|
ui/UIText.cpp
|
||||||
|
ui/UITextAtlas.cpp
|
||||||
|
ui/UITextBMFont.cpp
|
||||||
|
ui/UITextField.cpp
|
||||||
|
ui/UIVBox.cpp
|
||||||
|
ui/UIVideoPlayer-android.cpp
|
||||||
|
ui/UIWebView.cpp
|
||||||
|
ui/UIWebViewImpl-android.cpp
|
||||||
|
ui/UIWidget.cpp
|
||||||
|
ui/UIEditBox/UIEditBox.cpp
|
||||||
|
ui/UIEditBox/UIEditBoxImpl-android.cpp
|
||||||
|
ui/UIEditBox/UIEditBoxImpl-stub.cpp
|
||||||
|
ui/UIEditBox/UIEditBoxImpl-win32.cpp
|
||||||
|
ui/UIEditBox/UIEditBoxImpl-wp8.cpp
|
||||||
|
|
||||||
|
math/CCAffineTransform.cpp
|
||||||
|
math/CCGeometry.cpp
|
||||||
|
math/CCVertex.cpp
|
||||||
|
math/Mat4.cpp
|
||||||
|
math/MathUtil.cpp
|
||||||
|
math/Quaternion.cpp
|
||||||
|
math/TransformUtils.cpp
|
||||||
|
math/Vec2.cpp
|
||||||
|
math/Vec3.cpp
|
||||||
|
math/Vec4.cpp
|
||||||
|
|
||||||
|
renderer/CCBatchCommand.cpp
|
||||||
|
renderer/CCCustomCommand.cpp
|
||||||
|
renderer/CCGLProgram.cpp
|
||||||
|
renderer/CCGLProgramCache.cpp
|
||||||
|
renderer/CCGLProgramState.cpp
|
||||||
|
renderer/CCGLProgramStateCache.cpp
|
||||||
|
renderer/CCGroupCommand.cpp
|
||||||
|
renderer/CCMeshCommand.cpp
|
||||||
|
renderer/CCPrimitive.cpp
|
||||||
|
renderer/CCPrimitiveCommand.cpp
|
||||||
|
renderer/CCQuadCommand.cpp
|
||||||
|
renderer/CCRenderCommand.cpp
|
||||||
|
renderer/CCRenderer.cpp
|
||||||
|
renderer/CCTexture2D.cpp
|
||||||
|
renderer/CCTextureAtlas.cpp
|
||||||
|
renderer/CCTextureCache.cpp
|
||||||
|
renderer/CCTrianglesCommand.cpp
|
||||||
|
renderer/CCVertexIndexBuffer.cpp
|
||||||
|
renderer/CCVertexIndexData.cpp
|
||||||
|
renderer/ccGLStateCache.cpp
|
||||||
|
renderer/ccShaders.cpp
|
||||||
|
|
||||||
|
deprecated/CCArray.cpp
|
||||||
|
deprecated/CCDeprecated.cpp
|
||||||
|
deprecated/CCDictionary.cpp
|
||||||
|
deprecated/CCNotificationCenter.cpp
|
||||||
|
deprecated/CCSet.cpp
|
||||||
|
deprecated/CCString.cpp
|
||||||
|
|
||||||
|
physics/CCPhysicsBody.cpp
|
||||||
|
physics/CCPhysicsContact.cpp
|
||||||
|
physics/CCPhysicsJoint.cpp
|
||||||
|
physics/CCPhysicsShape.cpp
|
||||||
|
physics/CCPhysicsWorld.cpp
|
||||||
|
physics/chipmunk/CCPhysicsBodyInfo_chipmunk.cpp
|
||||||
|
physics/chipmunk/CCPhysicsContactInfo_chipmunk.cpp
|
||||||
|
physics/chipmunk/CCPhysicsJointInfo_chipmunk.cpp
|
||||||
|
physics/chipmunk/CCPhysicsShapeInfo_chipmunk.cpp
|
||||||
|
physics/chipmunk/CCPhysicsWorldInfo_chipmunk.cpp
|
||||||
|
|
||||||
|
platform/CCFileUtils.cpp
|
||||||
|
platform/CCGLView.cpp
|
||||||
|
platform/CCImage.cpp
|
||||||
|
platform/CCSAXParser.cpp
|
||||||
|
platform/CCThread.cpp
|
||||||
|
|
||||||
|
storage/local-storage/LocalStorage.cpp
|
||||||
|
storage/local-storage/LocalStorage-android.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
if(MACOSX)
|
||||||
|
set(COCOS2D_BASE_SRC
|
||||||
|
${COCOS2D_BASE_SRC}
|
||||||
|
ui/UIEditBox/UIEditBoxImpl-ios.mm
|
||||||
|
ui/UIEditBox/UIEditBoxImpl-mac.mm
|
||||||
|
base/CCUserDefault.mm
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(COCOS2D_EDITOR_SUPPORT_SRC
|
||||||
|
editor-support/cocosbuilder/CCBAnimationManager.cpp
|
||||||
|
editor-support/cocosbuilder/CCBFileLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCBKeyframe.cpp
|
||||||
|
editor-support/cocosbuilder/CCBReader.cpp
|
||||||
|
editor-support/cocosbuilder/CCBSequence.cpp
|
||||||
|
editor-support/cocosbuilder/CCBSequenceProperty.cpp
|
||||||
|
editor-support/cocosbuilder/CCControlButtonLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCControlLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCLabelBMFontLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCLabelTTFLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCLayerColorLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCLayerGradientLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCLayerLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCMenuItemImageLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCMenuItemLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCNode+CCBRelativePositioning.cpp
|
||||||
|
editor-support/cocosbuilder/CCNodeLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCNodeLoaderLibrary.cpp
|
||||||
|
editor-support/cocosbuilder/CCParticleSystemQuadLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCScale9SpriteLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCScrollViewLoader.cpp
|
||||||
|
editor-support/cocosbuilder/CCSpriteLoader.cpp
|
||||||
|
|
||||||
|
editor-support/spine/Animation.cpp
|
||||||
|
editor-support/spine/AnimationState.cpp
|
||||||
|
editor-support/spine/AnimationStateData.cpp
|
||||||
|
editor-support/spine/Atlas.cpp
|
||||||
|
editor-support/spine/AtlasAttachmentLoader.cpp
|
||||||
|
editor-support/spine/Attachment.cpp
|
||||||
|
editor-support/spine/AttachmentLoader.cpp
|
||||||
|
editor-support/spine/Bone.cpp
|
||||||
|
editor-support/spine/BoneData.cpp
|
||||||
|
editor-support/spine/BoundingBoxAttachment.cpp
|
||||||
|
editor-support/spine/CCSkeleton.cpp
|
||||||
|
editor-support/spine/CCSkeletonAnimation.cpp
|
||||||
|
editor-support/spine/Event.cpp
|
||||||
|
editor-support/spine/EventData.cpp
|
||||||
|
editor-support/spine/Json.cpp
|
||||||
|
editor-support/spine/RegionAttachment.cpp
|
||||||
|
editor-support/spine/Skeleton.cpp
|
||||||
|
editor-support/spine/SkeletonBounds.cpp
|
||||||
|
editor-support/spine/SkeletonData.cpp
|
||||||
|
editor-support/spine/SkeletonJson.cpp
|
||||||
|
editor-support/spine/Skin.cpp
|
||||||
|
editor-support/spine/Slot.cpp
|
||||||
|
editor-support/spine/SlotData.cpp
|
||||||
|
editor-support/spine/extension.cpp
|
||||||
|
editor-support/spine/spine-cocos2dx.cpp
|
||||||
|
|
||||||
|
editor-support/cocostudio/CCActionFrame.cpp
|
||||||
|
editor-support/cocostudio/CCActionFrameEasing.cpp
|
||||||
|
editor-support/cocostudio/CCActionManagerEx.cpp
|
||||||
|
editor-support/cocostudio/CCActionNode.cpp
|
||||||
|
editor-support/cocostudio/CCActionObject.cpp
|
||||||
|
editor-support/cocostudio/CCArmature.cpp
|
||||||
|
editor-support/cocostudio/CCArmatureAnimation.cpp
|
||||||
|
editor-support/cocostudio/CCArmatureDataManager.cpp
|
||||||
|
editor-support/cocostudio/CCArmatureDefine.cpp
|
||||||
|
editor-support/cocostudio/CCBatchNode.cpp
|
||||||
|
editor-support/cocostudio/CCBone.cpp
|
||||||
|
editor-support/cocostudio/CCColliderDetector.cpp
|
||||||
|
editor-support/cocostudio/CCComAttribute.cpp
|
||||||
|
editor-support/cocostudio/CCComAudio.cpp
|
||||||
|
editor-support/cocostudio/CCComController.cpp
|
||||||
|
editor-support/cocostudio/CCComRender.cpp
|
||||||
|
editor-support/cocostudio/CCDataReaderHelper.cpp
|
||||||
|
editor-support/cocostudio/CCDatas.cpp
|
||||||
|
editor-support/cocostudio/CCDecorativeDisplay.cpp
|
||||||
|
editor-support/cocostudio/CCDisplayFactory.cpp
|
||||||
|
editor-support/cocostudio/CCDisplayManager.cpp
|
||||||
|
editor-support/cocostudio/CCInputDelegate.cpp
|
||||||
|
editor-support/cocostudio/CCProcessBase.cpp
|
||||||
|
editor-support/cocostudio/CCSGUIReader.cpp
|
||||||
|
editor-support/cocostudio/CCSSceneReader.cpp
|
||||||
|
editor-support/cocostudio/CCSkin.cpp
|
||||||
|
editor-support/cocostudio/CCSpriteFrameCacheHelper.cpp
|
||||||
|
editor-support/cocostudio/CCTransformHelp.cpp
|
||||||
|
editor-support/cocostudio/CCTween.cpp
|
||||||
|
editor-support/cocostudio/CCUtilMath.cpp
|
||||||
|
editor-support/cocostudio/CocoLoader.cpp
|
||||||
|
editor-support/cocostudio/DictionaryHelper.cpp
|
||||||
|
editor-support/cocostudio/TriggerBase.cpp
|
||||||
|
editor-support/cocostudio/TriggerMng.cpp
|
||||||
|
editor-support/cocostudio/TriggerObj.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/WidgetReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/LoadingBarReader/LoadingBarReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/ListViewReader/ListViewReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/TextFieldReader/TextFieldReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/WidgetReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/CheckBoxReader/CheckBoxReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/SliderReader/SliderReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/PageViewReader/PageViewReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/TextReader/TextReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/TextAtlasReader/TextAtlasReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/TextBMFontReader/TextBMFontReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp
|
||||||
|
editor-support/cocostudio/WidgetReader/ScrollViewReader/ScrollViewReader.cpp
|
||||||
|
editor-support/cocostudio/ActionTimeline/CCActionTimelineCache.cpp
|
||||||
|
editor-support/cocostudio/ActionTimeline/CCActionTimeline.cpp
|
||||||
|
editor-support/cocostudio/ActionTimeline/CCFrame.cpp
|
||||||
|
editor-support/cocostudio/ActionTimeline/CCNodeReader.cpp
|
||||||
|
editor-support/cocostudio/ActionTimeline/CCTimeLine.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
if(LINUX)
|
||||||
|
set(COCOS2D_AUDIO_SRC
|
||||||
|
audio/linux/FmodAudioPlayer.cpp
|
||||||
|
audio/linux/SimpleAudioEngineFMOD.cpp
|
||||||
|
)
|
||||||
|
elseif(MACOSX)
|
||||||
|
# split it in _C and non C
|
||||||
|
# because C files needs to be compiled with C compiler and not C++
|
||||||
|
# compiler
|
||||||
|
set(COCOS2D_AUDIO_SRC_C
|
||||||
|
audio/mac/CDAudioManager.m
|
||||||
|
audio/mac/CDOpenALSupport.m
|
||||||
|
audio/mac/CocosDenshion.m
|
||||||
|
audio/mac/SimpleAudioEngine_objc.m
|
||||||
|
)
|
||||||
|
set(COCOS2D_AUDIO_SRC
|
||||||
|
${COCOS2D_AUDIO_SRC_C}
|
||||||
|
audio/mac/SimpleAudioEngine.mm
|
||||||
|
audio/mac/CDXMacOSXSupport.mm
|
||||||
|
)
|
||||||
|
SET_SOURCE_FILES_PROPERTIES(
|
||||||
|
${COCOS2D_AUDIO_SRC_C}
|
||||||
|
PROPERTIES LANGUAGE C
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
message( FATAL_ERROR "Unsupported platform, CMake will exit" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# For external projects, leave one empty line
|
||||||
|
# between projects
|
||||||
|
set(COCOS2D_EXTERNAL_SRC
|
||||||
|
../external/tinyxml2/tinyxml2.cpp
|
||||||
|
|
||||||
|
../external/xxhash/xxhash.c
|
||||||
|
|
||||||
|
../external/unzip/ioapi.cpp
|
||||||
|
../external/unzip/unzip.cpp
|
||||||
|
|
||||||
|
../external/edtaa3func/edtaa3func.cpp
|
||||||
|
|
||||||
|
../external/ConvertUTF/ConvertUTF.c
|
||||||
|
../external/ConvertUTF/ConvertUTFWrapper.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
set(COCOS2D_DESKTOP_SRC
|
||||||
|
platform/desktop/CCGLViewImpl-desktop.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
if(LINUX)
|
||||||
|
set(COCOS2D_PLATFORM_SRC
|
||||||
|
${COCOS2D_DESKTOP_SRC}
|
||||||
|
platform/linux/CCApplication-linux.cpp
|
||||||
|
platform/linux/CCCommon-linux.cpp
|
||||||
|
platform/linux/CCDevice-linux.cpp
|
||||||
|
platform/linux/CCFileUtils-linux.cpp
|
||||||
|
platform/linux/CCStdC-linux.cpp
|
||||||
|
)
|
||||||
|
elseif(MACOSX)
|
||||||
|
set(COCOS2D_PLATFORM_SRC
|
||||||
|
${COCOS2D_DESKTOP_SRC}
|
||||||
|
platform/mac/CCApplication-mac.mm
|
||||||
|
platform/mac/CCCommon-mac.mm
|
||||||
|
platform/mac/CCDevice-mac.mm
|
||||||
|
platform/apple/CCLock-apple.cpp
|
||||||
|
platform/apple/CCFileUtils-apple.mm
|
||||||
|
platform/apple/CCThread-apple.mm
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
message( FATAL_ERROR "Unsupported architecture, CMake will exit" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(COCOS2D_SRC
|
||||||
|
${COCOS2D_BASE_SRC}
|
||||||
|
${COCOS2D_PLATFORM_SRC}
|
||||||
|
${COCOS2D_EXTERNAL_SRC}
|
||||||
|
${COCOS2D_AUDIO_SRC}
|
||||||
|
${COCOS2D_EDITOR_SUPPORT_SRC}
|
||||||
|
)
|
||||||
|
|
||||||
|
set(COCOS2D_EXTENSIONS_SRC
|
||||||
|
../extensions/ExtensionDeprecated.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControlButton.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControlColourPicker.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControl.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControlHuePicker.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControlPotentiometer.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControlSlider.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControlStepper.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControlSwitch.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCControlUtils.cpp
|
||||||
|
../extensions/GUI/CCControlExtension/CCInvocation.cpp
|
||||||
|
../extensions/GUI/CCScrollView/CCScrollView.cpp
|
||||||
|
../extensions/GUI/CCScrollView/CCTableViewCell.cpp
|
||||||
|
../extensions/GUI/CCScrollView/CCTableView.cpp
|
||||||
|
../extensions/assets-manager/AssetsManager.cpp
|
||||||
|
../extensions/physics-nodes/CCPhysicsDebugNode.cpp
|
||||||
|
../extensions/physics-nodes/CCPhysicsSprite.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
set(CHIPMUNK_SRC
|
||||||
|
../external/chipmunk/src/chipmunk.c
|
||||||
|
../external/chipmunk/src/cpArbiter.c
|
||||||
|
../external/chipmunk/src/cpArray.c
|
||||||
|
../external/chipmunk/src/cpBB.c
|
||||||
|
../external/chipmunk/src/cpBBTree.c
|
||||||
|
../external/chipmunk/src/cpBody.c
|
||||||
|
../external/chipmunk/src/cpCollision.c
|
||||||
|
../external/chipmunk/src/cpHashSet.c
|
||||||
|
../external/chipmunk/src/cpPolyShape.c
|
||||||
|
../external/chipmunk/src/cpShape.c
|
||||||
|
../external/chipmunk/src/cpSpace.c
|
||||||
|
../external/chipmunk/src/cpSpaceComponent.c
|
||||||
|
../external/chipmunk/src/cpSpaceHash.c
|
||||||
|
../external/chipmunk/src/cpSpaceQuery.c
|
||||||
|
../external/chipmunk/src/cpSpaceStep.c
|
||||||
|
../external/chipmunk/src/cpSpatialIndex.c
|
||||||
|
../external/chipmunk/src/cpSweep1D.c
|
||||||
|
../external/chipmunk/src/cpVect.c
|
||||||
|
../external/chipmunk/src/constraints/cpConstraint.c
|
||||||
|
../external/chipmunk/src/constraints/cpDampedRotarySpring.c
|
||||||
|
../external/chipmunk/src/constraints/cpDampedSpring.c
|
||||||
|
../external/chipmunk/src/constraints/cpGearJoint.c
|
||||||
|
../external/chipmunk/src/constraints/cpGrooveJoint.c
|
||||||
|
../external/chipmunk/src/constraints/cpPinJoint.c
|
||||||
|
../external/chipmunk/src/constraints/cpPivotJoint.c
|
||||||
|
../external/chipmunk/src/constraints/cpRatchetJoint.c
|
||||||
|
../external/chipmunk/src/constraints/cpRotaryLimitJoint.c
|
||||||
|
../external/chipmunk/src/constraints/cpSimpleMotor.c
|
||||||
|
../external/chipmunk/src/constraints/cpSlideJoint.c
|
||||||
|
)
|
||||||
|
|
||||||
|
set(BOX2D_SRC
|
||||||
|
../external/Box2D/Collision/b2BroadPhase.cpp
|
||||||
|
../external/Box2D/Collision/b2CollideCircle.cpp
|
||||||
|
../external/Box2D/Collision/b2CollideEdge.cpp
|
||||||
|
../external/Box2D/Collision/b2CollidePolygon.cpp
|
||||||
|
../external/Box2D/Collision/b2Collision.cpp
|
||||||
|
../external/Box2D/Collision/b2Distance.cpp
|
||||||
|
../external/Box2D/Collision/b2DynamicTree.cpp
|
||||||
|
../external/Box2D/Collision/b2TimeOfImpact.cpp
|
||||||
|
../external/Box2D/Collision/Shapes/b2ChainShape.cpp
|
||||||
|
../external/Box2D/Collision/Shapes/b2CircleShape.cpp
|
||||||
|
../external/Box2D/Collision/Shapes/b2EdgeShape.cpp
|
||||||
|
../external/Box2D/Collision/Shapes/b2PolygonShape.cpp
|
||||||
|
../external/Box2D/Common/b2BlockAllocator.cpp
|
||||||
|
../external/Box2D/Common/b2Draw.cpp
|
||||||
|
../external/Box2D/Common/b2Math.cpp
|
||||||
|
../external/Box2D/Common/b2Settings.cpp
|
||||||
|
../external/Box2D/Common/b2StackAllocator.cpp
|
||||||
|
../external/Box2D/Common/b2Timer.cpp
|
||||||
|
../external/Box2D/Dynamics/b2Body.cpp
|
||||||
|
../external/Box2D/Dynamics/b2ContactManager.cpp
|
||||||
|
../external/Box2D/Dynamics/b2Fixture.cpp
|
||||||
|
../external/Box2D/Dynamics/b2Island.cpp
|
||||||
|
../external/Box2D/Dynamics/b2World.cpp
|
||||||
|
../external/Box2D/Dynamics/b2WorldCallbacks.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2DistanceJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2FrictionJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2GearJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2Joint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2MotorJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2MouseJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2PrismaticJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2PulleyJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2RevoluteJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2RopeJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2WeldJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Joints/b2WheelJoint.cpp
|
||||||
|
../external/Box2D/Dynamics/Contacts/b2ChainAndCircleContact.cpp
|
||||||
|
../external/Box2D/Dynamics/Contacts/b2ChainAndPolygonContact.cpp
|
||||||
|
../external/Box2D/Dynamics/Contacts/b2CircleContact.cpp
|
||||||
|
../external/Box2D/Dynamics/Contacts/b2Contact.cpp
|
||||||
|
../external/Box2D/Dynamics/Contacts/b2ContactSolver.cpp
|
||||||
|
../external/Box2D/Dynamics/Contacts/b2EdgeAndCircleContact.cpp
|
||||||
|
../external/Box2D/Dynamics/Contacts/b2EdgeAndPolygonContact.cpp
|
||||||
|
../external/Box2D/Dynamics/Contacts/b2PolygonAndCircleContact.cpp
|
||||||
|
../external/Box2D/Dynamics/Contacts/b2PolygonContact.cpp
|
||||||
|
../external/Box2D/Rope/b2Rope.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(cocos2d STATIC ${COCOS2D_SRC} ${COCOS2D_EXTENSIONS_SRC} ${BOX2D_SRC} ${CHIPMUNK_SRC})
|
||||||
|
|
||||||
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
||||||
set(FMOD_LIB "fmodex64")
|
set(FMOD_LIB "fmodex64")
|
||||||
else()
|
elseif ( CMAKE_SIZEOF_VOID_P EQUAL 4 )
|
||||||
set(FMOD_LIB "fmodex")
|
set(FMOD_LIB "fmodex")
|
||||||
|
else()
|
||||||
|
message( FATAL_ERROR "Unsupported architecture, CMake will exit" )
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(cocos2d jpeg webp tiff freetype fontconfig png pthread glfw GLEW GL X11 rt z ${FMOD_LIB} curl)
|
|
||||||
|
if(LINUX)
|
||||||
|
set(PLATFORM_SPECIFIC_LIBS
|
||||||
|
pthread
|
||||||
|
fontconfig
|
||||||
|
GLEW
|
||||||
|
X11
|
||||||
|
rt
|
||||||
|
glfw
|
||||||
|
GL
|
||||||
|
${FMOD_LIB}
|
||||||
|
)
|
||||||
|
elseif(MACOSX)
|
||||||
|
INCLUDE_DIRECTORIES ( /System/Library/Frameworks )
|
||||||
|
FIND_LIBRARY(COCOA_LIBRARY Cocoa)
|
||||||
|
FIND_LIBRARY(OPENGL_LIBRARY OpenGL )
|
||||||
|
FIND_LIBRARY(AUDIOTOOLBOX_LIBRARY AudioToolbox)
|
||||||
|
FIND_LIBRARY(OPENAL_LIBRARY OpenAL )
|
||||||
|
FIND_LIBRARY(QUARTZCORE_LIBRARY QuartzCore )
|
||||||
|
FIND_LIBRARY(APPLICATIONSERVICES_LIBRARY ApplicationServices)
|
||||||
|
FIND_LIBRARY(IOKIT_LIBRARY IOKit)
|
||||||
|
FIND_LIBRARY(FOUNDATION_LIBRARY Foundation)
|
||||||
|
set(PLATFORM_SPECIFIC_LIBS
|
||||||
|
glfw3
|
||||||
|
websockets
|
||||||
|
${COCOA_LIBRARY}
|
||||||
|
${OPENGL_LIBRARY}
|
||||||
|
${OPENAL_LIBRARY}
|
||||||
|
${AUDIOTOOLBOX_LIBRARY}
|
||||||
|
${QUARTZCORE_LIBRARY}
|
||||||
|
${APPLICATIONSERVICES_LIBRARY}
|
||||||
|
${IOKIT_LIBRARY}
|
||||||
|
${FOUNDATION_LIBRARY}
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
message( FATAL_ERROR "Unsupported platform, CMake will exit" )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
target_link_libraries(cocos2d jpeg webp tiff freetype png z curl ${PLATFORM_SPECIFIC_LIBS})
|
||||||
|
|
||||||
set_target_properties(cocos2d
|
set_target_properties(cocos2d
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
||||||
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
|
||||||
|
VERSION ${COCOS2D_X_VERSION}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#include "SimpleAudioEngine_objc.h"
|
#include "SimpleAudioEngine_objc.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "CCFileUtils.h"
|
#include "platform/CCFileUtils.h"
|
||||||
using namespace cocos2d;
|
using namespace cocos2d;
|
||||||
|
|
||||||
static void static_end()
|
static void static_end()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef _MCI_PLAYER_WIN32_H_
|
#ifndef _MCI_PLAYER_WIN32_H_
|
||||||
#define _MCI_PLAYER_WIN32_H_
|
#define _MCI_PLAYER_WIN32_H_
|
||||||
|
|
||||||
#include "CCStdC.h"
|
#include "platform/CCStdC.h"
|
||||||
#include <mmsystem.h>
|
#include <mmsystem.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
|
@ -27,11 +27,12 @@ THE SOFTWARE.
|
||||||
#ifndef __CCCONFIGURATION_H__
|
#ifndef __CCCONFIGURATION_H__
|
||||||
#define __CCCONFIGURATION_H__
|
#define __CCCONFIGURATION_H__
|
||||||
|
|
||||||
#include "base/CCRef.h"
|
|
||||||
#include "CCGL.h"
|
|
||||||
#include "base/CCValue.h"
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "base/CCRef.h"
|
||||||
|
#include "base/CCValue.h"
|
||||||
|
#include "platform/CCGL.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
#include "base/CCDirector.h"
|
#include "base/CCDirector.h"
|
||||||
#include "base/CCScheduler.h"
|
#include "base/CCScheduler.h"
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#include "base/CCConfiguration.h"
|
#include "base/CCConfiguration.h"
|
||||||
#include "2d/CCScene.h"
|
#include "2d/CCScene.h"
|
||||||
#include "platform/CCFileUtils.h"
|
#include "platform/CCFileUtils.h"
|
||||||
|
|
|
@ -49,7 +49,7 @@ typedef SSIZE_T ssize_t;
|
||||||
|
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
#include "base/ccMacros.h"
|
#include "base/ccMacros.h"
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "CCController.h"
|
#include "CCController.h"
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||||
|
|
||||||
#include "ccMacros.h"
|
#include "ccMacros.h"
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef __cocos2d_libs__CCController__
|
#ifndef __cocos2d_libs__CCController__
|
||||||
#define __cocos2d_libs__CCController__
|
#define __cocos2d_libs__CCController__
|
||||||
|
|
||||||
#include "CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
|
@ -26,10 +26,10 @@
|
||||||
#ifndef __CCDATA_H__
|
#ifndef __CCDATA_H__
|
||||||
#define __CCDATA_H__
|
#define __CCDATA_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include <stdint.h> // for ssize_t on android
|
#include <stdint.h> // for ssize_t on android
|
||||||
#include <string> // for ssize_t on linux
|
#include <string> // for ssize_t on linux
|
||||||
#include "CCStdC.h" // for ssize_t on window
|
#include "platform/CCStdC.h" // for ssize_t on window
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#ifndef __CCDATAVISITOR_H__
|
#ifndef __CCDATAVISITOR_H__
|
||||||
#define __CCDATAVISITOR_H__
|
#define __CCDATAVISITOR_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
|
@ -57,9 +57,8 @@ THE SOFTWARE.
|
||||||
#include "base/CCConsole.h"
|
#include "base/CCConsole.h"
|
||||||
#include "base/CCAutoreleasePool.h"
|
#include "base/CCAutoreleasePool.h"
|
||||||
#include "base/CCConfiguration.h"
|
#include "base/CCConfiguration.h"
|
||||||
|
#include "platform/CCApplication.h"
|
||||||
#include "CCApplication.h"
|
//#include "platform/CCGLViewImpl.h"
|
||||||
#include "CCGLViewImpl.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Position of the FPS
|
Position of the FPS
|
||||||
|
|
|
@ -28,14 +28,14 @@ THE SOFTWARE.
|
||||||
#ifndef __CCDIRECTOR_H__
|
#ifndef __CCDIRECTOR_H__
|
||||||
#define __CCDIRECTOR_H__
|
#define __CCDIRECTOR_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include <stack>
|
||||||
|
|
||||||
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
#include "base/CCVector.h"
|
#include "base/CCVector.h"
|
||||||
#include "2d/CCScene.h"
|
#include "2d/CCScene.h"
|
||||||
#include "CCGL.h"
|
|
||||||
#include <stack>
|
|
||||||
#include "math/CCMath.h"
|
#include "math/CCMath.h"
|
||||||
|
#include "platform/CCGL.h"
|
||||||
#include "platform/CCGLView.h"
|
#include "platform/CCGLView.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
#define __CCEVENT_H__
|
#define __CCEVENT_H__
|
||||||
|
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
@ -46,9 +46,7 @@ public:
|
||||||
ACCELERATION,
|
ACCELERATION,
|
||||||
MOUSE,
|
MOUSE,
|
||||||
FOCUS,
|
FOCUS,
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
|
||||||
GAME_CONTROLLER,
|
GAME_CONTROLLER,
|
||||||
#endif
|
|
||||||
CUSTOM
|
CUSTOM
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef __cocos2d_libs__EventController__
|
#ifndef __cocos2d_libs__EventController__
|
||||||
#define __cocos2d_libs__EventController__
|
#define __cocos2d_libs__EventController__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCEvent.h"
|
#include "base/CCEvent.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
|
@ -31,10 +31,10 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCEventListener.h"
|
#include "base/CCEventListener.h"
|
||||||
#include "base/CCEvent.h"
|
#include "base/CCEvent.h"
|
||||||
#include "CCStdC.h"
|
#include "platform/CCStdC.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
@ -54,9 +54,7 @@ public:
|
||||||
MOUSE,
|
MOUSE,
|
||||||
ACCELERATION,
|
ACCELERATION,
|
||||||
FOCUS,
|
FOCUS,
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
|
||||||
GAME_CONTROLLER,
|
GAME_CONTROLLER,
|
||||||
#endif
|
|
||||||
CUSTOM
|
CUSTOM
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef __cocos2d_libs__EventListenerController__
|
#ifndef __cocos2d_libs__EventListenerController__
|
||||||
#define __cocos2d_libs__EventListenerController__
|
#define __cocos2d_libs__EventListenerController__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCEventListener.h"
|
#include "base/CCEventListener.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __BASE_CCREF_H__
|
#ifndef __BASE_CCREF_H__
|
||||||
#define __BASE_CCREF_H__
|
#define __BASE_CCREF_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/ccConfig.h"
|
#include "base/ccConfig.h"
|
||||||
|
|
||||||
#define CC_USE_MEM_LEAK_DETECTION 0
|
#define CC_USE_MEM_LEAK_DETECTION 0
|
||||||
|
|
|
@ -23,7 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#include "base/CCUserDefault.h"
|
#include "base/CCUserDefault.h"
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#include "base/ccUtils.h"
|
#include "base/ccUtils.h"
|
||||||
#include "platform/CCCommon.h"
|
#include "platform/CCCommon.h"
|
||||||
#include "base/base64.h"
|
#include "base/base64.h"
|
|
@ -23,16 +23,19 @@
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#include "platform/CCPlatformConfig.h"
|
||||||
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||||
|
|
||||||
|
#import <Foundation/Foundation.h>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#import "CCUserDefault.h"
|
#import "CCUserDefault.h"
|
||||||
#import <string>
|
|
||||||
#import "platform/CCFileUtils.h"
|
|
||||||
#import "tinyxml2.h"
|
#import "tinyxml2.h"
|
||||||
#import "CCPlatformConfig.h"
|
#import "CCPlatformConfig.h"
|
||||||
#import "CCPlatformMacros.h"
|
#import "CCPlatformMacros.h"
|
||||||
#import "base64.h"
|
#import "base64.h"
|
||||||
|
#import "platform/CCFileUtils.h"
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
|
||||||
|
|
||||||
|
|
||||||
#define XML_FILE_NAME "UserDefault.xml"
|
#define XML_FILE_NAME "UserDefault.xml"
|
||||||
|
|
|
@ -25,7 +25,7 @@ THE SOFTWARE.
|
||||||
#ifndef __SUPPORT_CCUSERDEFAULT_H__
|
#ifndef __SUPPORT_CCUSERDEFAULT_H__
|
||||||
#define __SUPPORT_CCUSERDEFAULT_H__
|
#define __SUPPORT_CCUSERDEFAULT_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "base/CCData.h"
|
#include "base/CCData.h"
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#ifndef __cocos2d_libs__CCValue__
|
#ifndef __cocos2d_libs__CCValue__
|
||||||
#define __cocos2d_libs__CCValue__
|
#define __cocos2d_libs__CCValue__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/ccMacros.h"
|
#include "base/ccMacros.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
|
@ -29,7 +29,7 @@ THE SOFTWARE.
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -26,15 +26,15 @@ THE SOFTWARE.
|
||||||
#define __SUPPORT_ZIPUTILS_H__
|
#define __SUPPORT_ZIPUTILS_H__
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#include "CCPlatformDefine.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformDefine.h"
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
#include "platform/android/CCFileUtilsAndroid.h"
|
#include "platform/android/CCFileUtils-android.h"
|
||||||
#elif(CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
#elif(CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
||||||
// for import ssize_t on win32 platform
|
// for import ssize_t on win32 platform
|
||||||
#include "CCStdC.h"
|
#include "platform/CCStdC.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace cocos2d
|
namespace cocos2d
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef COCOS2DX_PLATFORM_THIRDPARTY_ATITC_
|
#ifndef COCOS2DX_PLATFORM_THIRDPARTY_ATITC_
|
||||||
#define COCOS2DX_PLATFORM_THIRDPARTY_ATITC_
|
#define COCOS2DX_PLATFORM_THIRDPARTY_ATITC_
|
||||||
|
|
||||||
#include "CCStdC.h"
|
#include "platform/CCStdC.h"
|
||||||
|
|
||||||
enum class ATITCDecodeFlag
|
enum class ATITCDecodeFlag
|
||||||
{
|
{
|
||||||
|
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __SUPPORT_BASE64_H__
|
#ifndef __SUPPORT_BASE64_H__
|
||||||
#define __SUPPORT_BASE64_H__
|
#define __SUPPORT_BASE64_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -28,7 +28,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CCCONFIG_H__
|
#ifndef __CCCONFIG_H__
|
||||||
#define __CCCONFIG_H__
|
#define __CCCONFIG_H__
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@file
|
@file
|
||||||
|
|
|
@ -33,7 +33,7 @@ THE SOFTWARE.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "base/CCConsole.h"
|
#include "base/CCConsole.h"
|
||||||
#include "CCStdC.h"
|
#include "platform/CCStdC.h"
|
||||||
|
|
||||||
#ifndef CCASSERT
|
#ifndef CCASSERT
|
||||||
#if COCOS2D_DEBUG > 0
|
#if COCOS2D_DEBUG > 0
|
||||||
|
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __ccRandom_H_
|
#ifndef __ccRandom_H_
|
||||||
#define __ccRandom_H_
|
#define __ccRandom_H_
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,8 @@ THE SOFTWARE.
|
||||||
|
|
||||||
#include "math/CCGeometry.h"
|
#include "math/CCGeometry.h"
|
||||||
#include "math/CCMath.h"
|
#include "math/CCMath.h"
|
||||||
#include "CCGL.h"
|
#include "base/CCRef.h"
|
||||||
#include "CCRef.h"
|
#include "platform/CCGL.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef __cocos2dx__ccUTF8__
|
#ifndef __cocos2dx__ccUTF8__
|
||||||
#define __cocos2dx__ccUTF8__
|
#define __cocos2dx__ccUTF8__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#ifndef COCOS2DX_PLATFORM_THIRDPARTY_S3TC_
|
#ifndef COCOS2DX_PLATFORM_THIRDPARTY_S3TC_
|
||||||
#define COCOS2DX_PLATFORM_THIRDPARTY_S3TC_
|
#define COCOS2DX_PLATFORM_THIRDPARTY_S3TC_
|
||||||
|
|
||||||
#include "CCStdC.h"
|
#include "platform/CCStdC.h"
|
||||||
|
|
||||||
enum class S3TCDecodeFlag
|
enum class S3TCDecodeFlag
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,7 +25,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,7 @@ THE SOFTWARE.
|
||||||
|
|
||||||
// 2d nodes
|
// 2d nodes
|
||||||
#include "2d/CCNode.h"
|
#include "2d/CCNode.h"
|
||||||
|
#include "2d/CCProtectedNode.h"
|
||||||
#include "2d/CCAtlasNode.h"
|
#include "2d/CCAtlasNode.h"
|
||||||
#include "2d/CCDrawingPrimitives.h"
|
#include "2d/CCDrawingPrimitives.h"
|
||||||
#include "2d/CCDrawNode.h"
|
#include "2d/CCDrawNode.h"
|
||||||
|
@ -174,21 +175,21 @@ THE SOFTWARE.
|
||||||
#include "platform/CCImage.h"
|
#include "platform/CCImage.h"
|
||||||
#include "platform/CCSAXParser.h"
|
#include "platform/CCSAXParser.h"
|
||||||
#include "platform/CCThread.h"
|
#include "platform/CCThread.h"
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||||
#include "platform/ios/CCApplication.h"
|
#include "platform/ios/CCApplication-ios.h"
|
||||||
#include "platform/ios/CCGLViewImpl.h"
|
#include "platform/ios/CCGLViewImpl-ios.h"
|
||||||
#include "platform/ios/CCGL.h"
|
#include "platform/ios/CCGL-ios.h"
|
||||||
#include "platform/ios/CCStdC.h"
|
#include "platform/ios/CCStdC-ios.h"
|
||||||
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_IOS
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_IOS
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
#include "platform/android/CCApplication.h"
|
#include "platform/android/CCApplication-android.h"
|
||||||
#include "platform/android/CCGLViewImpl.h"
|
#include "platform/android/CCGLViewImpl-android.h"
|
||||||
#include "platform/android/CCGL.h"
|
#include "platform/android/CCGL-android.h"
|
||||||
#include "platform/android/CCStdC.h"
|
#include "platform/android/CCStdC-android.h"
|
||||||
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY)
|
||||||
|
@ -199,24 +200,24 @@ THE SOFTWARE.
|
||||||
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_BLACKBERRY
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32)
|
||||||
#include "platform/win32/CCApplication.h"
|
#include "platform/win32/CCApplication-win32.h"
|
||||||
#include "platform/desktop/CCGLViewImpl.h"
|
#include "platform/desktop/CCGLViewImpl-desktop.h"
|
||||||
#include "platform/win32/CCGL.h"
|
#include "platform/win32/CCGL-win32.h"
|
||||||
#include "platform/win32/CCStdC.h"
|
#include "platform/win32/CCStdC-win32.h"
|
||||||
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||||
#include "platform/mac/CCApplication.h"
|
#include "platform/desktop/CCGLViewImpl-desktop.h"
|
||||||
#include "platform/desktop/CCGLViewImpl.h"
|
#include "platform/mac/CCApplication-mac.h"
|
||||||
#include "platform/mac/CCGL.h"
|
#include "platform/mac/CCGL-mac.h"
|
||||||
#include "platform/mac/CCStdC.h"
|
#include "platform/mac/CCStdC-mac.h"
|
||||||
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
|
||||||
#include "platform/linux/CCApplication.h"
|
#include "platform/linux/CCApplication-linux.h"
|
||||||
#include "platform/desktop/CCGLViewImpl.h"
|
#include "platform/desktop/CCGLViewImpl-desktop.h"
|
||||||
#include "platform/linux/CCGL.h"
|
#include "platform/linux/CCGL-linux.h"
|
||||||
#include "platform/linux/CCStdC.h"
|
#include "platform/linux/CCStdC-linux.h"
|
||||||
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
|
#endif // CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
||||||
|
@ -229,7 +230,7 @@ THE SOFTWARE.
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8)
|
||||||
#include "platform/winrt/CCApplication.h"
|
#include "platform/winrt/CCApplication.h"
|
||||||
#include "platform/wp8/CCGLViewImpl.h"
|
#include "platform/wp8/CCGLViewImpl-wp8.h"
|
||||||
#include "platform/winrt/CCGL.h"
|
#include "platform/winrt/CCGL.h"
|
||||||
#include "platform/winrt/CCStdC.h"
|
#include "platform/winrt/CCStdC.h"
|
||||||
#include "platform/winrt/CCPrecompiledShaders.h"
|
#include "platform/winrt/CCPrecompiledShaders.h"
|
||||||
|
@ -266,6 +267,21 @@ THE SOFTWARE.
|
||||||
#include "2d/CCComponent.h"
|
#include "2d/CCComponent.h"
|
||||||
#include "2d/CCComponentContainer.h"
|
#include "2d/CCComponentContainer.h"
|
||||||
|
|
||||||
|
//3d
|
||||||
|
#include "3d/CCAABB.h"
|
||||||
|
#include "3d/CCOBB.h"
|
||||||
|
#include "3d/CCRay.h"
|
||||||
|
#include "3d/CCSprite3D.h"
|
||||||
|
#include "3d/CCMesh.h"
|
||||||
|
#include "3d/CCMeshSkin.h"
|
||||||
|
#include "3d/CCAnimate3D.h"
|
||||||
|
#include "3d/CCAnimation3D.h"
|
||||||
|
#include "3d/CCSprite3DMaterial.h"
|
||||||
|
#include "3d/CCAttachNode.h"
|
||||||
|
#include "3d/CCMeshVertexIndexData.h"
|
||||||
|
#include "3d/CCSkeleton3D.h"
|
||||||
|
#include "3d/CCBillBoard.h"
|
||||||
|
|
||||||
// Deprecated include
|
// Deprecated include
|
||||||
#include "deprecated/CCDictionary.h"
|
#include "deprecated/CCDictionary.h"
|
||||||
#include "deprecated/CCArray.h"
|
#include "deprecated/CCArray.h"
|
||||||
|
@ -279,9 +295,6 @@ THE SOFTWARE.
|
||||||
// CCDeprecated.h must be included at the end
|
// CCDeprecated.h must be included at the end
|
||||||
#include "deprecated/CCDeprecated.h"
|
#include "deprecated/CCDeprecated.h"
|
||||||
|
|
||||||
//3d
|
|
||||||
#include "3d/cocos3d.h"
|
|
||||||
|
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ THE SOFTWARE.
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "cocostudio/CCActionFrameEasing.h"
|
#include "cocostudio/CCActionFrameEasing.h"
|
||||||
#include "cocostudio/DictionaryHelper.h"
|
#include "cocostudio/DictionaryHelper.h"
|
||||||
#include "CCStdC.h"
|
#include "platform/CCStdC.h"
|
||||||
|
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CC_EXTENTIONS_CCINPUTDELEGATE_H__
|
#ifndef __CC_EXTENTIONS_CCINPUTDELEGATE_H__
|
||||||
#define __CC_EXTENTIONS_CCINPUTDELEGATE_H__
|
#define __CC_EXTENTIONS_CCINPUTDELEGATE_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCTouch.h"
|
#include "base/CCTouch.h"
|
||||||
#include "base/CCEvent.h"
|
#include "base/CCEvent.h"
|
||||||
#include "base/ccTypes.h"
|
#include "base/ccTypes.h"
|
||||||
|
|
|
@ -24,7 +24,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CCSPRITEFRAMECACHEHELPER_H__
|
#ifndef __CCSPRITEFRAMECACHEHELPER_H__
|
||||||
#define __CCSPRITEFRAMECACHEHELPER_H__
|
#define __CCSPRITEFRAMECACHEHELPER_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "cocostudio/CCArmatureDefine.h"
|
#include "cocostudio/CCArmatureDefine.h"
|
||||||
#include "cocostudio/CocosStudioExport.h"
|
#include "cocostudio/CocosStudioExport.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -22,7 +22,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "cocostudio/DictionaryHelper.h"
|
#include "cocostudio/DictionaryHelper.h"
|
||||||
|
|
||||||
namespace cocostudio {
|
namespace cocostudio {
|
||||||
|
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __MATH_CCAFFINETRANSFORM_H__
|
#ifndef __MATH_CCAFFINETRANSFORM_H__
|
||||||
#define __MATH_CCAFFINETRANSFORM_H__
|
#define __MATH_CCAFFINETRANSFORM_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
#include "math/CCGeometry.h"
|
#include "math/CCGeometry.h"
|
||||||
#include "math/CCMath.h"
|
#include "math/CCMath.h"
|
||||||
|
|
|
@ -28,7 +28,7 @@ THE SOFTWARE.
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/ccMacros.h"
|
#include "base/ccMacros.h"
|
||||||
#include "math/CCMath.h"
|
#include "math/CCMath.h"
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
#define MATH_DEG_TO_RAD(x) ((x) * 0.0174532925f)
|
#define MATH_DEG_TO_RAD(x) ((x) * 0.0174532925f)
|
||||||
#define MATH_RAD_TO_DEG(x) ((x)* 57.29577951f)
|
#define MATH_RAD_TO_DEG(x) ((x)* 57.29577951f)
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
set(COCOS_MATH_SRC
|
|
||||||
math/CCAffineTransform.cpp
|
|
||||||
math/CCGeometry.cpp
|
|
||||||
math/CCVertex.cpp
|
|
||||||
math/Mat4.cpp
|
|
||||||
math/MathUtil.cpp
|
|
||||||
math/Quaternion.cpp
|
|
||||||
math/TransformUtils.cpp
|
|
||||||
math/Vec2.cpp
|
|
||||||
math/Vec3.cpp
|
|
||||||
math/Vec4.cpp
|
|
||||||
)
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ THE SOFTWARE.
|
||||||
#define __SUPPORT_TRANSFORM_UTILS_H__
|
#define __SUPPORT_TRANSFORM_UTILS_H__
|
||||||
|
|
||||||
// TODO: when in MAC or windows, it includes <OpenGL/gl.h>
|
// TODO: when in MAC or windows, it includes <OpenGL/gl.h>
|
||||||
#include "CCGL.h"
|
#include "platform/CCGL.h"
|
||||||
#include "base/ccMacros.h"
|
#include "base/ccMacros.h"
|
||||||
|
|
||||||
namespace cocos2d {
|
namespace cocos2d {
|
||||||
|
|
|
@ -59,7 +59,7 @@ in the onClose method the pointer should be set to NULL or used to connect to a
|
||||||
#ifndef __CC_SOCKETIO_H__
|
#ifndef __CC_SOCKETIO_H__
|
||||||
#define __CC_SOCKETIO_H__
|
#define __CC_SOCKETIO_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCMap.h"
|
#include "base/CCMap.h"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
@ -30,11 +30,12 @@
|
||||||
#ifndef __CC_WEBSOCKET_H__
|
#ifndef __CC_WEBSOCKET_H__
|
||||||
#define __CC_WEBSOCKET_H__
|
#define __CC_WEBSOCKET_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
|
||||||
#include "CCStdC.h"
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
#include "platform/CCStdC.h"
|
||||||
|
|
||||||
struct libwebsocket;
|
struct libwebsocket;
|
||||||
struct libwebsocket_context;
|
struct libwebsocket_context;
|
||||||
struct libwebsocket_protocols;
|
struct libwebsocket_protocols;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "base/ccConfig.h"
|
#include "base/ccConfig.h"
|
||||||
#if CC_USE_PHYSICS
|
#if CC_USE_PHYSICS
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
||||||
|
|
||||||
struct cpBody;
|
struct cpBody;
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "base/ccConfig.h"
|
#include "base/ccConfig.h"
|
||||||
#if CC_USE_PHYSICS
|
#if CC_USE_PHYSICS
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
class PhysicsContact;
|
class PhysicsContact;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#if CC_USE_PHYSICS
|
#if CC_USE_PHYSICS
|
||||||
|
|
||||||
#include "chipmunk.h"
|
#include "chipmunk.h"
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "math/CCGeometry.h"
|
#include "math/CCGeometry.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "base/ccConfig.h"
|
#include "base/ccConfig.h"
|
||||||
#if CC_USE_PHYSICS
|
#if CC_USE_PHYSICS
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
typedef uintptr_t cpGroup;
|
typedef uintptr_t cpGroup;
|
||||||
struct cpShape;
|
struct cpShape;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#if CC_USE_PHYSICS
|
#if CC_USE_PHYSICS
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "math/CCGeometry.h"
|
#include "math/CCGeometry.h"
|
||||||
|
|
||||||
struct cpSpace;
|
struct cpSpace;
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
/****************************************************************************
|
||||||
|
Copyright (c) 2010-2012 cocos2d-x.org
|
||||||
|
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||||
|
|
||||||
|
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 __PLATFORM_CCAPPLICATION_H__
|
||||||
|
#define __PLATFORM_CCAPPLICATION_H__
|
||||||
|
|
||||||
|
#include "platform/CCPlatformConfig.h"
|
||||||
|
|
||||||
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
||||||
|
#include "platform/mac/CCApplication-mac.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
|
||||||
|
#include "platform/ios/CCApplication-ios.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
#include "platform/android/CCApplication-android.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
||||||
|
#include "platform/win32/CCApplication-win32.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_WP8
|
||||||
|
#include "platform/winrt/CCApplication.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
|
||||||
|
#include "platform/linux/CCApplication-linux.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* __PLATFORM_CCAPPLICATION_H__*/
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CC_APPLICATION_PROTOCOL_H__
|
#ifndef __CC_APPLICATION_PROTOCOL_H__
|
||||||
#define __CC_APPLICATION_PROTOCOL_H__
|
#define __CC_APPLICATION_PROTOCOL_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/CCScriptSupport.h"
|
#include "base/CCScriptSupport.h"
|
||||||
#include "base/CCAutoreleasePool.h"
|
#include "base/CCAutoreleasePool.h"
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CC_COMMON_H__
|
#ifndef __CC_COMMON_H__
|
||||||
#define __CC_COMMON_H__
|
#define __CC_COMMON_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CCDEVICE_H__
|
#ifndef __CCDEVICE_H__
|
||||||
#define __CCDEVICE_H__
|
#define __CCDEVICE_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/ccMacros.h"
|
#include "base/ccMacros.h"
|
||||||
#include "base/CCData.h"
|
#include "base/CCData.h"
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ THE SOFTWARE.
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/ccTypes.h"
|
#include "base/ccTypes.h"
|
||||||
#include "base/CCValue.h"
|
#include "base/CCValue.h"
|
||||||
#include "base/CCData.h"
|
#include "base/CCData.h"
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
/****************************************************************************
|
||||||
|
Copyright (c) 2010-2012 cocos2d-x.org
|
||||||
|
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||||
|
|
||||||
|
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 __PLATFORM_CCGL_H__
|
||||||
|
#define __PLATFORM_CCGL_H__
|
||||||
|
|
||||||
|
#include "platform/CCPlatformConfig.h"
|
||||||
|
|
||||||
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
||||||
|
#include "platform/mac/CCGL-mac.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
|
||||||
|
#include "platform/ios/CCGL-ios.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
#include "platform/android/CCGL-android.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
||||||
|
#include "platform/win32/CCGL-win32.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_WP8
|
||||||
|
#include "platform/winrt/CCGL.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
|
||||||
|
#include "platform/linux/CCGL-linux.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* __PLATFORM_CCPLATFORMDEFINE_H__*/
|
|
@ -85,7 +85,7 @@ extern "C"
|
||||||
#include "base/ccUtils.h"
|
#include "base/ccUtils.h"
|
||||||
#include "base/ZipUtils.h"
|
#include "base/ZipUtils.h"
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
#include "android/CCFileUtilsAndroid.h"
|
#include "android/CCFileUtils-android.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CC_GL_ATC_RGB_AMD 0x8C92
|
#define CC_GL_ATC_RGB_AMD 0x8C92
|
||||||
|
|
|
@ -27,7 +27,9 @@ THE SOFTWARE.
|
||||||
#define __BASE_CC_PLATFORM_CONFIG_H__
|
#define __BASE_CC_PLATFORM_CONFIG_H__
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Config of cocos2d-x project, per target platform.
|
Config of cocos2d-x project, per target platform.
|
||||||
|
|
||||||
|
THIS FILE MUST NOT INCLUDE ANY OTHER FILE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
|
@ -0,0 +1,45 @@
|
||||||
|
/****************************************************************************
|
||||||
|
Copyright (c) 2010-2012 cocos2d-x.org
|
||||||
|
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||||
|
|
||||||
|
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 __PLATFORM_CCPLATFORMDEFINE_H__
|
||||||
|
#define __PLATFORM_CCPLATFORMDEFINE_H__
|
||||||
|
|
||||||
|
#include "platform/CCPlatformConfig.h"
|
||||||
|
|
||||||
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
||||||
|
#include "platform/mac/CCPlatformDefine-mac.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
|
||||||
|
#include "platform/ios/CCPlatformDefine-ios.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
#include "platform/android/CCPlatformDefine-android.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
||||||
|
#include "platform/win32/CCPlatformDefine-win32.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_WP8
|
||||||
|
#include "platform/winrt/CCPlatformDefine.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
|
||||||
|
#include "platform/linux/CCPlatformDefine-linux.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* __PLATFORM_CCPLATFORMDEFINE_H__*/
|
|
@ -29,8 +29,8 @@ Copyright (c) 2013-2014 Chukong Technologies
|
||||||
* define some platform specific macros
|
* define some platform specific macros
|
||||||
*/
|
*/
|
||||||
#include "base/ccConfig.h"
|
#include "base/ccConfig.h"
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#include "CCPlatformDefine.h"
|
#include "platform/CCPlatformDefine.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define a create function for a specific type, such as Layer
|
* define a create function for a specific type, such as Layer
|
|
@ -24,7 +24,7 @@
|
||||||
#ifndef __CCSAXPARSER_H__
|
#ifndef __CCSAXPARSER_H__
|
||||||
#define __CCSAXPARSER_H__
|
#define __CCSAXPARSER_H__
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#include "platform/CCCommon.h"
|
#include "platform/CCCommon.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,45 @@
|
||||||
|
/****************************************************************************
|
||||||
|
Copyright (c) 2010-2012 cocos2d-x.org
|
||||||
|
Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||||
|
|
||||||
|
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 __PLATFORM_CCSTDC_H__
|
||||||
|
#define __PLATFORM_CCSTDC_H__
|
||||||
|
|
||||||
|
#include "platform/CCPlatformConfig.h"
|
||||||
|
|
||||||
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_MAC
|
||||||
|
#include "platform/mac/CCStdC-mac.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS
|
||||||
|
#include "platform/ios/CCStdC-ios.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
#include "platform/android/CCStdC-android.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_WIN32
|
||||||
|
#include "platform/win32/CCStdC-win32.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_WP8
|
||||||
|
#include "platform/winrt/CCStdC.h"
|
||||||
|
#elif CC_TARGET_PLATFORM == CC_PLATFORM_LINUX
|
||||||
|
#include "platform/linux/CCStdC-linux.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* __PLATFORM_CCSTDC_H__*/
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CC_PLATFORM_THREAD_H__
|
#ifndef __CC_PLATFORM_THREAD_H__
|
||||||
#define __CC_PLATFORM_THREAD_H__
|
#define __CC_PLATFORM_THREAD_H__
|
||||||
|
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
|
|
||||||
NS_CC_BEGIN
|
NS_CC_BEGIN
|
||||||
|
|
||||||
|
|
|
@ -7,12 +7,12 @@ LOCAL_MODULE := cocos2dxandroid_static
|
||||||
LOCAL_MODULE_FILENAME := libcocos2dandroid
|
LOCAL_MODULE_FILENAME := libcocos2dandroid
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
LOCAL_SRC_FILES := \
|
||||||
CCApplication.cpp \
|
CCApplication-android.cpp \
|
||||||
CCCommon.cpp \
|
CCCommon-android.cpp \
|
||||||
CCDevice.cpp \
|
CCDevice-android.cpp \
|
||||||
CCGLViewImpl.cpp \
|
CCGLViewImpl-android.cpp \
|
||||||
CCFileUtilsAndroid.cpp \
|
CCFileUtils-android.cpp \
|
||||||
javaactivity.cpp \
|
javaactivity-android.cpp \
|
||||||
jni/DPIJni.cpp \
|
jni/DPIJni.cpp \
|
||||||
jni/IMEJni.cpp \
|
jni/IMEJni.cpp \
|
||||||
jni/Java_org_cocos2dx_lib_Cocos2dxAccelerometer.cpp \
|
jni/Java_org_cocos2dx_lib_Cocos2dxAccelerometer.cpp \
|
||||||
|
|
|
@ -23,7 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#include "jni/JniHelper.h"
|
#include "jni/JniHelper.h"
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CC_APPLICATION_ANDROID_H__
|
#ifndef __CC_APPLICATION_ANDROID_H__
|
||||||
#define __CC_APPLICATION_ANDROID_H__
|
#define __CC_APPLICATION_ANDROID_H__
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#include "platform/CCCommon.h"
|
#include "platform/CCCommon.h"
|
|
@ -23,7 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#include "platform/CCCommon.h"
|
#include "platform/CCCommon.h"
|
|
@ -23,7 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#include "platform/CCDevice.h"
|
#include "platform/CCDevice.h"
|
|
@ -23,10 +23,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#include "CCFileUtilsAndroid.h"
|
#include "CCFileUtils-android.h"
|
||||||
#include "platform/CCCommon.h"
|
#include "platform/CCCommon.h"
|
||||||
#include "jni/Java_org_cocos2dx_lib_Cocos2dxHelper.h"
|
#include "jni/Java_org_cocos2dx_lib_Cocos2dxHelper.h"
|
||||||
#include "android/asset_manager.h"
|
#include "android/asset_manager.h"
|
||||||
|
@ -34,7 +34,7 @@ THE SOFTWARE.
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define LOG_TAG "CCFileUtilsAndroid.cpp"
|
#define LOG_TAG "CCFileUtils-android.cpp"
|
||||||
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
|
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
|
@ -25,11 +25,11 @@ Copyright (c) 2013-2014 Chukong Technologies Inc.
|
||||||
#ifndef __CC_FILEUTILS_ANDROID_H__
|
#ifndef __CC_FILEUTILS_ANDROID_H__
|
||||||
#define __CC_FILEUTILS_ANDROID_H__
|
#define __CC_FILEUTILS_ANDROID_H__
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#include "platform/CCFileUtils.h"
|
#include "platform/CCFileUtils.h"
|
||||||
#include "base/CCPlatformMacros.h"
|
#include "platform/CCPlatformMacros.h"
|
||||||
#include "base/ccTypes.h"
|
#include "base/ccTypes.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CCGL_H__
|
#ifndef __CCGL_H__
|
||||||
#define __CCGL_H__
|
#define __CCGL_H__
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#define glClearDepth glClearDepthf
|
#define glClearDepth glClearDepthf
|
|
@ -23,10 +23,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#include "CCGLViewImpl.h"
|
#include "CCGLViewImpl-android.h"
|
||||||
#include "base/CCDirector.h"
|
#include "base/CCDirector.h"
|
||||||
#include "base/ccMacros.h"
|
#include "base/ccMacros.h"
|
||||||
#include "jni/IMEJni.h"
|
#include "jni/IMEJni.h"
|
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
#ifndef __CC_EGLVIEWIMPL_ANDROID_H__
|
#ifndef __CC_EGLVIEWIMPL_ANDROID_H__
|
||||||
#define __CC_EGLVIEWIMPL_ANDROID_H__
|
#define __CC_EGLVIEWIMPL_ANDROID_H__
|
||||||
|
|
||||||
#include "base/CCPlatformConfig.h"
|
#include "platform/CCPlatformConfig.h"
|
||||||
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
#if CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID
|
||||||
|
|
||||||
#include "base/CCRef.h"
|
#include "base/CCRef.h"
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue