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 从macports下载
https://docs.godotengine.org/zh_CN/latest/development/compiling/introduction_to_the_buildsystem.html#doc-introduction-to-the-buildsystem - 命令
release包
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