2021-07-10 12:01:29 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# Copyright (c) 2020-2021, The Monero Project.
|
2020-10-07 10:36:04 +00:00
|
|
|
|
|
|
|
CMAKEFLAGS = \
|
|
|
|
-DARCH=x86_64 \
|
|
|
|
-DBUILD_64=On \
|
|
|
|
-DBUILD_TESTS=Off \
|
2021-05-02 18:22:38 +00:00
|
|
|
-DLOCALMONERO=On \
|
2020-12-11 13:36:08 +00:00
|
|
|
-DXMRIG=On \
|
2021-05-02 18:22:38 +00:00
|
|
|
-DCHECK_UPDATES=Off \
|
2020-12-11 13:36:08 +00:00
|
|
|
-DTOR_BIN=Off \
|
2020-10-07 10:36:04 +00:00
|
|
|
-DCMAKE_CXX_STANDARD=11 \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=On \
|
|
|
|
-DINSTALL_VENDORED_LIBUNBOUND=Off \
|
|
|
|
-DMANUAL_SUBMODULES=1 \
|
|
|
|
-DSTATIC=On \
|
2021-07-01 21:00:47 +00:00
|
|
|
-DUSE_DEVICE_TREZOR=On \
|
2020-10-07 10:36:04 +00:00
|
|
|
$(CMAKEFLAGS_EXTRA)
|
|
|
|
|
|
|
|
release-static: CMAKEFLAGS += -DBUILD_TAG="linux-x64"
|
2021-07-10 12:01:29 +00:00
|
|
|
release-static: CMAKEFLAGS += -DTOR_BIN=$(or ${TOR_BIN}, Off)
|
|
|
|
release-static: CMAKEFLAGS += -DTOR_VERSION=$(or ${TOR_VERSION}, Off)
|
2021-05-02 18:22:38 +00:00
|
|
|
release-static: CMAKEFLAGS += -DCHECK_UPDATES=$(or ${CHECK_UPDATES}, Off)
|
2021-06-25 14:14:49 +00:00
|
|
|
release-static: CMAKEFLAGS += -DWITH_SCANNER=$(or ${WITH_SCANNER}, Off)
|
2020-10-07 10:36:04 +00:00
|
|
|
release-static: CMAKEFLAGS += -DCMAKE_BUILD_TYPE=Release
|
2021-07-10 12:01:29 +00:00
|
|
|
release-static: CMAKEFLAGS += -DREPRODUCIBLE=$(or ${SOURCE_DATE_EPOCH}, Off)
|
2020-10-07 10:36:04 +00:00
|
|
|
release-static:
|
|
|
|
cmake -Bbuild $(CMAKEFLAGS)
|
|
|
|
$(MAKE) -Cbuild
|
|
|
|
|
2021-01-10 23:40:17 +00:00
|
|
|
depends:
|
|
|
|
mkdir -p build/$(target)/release
|
2021-05-02 18:22:38 +00:00
|
|
|
cd build/$(target)/release && cmake -D STATIC=ON -DREPRODUCIBLE=$(or ${SOURCE_DATE_EPOCH},OFF) -DTOR_VERSION=$(or ${TOR_VERSION}, OFF) -DTOR_BIN=$(or ${TOR_BIN},OFF) -DCHECK_UPDATES=$(or ${CHECK_UPDATES}, OFF) -D DEV_MODE=$(or ${DEV_MODE},OFF) -D BUILD_TAG=$(tag) -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$(root)/$(target)/share/toolchain.cmake ../../.. && $(MAKE)
|
2021-01-10 23:40:17 +00:00
|
|
|
|
2020-10-07 10:36:04 +00:00
|
|
|
mac-release: CMAKEFLAGS += -DSTATIC=Off
|
2021-07-10 12:01:29 +00:00
|
|
|
mac-release: CMAKEFLAGS += -DTOR_BIN=$(or ${TOR_BIN}, Off)
|
|
|
|
mac-release: CMAKEFLAGS += -DTOR_VERSION=$(or ${TOR_VERSION}, Off)
|
2021-05-02 18:22:38 +00:00
|
|
|
mac-release: CMAKEFLAGS += -DCHECK_UPDATES=$(or ${CHECK_UPDATES}, Off)
|
2021-06-27 00:41:30 +00:00
|
|
|
mac-release: CMAKEFLAGS += -DWITH_SCANNER=$(or ${WITH_SCANNER}, On)
|
2020-10-07 10:36:04 +00:00
|
|
|
mac-release: CMAKEFLAGS += -DBUILD_TAG="mac-x64"
|
|
|
|
mac-release: CMAKEFLAGS += -DCMAKE_BUILD_TYPE=Release
|
|
|
|
mac-release:
|
|
|
|
cmake -Bbuild $(CMAKEFLAGS)
|
|
|
|
$(MAKE) -Cbuild
|
2021-01-10 23:40:17 +00:00
|
|
|
$(MAKE) -Cbuild deploy
|