mirror of https://github.com/axmolengine/axmol.git
Merge pull request #4004 from Dhilan007/di0004
issues #2905:split jsbinding module
This commit is contained in:
commit
73b02875cb
|
@ -1 +1 @@
|
|||
Subproject commit 893da8ccfb4ed7fa754c483a90dc4e5248c36e03
|
||||
Subproject commit 2f3c5316657e64ec38b8ed3ea6826eb48c46f32c
|
|
@ -8,65 +8,34 @@ LOCAL_MODULE_FILENAME := libcocos2dxjsb
|
|||
|
||||
LOCAL_SRC_FILES := ScriptingCore.cpp \
|
||||
cocos2d_specifics.cpp \
|
||||
jsb_cocos2dx_extension_manual.cpp \
|
||||
js_manual_conversions.cpp \
|
||||
cocosjs_manual_conversions.cpp \
|
||||
js_bindings_chipmunk_manual.cpp \
|
||||
js_bindings_chipmunk_functions.cpp \
|
||||
js_bindings_chipmunk_auto_classes.cpp \
|
||||
js_bindings_chipmunk_registration.cpp \
|
||||
js_bindings_system_functions.cpp \
|
||||
js_bindings_system_registration.cpp \
|
||||
js_bindings_ccbreader.cpp \
|
||||
js_bindings_core.cpp \
|
||||
js_bindings_opengl.cpp \
|
||||
jsb_opengl_functions.cpp \
|
||||
jsb_opengl_manual.cpp \
|
||||
jsb_opengl_registration.cpp \
|
||||
../../auto-generated/js-bindings/jsb_cocos2dx_auto.cpp \
|
||||
../../auto-generated/js-bindings/jsb_cocos2dx_extension_auto.cpp \
|
||||
XMLHTTPRequest.cpp \
|
||||
jsb_websocket.cpp
|
||||
../../auto-generated/js-bindings/jsb_cocos2dx_auto.cpp
|
||||
|
||||
LOCAL_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_EXPORT_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/../../../CocosDenshion/include \
|
||||
$(LOCAL_PATH)/../../../audio/include \
|
||||
$(LOCAL_PATH)/../../../storage \
|
||||
$(LOCAL_PATH)/../../auto-generated/js-bindings \
|
||||
$(LOCAL_PATH)/../../../../extensions \
|
||||
$(LOCAL_PATH)/../../../editor-support/cocostudio \
|
||||
$(LOCAL_PATH)/../../../editor-support/cocosbuilder
|
||||
$(LOCAL_PATH)/../../../../extensions
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/../../auto-generated/js-bindings
|
||||
$(LOCAL_PATH)/../../auto-generated/js-bindings \
|
||||
$(LOCAL_PATH)/../../../audio/include
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += spidermonkey_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocosbuilder_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += spine_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocosdenshion_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_network_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_localstorage_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocostudio_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += websockets_static
|
||||
|
||||
LOCAL_LDLIBS := -landroid
|
||||
LOCAL_LDLIBS += -llog
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
$(call import-module,spidermonkey/prebuilt/android)
|
||||
$(call import-module,extensions)
|
||||
$(call import-module,2d)
|
||||
$(call import-module,extensions)
|
||||
$(call import-module,editor-support/cocosbuilder)
|
||||
$(call import-module,editor-support/spine)
|
||||
$(call import-module,network)
|
||||
$(call import-module,chipmunk)
|
||||
$(call import-module,storage/local-storage)
|
||||
$(call import-module,editor-support/cocostudio)
|
||||
$(call import-module,websockets/prebuilt/android)
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := jsb_chipmunk_static
|
||||
|
||||
LOCAL_MODULE_FILENAME := libcocos2dxjsbchipmunk
|
||||
|
||||
LOCAL_SRC_FILES := js_bindings_chipmunk_manual.cpp \
|
||||
js_bindings_chipmunk_functions.cpp \
|
||||
js_bindings_chipmunk_auto_classes.cpp \
|
||||
js_bindings_chipmunk_registration.cpp
|
||||
|
||||
LOCAL_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_EXPORT_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/../../../../..
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := spidermonkey_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jsb_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += chipmunk_static
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
$(call import-module,spidermonkey/prebuilt/android)
|
||||
$(call import-module,scripting/javascript/bindings)
|
||||
$(call import-module,extensions)
|
||||
$(call import-module,chipmunk)
|
|
@ -0,0 +1,29 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := jsb_builder_static
|
||||
|
||||
LOCAL_MODULE_FILENAME := libcocos2dxjsbbuilder
|
||||
|
||||
LOCAL_SRC_FILES := js_bindings_ccbreader.cpp \
|
||||
../../../auto-generated/js-bindings/jsb_cocos2dx_builder_auto.cpp
|
||||
|
||||
LOCAL_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_EXPORT_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/../../../../editor-support/cocosbuilder
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := spidermonkey_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jsb_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocosbuilder_static
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
$(call import-module,spidermonkey/prebuilt/android)
|
||||
$(call import-module,scripting/javascript/bindings)
|
||||
$(call import-module,editor-support/cocosbuilder)
|
|
@ -0,0 +1,30 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := jsb_studio_static
|
||||
|
||||
LOCAL_MODULE_FILENAME := libcocos2dxjsbstudio
|
||||
|
||||
LOCAL_SRC_FILES := jsb_cocos2dx_studio_manual.cpp \
|
||||
../../../auto-generated/js-bindings/jsb_cocos2dx_studio_auto.cpp
|
||||
|
||||
LOCAL_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_EXPORT_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/../../../../../extensions \
|
||||
$(LOCAL_PATH)/../../../../editor-support/cocostudio
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := spidermonkey_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jsb_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocostudio_static
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
$(call import-module,spidermonkey/prebuilt/android)
|
||||
$(call import-module,scripting/javascript/bindings)
|
||||
$(call import-module,editor-support/cocostudio)
|
|
@ -0,0 +1,30 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := jsb_extension_static
|
||||
|
||||
LOCAL_MODULE_FILENAME := libcocos2dxjsbextension
|
||||
|
||||
LOCAL_SRC_FILES := jsb_cocos2dx_extension_manual.cpp \
|
||||
../../../auto-generated/js-bindings/jsb_cocos2dx_extension_auto.cpp
|
||||
|
||||
LOCAL_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_EXPORT_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/../../../../../extensions
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/../../../../../
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := spidermonkey_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jsb_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_extension_static
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
$(call import-module,spidermonkey/prebuilt/android)
|
||||
$(call import-module,scripting/javascript/bindings)
|
||||
$(call import-module,extensions)
|
|
@ -0,0 +1,29 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := jsb_localstorage_static
|
||||
|
||||
LOCAL_MODULE_FILENAME := libcocos2dxjsblocalstorage
|
||||
|
||||
LOCAL_SRC_FILES := js_bindings_system_functions.cpp \
|
||||
js_bindings_system_registration.cpp
|
||||
|
||||
LOCAL_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_EXPORT_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH) \
|
||||
$(LOCAL_PATH)/../../../../../extensions
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := spidermonkey_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jsb_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_localstorage_static
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
$(call import-module,spidermonkey/prebuilt/android)
|
||||
$(call import-module,scripting/javascript/bindings)
|
||||
$(call import-module,storage/local-storage)
|
|
@ -0,0 +1,30 @@
|
|||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := jsb_network_static
|
||||
|
||||
LOCAL_MODULE_FILENAME := libcocos2dxjsbnetwork
|
||||
|
||||
LOCAL_SRC_FILES := XMLHTTPRequest.cpp \
|
||||
jsb_websocket.cpp
|
||||
|
||||
LOCAL_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_EXPORT_CFLAGS := -DCOCOS2D_JAVASCRIPT
|
||||
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)
|
||||
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := spidermonkey_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_jsb_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += cocos_network_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += websockets_static
|
||||
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
$(call import-module,spidermonkey/prebuilt/android)
|
||||
$(call import-module,scripting/javascript/bindings)
|
||||
$(call import-module,network)
|
||||
$(call import-module,websockets/prebuilt/android)
|
|
@ -12,9 +12,22 @@ LOCAL_SRC_FILES := testjavascript/main.cpp \
|
|||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes
|
||||
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES := cocos_jsb_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += jsb_chipmunk_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += jsb_extension_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += jsb_localstorage_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += jsb_network_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += jsb_builder_static
|
||||
LOCAL_WHOLE_STATIC_LIBRARIES += jsb_studio_static
|
||||
|
||||
|
||||
LOCAL_EXPORT_CFLAGS := -DCOCOS2D_DEBUG=2
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
$(call import-module,scripting/javascript/bindings)
|
||||
$(call import-module,scripting/javascript/bindings/chipmunk)
|
||||
$(call import-module,scripting/javascript/bindings/extension)
|
||||
$(call import-module,scripting/javascript/bindings/localstorage)
|
||||
$(call import-module,scripting/javascript/bindings/network)
|
||||
$(call import-module,scripting/javascript/bindings/cocosbuilder)
|
||||
$(call import-module,scripting/javascript/bindings/cocostudio)
|
||||
|
|
Loading…
Reference in New Issue