文件名称:protobuf-2.6.1
文件大小:35.98MB
文件格式:ZIP
更新时间:2021-06-29 03:38:19
protobuf protobuf-2.6 cocos2d ios android
文件列表 1. 官方包 :protobuf-2.6.1.tar 2. 可直接引用,支持跨平台: protobuf-2.6.1 3. 编译库的脚本 :build-protobuf-2.6.1.sh 4. 使用脚本编译得到的可执行文件和库 :lib_protobuf-2.6.1 附:Android.mk LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) $(call import-add-path,$(LOCAL_PATH)/../../cocos2d) $(call import-add-path,$(LOCAL_PATH)/../../cocos2d/external) $(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos) $(call import-add-path,$(LOCAL_PATH)/../../cocos2d/cocos/audio/include) LOCAL_MODULE := MyGame_shared LOCAL_MODULE_FILENAME := libMyGame FILE_LIST := hellocpp/main.cpp FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/utils/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/utils/*.c) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/utils/*.cc) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/ohters/protobuf-2.6.1/google/protobuf/*.cc) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/ohters/protobuf-2.6.1/google/protobuf/io/*.cc) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/ohters/protobuf-2.6.1/google/protobuf/stubs/*.cc) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/ohters/protobuf-2.6.1/google/protobuf/testing/*.cc) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/ohters/libqrencode/*.c) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/ohters/jsoncpp/src/lib_json/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Net/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Net/*.cc) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Net/protoc/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Net/protoc/*.cc) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_WindowUI/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Platform/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Game/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Game/GF_GameData/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Game/GF_GameHall/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Game/GF_GameMJ/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Game/GF_GamePublicUI/*.cpp) FILE_LIST += $(wildcard $(LOCAL_PATH)/../../Classes/GF_Game/GF_GameTest/*.cpp) LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%) LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../Classes/ohters/protobuf-2.6.1 \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes \ $(LOCAL_PATH)/../../Classes/utils \ $(LOCAL_PATH)/../../Classes/ohters/protobuf-2.6.1 \ $(LOCAL_PATH)/../../Classes/ohters/libqrencode \ $(LOCAL_PATH)/../../Classes/ohters/jsoncpp/include/json \ $(LOCAL_PATH)/../../Classes/GF_Net \ $(LOCAL_PATH)/../../Classes/GF_Net/protoc \ $(LOCAL_PATH)/../../Classes/GF_WindowUI \ $(LOCAL_PATH)/../../Classes/GF_Game \ $(LOCAL_PATH)/../../Classes/GF_Game/GF_GameData \ $(LOCAL_PATH)/../../Classes/GF_Game/GF_GameHall \ $(LOCAL_PATH)/../../Classes/GF_Game/GF_GameMJ \ $(LOCAL_PATH)/../../Classes/GF_Game/GF_GamePublicUI \ $(LOCAL_PATH)/../../Classes/GF_Game/GF_GameTest \ $(LOCAL_PATH)/../../Classes/GF_Game/GF_GameTest \ # _COCOS_HEADER_ANDROID_BEGIN # _COCOS_HEADER_ANDROID_END LOCAL_STATIC_LIBRARIES := cocos2dx_static # _COCOS_LIB_ANDROID_BEGIN # _COCOS_LIB_ANDROID_END include $(BUILD_SHARED_LIBRARY) $(call import-module,.) # _COCOS_LIB_IMPORT_ANDROID_BEGIN # _COCOS_LIB_IMPORT_ANDROID_END 附:Application.mk APP_STL := gnustl_static APP_CPPFLAGS := -frtti -DCC_ENABLE_CHIPMUNK_INTEGRATION=1 -std=c++11 -fsigned-char APP_LDFLAGS := -latomic