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

BlockchainDB merge #256

Merged
merged 32 commits into from Apr 8, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
eabb519
2014 network limit 1.0a +utils +toc -doc -drmonero
rfree2monero Jan 5, 2015
5ce4256
2014 network limit 1.1 +utils +toc -doc -drmonero
rfree2monero Feb 12, 2015
39fc63f
removed not needed <netinet/in.h>
rfree2monero Feb 12, 2015
0f06dca
fixed size_t on windows
rfree2monero Feb 12, 2015
ae2a506
2014 network limit 1.2 +utils +toc -doc -drmonero
rfree2monero Feb 20, 2015
0198ffb
2014 network limit 1.3 fix log/path/data +utils
rfree2monero Feb 24, 2015
f79821a
fix locking in count-peers thread (2)
rfree2monero Feb 24, 2015
a0590d2
Restore daemon interactive mode
tewinget Mar 27, 2015
b0151de
Merge pull request #248
fluffypony Mar 30, 2015
3cbdf19
Merge remote-tracking branch 'monero-official/master' into network-1.…
rfree2monero Apr 1, 2015
c511abf
remerged; commands JSON. logging upgrade. doxygen
rfree2monero Apr 1, 2015
f9dba47
added windows_stream.* console colors
rfree2monero Apr 1, 2015
1489310
doxygen related tool
rfree2monero Apr 1, 2015
2900b1e
doxygen files
rfree2monero Apr 1, 2015
a3b2226
my changelog
rfree2monero Apr 1, 2015
162c993
Network 1.6: network limits, logging, +doxy
rfree2monero Apr 1, 2015
44f4234
[fix] mac os x includes std::random...
rfree2monero Apr 1, 2015
1f49833
update unbound from upstream
fluffypony Apr 2, 2015
0823c98
update hardcoded fallback seeds
fluffypony Apr 2, 2015
391c7f9
Utils: use const, document dbg. Less default debug
rfree2monero Apr 2, 2015
c0de96f
Fixed DNS resolution bug in Windows
tewinget Apr 2, 2015
618f20c
Network 1.7; Quieted the debug a bit.
rfree2monero Apr 2, 2015
ea32a84
Merge pull request #251
fluffypony Apr 2, 2015
6f0d930
Merge pull request #252
fluffypony Apr 2, 2015
8d4772f
reinstate accidentally removed CMakeLists
fluffypony Apr 4, 2015
7172bda
minor CMakeLists fix for Unbound, ldns -> sldns
fluffypony Apr 4, 2015
f2e8348
triangular distribution to choose recent outputs more often for mixins
iamsmooth Apr 5, 2015
83ddc94
handle unlikely rounding up after sqrt
iamsmooth Apr 5, 2015
4fb0996
Merge pull request #255
fluffypony Apr 5, 2015
b2b6127
no newline at end of file
fluffypony Apr 5, 2015
cbddb5f
updated unbound cmake for static builds
fluffypony Apr 6, 2015
a8bc718
Merge BlockchainDB into upstream
tewinget Apr 7, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
81 changes: 81 additions & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@
/doc
/build
/tags
log/

# vim swap files
*.swp
Expand All @@ -19,5 +20,85 @@ cscope.out
cscope.in.out
cscope.po.out

external/miniupnpc/Makefile
miniupnpcstrings.h
version/
# Created by https://www.gitignore.io

### C++ ###
# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app


### CMake ###
CMakeCache.txt
CMakeFiles
cmake_install.cmake
install_manifest.txt
*.cmake

### Linux ###
*~

# KDE directory preferences
.directory


### Eclipse ###
*.pydevproject
.metadata
.gradle
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

# sbteclipse plugin
.target

# TeXlipse plugin
.texlipse

