Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix installation #3

Open
wants to merge 357 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
357 commits
Select commit Hold shift + click to select a range
86e1866
Add max_depth parameter to pack/unpack functions
abitmore Mar 11, 2018
43ac0b0
Slightly improve performance for pack/unpack
abitmore Mar 13, 2018
8f08591
Merge pull request #20 from abitmore/fix-serialization
pmconrad Mar 13, 2018
67e6036
Merge pull request #15 from pmconrad/json_parsing_fix
abitmore Mar 13, 2018
fca5058
Merge branch 'master' into sanitize
pmconrad Mar 13, 2018
3286935
Merge pull request #11 from openledger/sanitize
pmconrad Mar 13, 2018
81c8d89
Added max_depth parameter to variant conversions
pmconrad Mar 11, 2018
dd9197c
Added missing depth check
pmconrad Mar 12, 2018
271a837
Adapted API conversions, incomplete
pmconrad Mar 12, 2018
2f5f599
Moved LOG_*_DEPTH variable to new config.hpp
pmconrad Mar 13, 2018
769dd98
Add tests for nested class object serialization
abitmore Mar 14, 2018
85ea20e
Deprecate default pack/unpack functions for class
abitmore Mar 14, 2018
d9ac269
Remove default pack/unpack functions for class
abitmore Mar 14, 2018
a918226
Added max_depth to remaining variant conversions
pmconrad Mar 18, 2018
efa4a50
Merge pull request #22 from abitmore/fix-class-serialization
abitmore Mar 18, 2018
1eb7b9d
Added some missing checks, fixed indentation, handle different meanin…
pmconrad Mar 19, 2018
2bb93c8
Merge pull request #21 from pmconrad/variant_fix
abitmore Mar 19, 2018
d5024e8
Merge pull request #12 from bitshares/oxarbitrage-patch-1
abitmore Mar 19, 2018
6e42194
Fix redefinition of default arg under macOS
abitmore Mar 22, 2018
3e7e0aa
Merge pull request #24 from bitshares/abitmore-patch-1
abitmore Mar 22, 2018
956085d
fixed macOS build
jmjatlanta Mar 22, 2018
0a0d41e
Merge pull request #25 from bitshares/jmjatlanta-patch-1
abitmore Mar 22, 2018
51ba34c
Add .travis.yml
abitmore Mar 22, 2018
0065cf0
Fix .travis.yml
abitmore Mar 22, 2018
a3f8f2f
Fix websocket_test
abitmore Mar 22, 2018
c2d1cfd
add travis build status
oxarbitrage Mar 22, 2018
636a50f
comment some failing tests
oxarbitrage Mar 23, 2018
8a96790
remove test
oxarbitrage Mar 23, 2018
1b3d531
Add test case for variant conversions
abitmore Mar 22, 2018
a57879b
Update test case for variant conversions
abitmore Mar 23, 2018
f92671e
Try to avoid throwing exception when logging
abitmore Mar 23, 2018
5dcebe7
Suppress logging when testing mass logging
abitmore Mar 23, 2018
0fe2e61
Merge pull request #28 from bitshares/variant_test
abitmore Mar 23, 2018
eb9cc0b
add note to commented test
oxarbitrage Mar 23, 2018
6fae537
add notes to commented tests
oxarbitrage Mar 23, 2018
377235a
comment out another test
oxarbitrage Mar 23, 2018
7e7e3e5
Merge pull request #30 from oxarbitrage/time_test
abitmore Mar 23, 2018
d286375
Merge pull request #27 from bitshares/oxarbitrage-patch-1
abitmore Mar 23, 2018
f84de73
added test to demonstrate issue
jmjatlanta Mar 23, 2018
52a5956
Pipe output to get around logging ANSI color issue
abitmore Mar 23, 2018
88d371b
Merge pull request #31 from bitshares/fix-travis-logging
oxarbitrage Mar 23, 2018
91d294f
Remove -std=c++14 flag from CMakeLists.txt
abitmore Mar 25, 2018
6dc06cd
Skip editline when building in MSVC
abitmore Mar 27, 2018
4dbf6ee
Merge pull request #34 from bitshares/msvc-editline
abitmore Mar 27, 2018
4441e14
Merge pull request #32 from bitshares/abitmore-patch-1
abitmore Mar 27, 2018
6523896
removed boost_1.51 and interprocess class
jmjatlanta Mar 28, 2018
38191dc
added boost hash header
jmjatlanta Mar 29, 2018
18640e4
Add special handling for mac size_t and variant (#35)
jmjatlanta Apr 2, 2018
b01ddeb
Merge remote-tracking branch 'upstream/master' into boost_1.66
jmjatlanta Apr 9, 2018
a6738e3
Added boost stacktrace to segfault handler
jmjatlanta Apr 9, 2018
133fe62
Add comment to clarify 2 sections of code.
jmjatlanta Apr 9, 2018
5383d5b
boost::hash<fc::sha256> not used, removed
jmjatlanta Apr 9, 2018
7db8176
Moved headers within #if macro for cleanliness
jmjatlanta Apr 9, 2018
13d98e2
Add OpenSSL 1.1.0 support
nathanielhourt Apr 25, 2017
ef27d4b
Initial work for openssl-1.1 support
xeroc Jan 5, 2018
6b81aab
[websocketpp] update submodule and provide patched version via separa…
xeroc Feb 14, 2018
c0db16b
Fix erros in unittest
xeroc Apr 13, 2018
b4fac94
fix incorrect project_editline-build path
Apr 18, 2018
5706d58
Fixed DH memory handling with openssl-1.1
pmconrad Apr 21, 2018
fccabf1
Fixed blinding test + implementation
pmconrad Apr 21, 2018
056a326
Merge pull request #39 from ihla/fix_project_editline_cmakelists
abitmore Apr 26, 2018
000ef9a
Merge pull request #36 from jmjatlanta/boost_1.66
abitmore Apr 26, 2018
5168804
Merge pull request #38 from jmjatlanta/Issue_727c
abitmore Apr 26, 2018
9037ca3
Merge pull request #40 from pmconrad/openssl-1.1-support
abitmore Apr 26, 2018
a3272e4
Ripped out unused blinding stuff
pmconrad Apr 21, 2018
58ef1c2
Merge remote-tracking branch 'upstream/master' into Issue_socket
jmjatlanta May 4, 2018
cb29659
Added comment to clarify test purpose
jmjatlanta May 4, 2018
3661e83
Removed unused parameter
jmjatlanta May 4, 2018
ccc213b
Merge pull request #43 from jmjatlanta/Issue_socket
abitmore May 5, 2018
d14daf8
Merge pull request #41 from pmconrad/openssl-1.1-support
abitmore May 8, 2018
f0dfc64
Fixed diffie-hellman shared key computation
pmconrad May 10, 2018
29ace9b
Added specific test case for short secret
pmconrad May 11, 2018
93d3362
Modifications to run sonar-scanner during travis build
pmconrad May 11, 2018
bb62664
Conditional build with sonar
pmconrad May 11, 2018
b3285b3
Parallelize unit test execution
pmconrad May 13, 2018
a6671d6
Merge pull request #44 from pmconrad/dh_fix
pmconrad May 15, 2018
0d689a4
Remove hard coded number of IO threads (#47)
jmjatlanta May 16, 2018
8910680
add parameterized constructor
jmjatlanta May 28, 2018
0fc569c
Remove unused "smaz" compression
pmconrad May 29, 2018
cff8e96
Merge pull request #51 from pmconrad/core_986_cleanup
pmconrad May 29, 2018
36359f5
Merge pull request #50 from bitshares/jmj_issue_762
jmjatlanta May 29, 2018
64aa565
Remove fc bz2 unused linkage
oxarbitrage May 31, 2018
0a90eff
Merge pull request #7 from bitshares/openssl-1.1-support
oxarbitrage May 31, 2018
59f503d
adjust asserts in fc/crypto
jmjatlanta Jun 2, 2018
ea18aca
Merge pull request #52 from bitshares/bz2-unused-linkage
oxarbitrage Jun 4, 2018
0dbf7ff
Merge pull request #49 from bitshares/travis_sonar
pmconrad Jun 5, 2018
d8437ac
Merge pull request #54 from bitshares/jmj_issue_992
jmjatlanta Jun 7, 2018
ac982ca
fix compile error with vs2017 and boost 1.67
Jun 30, 2018
e609d70
Remove unnecessary structure definition in static_variant.hpp
RichardWeiYang Jul 5, 2018
6d3184f
Fix two typo in variant.hpp
RichardWeiYang Jul 5, 2018
650c0a3
fix hardcode of OPENSSL_CONF_SOURCE in CMakeLists.txt
Jul 5, 2018
20724f7
fixed issue #809
nanomobile Jul 9, 2018
ce2e62f
fix editline sigsev
jmjatlanta Jul 16, 2018
4dc3732
Merge pull request #59 from cwyyprog/cwyy1
pmconrad Jul 17, 2018
996dc14
Merge pull request #58 from RichardWeiYang/master
pmconrad Jul 17, 2018
d679377
Merge pull request #60 from bitshares/jmj_issue_1127
pmconrad Jul 17, 2018
1169c2d
removed using statement from header file
nanomobile Jul 17, 2018
da5f2c3
fixed issue #929
nanomobile Jul 17, 2018
ee25279
added idump for websocket_tls_server_impl
nanomobile Jul 17, 2018
0486a5f
fixed issue #1050
nanomobile Jul 18, 2018
535fc86
remove hard coded method check to result check from quit command
nanomobile Jul 19, 2018
1820655
throwing fc:canceled_exception for quit cli wallet command
nanomobile Jul 20, 2018
ed168a4
Merge pull request #62 from cogutvalera/valera_issue_929
abitmore Jul 23, 2018
82987bb
Bump for websocketpp, bitshares-core issue 999
jmjatlanta Jul 23, 2018
0604a5e
Merge pull request #65 from bitshares/jmj_issue_999
abitmore Jul 23, 2018
2105bc0
Add header
jmjatlanta Jul 24, 2018
f1e48d3
Merge pull request #56 from nanomobile/valera_issue_809
abitmore Jul 25, 2018
7080cf4
Merge pull request #66 from bitshares/jmj_stacktrace
jmjatlanta Jul 25, 2018
5469bb9
Merge pull request #63 from cogutvalera/valera_issue_1050
pmconrad Jul 25, 2018
9e043fb
fc::time_point_sec::to_iso_string is broken - issue #597
nanomobile Jul 27, 2018
0077926
removed comment
nanomobile Jul 27, 2018
e310159
Merge pull request #67 from cogutvalera/valera_issue_597
jmjatlanta Jul 27, 2018
40d928e
raise SIGINT instead of throwing exception in cli_wallet quit command
cogutvalera Jul 30, 2018
8174558
Merge pull request #68 from cogutvalera/valera_issue_1193
abitmore Jul 30, 2018
ec41a06
reverting throw exception instead of raising SIGINT in order not to t…
cogutvalera Jul 30, 2018
1a457ca
Merge pull request #70 from cogutvalera/valera_issue_1193
abitmore Jul 30, 2018
1eca495
fix import_key crash for wallet
zuuluuz May 24, 2018
ce7cb0d
Check error after called boost::filesystem::copy()
Aug 9, 2018
35cb63d
Call FC wrappers of copy and remove in rename()
abitmore Aug 9, 2018
64b4bd4
Wrap system_error::what() in a string
abitmore Aug 9, 2018
48901cd
correct templating of static variant
jmjatlanta Aug 10, 2018
da33edc
additional typenames
jmjatlanta Aug 10, 2018
e896188
additional templates for get_typename
jmjatlanta Aug 11, 2018
9ba8886
Change string to static
jmjatlanta Aug 13, 2018
46ba4cc
Merge pull request #74 from bitshares/jmj_issue_1271
jmjatlanta Aug 13, 2018
7ac533b
Merge pull request #73 from bitshares/fix-file-copy
jmjatlanta Aug 17, 2018
f8940a6
Added unit test for serialization/deserialization of unsigned_int
pmconrad Jul 18, 2018
9483935
Support 64 bit values in unsigned_int object
pmconrad Jul 18, 2018
58ac6ae
Changed some casts to uint64_t
pmconrad Aug 18, 2018
72bcc8a
Fix #993 - limit unpacking length of signed_int and unsigned_int
pmconrad Aug 18, 2018
a39e0d1
Expanded tests for unsigned_int to 64 bits
pmconrad Aug 18, 2018
0c22469
#993 - unit test
pmconrad Aug 19, 2018
4b61f3c
Fixed alleged c&p bug
pmconrad Aug 19, 2018
1dcacba
Removed signed_int
pmconrad Aug 19, 2018
79ff754
Throw overflow_exception instead of silently cutting off data
pmconrad Aug 19, 2018
02a4516
Handle b<0
pmconrad Aug 21, 2018
2405081
Merge pull request #64 from bitshares/1088_unsigned_int
pmconrad Aug 22, 2018
c544b38
Log console output during replay to file #985
cogutvalera Sep 21, 2018
fa7faee
fc::create_directories before rotate_files
cogutvalera Sep 24, 2018
0fb65e4
Added to_variant(bool, ...)
abitmore Aug 11, 2018
b83108c
Added static visit(...) methods to static_variant
abitmore Aug 11, 2018
70dbcc1
Added visit_local_member(...) methods to reflector
abitmore Aug 11, 2018
8e1b47a
Merge pull request #76 from cogutvalera/issue_985
pmconrad Oct 1, 2018
3131c1d
Implement helper function for real parallel execution
pmconrad Sep 27, 2018
40b2843
Added test case for parallel hashing
pmconrad Sep 27, 2018
6fe8f1d
Added parallel sign/verify test
pmconrad Sep 27, 2018
34a2820
Added warning
pmconrad Sep 27, 2018
ef3d365
Removed unused file
pmconrad Sep 27, 2018
9954a37
Added constructor for auto-fulfillment
pmconrad Oct 1, 2018
21724fa
Give asio threads separate names for better debugging
pmconrad Oct 1, 2018
7e8debb
Want to see thread names also in RelWithDebInfo build
pmconrad Oct 1, 2018
fa7f6af
Delete broken (wrt fc::current_thread()) move stuff
pmconrad Oct 3, 2018
9d54742
Added a mechanism to get notifications when a thread is idle
pmconrad Oct 3, 2018
afcb1e3
Moved do_parallel to fc::thread-based worker pool implementation
pmconrad Oct 3, 2018
b0f4e55
--list-content doesnt work properly until boost-1.59
pmconrad Oct 4, 2018
e336b0b
Added serial_valve
pmconrad Oct 5, 2018
08a66f5
Add option --pool-threads for easier testing
pmconrad Oct 6, 2018
fc61ef3
Improved error handling on thread exit
pmconrad Oct 6, 2018
8eff001
Initialize queues properly
pmconrad Oct 6, 2018
67d2eb9
remove WITH_EXOTIC_JSON_PARSERS
oxarbitrage Oct 8, 2018
72a8168
Added a test for static_variant visitor call depth
pmconrad Oct 9, 2018
b4da126
Replaced visitors with constant-time implementations
pmconrad Oct 9, 2018
53d3f72
reduce number of changes
oxarbitrage Oct 9, 2018
d0b280a
Fixed possible deadlock
pmconrad Oct 9, 2018
0186426
Fixed some new code smells
pmconrad Oct 9, 2018
bcce353
Check tag >= 0, shortened long lines
pmconrad Oct 9, 2018
8174d63
More line wrapping
pmconrad Oct 10, 2018
62ebc67
Merge pull request #80 from oxarbitrage/remove_exotic_parser
pmconrad Oct 10, 2018
01e6ae3
Generalize flat_set serialization templates to allow different sortin…
pmconrad Oct 12, 2018
1935649
Merge pull request #81 from bitshares/flat_set_serialization
pmconrad Oct 13, 2018
d35e296
Initialize max_object_depth in appender config
abitmore Oct 19, 2018
9f43902
Remove empty lines
abitmore Oct 19, 2018
a1d84f2
Merge pull request #83 from bitshares/log-obj-depth
abitmore Oct 19, 2018
0156023
Fix Compiler Warnings
jmjatlanta Oct 22, 2018
c298917
Added warning back to avoid additional logic
jmjatlanta Oct 23, 2018
c9d95c0
Safer way to handle unlock command of cli_wallet #1171
cogutvalera Oct 16, 2018
e00bbda
removed not required output to console
cogutvalera Oct 16, 2018
e14b7c6
bump editline to latest upstream master
cogutvalera Oct 24, 2018
bcdaaaa
Merge pull request #79 from bitshares/for-custom-auth
abitmore Oct 25, 2018
8b6a2dd
Merge pull request #84 from bitshares/jmj_1383
abitmore Oct 25, 2018
4489648
Optimized regex expression and other little improvements
cogutvalera Oct 25, 2018
3239a07
Fix build error/warning
nathanielhourt Oct 26, 2018
edd6fa8
Removed pointer for regex expression
cogutvalera Oct 27, 2018
acfe075
Merge pull request #82 from cogutvalera/issue_1171
pmconrad Oct 28, 2018
157273f
Check if exists regex expression
cogutvalera Oct 30, 2018
cea1ae6
Merge branch 'master' of https://github.com/bitshares/bitshares-fc
nathanielhourt Oct 30, 2018
079de9e
Check if boost::regex is empty
cogutvalera Oct 30, 2018
93a0316
Dynamic memory allocation of static_variant & other small changes.
crypto-ape Oct 25, 2018
384d4f1
Replaced assert with FC_ASSERT
crypto-ape Oct 25, 2018
f8b86fc
added testcase types_edge_cases_test for static_variant
crypto-ape Oct 29, 2018
9fa03c6
Merge pull request #86 from cogutvalera/issue_1171
pmconrad Nov 1, 2018
3c3b769
Use function pointers instead of std::function objects in static vari…
pmconrad Nov 4, 2018
ed4a300
Added missing include
pmconrad Nov 4, 2018
12e4962
Merge pull request #87 from bitshares/reimprove_compilation_time
pmconrad Nov 5, 2018
bf36c18
Silence wrong tag warning
HarukaMa Nov 7, 2018
9cce60c
Merge pull request #88 from HarukaMa/patch-1
pmconrad Nov 7, 2018
2e0a03a
Fix build against boost 1.68+
nathanielhourt Nov 7, 2018
d3984dd
Update CMakeLists.txt
nathanielhourt Nov 7, 2018
0090777
boost stacktrace does not play well with mac
jmjatlanta Nov 9, 2018
0f110c3
Merge pull request #91 from nathanhourt/patch-2
jmjatlanta Nov 10, 2018
5b99b41
Added missing include
pmconrad Nov 10, 2018
5c0ee5d
clarify comment
jmjatlanta Nov 13, 2018
fd345e5
fix #if for boost versions > 2
jmjatlanta Nov 13, 2018
ed775a5
Added missing include
pmconrad Nov 14, 2018
f4dec89
mac fc::io::readsome fix
jmjatlanta Nov 15, 2018
84318f8
readsome instead of read
jmjatlanta Nov 15, 2018
460e7cc
Merge pull request #78 from bitshares/multithreading_improvements
pmconrad Nov 17, 2018
1aecf3c
Merge pull request #85 from crypto-ape/static-variant-memory-optimiza…
pmconrad Nov 17, 2018
e9886b0
Merge pull request #95 from bitshares/jmj_readsome
jmjatlanta Nov 21, 2018
ec0de98
Merge pull request #90 from nathanhourt/patch-1
jmjatlanta Nov 21, 2018
0468884
Merge pull request #92 from bitshares/mac_stacktrace
jmjatlanta Nov 21, 2018
3f5205a
Fix warnings in tests
jmjatlanta Dec 28, 2018
e1bb7c6
Add compiler switches to squelch some warnings
jmjatlanta Dec 28, 2018
fb75dc9
Added limits for resize() / reserve()
pmconrad Dec 25, 2018
90f8ad5
Ported test case from STEEM
pmconrad Dec 28, 2018
51f27f1
Fix stacktrace test
jmjatlanta Dec 28, 2018
1ed9b4f
Revert -Wno-??? change
jmjatlanta Jan 1, 2019
df7b4e6
Merge pull request #99 from bitshares/jmj_1246
jmjatlanta Jan 2, 2019
e751cf2
Removed boost signals (no longer used)
jmjatlanta Jan 4, 2019
2baa7df
Merge pull request #101 from bitshares/jmj_1512
jmjatlanta Jan 6, 2019
310bec6
Fix warning adding int to string literal
jmjatlanta Jan 7, 2019
f7e5f73
unneccesary capture
jmjatlanta Jan 7, 2019
72eeb62
Changed MAX_PREALLOC_SIZE to 2^8
pmconrad Jan 7, 2019
b2e738a
Merge pull request #100 from bitshares/fix_limits
pmconrad Jan 8, 2019
9ba9519
make assert message more standard
jmjatlanta Jan 15, 2019
2bf93ec
Merge pull request #102 from bitshares/jmj_macwarn
jmjatlanta Jan 17, 2019
be4d480
Remove unnecessary asserts
jmjatlanta Jan 18, 2019
fa07984
fix overly agressive cleanup
jmjatlanta Jan 21, 2019
7de33aa
whitespace only
jmjatlanta Jan 21, 2019
87260fe
Merge pull request #103 from bitshares/jmj_995
jmjatlanta Jan 22, 2019
98c9e62
Remove unused boost dependencies serialization + locale
pmconrad Jan 30, 2019
3633cb4
Switch to xenial build environment
pmconrad Jan 30, 2019
0bbbb5e
travis: Install only required stuff
pmconrad Jan 30, 2019
4843502
travis: added ccache
pmconrad Jan 30, 2019
9e6c5ab
Merge pull request #104 from bitshares/build_simplification
pmconrad Jan 30, 2019
6fece96
fix std::min parameter conversion
jmjatlanta Feb 5, 2019
8ebd99b
Merge pull request #105 from bitshares/jmj_1560
jmjatlanta Feb 5, 2019
b29da15
enable websocket permessage-deflate
Jul 11, 2018
25ae322
Add missing operator overloads for fc::unsigned_int
nathanielhourt Feb 13, 2019
66e9739
Merge pull request #107 from bitshares/missing-overloads
oxarbitrage Feb 13, 2019
11caddc
Merge pull request #106 from btsabc/enable-permessage
abitmore Feb 13, 2019
abdef06
Bump websocketpp version
abitmore Feb 13, 2019
1a411b8
Merge pull request #108 from bitshares/pr106
abitmore Feb 14, 2019
19590fd
Removal of smart_ref
jmjatlanta Feb 15, 2019
063be69
Merge pull request #109 from bitshares/jmj_1548
jmjatlanta Feb 18, 2019
2fa5777
Allow zlib to be optional
jmjatlanta Feb 26, 2019
6a5ba93
Merge pull request #110 from bitshares/jmj_zlib
jmjatlanta Mar 4, 2019
c59c36e
Make static_variant::tag_type public
nathanielhourt Mar 19, 2019
a0ca5ab
Merge pull request #112 from nathanhourt/static_variant_fix
nathanielhourt Mar 19, 2019
4e5e471
Merge branch 'master' of github.com:bitshares/bitshares-fc into HEAD
nathanielhourt Mar 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,4 @@ fc_automoc.cpp
git_revision.cpp
GitSHA3.cpp

ntp_test
task_cancel_test
udt_client
udt_server
15 changes: 9 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[submodule "vendor/diff-match-patch-cpp-stl"]
path = vendor/diff-match-patch-cpp-stl
url = https://github.com/leutloff/diff-match-patch-cpp-stl
[submodule "vendor/secp256k1-zkp"]
path = vendor/secp256k1-zkp
url = https://github.com/cryptonomex/secp256k1-zkp.git
path = vendor/secp256k1-zkp
url = https://github.com/bitshares/secp256k1-zkp.git
[submodule "vendor/websocketpp"]
path = vendor/websocketpp
url = https://github.com/zaphoyd/websocketpp.git
[submodule "vendor/diff-match-patch-cpp-stl"]
path = vendor/diff-match-patch-cpp-stl
url = https://github.com/leutloff/diff-match-patch-cpp-stl
url = https://github.com/bitshares/websocketpp.git
[submodule "vendor/editline"]
path = vendor/editline
url = https://github.com/troglobit/editline.git
40 changes: 40 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
language: c++

cache: ccache

git:
depth: 1

dist: xenial

sudo: true

install:
- sudo apt-get install --allow-unauthenticated libboost-thread-dev libboost-iostreams-dev libboost-date-time-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-chrono-dev libboost-test-dev libboost-context-dev libboost-regex-dev libboost-coroutine-dev cmake parallel

addons:
sonarcloud:
organization: "flwyiq7go36p6lipr64tbesy5jayad3q"
token:
secure: "Y0DhI1Fn7QXqdYF5kCUFV0l0XUOp5iYp+kHYVAWpt1HSYN5889GTO3SgsZoT7+Cmo1HLAe2P8tSCzz3lECDI0rWMuk7wxFRMVmnxBpbR5P61+Mhe4t/LhSGzuT3PAscttFNPexpDmePKO0EgTY7PemMtXR8LZ2O/RngAMWWfH0Wmyngy68Bm9CvpWfW9aQ8ZUMsjpbDmbaE9dN6FLABE1YZzVL+9SA07gOSQzry/SLbRY19+g9OicaAoCdQCdvIem6af1qIy0x5uDFfz4x1Sows9awBOsAOf6V5WmFlV21YwR1RhT+4WffB+VrMYOF8YpzoUrS+CPmPWlkDDN3fuKsqRGYpbBIxyqBQ+rahDtXfoD5ZbGY1UYTbrHGD8VTNVbvdqAsVEfgZ8ci7NxBnIL3VDduxP1qb46chTJb9KeeIETtN8qTdfsZyudveZLKmULKah8uaOkMX2bJT6oikluVXJnI0OybHQrrMwHula/qmEj3FnC3KKPmL84F/6DSPiiojx+qsMa0STQE9ZwzeJPc8KjllsTYKL492IDQJDXkWGS+PwlOXResr2Dhu/rfYKy6qpHQJzreoPcIRmeM7rFamJZHkqdaldJGm+iQacX2byKJ/tT93IM6hW0BEi4Haucwn1f0Ig5tzE8mzro1/Rj35a9ti2jmO0NWjyeBwnCVo="

env:
global:
- CCACHE_COMPRESS=exists_means_true
- CCACHE_MAXSIZE=1Gi
- CCACHE_SLOPPINESS=include_file_ctime,include_file_mtime,time_macros

script:
- ccache -s
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=--coverage -DCMAKE_CXX_FLAGS=--coverage -DBoost_USE_STATIC_LIBS=OFF -DCMAKE_CXX_OUTPUT_EXTENSION_REPLACE=ON .
- 'which build-wrapper-linux-x86-64 && build-wrapper-linux-x86-64 --out-dir bw-output make -j 2 || make -j 2'
- set -o pipefail
- tests/run-parallel-tests.sh tests/all_tests
- "tests/api 2>&1 | grep -vE 'callback result 9|remote_calc->add. 4, 5 .: 9|set callback|] \\.$'"
- tests/bip_lock 2>&1 | cat
- tests/hmac_test 2>&1 | cat
- tests/ecc_test README.md 2>&1 | cat
- tests/log_test 2>&1 | cat
- 'find CMakeFiles/fc.dir -type d | while read d; do gcov -o "$d" "${d/CMakeFiles*.dir/./}"/*.cpp; done >/dev/null'
- 'which sonar-scanner && sonar-scanner || true'
- ccache -s
124 changes: 76 additions & 48 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ endif()
SET (ORIGINAL_LIB_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})

SET(BOOST_COMPONENTS)
LIST(APPEND BOOST_COMPONENTS thread date_time system filesystem program_options signals serialization chrono unit_test_framework context locale iostreams)
LIST(APPEND BOOST_COMPONENTS thread date_time filesystem system program_options chrono unit_test_framework context iostreams regex)
SET( Boost_USE_STATIC_LIBS ON CACHE STRING "ON or OFF" )

IF( ECC_IMPL STREQUAL openssl )
Expand Down Expand Up @@ -98,9 +98,58 @@ else ( MSVC )
set_property(TARGET secp256k1 PROPERTY IMPORTED_LOCATION ${binary_dir}/.libs/libsecp256k1${CMAKE_STATIC_LIBRARY_SUFFIX})
set_property(TARGET secp256k1 PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/vendor/secp256k1-zkp/include)
add_dependencies(secp256k1 project_secp256k1)
install( FILES ${binary_dir}/.libs/libsecp256k1${CMAKE_STATIC_LIBRARY_SUFFIX} DESTINATION lib/cryptonomex )
endif ( MSVC )
# End configure secp256k1-zkp

# Configure editline
if ( MSVC )
# # autoconf won't work here, hard code the defines
# set( EDITLINE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline" )
#
# file( GLOB EDITLINE_SOURCES "${EDITLINE_DIR}/src/editline.c" )
# add_library( editline ${EDITLINE_SOURCES} )
#
# target_include_directories( editline PRIVATE "${EDITLINE_DIR}" PUBLIC "${EDITLINE_DIR}/include" )
#
# set_target_properties( editline PROPERTIES COMPILE_DEFINITIONS LINKER_LANGUAGE C )
else ( MSVC )
include(ExternalProject)
if ( MINGW )
ExternalProject_Add( project_editline
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/vendor/editline
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline
CONFIGURE_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline/configure --prefix=${CMAKE_CURRENT_BINARY_DIR}/vendor/editline --host=x86_64-w64-mingw32
BUILD_COMMAND make
INSTALL_COMMAND true
BUILD_BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/vendor/editline/src/project_editline-build/src/.libs/libeditline.a
)
else ( MINGW )
ExternalProject_Add( project_editline
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/vendor/editline
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline
CONFIGURE_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline/configure --prefix=${CMAKE_CURRENT_BINARY_DIR}/vendor/editline
BUILD_COMMAND make
INSTALL_COMMAND true
BUILD_BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/vendor/editline/src/project_editline-build/src/.libs/libeditline.a
)
endif ( MINGW )
ExternalProject_Add_Step(project_editline autogen
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline/autogen.sh
DEPENDERS configure
)

ExternalProject_Get_Property(project_editline binary_dir)

add_library(editline STATIC IMPORTED)
set_property(TARGET editline PROPERTY IMPORTED_LOCATION ${binary_dir}/src/.libs/libeditline${CMAKE_STATIC_LIBRARY_SUFFIX})
set_property(TARGET editline PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/vendor/editline/include)
add_dependencies(editline project_editline)
install( FILES ${binary_dir}/src/.libs/libeditline${CMAKE_STATIC_LIBRARY_SUFFIX} DESTINATION lib/cryptonomex )
endif ( MSVC )
# End configure editline

IF( WIN32 )
MESSAGE(STATUS "Configuring fc to build on Win32")

Expand Down Expand Up @@ -161,17 +210,20 @@ set( fc_sources
src/variant.cpp
src/exception.cpp
src/variant_object.cpp
src/static_variant.cpp
src/thread/thread.cpp
src/thread/thread_specific.cpp
src/thread/future.cpp
src/thread/task.cpp
src/thread/spin_lock.cpp
src/thread/spin_yield_lock.cpp
src/thread/mutex.cpp
src/thread/parallel.cpp
src/thread/non_preemptable_scope_check.cpp
src/asio.cpp
src/string.cpp
src/shared_ptr.cpp
src/stacktrace.cpp
src/time.cpp
src/utf8.cpp
src/io/iostream.cpp
Expand All @@ -183,7 +235,6 @@ set( fc_sources
src/io/varint.cpp
src/io/console.cpp
src/filesystem.cpp
src/interprocess/process.cpp
src/interprocess/signals.cpp
src/interprocess/file_mapping.cpp
src/interprocess/mmap_struct.cpp
Expand All @@ -206,7 +257,6 @@ set( fc_sources
src/crypto/aes.cpp
src/crypto/crc.cpp
src/crypto/city.cpp
src/crypto/base32.cpp
src/crypto/base36.cpp
src/crypto/base58.cpp
src/crypto/base64.cpp
Expand All @@ -220,7 +270,6 @@ set( fc_sources
src/crypto/dh.cpp
src/crypto/blowfish.cpp
src/crypto/elliptic_common.cpp
src/crypto/equihash.cpp
${ECC_REST}
src/crypto/elliptic_${ECC_IMPL}.cpp
src/crypto/rand.cpp
Expand All @@ -229,16 +278,11 @@ set( fc_sources
src/network/http/http_connection.cpp
src/network/http/http_server.cpp
src/network/http/websocket.cpp
src/network/ntp.cpp
src/network/ip.cpp
src/network/rate_limiting.cpp
src/network/resolve.cpp
src/network/url.cpp
src/network/gntp.cpp
src/compress/smaz.cpp
src/compress/zlib.cpp
vendor/cyoencode-1.0.2/src/CyoDecode.c
vendor/cyoencode-1.0.2/src/CyoEncode.c
)

file( GLOB_RECURSE fc_headers ${CMAKE_CURRENT_SOURCE_DIR} *.hpp *.h )
Expand All @@ -251,32 +295,23 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/git_revision.cpp.in" "${CMAKE_CU
list(APPEND sources "${CMAKE_CURRENT_BINARY_DIR}/git_revision.cpp")
list(APPEND sources ${fc_headers})

add_subdirectory( vendor/websocketpp )
add_subdirectory( vendor/equihash )

setup_library( fc SOURCES ${sources} LIBRARY_TYPE STATIC DONT_INSTALL_LIBRARY )
add_subdirectory( vendor/websocketpp EXCLUDE_FROM_ALL )

# begin readline stuff
find_package(Curses)
find_package(Readline)
setup_library( fc SOURCES ${sources} LIBRARY_TYPE STATIC )
install( DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION include )

file(GLOB HEADERS "include/bts/cli/*.hpp")

if (READLINE_FOUND)
target_compile_definitions (fc PRIVATE HAVE_READLINE)
set(readline_libraries ${Readline_LIBRARY})
if (CURSES_FOUND)
list(APPEND readline_libraries ${CURSES_LIBRARY})
endif()
set(readline_includes ${Readline_INCLUDE_DIR})
endif()
# begin editline stuff
if(NOT MSVC)
target_compile_definitions (fc PRIVATE HAVE_EDITLINE)
set(editline_libraries editline)
endif(NOT MSVC)
if(WIN32)
target_compile_definitions( fc PRIVATE _CRT_NONSTDC_NO_DEPRECATE )
endif(WIN32)
# end readline stuff
# end editline stuff

if( NOT CPP_STANDARD )
set( CPP_STANDARD, "-std=c++11" )
set( CPP_STANDARD "-std=c++11" )
endif()

IF(WIN32)
Expand Down Expand Up @@ -306,6 +341,12 @@ ELSE()
target_compile_options(fc PUBLIC ${CPP_STANDARD} -Wall -fnon-call-exceptions)
endif()
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STANDARD} -Wall -fnon-call-exceptions")

if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
if( CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 4.0.0 OR CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.0.0 )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-invalid-partial-specialization" )
endif()
endif()
ENDIF()
ENDIF()

Expand All @@ -327,15 +368,6 @@ else()
set( ZLIB_LIBRARIES "" )
endif( ZLIB_FOUND )

find_package( BZip2 )
if( BZIP2_FOUND )
MESSAGE( STATUS "bzip2 found" )
add_definitions( -DHAS_BZIP2 )
else()
MESSAGE( STATUS "bzip2 not found" )
set( BZIP2_LIBRARIES "" )
endif( BZIP2_FOUND )

# This will become unnecessary once we update to websocketpp which fixes upstream issue #395
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWEBSOCKETPP_STRICT_MASKING")

Expand All @@ -361,20 +393,15 @@ target_include_directories(fc
${OPENSSL_INCLUDE_DIR}
"vendor/diff-match-patch-cpp-stl"
${CMAKE_CURRENT_SOURCE_DIR}/vendor/websocketpp
"${readline_includes}"

PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/vendor/boost_1.51/include
${CMAKE_CURRENT_SOURCE_DIR}/vendor/cyoencode-1.0.2/src
${CMAKE_CURRENT_SOURCE_DIR}/vendor/secp256k1-zkp
${CMAKE_CURRENT_SOURCE_DIR}/vendor/equihash
)

#target_link_libraries( fc PUBLIC ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${PLATFORM_SPECIFIC_LIBS} ${RPCRT4} ${CMAKE_DL_LIBS} ${rt_library} ${ECC_LIB} )
IF(NOT WIN32)
set(LINK_USR_LOCAL_LIB -L/usr/local/lib)
ENDIF()
target_link_libraries( fc PUBLIC ${LINK_USR_LOCAL_LIB} equihash ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${PLATFORM_SPECIFIC_LIBS} ${RPCRT4} ${CMAKE_DL_LIBS} ${rt_library} ${readline_libraries} ${ECC_LIB} )
target_link_libraries( fc PUBLIC ${LINK_USR_LOCAL_LIB} ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES} ${PLATFORM_SPECIFIC_LIBS} ${RPCRT4} ${CMAKE_DL_LIBS} ${rt_library} ${editline_libraries} ${ECC_LIB} )

if(MSVC)
set_source_files_properties( src/network/http/websocket.cpp PROPERTIES COMPILE_FLAGS "/bigobj" )
Expand All @@ -390,7 +417,6 @@ ENDIF(MSVC)
ENDIF()

include_directories( vendor/websocketpp )
include_directories( vendor/equihash )

add_subdirectory(tests)

Expand Down Expand Up @@ -487,10 +513,12 @@ ENDIF()
IF("${OPENSSL_ROOT_DIR}" STREQUAL "")
get_filename_component(OPENSSL_ROOT_DIR "${OPENSSL_INCLUDE_DIR}/.." REALPATH)
ENDIF()
SET(OPENSSL_CONF_SOURCE "${OPENSSL_ROOT_DIR}/ssl/openssl.cnf")
IF(MINGW)
SET(OPENSSL_CONF_SOURCE "${OPENSSL_ROOT_DIR}/openssl.cnf")
ENDIF(MINGW)
IF("${OPENSSL_CONF_SOURCE}" STREQUAL "")
SET(OPENSSL_CONF_SOURCE "${OPENSSL_ROOT_DIR}/ssl/openssl.cnf")
IF(MINGW)
SET(OPENSSL_CONF_SOURCE "${OPENSSL_ROOT_DIR}/openssl.cnf")
ENDIF(MINGW)
ENDIF()
SET(POST_BUILD_STEP_COMMANDS ${POST_BUILD_STEP_COMMANDS}
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${OPENSSL_CONF_SOURCE}" "${OPENSSL_CONF_TARGET}/openssl.cnf")
ENDIF(WIN32)
Expand Down
49 changes: 0 additions & 49 deletions CMakeModules/FindReadline.cmake

This file was deleted.

Loading