a free Monero desktop wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.7 KiB

  1. # Copyright (c) 2014-2021, The Monero Project
  2. #
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms, with or without modification, are
  6. # permitted provided that the following conditions are met:
  7. #
  8. # 1. Redistributions of source code must retain the above copyright notice, this list of
  9. # conditions and the following disclaimer.
  10. #
  11. # 2. Redistributions in binary form must reproduce the above copyright notice, this list
  12. # of conditions and the following disclaimer in the documentation and/or other
  13. # materials provided with the distribution.
  14. #
  15. # 3. Neither the name of the copyright holder nor the names of its contributors may be
  16. # used to endorse or promote products derived from this software without specific
  17. # prior written permission.
  18. #
  19. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
  20. # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  21. # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
  22. # THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  23. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  24. # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  25. # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  26. # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
  27. # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
  28. CMAKEFLAGS = \
  29. -DARCH=x86_64 \
  30. -DBUILD_64=On \
  31. -DBUILD_TESTS=Off \
  32. -DXMRIG=On \
  33. -DTOR_BIN=Off \
  34. -DCMAKE_CXX_STANDARD=11 \
  35. -DCMAKE_VERBOSE_MAKEFILE=On \
  36. -DINSTALL_VENDORED_LIBUNBOUND=Off \
  37. -DMANUAL_SUBMODULES=1 \
  38. -DSTATIC=On \
  39. -DUSE_DEVICE_TREZOR=Off \
  40. $(CMAKEFLAGS_EXTRA)
  41. release-static: CMAKEFLAGS += -DBUILD_TAG="linux-x64"
  42. release-static: CMAKEFLAGS += -DTOR_BIN=$(or ${TOR_BIN},OFF)
  43. release-static: CMAKEFLAGS += -DCMAKE_BUILD_TYPE=Release
  44. release-static: CMAKEFLAGS += -DREPRODUCIBLE=$(or ${SOURCE_DATE_EPOCH},OFF)
  45. release-static:
  46. cmake -Bbuild $(CMAKEFLAGS)
  47. $(MAKE) -Cbuild
  48. depends:
  49. mkdir -p build/$(target)/release
  50. 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) -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)
  51. mac-release: CMAKEFLAGS += -DSTATIC=Off
  52. mac-release: CMAKEFLAGS += -DTOR_BIN=$(or ${TOR_BIN},OFF)
  53. mac-release: CMAKEFLAGS += -DBUILD_TAG="mac-x64"
  54. mac-release: CMAKEFLAGS += -DCMAKE_BUILD_TYPE=Release
  55. mac-release:
  56. cmake -Bbuild $(CMAKEFLAGS)
  57. $(MAKE) -Cbuild
  58. $(MAKE) -Cbuild deploy