2021-07-10 12:01:29 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-02-11 11:15:53 +00:00
|
|
|
# SPDX-FileCopyrightText: 2020-2022 The Monero Project
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
CMAKEFLAGS = \
|
2022-02-23 16:04:23 +00:00
|
|
|
-DTOR_DIR=$(or ${TOR_DIR}, Off) \
|
2021-07-14 13:37:53 +00:00
|
|
|
-DTOR_VERSION=$(or ${TOR_VERSION}, Off) \
|
|
|
|
-DCHECK_UPDATES=$(or ${CHECK_UPDATES}, Off) \
|
|
|
|
-DWITH_SCANNER=$(or ${WITH_SCANNER}, Off) \
|
|
|
|
-DREPRODUCIBLE=$(or ${SOURCE_DATE_EPOCH}, Off)
|
|
|
|
|
|
|
|
release:
|
|
|
|
mkdir -p build/release && \
|
|
|
|
cd build/release && \
|
2021-10-28 17:54:12 +00:00
|
|
|
cmake \
|
|
|
|
-DARCH=x86-64 \
|
|
|
|
-D BUILD_TAG="linux-x64" \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
$(CMAKEFLAGS) \
|
|
|
|
../.. && \
|
2021-07-14 13:37:53 +00:00
|
|
|
$(MAKE)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
release-static:
|
2021-07-14 13:37:53 +00:00
|
|
|
mkdir -p build/release && \
|
|
|
|
cd build/release && \
|
|
|
|
cmake \
|
2021-09-16 11:54:48 +00:00
|
|
|
-DARCH=x86-64 \
|
2021-07-14 13:37:53 +00:00
|
|
|
-D BUILD_TAG="linux-x64" \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D STATIC=On \
|
|
|
|
$(CMAKEFLAGS) \
|
|
|
|
../.. && \
|
|
|
|
$(MAKE)
|
2020-10-07 10:36:04 +00:00
|
|
|
|
2021-08-28 18:50:13 +00:00
|
|
|
release-static-linux-arm64:
|
|
|
|
mkdir -p build/release && \
|
|
|
|
cd build/release && \
|
|
|
|
cmake \
|
|
|
|
-D ARCH="armv8-a" \
|
|
|
|
-D BUILD_TAG="linux-armv8" \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D STATIC=On \
|
|
|
|
$(CMAKEFLAGS) \
|
|
|
|
../.. && \
|
|
|
|
$(MAKE)
|
|
|
|
|
|
|
|
release-static-linux-arm64-rpi:
|
|
|
|
mkdir -p build/release && \
|
|
|
|
cd build/release && \
|
|
|
|
cmake \
|
|
|
|
-D ARCH="armv8-a" \
|
|
|
|
-D NO_AES=On \
|
|
|
|
-D BUILD_TAG="linux-armv8-noaes" \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D STATIC=On \
|
|
|
|
$(CMAKEFLAGS) \
|
|
|
|
../.. && \
|
|
|
|
$(MAKE)
|
|
|
|
|
2022-02-23 16:04:23 +00:00
|
|
|
release-static-windows:
|
2021-07-14 13:37:53 +00:00
|
|
|
mkdir -p build/$(target)/release && \
|
|
|
|
cd build/$(target)/release && \
|
|
|
|
cmake \
|
2021-09-16 11:54:48 +00:00
|
|
|
-DARCH=x86-64 \
|
2021-07-14 13:37:53 +00:00
|
|
|
-D BUILD_TAG=$(tag) \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D STATIC=ON \
|
|
|
|
-D CMAKE_TOOLCHAIN_FILE=$(root)/$(target)/share/toolchain.cmake \
|
|
|
|
$(CMAKEFLAGS) \
|
|
|
|
../../.. && \
|
|
|
|
$(MAKE)
|
2021-01-10 23:40:17 +00:00
|
|
|
|
2021-10-29 11:54:13 +00:00
|
|
|
win-installer:
|
|
|
|
mkdir -p build/$(target)/release && \
|
|
|
|
cd build/$(target)/release && \
|
|
|
|
cmake \
|
|
|
|
-D PLATFORM_INSTALLER=On \
|
|
|
|
-DARCH=x86-64 \
|
|
|
|
-D BUILD_TAG=$(tag) \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D STATIC=ON \
|
|
|
|
-D CMAKE_TOOLCHAIN_FILE=$(root)/$(target)/share/toolchain.cmake \
|
|
|
|
$(CMAKEFLAGS) \
|
|
|
|
../../.. && \
|
|
|
|
$(MAKE)
|
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
mac-release:
|
2021-07-14 13:37:53 +00:00
|
|
|
mkdir -p build && \
|
|
|
|
cd build && \
|
|
|
|
cmake \
|
2021-09-16 11:54:48 +00:00
|
|
|
-DARCH=x86-64 \
|
2021-07-14 13:37:53 +00:00
|
|
|
-D BUILD_TAG="mac-x64" \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D STATIC=Off \
|
|
|
|
$(CMAKEFLAGS) \
|
|
|
|
.. && \
|
|
|
|
$(MAKE) && \
|
|
|
|
$(MAKE) deploy
|