mirror of https://github.com/axmolengine/axmol.git
Add video player and web view to template
This commit is contained in:
parent
15c763d84a
commit
5b9b130223
|
@ -26,6 +26,11 @@
|
||||||
#include "jsb_cocos2dx_navmesh_auto.hpp"
|
#include "jsb_cocos2dx_navmesh_auto.hpp"
|
||||||
#include "navmesh/jsb_cocos2dx_navmesh_manual.h"
|
#include "navmesh/jsb_cocos2dx_navmesh_manual.h"
|
||||||
|
|
||||||
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||||
|
#include "experimental/jsb_cocos2dx_experimental_video_manual.h"
|
||||||
|
#include "experimental/jsb_cocos2dx_experimental_webView_manual.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
#include "platform/android/CCJavascriptJavaBridge.h"
|
#include "platform/android/CCJavascriptJavaBridge.h"
|
||||||
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||||
|
@ -123,6 +128,11 @@ bool AppDelegate::applicationDidFinishLaunching()
|
||||||
sc->addRegisterCallback(register_all_cocos2dx_navmesh_manual);
|
sc->addRegisterCallback(register_all_cocos2dx_navmesh_manual);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||||
|
sc->addRegisterCallback(register_all_cocos2dx_experimental_video_manual);
|
||||||
|
sc->addRegisterCallback(register_all_cocos2dx_experimental_webView_manual);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
sc->addRegisterCallback(JavascriptJavaBridge::_js_register);
|
sc->addRegisterCallback(JavascriptJavaBridge::_js_register);
|
||||||
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||||
|
|
Loading…
Reference in New Issue