aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-06-01Merge pull request #7689luigi11111-1/+6
f93db0d clang: fix -pie flag (selsta)
2021-05-12Merge pull request #7691luigi11111-4/+4
cbd54ea cmake: set 3.5 as minimum version (selsta)
2021-05-12Merge pull request #7665luigi11111-0/+12
15e6275 CMake: new macro - finding all headers (extract from epee) (mj-xmr)
2021-04-27cmake: set 3.5 as minimum versionselsta1-4/+4
2021-04-27clang: fix -pie flagselsta1-1/+6
2021-04-16CMake: new macro - finding all headers (extract from epee)mj-xmr1-0/+12
2021-04-01Test: Enable coverage for external repositoriesmj-xmr1-9/+17
Add monero_enable_coverage() for reuse in case C/CXX_FLAGS are overwritten.
2021-03-29Merge pull request #7435luigi11111-1/+1
1ac7134 Mac: Enable on ARM, by not enforcing x86_64 (mj-xmr)
2021-03-24cmake: Don't default to -march=native on OpenBSDNathan Dorfman1-1/+12
2021-03-07Mac: Enable on ARM, by not enforcing x86_64mj-xmr1-1/+1
2021-03-05Merge pull request #7270luigi11111-1/+1
e767561 cmake: Use CMAKE_COMMAND. (Daniel Wyatt)
2021-02-18Merge pull request #7346luigi11111-1/+1
85db173 Remove unused variables in monero codebase (Kevin Barbour)
2021-02-09Remove unused variables in monero codebaseKevin Barbour1-1/+1
There are quite a few variables in the code that are no longer (or perhaps never were) in use. These were discovered by enabling compiler warnings for unused variables and cleaning them up. In most cases where the unused variables were the result of a function call the call was left but the variable assignment removed, unless it was obvious that it was a simple getter with no side effects.
2021-01-16build: omit '-pie' linker flag in native non static WIN32 GCC buildsxiphon1-1/+2
2021-01-02cmake: Use CMAKE_COMMAND.Daniel Wyatt1-1/+1
The cmake executable name can vary across platforms.
2020-12-19Merge pull request #7074luigi11111-1/+3
9024622 add -framework AppKit for Apple (woodser)
2020-12-10Merge pull request #6977Alexander Blair1-0/+14
e59134123 Clang-tidy integrated into CMakeLists.txt (mj-xmr)
2020-12-08Add ClangBuildAnalyzer under utils/health for analyzing build timesmj-xmr1-0/+7
2020-12-04add -framework AppKit for Applewoodser1-1/+3
2020-12-02Clang-tidy integrated into CMakeLists.txtmj-xmr1-0/+14
Can be called from the source directory with: utils/health/clang-tidy-run.sh
2020-11-29Merge pull request #6937luigi11111-0/+18
8a282f6 Add RELINK_TARGETS, monero_add_target_no_relink and use monero_add_executable/monero_add_library where possible (mj-xmr) Add monero_add_minimal_executable and use in tests (mj-xmr)
2020-11-28Merge pull request #6747luigi11111-0/+14
12a78e5 cmake: Use job pool feature to limit concurrent jobs (00-matt)
2020-10-28Add RELINK_TARGETS, monero_add_target_no_relink and use ↵mj-xmr1-0/+18
monero_add_executable/monero_add_library where possible (mj-xmr) Add monero_add_minimal_executable and use in tests This is done in order not to have to relink targets, when just an .so changed, but not its interface.
2020-09-27Merge pull request #6838Alexander Blair1-1/+1
7fca814a6 build: ARM - disable stack trace due to segfault in libunwind (xiphon)
2020-09-22build: ARM - disable stack trace due to segfault in libunwindxiphon1-1/+1
2020-09-17link libzmq against libgssapi_krb5 if foundmoneromooo-monero1-0/+4
2020-08-29cmake: Use job pool feature to limit concurrent jobsMatt Smith1-0/+14
Add two new options, MONERO_PARALLEL_COMPILE_JOBS and MONERO_PARALLEL_LINK_JOBS to try and prevent running out of memory when building everything. Requires >= cmake 3.0.0, and the use of the Ninja generator. Useful links: * https://cmake.org/cmake/help/latest/prop_gbl/JOB_POOLS.html * https://reviews.llvm.org/D6304
2020-08-16Merge pull request #6691Alexander Blair1-1/+1
6111689cf cmake: allow custom openssl path on macOS (selsta)
2020-07-19Merge pull request #6586Alexander Blair1-1/+1
40b73d2a6 cmake: insert CMAKE_CURRENT_SOURCE_DIR in CMAKE_MODULE_PATH (xiphon)
2020-07-19Merge pull request #6512Alexander Blair1-1/+1
5ef0607da Update copyright year to 2020 (SomaticFanatic)
2020-07-19Merge pull request #6501Alexander Blair1-1/+6
3843a6ab Made ccache optional (opt out) and tidied up the FindCcache.cmake (mj-xmr)
2020-06-25cmake: allow custom openssl path on macOSselsta1-1/+1
2020-06-14Do not use PIE with OSS-Fuzzmoneromooo-monero1-1/+1
2020-05-24cmake: insert CMAKE_CURRENT_SOURCE_DIR in CMAKE_MODULE_PATHxiphon1-1/+1
2020-05-16Support for supercop ASM in wallet, and benchmark for supercopLee Clagett1-1/+6
2020-05-15cmake: ASAN and PIE don't mixmoneromooo-monero1-2/+4
Binaries built with both crash on startup with maybe 25% probability
2020-05-15fuzz_tests: refactor and add OSS-Fuzz compatibilitymoneromooo-monero1-0/+6
2020-05-06Update copyright year to 2020SomaticFanatic1-1/+1
Update copyright year to 2020
2020-05-04Made ccache optional (opt out) and tidied up the FindCcache.cmakemj-xmr1-1/+6
2020-04-22FindCcache automaticallymj-xmr1-0/+2
2019-10-25Windows: enable high-entropy ASLR where availableiDunk54001-0/+1
2019-10-25build: fix building on Windows due to _FORTIFY_SOURCE changes in MSYS2iDunk54001-4/+6
Also, enable other hardening options that work on Windows with GCC 9.x
2019-09-25Merge pull request #5549Riccardo Spagni1-0/+1
81c2ad6d RandomX integration (Howard Chu)
2019-09-25RandomX integrationHoward Chu1-0/+1
Support RandomX PoW algorithm
2019-09-25Merge pull request #5930Riccardo Spagni1-1/+3
fcfa6665 Don't set ARCH_ID if it's already set (Howard Chu)
2019-09-25Don't set ARCH_ID if it's already setHoward Chu1-1/+3
Usually it's unset, but depends toolchain files set it explicitly for cross-compiling. Don't override preset values. But make sure it's set for all x86 / x86_64 builds, not just Linux. Also make sure -std=c++11 is set for Darwin builds, not all submodules were getting it consistently before.
2019-09-24Revert "easylogging++: ensure it finds boost headers"moneromooo-monero1-2/+1
This reverts commit 9a95827ea72574c3e861aa3167c0b96b9bae64b3.
2019-09-24easylogging++: ensure it finds boost headersmoneromooo-monero1-1/+2
2019-09-24Merge pull request #5907luigi11111-0/+4
3699544 cmake: add protolib to zmq dependency libs (stoffu)
2019-09-24Merge pull request #5892luigi11111-1/+9
ab2819a depends: attempt to fix readline (iDunk5400)
2019-09-24Merge pull request #5884luigi11111-0/+13
7de6671 Add the iwyu target to get information on unused headers (omartijn)
2019-09-24Merge pull request #5878luigi11111-53/+3
f9b3f6e Removed Berkeley DB and db switching logic (JesusRami)
2019-09-16Removed Berkeley DB and db switching logicJesus Ramirez1-53/+3
2019-09-14Merge pull request #5818luigi11111-2/+2
f91a06c Dropping cppzmq dependency; adding some zmq utils (vtnerd)
2019-09-11cmake: add protolib to zmq dependency libsstoffu1-0/+4
Needed for Ubuntu 19.04: https://ubuntu.pkgs.org/19.04/ubuntu-universe-amd64/libnorm-dev_1.5.8+dfsg2-1_amd64.deb.html
2019-09-07depends: attempt to fix readlineiDunk54001-1/+9
Make readline actually compile, and make ncurses use existing terminfo data (if available).
2019-09-05Add the iwyu target to get information on unused headersMartijn Otto1-0/+13
With this change, building the iwyu target will provide information on unused headers, which can be removed to reduce compilation times.
2019-08-28cmake: ensure PYTHON_EXECUTABLE is setmoneromooo-monero1-0/+1
2019-08-19Merge pull request #5773luigi11111-3/+3
441f318 fix building on OpenBSD, simplify Readme section (mrme0w/The-King-of-Toasters)
2019-08-15Merge pull request #5679luigi11111-2/+1
7fb4edc cmake: fix tests generator (ston1th)
2019-07-30fix building on OpenBSD, simplify Readme sectionMr. Me0w1-3/+3
Based on a patch from @mrme0w (#5569). Fixes #5770
2019-07-24Merge pull request #5589luigi11111-1/+1
cb92d5c cmake: push cmake away from boost as much as we can (moneromooo-monero)
2019-07-24Merge pull request #5472luigi11111-1/+1
2e514b8 CMakeLists.txt: suggest to update all submodules if one of them is outdated (erciccione)
2019-07-24Merge pull request #5451luigi11111-0/+15
6aa3c2f dns_checks: new helper program to check on DNSSEC lookups (moneromooo-monero)
2019-07-22Dropping cppzmq dependency; adding some zmq utilsLee Clagett1-2/+2
2019-06-20cmake: fix tests generatorston1th1-2/+1
find_package(PythonInterp) needs to be called before the tests.
2019-06-09cmake: do not use -mmitigate-rop on GCC >= 9.1moneromooo-monero1-2/+5
It was removed, but it still accepted by the compiler, which warns for every file
2019-05-30cmake: push cmake away from boost as much as we canmoneromooo-monero1-1/+1
Everything works better without cmake.
2019-05-06cmake: fix incorrect hint for OPENSSL_ROOT_DIRmoneromooo-monero1-2/+2
If you use a ; separated set of include and lib directories, it'll detect the headers in /usr/include and the libraries where this points to.
2019-04-23dns_checks: new helper program to check on DNSSEC lookupsmoneromooo-monero1-0/+15
2019-04-20CMakeLists.txt: suggest to update all submodules if one of them is outdatederciccione1-1/+1
2019-04-18Windows: work around a boost 1.70 and cmake SNAFUiDunk54001-0/+1
Boost got upgraded to 1.70.0 in MSYS2. As a result, cmake (v3.13.4 as of this commit) can not configure boost properly, and cmake configuration fails as a result. This is a workaround as per https://gitlab.kitware.com/cmake/cmake/issues/18865
2019-04-11cmake: always detect python, it's neeed for some testsmoneromooo-monero1-0/+2
2019-03-21cmake: handle detecting boost using boost's own cmake filesmoneromooo-monero1-2/+8
Its version looks like 1.70.1 rather than 107000, so detect range to know which type we're seeing
2019-03-05Update 2019 copyrightbinaryFate1-1/+1
2019-03-05cmake: ARCH_ID fixes for cross compilationTheCharlatan1-0/+3
2019-03-04Merge pull request #5146Riccardo Spagni1-1/+0
4a9257b4 Support docker for gitian builds (TheCharlatan)
2019-03-04Merge pull request #5133Riccardo Spagni1-1/+1
f0fc4064 Various speedups to depends and Travis (TheCharlatan)
2019-03-04crypto: plug CNv4 JIT into cn_slow_hashmoneromooo-monero1-0/+2
Enabled by setting the MONERO_USE_CNV4_JIT env var to 1
2019-02-23Various speedups to depends and TravisTheCharlatan1-1/+1
Further speedups to icu compilation, it is faster to run the pre-generated configure scripts. Ensure that the native protobuf installation only generates the required libraries and binaries. Disable qt compilation when running travis on windows. Qt is used for lrelease, the travis recipe instead usese the a local installation of lrelease. Remove various packages and options from the travis recipe. Update Readline to version 8.0. The previously used url 404'd sometimes, use the official gnu ftp server instead. Remove unused cmake config.
2019-02-14Support docker for gitian buildsTheCharlatan1-1/+0
Building with docker is arguably easier and more familiar to most people than either kvm, or lxc. This commit also relaxes the back compat requirement a bit. 32 bit linux now uses glibc version 2.0. Also, the docker shell could not handle gcc arguments containing spaces, so the explicit '-DFELT_TYPE' declaration was dropped. Lastly, this removes some packages from the osx descriptor.
2018-12-31Merge pull request #4929luigi11111-1/+8
5a76933 Add glibc back compat code (TheCharlatan)
2018-12-31Merge pull request #4864luigi11111-3/+0
707c2f8 Remove -Werror (moneromooo-monero)
2018-12-04Add glibc back compat codeTheCharlatan1-1/+8
To ensure that the binaries compiled by gitian run across many linux distributions, enforce 2.17 as the minimum libc version supported.
2018-11-25device/trezor: webusb transport added, cmake fixesDusan Klinec1-10/+3
- webusb transport based on libusb added. Provides direct access to Trezor via USB, no need for Trezor bridge. - trezor protocol message handler improved, no recursion used. Ready for upcoming integration tests. - libusb (for docker) bumped from v1.0.9 to v1.0.22, newer version required for webusb transport, for device enumeration. - cmake improvements and fixes. Cmake Trezor checks are moved to a dedicated CheckTrezor.cmake file. In case of a problem Trezor is excluded from build. - ifdefs made consistent to Ledger. - UDP Transport enumeration disabled by default in release mode
2018-11-17Remove -Werrormoneromooo-monero1-3/+0
It is an annoying piece of garbage
2018-11-16Merge pull request #4796Riccardo Spagni1-1/+1
f92682ec build: ubuntu 16 ppc build fixes (Jethro Grassie)
2018-11-14Merge pull request #4842Riccardo Spagni1-0/+3
37d5b8d9 CMakeLists.txt: add -ftemplate-depth=900 (moneromooo-monero)
2018-11-15cmake: move Boost_LOCALE_LIBRARY out of ICU_LIBRARIESstoffu1-2/+2
2018-11-12CMakeLists.txt: add -ftemplate-depth=900moneromooo-monero1-0/+3
2018-11-06Merge pull request #4760Riccardo Spagni1-2/+2
8a7e20f8 build: older git versions don't have '-C' flag (xiphon)
2018-11-04build: ubuntu 16 ppc build fixesJethro Grassie1-1/+1
2018-11-02device/trezor: trezor support addedDusan Klinec1-0/+11
2018-10-30build: older git versions don't have '-C' flagxiphon1-2/+2
2018-10-26Merge pull request #4679Riccardo Spagni1-1/+3
7d21c9b5 CMakeLists.txt: only use libatomic when found (moneromooo-monero)
2018-10-26Merge pull request #4620Riccardo Spagni1-12/+14
ad4cce93 build: fixed submodule check (xiphon)
2018-10-26Merge pull request #4580Riccardo Spagni1-0/+2
938476c9 CMakeLists.txt: detect and use -pthread compiler flag (moneromooo-monero)
2018-10-26Merge pull request #4536Riccardo Spagni1-2/+3
fd62b6e7 blocks: use auto-generated .c files instead of 'LD -r -b binary' (xiphon)
2018-10-22blocks: use auto-generated .c files instead of 'LD -r -b binary'xiphon1-2/+3
2018-10-20CMakeLists.txt: only use libatomic when foundmoneromooo-monero1-1/+3
2018-10-16build: fixed submodule checkxiphon1-12/+14
2018-10-15Fix Windows build after epee dependency changeiDunk54001-1/+1
2018-10-13CMakeLists.txt: detect and use -pthread compiler flagmoneromooo-monero1-0/+2
The cmake thread detection just ain't enough to always work
2018-10-13build: use ARCH 'native' by default, allow to configure and override itxiphon1-5/+3
2018-10-08Merge pull request #4529Riccardo Spagni1-1/+1
c95a1408 CMakeLists.txt: Fix typo (erciccione)
2018-10-08Revert "Merge pull request #4472"Riccardo Spagni1-3/+2
This reverts commit 79d46c4d551a9b1261801960095bf4d24967211a, reversing changes made to c9fc61dbb56cca442c775faa2554a7460879b637.
2018-10-08CMakeLists.txt: Fix typoerciccione1-1/+1
2018-10-07Merge pull request #4501Riccardo Spagni1-0/+19
fb3593c2 Add check if submodules need to be updated (TheCharlatan)
2018-10-05Add check if submodules need to be updatedTheCharlatan1-0/+19
Adds CMake check that pulls from the different git remotes and checks if there is any output.
2018-10-04blocks: use auto-generated .c files instead of 'LD -r -b binary'xiphon1-2/+3
2018-09-29Merge pull request #4457Riccardo Spagni1-32/+36
85318e78 build: set ARCH_FLAG before compiler/linker flag checks (xiphon)
2018-09-29Merge pull request #4448Riccardo Spagni1-4/+8
6a781408 Make depends use self built clang for darwin (TheCharlatan)
2018-09-29Merge pull request #4446Riccardo Spagni1-1/+1
69da14e1 fixes make debug compilation on OSX (Dusan Klinec)
2018-09-25Merge pull request #4420Riccardo Spagni1-1/+1
0f4f873b Fix Darwin Sodium build (TheCharlatan) bf1e1d97 A Travis to monero (TheCharlatan)
2018-09-24Replace USB-CCID (smartcard) by USB-HIDcslashm1-9/+21
Remove PCSC dependencies which is a bit hard (not user friendly) to install on linux and Mac Split Ledger logic and device IO
2018-09-22A Travis to moneroTheCharlatan1-1/+1
Add a Travis build script for Monero. This was blatantly copied from Bitcoin. It spawns jobs in docker containers running an ubuntu bionic image. This commit also a fixes a problem where librt was still linked, even when compiling statically.
2018-09-21Merge pull request #4401Riccardo Spagni1-1/+7
66901901 README: harmonize command formatting inside README.md (Andrea) 8cd98408 disable AES on s390x architecture (Tuan M. Hoang) 4ed30bab wallet: implement coin splitting for sweep_* 'outputs' option (whythat) 24f52396 wallet: add 'outputs' option for sweep_* commands (whythat) 52e19d69 README: Compile boost with cxxflags=-fPIC cflags=-fPIC (Italocoin Project) 0c77523d README: fill in libsodium package name for Arch (phloatingman)
2018-09-18Merge pull request #3430Riccardo Spagni1-5/+28
42397359 Fixup 32bit arm build (TheCharlatan) a06d2581 Fix Windows build (TheCharlatan) ecaf5b3f Add libsodium to the packages, the arm build was complaining about it. (TheCharlatan) cbbf4d24 Adapt translations to upstream changes (TheCharlatan) db571546 Updated pcsc url (TheCharlatan) f0ba19fd Add lrelease to the depends (TheCharlatan) cfb30462 Add Miniupnp submodule (TheCharlatan) 5f7da005 Unbound is now a submodule. Adapt depends for this. (TheCharlatan) d6b9bdd3 Update readmes to reflect the usage of depends (TheCharlatan) 56b6e41e Add support for apple and arm building (TheCharlatan) 29311fd1 Disable stack unwinding for mingw32 depends build. (TheCharlatan) 8db3d573 Modify depends for monero's dependencies (TheCharlatan) 0806a23a Initial depends addition (TheCharlatan)
2018-09-18disable AES on s390x architectureTuan M. Hoang1-1/+7
rebased by moneromooo
2018-09-18Fixup 32bit arm buildTheCharlatan1-1/+3
Set the architecture in the toolchain file correctly
2018-09-17Fix Windows buildTheCharlatan1-1/+1
icu tex support is not required, so just disable it. Re-add mistakingly removed crypt32 lib.
2018-09-17Add libsodium to the packages, the arm build was complaining about it.TheCharlatan1-3/+0
Fixup arm toolchain file.
2018-09-14Merge pull request #4326Riccardo Spagni1-0/+11
bcda7adc NetBSD support (thomasvaughan)
2018-09-14Merge pull request #4232Riccardo Spagni1-0/+3
9e6c7784 CMakeLists.txt: add -mmitigate-rop to security flags if found (moneromooo-monero)
2018-09-11NetBSD supportthomasvaughan1-0/+11
2018-09-10Adapt translations to upstream changesTheCharlatan1-10/+10
2018-09-10Add lrelease to the dependsTheCharlatan1-1/+11
This includes a minimal qt build without gui
2018-09-10Unbound is now a submodule. Adapt depends for this.TheCharlatan1-1/+1
Fix builds for native linux and windows The architecture flag was set incorrectly. It needs to be set only when compiling arm6.
2018-09-10Add support for apple and arm buildingTheCharlatan1-4/+15
Add pcsc-lite to linux builds Fixup windows icu4c linking with depends, the static libraries have an 's' appended to them Compiling depends arm-linux-gnueabihf will allow you to compile armv6zk monero binaries
2018-09-10Disable stack unwinding for mingw32 depends build.TheCharlatan1-0/+3
2018-09-09CMakeLists.txt: detect -fcf-protection=full and -fstack-clash-protectionmoneromooo-monero1-0/+8
Introduced with GCC 8.2
2018-09-04Merge pull request #4290luigi11111-4/+6
2bc977b CMakeLists.txt: disable -fstack-protector* on windows
2018-09-04Merge pull request #4295luigi11111-1/+1
ce63d56 Windows: fix undefined references after unbound submodule update (iDunk5400)
2018-08-23Windows: fix undefined references after unbound submodule updateiDunk54001-1/+1
2018-08-21Build: Fix target release-static-androidMoroccanMalinois1-0/+1
2018-08-21Translations: handle cross compilingMoroccanMalinois1-5/+1
2018-08-21CMakeLists.txt: disable -fstack-protector* on windowsiDunk54001-4/+6
Current GCC produces broken binaries with these options
2018-08-07CMakeLists.txt: add -mmitigate-rop to security flags if foundmoneromooo-monero1-0/+3
This is GCC/x86/x86_64 only
2018-06-19Merge pull request #3844luigi11111-0/+3
bdf5a3a Fix PCSC compilation under windows (cslashm) f17383a Fix CMAKE config for PCSC in order to avoid msys DLL dependencies (cslashm)
2018-06-19Merge pull request #3835luigi11111-5/+24
d44d19c Fixed for compilation in big endian PPC. (nioroso-x3)
2018-06-08Merge pull request #3887luigi11111-0/+1
14f0d38 Incorporate Window debug build targets (philkode)
2018-05-31Incorporate Window debug build targetsphilkode1-0/+1
2018-05-25rapidjson: remove outdated in-tree, use submoduleanonimal1-1/+1
Includes ~2 years worth of fixes including security and build. Note: this pulls directly from master, not a release branch/tag. See https://github.com/Tencent/rapidjson/issues/1265
2018-05-23Fix PCSC compilation under windowscslashm1-0/+3
PR3843 based on release-v0.12 => rebased on master
2018-05-19Fixed for compilation in big endian PPC. "Everything is broken thought due ↵Judemir Ribeiro1-5/+24
to little endian logic."
2018-04-21Build: update CMake and p2p for in-tree miniupnpanonimal1-8/+0
(cherry picked from commit a7366b5feeffaeb65b217b2d6f138e0ab1c90192)
2018-03-08Adjust to the MSYS2/MinGW static ICU library file renamingrbrunner71-1/+1
In package mingw-w64-x86_64-icu, version 58.2-3, the names of static library files were changed, which leads to changes in CMakeLists.txt as needed for compiling for Windows.
2018-03-05Merge pull request #3313Riccardo Spagni1-1/+2
43026822 Wallet2 + CLI wallet: UTF-8 support for filenames and paths under Windows (rbrunner7)
2018-03-05Correct spelling mistakes.Edward Betts1-1/+1
2018-03-04Code modifications to integrate Ledger HW device into monero-wallet-cli.cslashm1-0/+9
The basic approach it to delegate all sensitive data (master key, secret ephemeral key, key derivation, ....) and related operations to the device. As device has low memory, it does not keep itself the values (except for view/spend keys) but once computed there are encrypted (with AES are equivalent) and return back to monero-wallet-cli. When they need to be manipulated by the device, they are decrypted on receive. Moreover, using the client for storing the value in encrypted form limits the modification in the client code. Those values are transfered from one C-structure to another one as previously. The code modification has been done with the wishes to be open to any other hardware wallet. To achieve that a C++ class hw::Device has been introduced. Two initial implementations are provided: the "default", which remaps all calls to initial Monero code, and the "Ledger", which delegates all calls to Ledger device.
2018-02-25Wallet2 + CLI wallet: UTF-8 support for filenames and paths under Windowsrbrunner71-1/+2
2018-02-16Merge pull request #3195Riccardo Spagni1-7/+21
9017084a cmake: add -DHAVE_ defines to the command line (moneromooo-monero)
2018-01-28cmake: add -DHAVE_ defines to the command linemoneromooo-monero1-7/+21
since there's no config.h here
2018-01-26Update 2018 copyrightxmr-eric1-1/+1
2018-01-11epee: detect strptime, use std::get_time as fallbackmoneromooo-monero1-0/+4
2018-01-10Merge pull request #3062Riccardo Spagni1-1/+5
f035478d Fix translations header generation when cross-compilating (Guillaume LE VAILLANT)
2018-01-10Merge pull request #3007Riccardo Spagni1-1/+1
0281f634 cmake: fix boost version detection (moneromooo-monero)
2018-01-10Merge pull request #2993Riccardo Spagni1-7/+83
776b44f1 Add misc hardening flags to the cmake machinery (moneromooo-monero)
2018-01-04Fix translations header generation when cross-compilatingGuillaume LE VAILLANT1-1/+5
Define generate_translations_header as an external project to be able to use the compilation toolchain for the host instead of the toolchain for the target.
2018-01-02Merge pull request #2934Riccardo Spagni1-0/+4
db2bc965 Embed the translation files in the binary (Guillaume LE VAILLANT)
2017-12-31Add misc hardening flags to the cmake machinerymoneromooo-monero1-7/+83
See https://wiki.debian.org/Hardening#User_Space
2017-12-26cmake: fix boost version detectionmoneromooo-monero1-1/+1
2017-12-23fuzz_testing: build with ASAN (assumed to be available)moneromooo-monero1-0/+10
2017-12-15Embed the translation files in the binaryGuillaume LE VAILLANT1-0/+4
If a translation file exists in a "translations" directory located in the same directory as the binary, it is used in priority (this can be useful when working on translations as you don't have to recompile the whole program all the time), and if no such file is found the embedded translation file is used (if it exists).
2017-11-27add a memwipe functionmoneromooo-monero1-0/+8
It's meant to avoid being optimized out memory_cleanse lifted from bitcoin
2017-11-25Merge pull request #2793Riccardo Spagni1-1/+1
3501ed1f Do not require libatomic on FreeBSD (Vasil Dimov)
2017-11-14Merge pull request #2736Riccardo Spagni1-1/+1
0d9c0db9 Do not build against epee_readline if it was not built (Howard Chu) 178014c9 split off readline code into epee_readline (moneromooo-monero) a9e14a19 link against readline only for monerod and wallet-wallet-{rpc,cli} (moneromooo-monero) 437421ce wallet: move some scoped_message_writer calls from the libs (moneromooo-monero) e89994e9 wallet: rejig to avoid prompting in wallet2 (moneromooo-monero) ec5135e5 move input_line from command_line to simplewallet (moneromooo-monero) 082db75f move cryptonote command line options to cryptonote_core (moneromooo-monero)
2017-11-14Do not build against epee_readline if it was not builtHoward Chu1-0/+1
2017-11-14link against readline only for monerod and wallet-wallet-{rpc,cli}moneromooo-monero1-1/+0
2017-11-14make this build on SunOS/SolarisPavel Maryanov1-0/+6
2017-11-11Do not require libatomic on FreeBSDVasil Dimov1-1/+1
f3e09f36 hooked a dependency on libatomic on 32 bit machines if Clang is used because compilation failed with: `std::__atomic_base<unsigned long long>::load(std::memory_order) const': /usr/bin/../lib/gcc/i686-pc-linux-gnu/6.1.1/../../../../include/c++/6.1.1/bits/atomic_base.h:396: undefined reference to `__atomic_load_8' But that does not happen on FreeBSD. The problem is likely that on Linux Clang tries to use GCC-provided C++11 library. Further, __atomic_load_8() (for 8-byte integers) is not readily available on 32 bit machines. From https://gcc.gnu.org/wiki/Atomic/GCCMM: "When lock free instructions are not available (either through hardware or OS support) atomic operations are left as function calls to be resolved by a library."
2017-11-09Merge pull request #2694Riccardo Spagni1-2/+0
11e0deef cmake: add dep of version lib on version.cpp (redfish) 35340259 .gitignore: do not ignore cmake source files (redfish)
2017-11-01Merge pull request #2689Riccardo Spagni1-0/+8
6a90506a Link against libpgm/libnorm if found, optional libzmq ldependencies (moneromooo-monero)
2017-10-21Link against libpgm/libnorm if found, optional libzmq ldependenciesmoneromooo-monero1-0/+8
2017-10-20cmake: add dep of version lib on version.cppredfish1-2/+0
Also, move cmake source files into cmake/ to keep them together.
2017-10-17epee: use boost type for SSL error coderedfish1-0/+5
Fixes compile error when building with OpenSSL v1.1: contrib/epee/include/net/net_helper.h: In member function ‘void epee::net_utils::blocked_mode_client::shutdown_ssl()’: contrib/epee/include/net/net_helper.h:579:106: error: ‘SSL_R_SHORT_READ’ was not declared in this scope if (ec.category() == boost::asio::error::get_ssl_category() && ec.value() != ERR_PACK(ERR_LIB_SSL, 0, SSL_R_SHORT_READ)) ^ contrib/epee/include/net/net_helper.h:579:106: note: suggested alternative: ‘SSL_F_SSL_READ’ See boost/asio/ssl/error.hpp. Boost handles differences between OpenSSL versions. cmake: fail if Boost is too old for OpenSSL v1.1
2017-10-15Merge pull request #2613Riccardo Spagni1-9/+3
2051f89f cmake: build tests last (redfish)
2017-10-15Merge pull request #2600Riccardo Spagni1-1/+4
885c773a cmake: print which stack trace lib is used (redfish)
2017-10-15Merge pull request #2583Riccardo Spagni1-1/+5
27fdaaa4 Fix building with -DARCH=default -DNO_AES=ON (moneromooo-monero)
2017-10-15epee http_client SSL supportJaquee1-1/+1
2017-10-15CMakeLists.txt - Add openssl include dirJaquee1-0/+2
2017-10-08cmake: build tests lastredfish1-9/+3
Keep -Werror for src, contrib and do not pass it for tests/
2017-10-07cmake: print which stack trace lib is usedredfish1-1/+4
To avoid the suprize of stack tracing being enabled but libunwind not being linked in.
2017-10-06Fix building with -DARCH=default -DNO_AES=ONmoneromooo-monero1-1/+5
2017-09-25Merge pull request #2486Riccardo Spagni1-7/+7
8b1acc9a Fix OpenSSL 1.1 detection for static builds (hyc)
2017-09-25Merge pull request #2485Riccardo Spagni1-1/+6
a3691ae3 daemon: fix static building with libzmq (iDunk5400)
2017-09-25Merge pull request #2442Riccardo Spagni1-1/+1
e29282d2 build: auto update version info without manually deleting version.h (stoffu)
2017-09-24cmake: make warning about headers not fatalredfish1-1/+1
Warning issued on older boost and/or OS: In file included from /usr/include/boost/asio/detail/socket_types.hpp:61:0, from /usr/include/boost/asio/detail/epoll_reactor.hpp:30, from /usr/include/boost/asio/detail/reactor.hpp:21, from /usr/include/boost/asio/detail/impl/task_io_service.ipp:24, from /usr/include/boost/asio/detail/task_io_service.hpp:198, from /usr/include/boost/asio/impl/io_service.hpp:71, from /usr/include/boost/asio/io_service.hpp:767, from /usr/include/boost/asio/basic_io_object.hpp:19, from /usr/include/boost/asio/basic_socket.hpp:20, from /usr/include/boost/asio/basic_datagram_socket.hpp:20, from /usr/include/boost/asio.hpp:21, from /home/vagrant/slave/monero-static-alpine-3_5-x86_64/build/src/common/download.cpp:32: /usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] #warning redirecting incorrect #include <sys/poll.h> to <poll.h>
2017-09-24cmake: fix setting of -Werrorredfish1-12/+6
Setting COMPILE_FLAGS (or COMPILE_OPTIONS) property directly does not end up on the command line (even though it should because add_compile_options does just that). Also, set -Werror for tests as well, because no warnings now. Not set for 'external' only because simply moving add_compile_options above add_subdirectory(external) doesn't do it, and moving add_usbdirectory down is too big of a change (it will pick up new flags). -Werror set only for GCC on Linux, since warnings not yet cleared for other compilers/systems.
2017-09-23daemon: fix static building with libzmqiDunk54001-1/+6
2017-09-21build: auto update version info without manually deleting version.hstoffu1-1/+1
2017-09-20Fix OpenSSL 1.1 detection for static buildshyc1-7/+7
2017-09-05Fix various oversights/bugs in ZMQ RPC server codeThomas Winget1-0/+8
- Add some RPC commands (and touch up a couple others) - some bounds checking - some better pointer management - const correctness and error handling -- Thanks @vtnerd for type help with serialization and CMake changes
2017-09-05json serialization for rpc-relevant monero typesThomas Winget1-0/+2
Structured {de-,}serialization methods for (many new) types which are used for requests or responses in the RPC. New types include RPC requests and responses, and structs which compose types within those. # Conflicts: # src/cryptonote_core/blockchain.cpp
2017-08-05CMakeLists.txt - ios/xcode fixJaquee1-0/+3
2017-06-27enable monero build on ppc64le architectureRoberto Oliveira1-1/+9
Fix wrong flags for ppc64le: -maes - not avaiable -march - changed by -mcpu that does the same for powerpc
2017-06-18Add readline support to clijethro1-0/+13
This PR adds readline support to the daemon and monero-wallet-cli. Only GNU readline is supported (e.g. not libedit) and there are cmake checks to ensure this. There is a cmake variable, Readline_ROOT_DIR that can specify a directory to find readline, otherwise some default paths are searched. There is also a cmake option, USE_READLINE, that defaults to ON. If set to ON, if readline is not found, the build continues but without readline support. One negative side effect of using readline is that the color prompt in the wallet-cli now has no color and just uses terminal default. I know how to fix this but it's quite a big change so will tackle another time.
2017-05-17shared libs build (i.e. make debug)stoffu1-0/+2
2017-04-12Fix ARM64 identificationhyc1-1/+2
The actual arch flag the compiler recognizes is "armv8-a". This is true for both gcc and clang.
2017-04-11Merge pull request #1950Riccardo Spagni1-6/+10
f5bd3465 IOS CMAKE build settings (Jaquee) d8a88d05 add IOS CMAKE toolchain (Jaquee)