2023-02-17 02:25:32 +08:00
|
|
|
# Linux Universal - 通用 Linux 平台 构建方案
|
2023-02-16 23:41:58 +08:00
|
|
|
|
|
|
|
CPUS=$(shell nproc)
|
|
|
|
|
2023-02-17 02:25:32 +08:00
|
|
|
builddir := build/linux-universal
|
2023-02-16 23:41:58 +08:00
|
|
|
sourcedir := .
|
|
|
|
CMAKE_DEBUG := -DCMAKE_BUILD_TYPE=Debug
|
|
|
|
CMAKE_RELEASE := -DCMAKE_BUILD_TYPE=Release
|
|
|
|
CMAKE_OPTIONS := -DUSE_LINUX_UNIVERSAL=ON
|
|
|
|
|
|
|
|
|
|
|
|
linux-universal:
|
|
|
|
cmake -B$(builddir) $(CMAKE_OPTIONS) $(CMAKE_DEBUG)
|
2023-02-17 02:25:32 +08:00
|
|
|
cmake --build $(builddir) -- -j$(CPUS)
|
2023-02-16 23:41:58 +08:00
|
|
|
|
|
|
|
|
|
|
|
linux-universal-release:
|
|
|
|
cmake -B$(builddir) $(CMAKE_OPTIONS) $(CMAKE_RELEASE)
|
|
|
|
cmake --build $(builddir) -- -j$(CPUS)
|
|
|
|
|
|
|
|
# 此配置为构建 linux 通用版本构建
|