46 changes: 43 additions & 3 deletions CMakeLists.txt
Expand Up @@ -51,7 +51,7 @@ list(INSERT CMAKE_MODULE_PATH 0
if (NOT DEFINED ENV{DEVELOPER_LOCAL_TOOLS})
message(STATUS "Could not find DEVELOPER_LOCAL_TOOLS in env (not required)")
set(BOOST_IGNORE_SYSTEM_PATHS_DEFAULT OFF)
elseif (ENV{DEVELOPER_LOCAL_TOOLS} EQUAL 1)
elseif ("$ENV{DEVELOPER_LOCAL_TOOLS}" EQUAL 1)
message(STATUS "Found: env DEVELOPER_LOCAL_TOOLS = 1")
set(BOOST_IGNORE_SYSTEM_PATHS_DEFAULT ON)
else()
Expand All @@ -62,9 +62,23 @@ endif()
message(STATUS "BOOST_IGNORE_SYSTEM_PATHS defaults to ${BOOST_IGNORE_SYSTEM_PATHS_DEFAULT}")
option(BOOST_IGNORE_SYSTEM_PATHS "Ignore boost system paths for local boost installation" ${BOOST_IGNORE_SYSTEM_PATHS_DEFAULT})


if (NOT DEFINED ENV{DEVELOPER_LIBUNBOUND_OLD})
message(STATUS "Could not find DEVELOPER_LIBUNBOUND_OLD in env (not required)")
elseif ("$ENV{DEVELOPER_LIBUNBOUND_OLD}" EQUAL 1)
message(STATUS "Found: env DEVELOPER_LIBUNBOUND_OLD = 1, will use the work around")
add_definitions(-DDEVELOPER_LIBUNBOUND_OLD)
elseif ("$ENV{DEVELOPER_LIBUNBOUND_OLD}" EQUAL 0)
message(STATUS "Found: env DEVELOPER_LIBUNBOUND_OLD = 0")
else()
message(STATUS "Found: env DEVELOPER_LIBUNBOUND_OLD with bad value. Will NOT use the work around")
endif()

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
enable_testing()

option(BUILD_DOCUMENTATION "Build the Doxygen documentation." ON)

# Check whether we're on a 32-bit or 64-bit system
if(CMAKE_SIZEOF_VOID_P EQUAL "8")
set(DEFAULT_BUILD_64 ON)
Expand Down Expand Up @@ -201,7 +215,7 @@ else()
endif()
set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Wno-error=extra -Wno-error=deprecated-declarations -Wno-error=sign-compare -Wno-error=strict-aliasing -Wno-error=type-limits -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=undef -Wno-error=uninitialized")
if(NOT MINGW)
set(WARNINGS "${WARNINGS} -Werror")
set(WARNINGS "${WARNINGS} -Werror") # to allow pedantic but not stop compilation
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
set(WARNINGS "${WARNINGS} -Wno-error=mismatched-tags -Wno-error=null-conversion -Wno-overloaded-shift-op-parentheses -Wno-error=shift-count-overflow -Wno-error=tautological-constant-out-of-range-compare -Wno-error=unused-private-field -Wno-error=unneeded-internal-declaration")
Expand Down Expand Up @@ -286,7 +300,7 @@ else()
endif()
endif()

if (BOOST_IGNORE_SYSTEM_PATHS)
if (${BOOST_IGNORE_SYSTEM_PATHS} STREQUAL "ON")
set(Boost_NO_SYSTEM_PATHS TRUE)
endif()

Expand Down Expand Up @@ -322,8 +336,34 @@ endif()

include(version.cmake)

add_subdirectory(contrib)
add_subdirectory(src)

if(BUILD_TESTS)
add_subdirectory(tests)
endif()



if(BUILD_DOCUMENTATION)
set(DOC_GRAPHS "YES" CACHE STRING "Create dependency graphs (needs graphviz)")
set(DOC_FULLGRAPHS "NO" CACHE STRING "Create call/callee graphs (large)")

find_program(DOT_PATH dot)

if (DOT_PATH STREQUAL "DOT_PATH-NOTFOUND")
message("Doxygen: graphviz not found - graphs disabled")
set(DOC_GRAPHS "NO")
endif()

find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file("cmake/Doxyfile.in" "Doxyfile" @ONLY)
configure_file("cmake/Doxygen.extra.css.in" "Doxygen.extra.css" @ONLY)
add_custom_target(doc
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen.." VERBATIM)
endif()
endif()