forked from ConcealNetwork/conceal-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conceal CLI v.4.0.0
- Loading branch information
Showing
921 changed files
with
218,516 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"files.associations": { | ||
"random": "cpp", | ||
"algorithm": "cpp", | ||
"array": "cpp", | ||
"atomic": "cpp", | ||
"cctype": "cpp", | ||
"chrono": "cpp", | ||
"cmath": "cpp", | ||
"condition_variable": "cpp", | ||
"cstddef": "cpp", | ||
"cstdint": "cpp", | ||
"cstdio": "cpp", | ||
"cstdlib": "cpp", | ||
"cstring": "cpp", | ||
"ctime": "cpp", | ||
"cwchar": "cpp", | ||
"deque": "cpp", | ||
"exception": "cpp", | ||
"forward_list": "cpp", | ||
"fstream": "cpp", | ||
"functional": "cpp", | ||
"future": "cpp", | ||
"hash_map": "cpp", | ||
"hash_set": "cpp", | ||
"initializer_list": "cpp", | ||
"iomanip": "cpp", | ||
"ios": "cpp", | ||
"iosfwd": "cpp", | ||
"iostream": "cpp", | ||
"istream": "cpp", | ||
"iterator": "cpp", | ||
"limits": "cpp", | ||
"list": "cpp", | ||
"map": "cpp", | ||
"memory": "cpp", | ||
"mutex": "cpp", | ||
"new": "cpp", | ||
"numeric": "cpp", | ||
"ostream": "cpp", | ||
"queue": "cpp", | ||
"ratio": "cpp", | ||
"set": "cpp", | ||
"sstream": "cpp", | ||
"stack": "cpp", | ||
"stdexcept": "cpp", | ||
"streambuf": "cpp", | ||
"string": "cpp", | ||
"system_error": "cpp", | ||
"thread": "cpp", | ||
"tuple": "cpp", | ||
"type_traits": "cpp", | ||
"typeinfo": "cpp", | ||
"unordered_map": "cpp", | ||
"unordered_set": "cpp", | ||
"utility": "cpp", | ||
"vector": "cpp", | ||
"xfacet": "cpp", | ||
"xfunctional": "cpp", | ||
"xhash": "cpp", | ||
"xiosbase": "cpp", | ||
"xlocale": "cpp", | ||
"xlocinfo": "cpp", | ||
"xlocmon": "cpp", | ||
"xlocnum": "cpp", | ||
"xloctime": "cpp", | ||
"xmemory": "cpp", | ||
"xmemory0": "cpp", | ||
"xstddef": "cpp", | ||
"xstring": "cpp", | ||
"xtr1common": "cpp", | ||
"xtree": "cpp", | ||
"xutility": "cpp", | ||
"emmintrin.h": "c" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
cmake_minimum_required(VERSION 2.8.6) | ||
|
||
set(VERSION "0.1") | ||
# Packaged from main commits | ||
set(COMMIT 72946d9) | ||
set(REFS " (HEAD -> master)") | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
set(CMAKE_CONFIGURATION_TYPES Debug RelWithDebInfo Release CACHE TYPE INTERNAL) | ||
set(CMAKE_SKIP_INSTALL_RULES ON) | ||
set(CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY ON) | ||
set(CMAKE_SUPPRESS_REGENERATION ON) | ||
enable_testing() | ||
# copy CTestCustom.cmake to build dir to disable long running tests in 'make test' | ||
configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR}) | ||
|
||
project(concealX) | ||
|
||
include_directories(include src external "${CMAKE_BINARY_DIR}/version") | ||
if(APPLE) | ||
include_directories(SYSTEM /usr/include/malloc) | ||
enable_language(ASM) | ||
endif() | ||
|
||
if(MSVC) | ||
include_directories(src/Platform/Windows) | ||
elseif(APPLE) | ||
include_directories(src/Platform/OSX) | ||
else() | ||
include_directories(src/Platform/Linux) | ||
endif() | ||
|
||
set(STATIC ${MSVC} CACHE BOOL "Link libraries statically") | ||
|
||
if(MSVC) | ||
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__") | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:10485760") | ||
if(STATIC) | ||
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) | ||
string(REPLACE "/MD" "/MT" ${VAR} "${${VAR}}") | ||
endforeach() | ||
endif() | ||
include_directories(SYSTEM src/platform/msc) | ||
else() | ||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") | ||
# This option has no effect in glibc version less than 2.20. | ||
# Since glibc 2.20 _BSD_SOURCE is deprecated, this macro is recomended instead | ||
add_definitions("-D_DEFAULT_SOURCE -D_GNU_SOURCE") | ||
endif() | ||
set(ARCH native CACHE STRING "CPU to build for: -march value or default") | ||
if("${ARCH}" STREQUAL "default") | ||
set(ARCH_FLAG "") | ||
else() | ||
set(ARCH_FLAG "-march=${ARCH}") | ||
endif() | ||
set(WARNINGS "-Wall -Wextra -Wpointer-arith -Wundef -Wvla -Wwrite-strings -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") | ||
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 -Wno-error=unused-function") | ||
else() | ||
set(WARNINGS "${WARNINGS} -Wlogical-op -Wno-error=maybe-uninitialized -Wno-error=clobbered -Wno-error=unused-but-set-variable") | ||
endif() | ||
if(MINGW) | ||
set(WARNINGS "${WARNINGS} -Wno-error=unused-value") | ||
set(MINGW_FLAG "-DWIN32_LEAN_AND_MEAN") | ||
include_directories(SYSTEM src/platform/mingw) | ||
else() | ||
set(MINGW_FLAG "") | ||
endif() | ||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 5.1)) | ||
set(WARNINGS "${WARNINGS} -Wno-error=odr") | ||
endif() | ||
set(C_WARNINGS "-Waggregate-return -Wnested-externs -Wold-style-definition -Wstrict-prototypes") | ||
set(CXX_WARNINGS "-Wno-reorder -Wno-missing-field-initializers") | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c11 ${MINGW_FLAG} ${WARNINGS} ${C_WARNINGS} ${ARCH_FLAG} -maes") | ||
if(NOT APPLE) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") | ||
endif() | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 ${MINGW_FLAG} ${WARNINGS} ${CXX_WARNINGS} ${ARCH_FLAG} -maes") | ||
if(APPLE) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DGTEST_HAS_TR1_TUPLE=0") | ||
endif() | ||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.8)) | ||
set(DEBUG_FLAGS "-g3 -Og") | ||
else() | ||
set(DEBUG_FLAGS "-g3 -O0") | ||
endif() | ||
set(RELEASE_FLAGS "-Ofast -DNDEBUG -Wno-unused-variable") | ||
if(NOT APPLE) | ||
# There is a clang bug that does not allow to compile code that uses AES-NI intrinsics if -flto is enabled | ||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_NAME STREQUAL "Linux" | ||
AND CMAKE_BUILD_TYPE STREQUAL "Release" AND ((CMAKE_C_COMPILER_VERSION VERSION_GREATER 4.9) OR (CMAKE_C_COMPILER_VERSION VERSION_EQUAL 4.9))) | ||
# 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' | ||
set(CMAKE_AR gcc-ar) | ||
set(CMAKE_RANLIB gcc-ranlib) | ||
endif() | ||
set(RELEASE_FLAGS "${RELEASE_FLAGS} -flto") | ||
endif() | ||
#if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT MINGW) | ||
# set(RELEASE_FLAGS "${RELEASE_FLAGS} -fno-fat-lto-objects") | ||
#endif() | ||
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${DEBUG_FLAGS}") | ||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEBUG_FLAGS}") | ||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${RELEASE_FLAGS}") | ||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${RELEASE_FLAGS}") | ||
if(STATIC AND NOT APPLE) | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++") | ||
endif() | ||
endif() | ||
|
||
if(STATIC) | ||
set(Boost_USE_STATIC_LIBS ON) | ||
set(Boost_USE_STATIC_RUNTIME ON) | ||
endif() | ||
|
||
#set(Boost_DEBUG on) | ||
find_package(Boost 1.55 REQUIRED COMPONENTS system filesystem thread date_time chrono regex serialization program_options) | ||
include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) | ||
|
||
if(MINGW) | ||
set(Boost_LIBRARIES "${Boost_LIBRARIES};ws2_32;mswsock") | ||
elseif(APPLE) | ||
set(Boost_LIBRARIES "${Boost_LIBRARIES}") | ||
elseif(NOT MSVC) | ||
set(Boost_LIBRARIES "${Boost_LIBRARIES};rt") | ||
endif() | ||
|
||
set(COMMIT_ID_IN_VERSION ON CACHE BOOL "Include commit ID in version") | ||
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/version") | ||
if (NOT COMMIT_ID_IN_VERSION) | ||
set(VERSION "${VERSION}-unknown") | ||
configure_file("src/version.h.in" "version/version.h") | ||
add_custom_target(version ALL) | ||
elseif(DEFINED COMMIT) | ||
string(REPLACE "." "\\." VERSION_RE "${VERSION}") | ||
if(NOT REFS MATCHES "(\\(|, )tag: v${VERSION_RE}(\\)|, )") | ||
set(VERSION "${VERSION}-g${COMMIT}") | ||
endif() | ||
configure_file("src/version.h.in" "version/version.h") | ||
add_custom_target(version ALL) | ||
else() | ||
find_package(Git QUIET) | ||
if(Git_FOUND OR GIT_FOUND) | ||
message(STATUS "Found Git: ${GIT_EXECUTABLE}") | ||
add_custom_target(version ALL "${CMAKE_COMMAND}" "-D" "VERSION=${VERSION}" "-D" "GIT=${GIT_EXECUTABLE}" "-D" "TO=${CMAKE_BINARY_DIR}/version/version.h" "-P" "src/version.cmake" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}") | ||
else() | ||
message(STATUS "WARNING: Git was not found!") | ||
set(VERSION "${VERSION}-unknown") | ||
configure_file("src/version.h.in" "version/version.h") | ||
add_custom_target(version ALL) | ||
endif() | ||
endif() | ||
|
||
add_subdirectory(external) | ||
add_subdirectory(src) | ||
#add_subdirectory(tests) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<b>Development Process</b> | ||
|
||
Developers work in their own trees, then submit pull requests when they think their feature or bug fix is ready. | ||
|
||
The patch will be accepted if there is broad consensus that it is a good thing. Developers should expect to rework and resubmit patches if they don't match the project's coding conventions or are controversial. | ||
|
||
The master branch is regularly built and tested, but is not guaranteed to be completely stable. Tags are regularly created to indicate new official, stable release versions of Litecoin. | ||
|
||
Feature branches are created when there are major new features being worked on by several people. | ||
|
||
From time to time a pull request will become outdated. If this occurs, and the pull is no longer automatically mergeable; a comment on the pull will be used to issue a warning of closure. The pull will be closed 15 days after the warning if action is not taken by the author. Pull requests closed in this manner will have their corresponding issue labeled 'stagnant'. | ||
|
||
Issues with no commits will be given a similar warning, and closed after 15 days from their last activity. Issues closed in this manner will be labelled 'stale'. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set(CTEST_CUSTOM_TESTS_IGNORE | ||
CoreTests | ||
IntegrationTestLibrary | ||
TestGenerator | ||
CryptoTests | ||
IntegrationTests | ||
NodeRpcProxyTests | ||
PerformanceTests | ||
TransfersTests | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
all: all-release | ||
|
||
cmake-debug: | ||
mkdir -p build/debug | ||
cd build/debug && cmake -D CMAKE_BUILD_TYPE=Debug ../.. | ||
|
||
build-debug: cmake-debug | ||
cd build/debug && $(MAKE) | ||
|
||
test-debug: build-debug | ||
cd build/debug && $(MAKE) test | ||
|
||
all-debug: build-debug | ||
|
||
cmake-release: | ||
mkdir -p build/release | ||
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../.. | ||
|
||
build-release: cmake-release | ||
cd build/release && $(MAKE) | ||
|
||
build-static: | ||
mkdir -p build/static | ||
cd build/static && cmake -D CMAKE_BUILD_TYPE=Release ../.. | ||
cd build/static && $(MAKE) SHARED=0 CC='gcc -static' | ||
|
||
test-release: build-release | ||
cd build/release && $(MAKE) test | ||
|
||
all-release: build-release | ||
|
||
clean: | ||
rm -rf build | ||
|
||
tags: | ||
ctags -R --sort=1 --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ src contrib tests/gtest | ||
|
||
.PHONY: all cmake-debug build-debug test-debug all-debug cmake-release build-release test-release all-release clean tags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
|
||
# Conceal - CCX CLI | ||
# CONCEAL ORION - CCX CLI v.4.0.0 (Major Release) | ||
|
||
Maintained by The Circle Team. | ||
|
||
Join our community, https://discord.gg/YbpHVSd | ||
|
||
<h3>We are relaunching with a major new release on Sunday, June 24.</h3> | ||
<b>How to compile on *nix?</b> | ||
|
||
<h2><a href="https://www.timeanddate.com/countdown/generic?p0=1440&iso=20180624T13&msg=Conceal%20Orion%20Launch" target="_blank">Countdown to launch</a></h2> | ||
|
||
<h2><a href="https://bitcointalk.org/index.php?topic=4515873.msg40658703" target="_blank">Bitcointalk announcement</a></h2> | ||
|
||
Thanks for your support. | ||
``` | ||
git clone https://github.com/TheCircleFoundation/concealx.git | ||
cd concealx | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cd .. | ||
make | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
set(UPNPC_BUILD_STATIC ON CACHE BOOL "Build static library") | ||
set(UPNPC_BUILD_SHARED OFF CACHE BOOL "Build shared library") | ||
set(UPNPC_BUILD_TESTS OFF CACHE BOOL "Build test executables") | ||
|
||
add_subdirectory(miniupnpc) | ||
add_subdirectory(gtest) | ||
|
||
set_property(TARGET upnpc-static gtest gtest_main PROPERTY FOLDER "external") | ||
|
||
if(MSVC) | ||
set_property(TARGET upnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -wd4244 -wd4267") | ||
elseif(NOT MSVC) | ||
set_property(TARGET upnpc-static APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-undef -Wno-unused-result -Wno-unused-value") | ||
endif() |
Oops, something went wrong.