Cocos2dx android build shell file
16lz
2022-05-28
./jni/Android.mk
LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := game_sharedLOCAL_MODULE_FILENAME := libgameLOCAL_SRC_FILES := hellocpp/main.cppdefine all-cpp-files-under$(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find ../../Classes -name "*.cpp" -and -not -name ".*") \ )endefdefine all-subdir-cpp-files$(call all-cpp-files-under,.)endefLOCAL_SRC_FILES += $(call all-subdir-cpp-files) LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../Classes LOCAL_WHOLE_STATIC_LIBRARIES := cocos2dx_static cocosdenshion_static cocos_extension_static include $(BUILD_SHARED_LIBRARY)$(call import-module,CocosDenshion/android) \$(call import-module,cocos2dx) \$(call import-module,extensions)
主要是修改 LOCAL_SRC_FILES 部分
原内容为
LOCAL_SRC_FILES := hellocpp/main.cpp \ ../../Classes/AppDelegate.cpp \ ../../Classes/HelloWorldScene.cpp
修改后
LOCAL_SRC_FILES := hellocpp/main.cppdefine all-cpp-files-under$(patsubst ./%,%, \ $(shell cd $(LOCAL_PATH) ; \ find ../../Classes -name "*.cpp" -and -not -name ".*") \ )endefdefine all-subdir-cpp-files$(call all-cpp-files-under,.)endefLOCAL_SRC_FILES += $(call all-subdir-cpp-files)
更多相关文章
- Android通过内容提供器获取相册中所有图片
- Android(安卓)MIME类型与文件后缀名匹配部分
- Android(安卓)Fresco图片处理库用法API英文原文文档3(Facebook开
- Android(安卓)O 物理键盘和虚拟键盘同时支持
- [Android(安卓)GMS 认证] CTS 问题列表之 CtsServicesHostTestCa
- android 10 system app 读取sysfs_leds avc修改
- android全屏
- 更改ProgressBar颜色,SwipeBack滑动返回功能。
- Jquery 判断是否 移动设备 浏览