readme: 更新 MacOS 平台构建说明

This commit is contained in:
zinface 2023-12-11 03:16:12 +08:00
parent 9be0c45bd1
commit 599fb3a5cd
2 changed files with 26 additions and 3 deletions

View File

@ -47,6 +47,23 @@ NDD 具备插件编写功能,如果您愿意开发插件,还请提交给我
;; "-DCMAKE_PREFIX_PATH=C:\\Qt\\Qt5.14.2\\5.14.2\\msvc2017_64",
```
- MacOSX 平台构建方案
```shell
Build with the following configuration:
1. make macosx-universal
通用 MacOSX 平台构建(Debug).
2. make macosx-universal-release
通用 MacOSX 平台构建(Release).
3. make package
通用 MacOSX 平台构建 CPack 打包.
# 由 CPack 驱动的打包:
# 将在 build/macosx-universal 目录中产生 dmg 文件
# 可在 CPack 的生成目录尝试进行手动 macdeployqt 处理
# 注目前M1平台使用原生Qt执行此操作会损坏此包将需要开发者签证
```
- 当前的 Linux 平台构建方案
```shell

View File

@ -1,11 +1,13 @@
Msg := 'Build with the following configuration:'
One := '1. make macosx-universal'
Two := '1. make macosx-universal-release'
Two := '2. make macosx-universal-release'
Three := '3. make package'
all:
@echo $(Msg)
@echo $(One) "\n\t默认的通用 MacOSX 平台构建(Debug)."
@echo $(Two) "\n\t默认的通用 MacOSX 平台构建(Release)."
@echo $(One) "\n\t通用 MacOSX 平台构建(Debug)."
@echo $(Two) "\n\t通用 MacOSX 平台构建(Release)."
@echo $(Three) "\n\t通用 MacOSX 平台构建 CPack 打包."
builddir := build/macosx-universal
sourcedir := .
@ -22,3 +24,7 @@ macosx-universal:
macosx-universal-release:
cmake -B$(builddir) $(CMAKE_OPTIONS) $(CMAKE_RELEASE)
cmake --build $(builddir) -- -j$(CPUS)
package: macosx-universal-release
make -C $(builddir) package