集成到win的x-player集成到mac的x-player集成到ios、ipad的quick-cocos2dx项目中集成到android的quick-cocos2dx项目中
@echo offset DIR=%~dp0cd /d "%DIR%"setlocal enabledelayedexpansionfor /r %%i in (*.proto) do (
set pbname=%%i
set pbname=!pbname:~0,-5!b
protoc -I %DIR% --descriptor_set_out !pbname! %%i)echo "finished"
#ifndef __LUA_PBC_EXTRA_H_#define __LUA_PBC_EXTRA_H_
#if defined(_USRDLL)#define LUA_EXTENSIONS_DLL __declspec(dllexport)#else /* use a DLL library */#define LUA_EXTENSIONS_DLL#endif
#if __cplusplusextern "C" {#endif
#include "lauxlib.h"
int LUA_EXTENSIONS_DLL luaopen_protobuf_c(lua_State *L);#if __cplusplus}#endif#endif
LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)
LOCAL_MODULE := quickextenpbcLOCAL_MODULE_FILENAME := libquickextenpbc
LOCAL_EXPORT_CFLAGS := -Wno-psabi -DUSE_FILE32API -DCC_LUA_ENGINE_ENABLED=1 -DDEBUG=1 -DCOCOS2D_DEBUG=1LOCAL_CFLAGS := -Wno-psabi -DUSE_FILE32API -DCC_LUA_ENGINE_ENABLED=1 -DDEBUG=1 -DCOCOS2D_DEBUG=1
LOCAL_WHOLE_STATIC_LIBRARIES := lua_pbc
include $(BUILD_STATIC_LIBRARY)$(call import-module,pbc-master)
LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)
LOCAL_MODULE := lua_pbcLOCAL_MODULE_FILENAME := liblua_pbc
LOCAL_SRC_FILES := \src/alloc.c \src/array.c \src/bootstrap.c \src/context.c \src/decode.c \src/map.c \src/pattern.c \src/proto.c \src/register.c \src/rmessage.c \src/stringpool.c \src/varint.c \src/wmessage.c \binding/lua/pbc-lua.c \
LOCAL_C_INCLUDES+= \
src \
LOCAL_CFLAGS := -Wno-psabi -DUSE_FILE32API -DCC_LUA_ENGINE_ENABLED=1 -DDEBUG=1 -DCOCOS2D_DEBUG=1LOCAL_WHOLE_STATIC_LIBRARIES := cocos_lua_staticinclude $(BUILD_STATIC_LIBRARY)$(call import-module,scripting/lua/proj.android)
LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := game_sharedLOCAL_MODULE_FILENAME := libgameLOCAL_SRC_FILES := hellocpp/main.cpp \../../sources/AppDelegate.cppLOCAL_C_INCLUDES := $(LOCAL_PATH)/../../sourcesLOCAL_CFLAGS += -Wno-psabi -DCC_LUA_ENGINE_ENABLED=1 -DDEBUG=1 -DCOCOS2D_DEBUG=1
LOCAL_WHOLE_STATIC_LIBRARIES := quickcocos2dxLOCAL_WHOLE_STATIC_LIBRARIES += quickextenpbc
include $(BUILD_SHARED_LIBRARY)
$(call import-module,lib/proj.android) \$(call import-module,luaproj.android)