mirror of https://gitee.com/cxasm/notepad--.git
repo: 最终确定通用 Linux 平台不同构建方案
This commit is contained in:
parent
359365c49b
commit
4187a875c4
|
@ -4,7 +4,7 @@ include linux-universal.mk
|
||||||
|
|
||||||
CPUS=$(shell nproc)
|
CPUS=$(shell nproc)
|
||||||
|
|
||||||
# builddir := build
|
builddir := build/linux-appimage
|
||||||
# sourcedir := .
|
# sourcedir := .
|
||||||
# CMAKE_DEBUG := -DCMAKE_BUILD_TYPE=Debug
|
# CMAKE_DEBUG := -DCMAKE_BUILD_TYPE=Debug
|
||||||
# CMAKE_RELEASE := -DCMAKE_BUILD_TYPE=Release
|
# CMAKE_RELEASE := -DCMAKE_BUILD_TYPE=Release
|
||||||
|
@ -19,7 +19,7 @@ CMAKE_OPTIONS := -DUSE_LINUX_APPIMAGE=ON $(CMAKE_OPTIONS)
|
||||||
# 来自于 https://gitlink.org.cn/zinface/bundle-linuxdeployqt.git 托管存储的工具
|
# 来自于 https://gitlink.org.cn/zinface/bundle-linuxdeployqt.git 托管存储的工具
|
||||||
|
|
||||||
# 或指定你所想存放克隆项目的位置
|
# 或指定你所想存放克隆项目的位置
|
||||||
BUNDLE_LINUXDEPLOYQT := $(shell pwd)/build/bundle-linuxdeployqt
|
BUNDLE_LINUXDEPLOYQT := $(shell pwd)/$(builddir)/bundle-linuxdeployqt
|
||||||
|
|
||||||
download-bundle-linuxdeploytools:
|
download-bundle-linuxdeploytools:
|
||||||
-git clone https://gitlink.org.cn/zinface/bundle-linuxdeployqt.git $(BUNDLE_LINUXDEPLOYQT)
|
-git clone https://gitlink.org.cn/zinface/bundle-linuxdeployqt.git $(BUNDLE_LINUXDEPLOYQT)
|
||||||
|
|
|
@ -4,7 +4,7 @@ include linux-universal.mk
|
||||||
|
|
||||||
CPUS=$(shell nproc)
|
CPUS=$(shell nproc)
|
||||||
|
|
||||||
# builddir := build
|
builddir := build/linux-debian
|
||||||
# sourcedir := .
|
# sourcedir := .
|
||||||
# CMAKE_DEBUG := -DCMAKE_BUILD_TYPE=Debug
|
# CMAKE_DEBUG := -DCMAKE_BUILD_TYPE=Debug
|
||||||
# CMAKE_RELEASE := -DCMAKE_BUILD_TYPE=Release
|
# CMAKE_RELEASE := -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
# Linux Universla - 通用 Linux 平台 构建方案
|
# Linux Universal - 通用 Linux 平台 构建方案
|
||||||
|
|
||||||
CPUS=$(shell nproc)
|
CPUS=$(shell nproc)
|
||||||
|
|
||||||
builddir := build
|
builddir := build/linux-universal
|
||||||
sourcedir := .
|
sourcedir := .
|
||||||
CMAKE_DEBUG := -DCMAKE_BUILD_TYPE=Debug
|
CMAKE_DEBUG := -DCMAKE_BUILD_TYPE=Debug
|
||||||
CMAKE_RELEASE := -DCMAKE_BUILD_TYPE=Release
|
CMAKE_RELEASE := -DCMAKE_BUILD_TYPE=Release
|
||||||
|
@ -11,7 +11,7 @@ CMAKE_OPTIONS := -DUSE_LINUX_UNIVERSAL=ON
|
||||||
|
|
||||||
linux-universal:
|
linux-universal:
|
||||||
cmake -B$(builddir) $(CMAKE_OPTIONS) $(CMAKE_DEBUG)
|
cmake -B$(builddir) $(CMAKE_OPTIONS) $(CMAKE_DEBUG)
|
||||||
cmake --build build -- -j$(CPUS)
|
cmake --build $(builddir) -- -j$(CPUS)
|
||||||
|
|
||||||
|
|
||||||
linux-universal-release:
|
linux-universal-release:
|
||||||
|
|
Loading…
Reference in New Issue