mirror of https://gitee.com/cxasm/notepad--.git
readme: 更新 MacOS 平台构建说明
This commit is contained in:
parent
9be0c45bd1
commit
599fb3a5cd
17
README.md
17
README.md
|
@ -47,6 +47,23 @@ NDD 具备插件编写功能,如果您愿意开发插件,还请提交给我
|
||||||
;; "-DCMAKE_PREFIX_PATH=C:\\Qt\\Qt5.14.2\\5.14.2\\msvc2017_64",
|
;; "-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 平台构建方案
|
- 当前的 Linux 平台构建方案
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
12
macos.mk
12
macos.mk
|
@ -1,11 +1,13 @@
|
||||||
Msg := 'Build with the following configuration:'
|
Msg := 'Build with the following configuration:'
|
||||||
One := '1. make macosx-universal'
|
One := '1. make macosx-universal'
|
||||||
Two := '1. make macosx-universal-release'
|
Two := '2. make macosx-universal-release'
|
||||||
|
Three := '3. make package'
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@echo $(Msg)
|
@echo $(Msg)
|
||||||
@echo $(One) "\n\t默认的通用 MacOSX 平台构建(Debug)."
|
@echo $(One) "\n\t通用 MacOSX 平台构建(Debug)."
|
||||||
@echo $(Two) "\n\t默认的通用 MacOSX 平台构建(Release)."
|
@echo $(Two) "\n\t通用 MacOSX 平台构建(Release)."
|
||||||
|
@echo $(Three) "\n\t通用 MacOSX 平台构建 CPack 打包."
|
||||||
|
|
||||||
builddir := build/macosx-universal
|
builddir := build/macosx-universal
|
||||||
sourcedir := .
|
sourcedir := .
|
||||||
|
@ -22,3 +24,7 @@ macosx-universal:
|
||||||
macosx-universal-release:
|
macosx-universal-release:
|
||||||
cmake -B$(builddir) $(CMAKE_OPTIONS) $(CMAKE_RELEASE)
|
cmake -B$(builddir) $(CMAKE_OPTIONS) $(CMAKE_RELEASE)
|
||||||
cmake --build $(builddir) -- -j$(CPUS)
|
cmake --build $(builddir) -- -j$(CPUS)
|
||||||
|
|
||||||
|
|
||||||
|
package: macosx-universal-release
|
||||||
|
make -C $(builddir) package
|
Loading…
Reference in New Issue