mirror of https://github.com/axmolengine/axmol.git
issue #2868:Move armature related lua binding from namespace 'cc' to namespace 'ccd'
This commit is contained in:
parent
b76865c692
commit
61d8f9673c
|
@ -1 +1 @@
|
|||
ab3cbe9f9358e0c472a7775bb7087507f50892e9
|
||||
db96f13af3f35778c8d9c2b6bec189fcdaf7216e
|
|
@ -17,6 +17,7 @@ LOCAL_SRC_FILES := CCLuaBridge.cpp \
|
|||
LuaBasicConversions.cpp \
|
||||
../../auto-generated/lua-bindings/lua_cocos2dx_auto.cpp \
|
||||
../../auto-generated/lua-bindings/lua_cocos2dx_extension_auto.cpp \
|
||||
../../auto-generated/lua-bindings/lua_cocos2dx_studio_auto.cpp \
|
||||
lua_cocos2dx_manual.cpp \
|
||||
lua_cocos2dx_extension_manual.cpp \
|
||||
lua_cocos2dx_deprecated.cpp \
|
||||
|
|
|
@ -49,6 +49,7 @@ SOURCES = ../../../../external/lua/lua/lapi.c \
|
|||
tolua_fix.c \
|
||||
../../auto-generated/lua-bindings/lua_cocos2dx_auto.cpp \
|
||||
../../auto-generated/lua-bindings/lua_cocos2dx_extension_auto.cpp \
|
||||
../../auto-generated/lua-bindings/lua_cocos2dx_studio_auto.cpp \
|
||||
CCLuaBridge.cpp \
|
||||
CCLuaEngine.cpp \
|
||||
CCLuaStack.cpp \
|
||||
|
|
|
@ -23,11 +23,11 @@ cxxgenerator_headers =
|
|||
extra_arguments = %(android_headers)s %(clang_headers)s %(cxxgenerator_headers)s %(cocos_headers)s %(android_flags)s %(clang_flags)s %(cocos_flags)s %(extra_flags)s
|
||||
|
||||
# what headers to parse
|
||||
headers = %(cocosdir)s/cocos/editor-support/cocostudio/CocoStudio.h %(cocosdir)s/cocos/gui/CocosGUI.h
|
||||
headers = %(cocosdir)s/cocos/editor-support/cocostudio/CocoStudio.h
|
||||
|
||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||
# expression, it will be enclosed in "^$", like this: "^Menu*$".
|
||||
classes =Armature ArmatureAnimation Skin Bone ArmatureDataManager \w+Data$ UIWidget GUIRenderer Layout RectClippingNode UIRootWidget UIButton UICheckBox UIImageView UILabel UICCLabelAtlas UILabelAtlas UILoadingBar UIScrollView UISlider UICCTextField UITextField UIListView UIDragPanel UILabelBMFont UIPageView UIHelper UILayer
|
||||
classes = Armature ArmatureAnimation Skin Bone ArmatureDataManager \w+Data$
|
||||
|
||||
# what should we skip? in the format ClassName::[function function]
|
||||
# ClassName is a regular expression, but will be used like this: "^ClassName$" functions are also
|
||||
|
@ -38,7 +38,7 @@ classes =Armature ArmatureAnimation Skin Bone ArmatureDataManager \w+Data$ UIWid
|
|||
|
||||
skip = .*Delegate::[*],
|
||||
.*Loader.*::[*],
|
||||
*::[^visit$ copyWith.* onEnter.* onExit.* ^description$ getObjectType .*HSV onTouch.* onAcc.* onKey.* onRegisterTouchListener addEventListener],
|
||||
*::[^visit$ copyWith.* onEnter.* onExit.* ^description$ getObjectType .*HSV onTouch.* onAcc.* onKey.* onRegisterTouchListener],
|
||||
ArmatureDataManager::[CCArmatureDataManager ~CCArmatureDataManager],
|
||||
Armature::[createBone updateBlendType getCPBody setCPBody (s|g)etBlendFunc getShapeList ^getBody$],
|
||||
Skin::[(s|g)etSkinData],
|
||||
|
|
|
@ -78,5 +78,12 @@ echo -e "$_CONTENTS" > "$_CONF_INI_FILE"
|
|||
echo ---
|
||||
|
||||
# Generate bindings for cocos2dx
|
||||
echo "Generating bindings for cocos2dx..."
|
||||
set -x
|
||||
LD_LIBRARY_PATH=${CLANG_ROOT}/lib $PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${TO_JS_ROOT}/cocos2dx.ini -s cocos2d-x -t lua -o ${COCOS2DX_ROOT}/cocos/scripting/auto-generated/lua-bindings -n lua_cocos2dx_auto
|
||||
|
||||
echo "Generating bindings for cocos2dx_extension..."
|
||||
LD_LIBRARY_PATH=${CLANG_ROOT}/lib $PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${TO_JS_ROOT}/cocos2dx_extension.ini -s cocos2dx_extension -t lua -o ${COCOS2DX_ROOT}/cocos/scripting/auto-generated/lua-bindings -n lua_cocos2dx_extension_auto
|
||||
|
||||
echo "Generating bindings for cocos2dx_studio..."
|
||||
LD_LIBRARY_PATH=${CLANG_ROOT}/lib $PYTHON_BIN ${CXX_GENERATOR_ROOT}/generator.py ${TO_JS_ROOT}/cocos2dx_studio.ini -s cocos2dx_studio -t lua -o ${COCOS2DX_ROOT}/cocos/scripting/auto-generated/lua-bindings -n lua_cocos2dx_studio_auto
|
||||
|
|
Loading…
Reference in New Issue