|
@@ -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
|