Skip to content

Commit 7b2f78d

Browse files
committed
Merge remote-tracking branch 'cryptonote/master'
2 parents 76dd807 + 8edd998 commit 7b2f78d

File tree

1,347 files changed

+212071
-91938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,347 files changed

+212071
-91938
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
.DS_Store
22
/build
33
/tags
4+
.idea
5+
.ycm_extra_conf.py
6+
.ycm_extra_conf.pyc
7+
Release
8+
Debug

CMakeLists.txt

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,20 @@ set(VERSION "0.1")
44
# $Format:Packaged from commit %H%nset(COMMIT %h)%nset(REFS "%d")$
55

66
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
7-
set(CMAKE_CONFIGURATION_TYPES "Debug;Release")
7+
set(CMAKE_CONFIGURATION_TYPES Debug RelWithDebInfo Release CACHE TYPE INTERNAL)
8+
set(CMAKE_SKIP_INSTALL_RULES ON)
9+
set(CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY ON)
10+
set(CMAKE_SUPPRESS_REGENERATION ON)
811
enable_testing()
12+
# copy CTestCustom.cmake to build dir to disable long running tests in 'make test'
13+
configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR})
914

10-
include_directories(include src contrib/epee/include external "${CMAKE_BINARY_DIR}/version")
15+
project(DigitalNote)
16+
17+
include_directories(include src external "${CMAKE_BINARY_DIR}/version")
1118
if(APPLE)
1219
include_directories(SYSTEM /usr/include/malloc)
20+
enable_language(ASM)
1321
endif()
1422

1523
if(MSVC)
@@ -20,26 +28,30 @@ else()
2028
include_directories(src/Platform/Linux)
2129
endif()
2230

23-
2431
set(STATIC ${MSVC} CACHE BOOL "Link libraries statically")
2532

2633
if(MSVC)
2734
add_definitions("/bigobj /MP /W3 /GS- /D_CRT_SECURE_NO_WARNINGS /wd4996 /wd4345 /D_WIN32_WINNT=0x0600 /DWIN32_LEAN_AND_MEAN /DGTEST_HAS_TR1_TUPLE=0 /D_VARIADIC_MAX=8 /D__SSE4_1__")
2835
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10485760")
2936
if(STATIC)
30-
foreach(VAR CMAKE_C_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO)
37+
foreach(VAR CMAKE_C_FLAGS_DEBUG CMAKE_CXX_FLAGS_DEBUG CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELWITHDEBINFO CMAKE_C_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELEASE)
3138
string(REPLACE "/MD" "/MT" ${VAR} "${${VAR}}")
3239
endforeach()
3340
endif()
3441
include_directories(SYSTEM src/platform/msc)
3542
else()
43+
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
44+
# This option has no effect in glibc version less than 2.20.
45+
# Since glibc 2.20 _BSD_SOURCE is deprecated, this macro is recomended instead
46+
add_definitions("-D_DEFAULT_SOURCE -D_GNU_SOURCE")
47+
endif()
3648
set(ARCH native CACHE STRING "CPU to build for: -march value or default")
3749
if("${ARCH}" STREQUAL "default")
3850
set(ARCH_FLAG "")
3951
else()
4052
set(ARCH_FLAG "-march=${ARCH}")
4153
endif()
42-
set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Werror -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 -Wno-error=unused-result")
54+
set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -Werror -Wno-error=extra -Wno-error=unused-function -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 -Wno-error=unused-result")
4355
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
4456
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 -Wno-error=unused-function")
4557
else()
@@ -52,15 +64,18 @@ else()
5264
else()
5365
set(MINGW_FLAG "")
5466
endif()
67+
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 5.1))
68+
set(WARNINGS "${WARNINGS} -Wno-error=odr")
69+
endif()
5570
set(C_WARNINGS "-Waggregate-return -Wnested-externs -Wold-style-definition -Wstrict-prototypes")
5671
set(CXX_WARNINGS "-Wno-reorder -Wno-missing-field-initializers")
57-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 -D_GNU_SOURCE ${MINGW_FLAG} ${WARNINGS} ${C_WARNINGS} ${ARCH_FLAG} -maes")
58-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_GNU_SOURCE ${MINGW_FLAG} ${WARNINGS} ${CXX_WARNINGS} ${ARCH_FLAG} -maes")
72+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 ${MINGW_FLAG} ${WARNINGS} ${C_WARNINGS} ${ARCH_FLAG} -maes")
73+
if(NOT APPLE)
74+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
75+
endif()
76+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${MINGW_FLAG} ${WARNINGS} ${CXX_WARNINGS} ${ARCH_FLAG} -maes")
5977
if(APPLE)
6078
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGTEST_HAS_TR1_TUPLE=0")
61-
else()
62-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
63-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
6479
endif()
6580
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.8))
6681
set(DEBUG_FLAGS "-g3 -Og")
@@ -70,6 +85,12 @@ else()
7085
set(RELEASE_FLAGS "-Ofast -DNDEBUG -Wno-unused-variable")
7186
if(NOT APPLE)
7287
# There is a clang bug that does not allow to compile code that uses AES-NI intrinsics if -flto is enabled
88+
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_NAME STREQUAL "Linux"
89+
AND CMAKE_BUILD_TYPE STREQUAL "Release" AND ((CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.9) OR (CMAKE_C_COMPILER_VERSION VERSION_EQUAL 4.9)))
90+
# On linux, to build in lto mode, check that ld.gold linker is used: 'update-alternatives --install /usr/bin/ld ld /usr/bin/ld.gold HIGHEST_PRIORITY'
91+
set(CMAKE_AR gcc-ar)
92+
set(CMAKE_RANLIB gcc-ranlib)
93+
endif()
7394
set(RELEASE_FLAGS "${RELEASE_FLAGS} -flto")
7495
endif()
7596
#if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT MINGW)
@@ -88,10 +109,7 @@ if(STATIC)
88109
set(Boost_USE_STATIC_LIBS ON)
89110
set(Boost_USE_STATIC_RUNTIME ON)
90111
endif()
91-
find_package(Boost 1.53 REQUIRED COMPONENTS system filesystem thread date_time chrono regex serialization program_options coroutine context)
92-
if((${Boost_MAJOR_VERSION} EQUAL 1) AND (${Boost_MINOR_VERSION} EQUAL 54))
93-
message(SEND_ERROR "Boost version 1.54 is unsupported, more details are available here http://goo.gl/RrCFmA")
94-
endif()
112+
find_package(Boost 1.55 REQUIRED COMPONENTS system filesystem thread date_time chrono regex serialization program_options)
95113
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
96114
if(MINGW)
97115
set(Boost_LIBRARIES "${Boost_LIBRARIES};ws2_32;mswsock")
@@ -127,7 +145,6 @@ else()
127145
endif()
128146
endif()
129147

