Godot - module模块创建

iOS

创建module

https://docs.godotengine.org/en/3.1/development/cpp/custom_modules_in_cpp.html#modules

编译

http://docs.godotengine.org/en/stable/development/compiling/compiling_for_ios.html

scons p=iphone tools=no target=release arch=arm -j1
scons p=iphone tools=no target=release arch=arm64 -j1
scons p=iphone tools=no target=release arch=x86_64 -j1
lipo -create bin/libgodot.iphone.opt.arm.a bin/libgodot.iphone.opt.arm64.a bin/libgodot.iphone.opt.x86_64.a -output bin/godot.iphone.opt.a

最后一行是用于合并前三个文件的功能
其中记住arm64对应iphone5以后的设备就可以了

-jX 使用多线程编译,速度质的飞跃
https://godotengine.org/qa/40000/how-to-compile-a-module-as-a-shared-library-in-windows

scones https://scons.org

扩展:
使用xcode编译
https://docs.godotengine.org/zh_CN/latest/development/cpp/configuring_an_ide.html#xcode
使用vsc编译
https://docs.godotengine.org/zh_CN/latest/development/cpp/configuring_an_ide.html#visual-studio-code

参考

模块开发
https://docs.godotengine.org/en/3.1/development/cpp/custom_modules_in_cpp.html#modules
绑定外部库
https://docs.godotengine.org/zh_CN/latest/development/cpp/binding_to_external_libraries.html#doc-binding-to-external-libraries
编译模块
http://docs.godotengine.org/en/stable/development/compiling/compiling_for_ios.html
原生插件制作(无关)
https://docs.godotengine.org/zh_CN/latest/tutorials/plugins/gdnative/gdnative-cpp-example.html
引擎程序编译
https://docs.godotengine.org/en/3.1/development/compiling/compiling_for_osx.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • # Awesome Python [![Awesome](https://cdn.rawgit.com/sindr...
    emily_007阅读 2,227评论 0 3
  • # Python 资源大全中文版 我想很多程序员应该记得 GitHub 上有一个 Awesome - XXX 系列...
    小迈克阅读 3,041评论 1 3
  • 目录: Android:Android 0.*Android 1.*Android 2.*Android 3.*A...
    敲代码的令狐葱阅读 4,080评论 0 2
  • 今天有点咸🐟想做一只没有梦想的搬运工 十六进制编辑器 十六进制编辑器(二进制文件编辑器或字节编辑器)是一种允许操纵...
    Honny_Boo阅读 2,492评论 0 7
  • 今天我歇班,带着小宝去送的一诺,顺便赶了个集。回到家小宝自己玩我就收拾卫生。中午小宝睡觉了,睡了三四个小时,我就躺...
    诺诺辰辰妈妈阅读 152评论 0 3