mirror of https://github.com/axmolengine/axmol.git
add axmol_ext.h (#1117)
This commit is contained in:
parent
4608ecf8de
commit
7f1d61185f
|
@ -22,8 +22,8 @@
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef __CCEXTENSIONEXPORT_H__
|
||||
#define __CCEXTENSIONEXPORT_H__
|
||||
#ifndef __EXTENSIONEXPORT_H__
|
||||
#define __EXTENSIONEXPORT_H__
|
||||
|
||||
#if (defined(WIN32) && defined(_WINDOWS)) || defined(WINRT) || defined(WP8)
|
||||
# ifdef __MINGW32__
|
||||
|
@ -54,4 +54,4 @@
|
|||
# define AX_EX_DLL
|
||||
#endif
|
||||
|
||||
#endif /* __CCEXTENSIONEXPORT_H__*/
|
||||
#endif /* __EXTENSIONEXPORT_H__*/
|
|
@ -0,0 +1,49 @@
|
|||
/****************************************************************************
|
||||
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
|
||||
|
||||
https://axmolengine.github.io/
|
||||
|
||||
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 __AXMOL_EXT_H__
|
||||
#define __AXMOL_EXT_H__
|
||||
|
||||
#include "ExtensionMacros.h"
|
||||
|
||||
// Physics integration
|
||||
#include "physics-nodes/CCPhysicsDebugNode.h"
|
||||
#include "physics-nodes/CCPhysicsDebugNodeBox2D.h"
|
||||
#include "physics-nodes/CCPhysicsDebugNodeChipmunk2D.h"
|
||||
#include "physics-nodes/CCPhysicsSprite.h"
|
||||
#include "physics-nodes/CCPhysicsSpriteBox2D.h"
|
||||
#include "physics-nodes/CCPhysicsSpriteChipmunk2D.h"
|
||||
|
||||
#include "assets-manager/AssetsManager.h"
|
||||
#include "assets-manager/AssetsManagerEx.h"
|
||||
#include "assets-manager/CCEventAssetsManagerEx.h"
|
||||
#include "assets-manager/CCEventListenerAssetsManagerEx.h"
|
||||
#include "assets-manager/Manifest.h"
|
||||
|
||||
// Particle System, include Particle Universe Particle System
|
||||
#include "Particle3D/CCParticle3DRender.h"
|
||||
#include "Particle3D/CCParticleSystem3D.h"
|
||||
#include "Particle3D/PU/CCPUParticleSystem3D.h"
|
||||
|
||||
#endif /* __AXMOL_EXT_H__ */
|
|
@ -25,25 +25,6 @@
|
|||
#ifndef __COCOS2D_EXT_H__
|
||||
#define __COCOS2D_EXT_H__
|
||||
|
||||
#include "ExtensionMacros.h"
|
||||
|
||||
// Physics integration
|
||||
#include "physics-nodes/CCPhysicsDebugNode.h"
|
||||
#include "physics-nodes/CCPhysicsDebugNodeBox2D.h"
|
||||
#include "physics-nodes/CCPhysicsDebugNodeChipmunk2D.h"
|
||||
#include "physics-nodes/CCPhysicsSprite.h"
|
||||
#include "physics-nodes/CCPhysicsSpriteBox2D.h"
|
||||
#include "physics-nodes/CCPhysicsSpriteChipmunk2D.h"
|
||||
|
||||
#include "assets-manager/AssetsManager.h"
|
||||
#include "assets-manager/AssetsManagerEx.h"
|
||||
#include "assets-manager/CCEventAssetsManagerEx.h"
|
||||
#include "assets-manager/CCEventListenerAssetsManagerEx.h"
|
||||
#include "assets-manager/Manifest.h"
|
||||
|
||||
// Particle System, include Particle Universe Particle System
|
||||
#include "Particle3D/CCParticle3DRender.h"
|
||||
#include "Particle3D/CCParticleSystem3D.h"
|
||||
#include "Particle3D/PU/CCPUParticleSystem3D.h"
|
||||
#include "axmol-ext.h"
|
||||
|
||||
#endif /* __COCOS2D_EXT_H__ */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "scripting/lua-bindings/auto/axlua_extension_auto.hpp"
|
||||
#include "cocos-ext.h"
|
||||
#include "axmol-ext.h"
|
||||
#include "scripting/lua-bindings/manual/tolua_fix.h"
|
||||
#include "scripting/lua-bindings/manual/LuaBasicConversions.h"
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "scripting/lua-bindings/manual/tolua_fix.h"
|
||||
#include "scripting/lua-bindings/manual/LuaBasicConversions.h"
|
||||
#include "scripting/lua-bindings/manual/CCLuaValue.h"
|
||||
#include "cocos-ext.h"
|
||||
#include "axmol-ext.h"
|
||||
#include "scripting/lua-bindings/manual/CCLuaEngine.h"
|
||||
#include "scripting/lua-bindings/manual/base/LuaScriptHandlerMgr.h"
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include "axmol.h"
|
||||
#include "controller.h"
|
||||
#include "BaseTest.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
|
||||
USING_NS_AX;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#define _CPPTESTS_BASETEST_H__
|
||||
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "GUI/CCControlExtension/CCControlExtensions.h"
|
||||
#include "GUI/CCScrollView/CCScrollView.h"
|
||||
#include "GUI/CCScrollView/CCTableView.h"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include "Box2dTest.h"
|
||||
#include "../testResource.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "renderer/CCRenderer.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "axmol.h"
|
||||
#include "box2d/box2d.h"
|
||||
#include "../BaseTest.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
|
||||
DEFINE_TEST_SUITE(Box2DTests);
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#include "platform/CCPlatformConfig.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "ImGui/ImGuiPresenter.h"
|
||||
#include "axmol.h"
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#include "tests/test.h"
|
||||
#include "tests/settings.h"
|
||||
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "axmol.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
// SOFTWARE.
|
||||
|
||||
#include "test.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
|
||||
USING_NS_AX_EXT;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#define TEST_H
|
||||
|
||||
#include "box2d/box2d.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "axmol.h"
|
||||
#include "chipmunk/chipmunk.h"
|
||||
#include "../BaseTest.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
|
||||
class ChipmunkTest : public TestCase
|
||||
{
|
||||
|
@ -58,6 +58,7 @@ private:
|
|||
|
||||
cpSpace* _space; // strong ref
|
||||
cpShape* _walls[4];
|
||||
ax::DrawNode* drawNode;
|
||||
};
|
||||
|
||||
DEFINE_TEST_SUITE(ChipmunkTests);
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include "axmol.h"
|
||||
#include "chipmunk/chipmunk.h"
|
||||
#include "../BaseTest.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
|
||||
#include "demo/ChipmunkDemo.h"
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef __AssetsManagerEx_Test_H__
|
||||
#define __AssetsManagerEx_Test_H__
|
||||
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "../../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(AssetsManagerExTests);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#define __CUSTOMTABELVIEWCELL_H__
|
||||
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "GUI/CCControlExtension/CCControlExtensions.h"
|
||||
#include "GUI/CCScrollView/CCScrollView.h"
|
||||
#include "GUI/CCScrollView/CCTableView.h"
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#define __TABLEVIEWTESTSCENE_H__
|
||||
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(TableViewTests);
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "../BaseTest.h"
|
||||
#include "renderer/CCCustomCommand.h"
|
||||
#include "ui/CocosGUI.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "cocostudio/LocalizationManager.h"
|
||||
|
||||
DEFINE_TEST_SUITE(NewLabelTests);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#define __HTTP_CLIENT_H__
|
||||
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "network/HttpClient.h"
|
||||
#include "BaseTest.h"
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#define _SCHEDULER_TEST_H_
|
||||
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(SchedulerTests);
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
#include "ui/CocosGUI.h"
|
||||
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(ShaderTests);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#ifndef _SHADER_TEST2_H_
|
||||
#define _SHADER_TEST2_H_
|
||||
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "../BaseTest.h"
|
||||
|
||||
DEFINE_TEST_SUITE(Shader2Tests);
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
THE SOFTWARE.
|
||||
****************************************************************************/
|
||||
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "UIScene.h"
|
||||
#include "UISceneManager.h"
|
||||
#include "cocostudio/CCSGUIReader.h"
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#define __TestCpp__UIScene__
|
||||
|
||||
#include "axmol.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
#include "ui/CocosGUI.h"
|
||||
#include "BaseTest.h"
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "scripting/lua-bindings/manual/tolua_fix.h"
|
||||
|
||||
#include "cocos2d.h"
|
||||
#include "extensions/cocos-ext.h"
|
||||
#include "extensions/axmol-ext.h"
|
||||
|
||||
#if !defined(_WIN32)
|
||||
# include <dirent.h>
|
||||
|
|
Loading…
Reference in New Issue