mirror of https://github.com/axmolengine/axmol.git
issue #3037:Modify platform build config
This commit is contained in:
parent
5891f00967
commit
f3ff7955a8
|
@ -1 +1 @@
|
|||
8d8d7ea290e8626153fe3dd955b85757a7bb6e05
|
||||
ec80e8e2bcdb07b161a4ba7fcdee13bfec8cf347
|
|
@ -51,7 +51,7 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
LuaEngine* pEngine = LuaEngine::getInstance();
|
||||
ScriptEngineManager::getInstance()->setScriptEngine(pEngine);
|
||||
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID ||CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID ||CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
|
||||
LuaStack* stack = pEngine->getLuaStack();
|
||||
register_assetsmanager_test_sample(stack->getLuaState());
|
||||
#endif
|
||||
|
|
|
@ -12,23 +12,24 @@ local menuItemNames =
|
|||
local winSize = cc.Director:getInstance():getWinSize()
|
||||
|
||||
local function updateLayer()
|
||||
local layer = cc.Layer:create()
|
||||
|
||||
local support = false
|
||||
if (cc.PLATFORM_OS_IPHONE == targetPlatform) or (cc.PLATFORM_OS_IPAD == targetPlatform)
|
||||
or (cc.PLATFORM_OS_WINDOWS == targetPlatform) or (cc.PLATFORM_OS_ANDROID == targetPlatform)
|
||||
or (cc.PLATFORM_OS_IPHONE == targetPlatform) then
|
||||
or (cc.PLATFORM_OS_MAC == targetPlatform) then
|
||||
support = true
|
||||
end
|
||||
|
||||
if not support then
|
||||
return nil
|
||||
print("Platform is not supported!")
|
||||
return layer
|
||||
end
|
||||
|
||||
local isUpdateItemClicked = false
|
||||
local assetsManager = nil
|
||||
local pathToSave = ""
|
||||
|
||||
local layer = cc.Layer:create()
|
||||
local menu = cc.Menu:create()
|
||||
menu:setPosition(cc.p(0, 0))
|
||||
cc.MenuItemFont:setFontName("Arial")
|
||||
|
|
|
@ -6,14 +6,15 @@ LOCAL_MODULE := testlua_shared
|
|||
|
||||
LOCAL_MODULE_FILENAME := libtestlua
|
||||
|
||||
LOCAL_SRC_FILES := testlua/main.cpp \
|
||||
LOCAL_SRC_FILES += testlua/main.cpp \
|
||||
../../Classes/AppDelegate.cpp \
|
||||
../../Classes/lua_assetsmanager_test_sample.cpp
|
||||
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \
|
||||
$(LOCAL_PATH)/../../../../external/lua/tolua \
|
||||
$(LOCAL_PATH)/../../../../cocos/scripting/lua/bindings
|
||||
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../../Classes \
|
||||
$(LOCAL_PATH)/../../../../../external/lua/tolua \
|
||||
$(LOCAL_PATH)/../../../../../extensions \
|
||||
$(LOCAL_PATH)/../../../../../cocos/scripting/lua/bindings
|
||||
|
||||
|
||||
LOCAL_STATIC_LIBRARIES := curl_static_prebuilt
|
||||
|
|
|
@ -4,10 +4,13 @@ COCOS_ROOT = ../../../..
|
|||
INCLUDES = -I../Classes \
|
||||
-I$(COCOS_ROOT)/audio/include \
|
||||
-I$(COCOS_ROOT)/cocos/scripting/lua/bindings \
|
||||
-I$(COCOS_ROOT)/external/lua/lua
|
||||
-I$(COCOS_ROOT)/external/lua/lua \
|
||||
-I$(COCOS_ROOT)/external/lua/tolua \
|
||||
-I$(COCOS_ROOT)/extensions
|
||||
|
||||
SOURCES = main.cpp \
|
||||
../Classes/AppDelegate.cpp
|
||||
../Classes/AppDelegate.cpp \
|
||||
../Classes/lua_assetsmanager_test_sample.cpp
|
||||
|
||||
SHAREDLIBS += -lcocos2d -lcocosdenshion -llua
|
||||
|
||||
|
|
Loading…
Reference in New Issue