130-
add_subdirectory(contrib)
131148
add_subdirectory(external)
132149
add_subdirectory(src)
133150
add_subdirectory(tests)

COPYING

Lines changed: 0 additions & 20 deletions
This file was deleted.

CTestCustom.cmake

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set(CTEST_CUSTOM_TESTS_IGNORE
2+
CoreTests
3+
IntegrationTestLibrary
4+
TestGenerator
5+
CryptoTests
6+
IntegrationTests
7+
NodeRpcProxyTests
8+
PerformanceTests
9+
TransfersTests
10+
)
11+

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Test suite: run `make test-release` to run tests in addition to building. Runnin
2525
Building with Clang: it may be possible to use Clang instead of GCC, but this may not work everywhere. To build, run `export CC=clang CXX=clang++` before running `make`.
2626

2727
### On Windows:
28-
Dependencies: MSVC 2012 or later, CMake 2.8.6 or later, and Boost 1.55 or later. You may download them from:
28+
Dependencies: MSVC 2013 or later, CMake 2.8.6 or later, and Boost 1.55 or later. You may download them from:
2929

3030
- http://www.microsoft.com/
3131
- http://www.cmake.org/
@@ -35,7 +35,7 @@ To build, change to a directory where this file is located, and run this command
3535
```
3636
mkdir build
3737
cd build
38-
cmake -G "Visual Studio 11 Win64" ..
38+
cmake -G "Visual Studio 12 Win64" ..
3939
```
4040

4141
And then do Build.

ReleaseNotes.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
Release notes 3.0.0-beta
2+
3+
- New industrial type wallet for services: walletd
4+
- New RPC-API for walletd
5+
- XDN addresses for services and processing centers: multi-addresses. Can use instead of Payment ID, like Bitcoin
6+
- Transactions pool synchronization
7+
- Network layer refactoring
8+
- Extra high wallet synchronization speed
9+
- New multithreading library
10+
- Improved console logging
11+
112
Release notes 2.0.0-beta
213

314
- DigitalNote

contrib/CMakeLists.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

contrib/epee/LICENSE.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

contrib/epee/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

contrib/epee/demo/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)