-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from NilFoundation/directly-include-parallel-cr…
…ypto3 Directly include parallel crypto3
- Loading branch information
Showing
357 changed files
with
79,653 additions
and
461 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 @@ | ||
CMakeLists.txt.user | ||
CMakeCache.txt | ||
CMakeFiles | ||
CMakeScripts | ||
Testing | ||
Makefile | ||
cmake_install.cmake | ||
install_manifest.txt | ||
compile_commands.json | ||
CTestTestfile.cmake | ||
_deps | ||
.cache | ||
build |
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,55 @@ | ||
cmake_minimum_required(VERSION 3.22 FATAL_ERROR) | ||
project(parallel-crypto3) | ||
|
||
find_package(CM) | ||
|
||
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug") | ||
set(CMAKE_CXX_FLAGS "-ggdb -O0") | ||
endif() | ||
|
||
# This is useful due to some build systems (Ninja in particular) are piping | ||
# compiler output and compiler switches it's output to plain text | ||
option (FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." FALSE) | ||
if (${FORCE_COLORED_OUTPUT}) | ||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | ||
add_compile_options (-fdiagnostics-color=always) | ||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | ||
add_compile_options (-fcolor-diagnostics) | ||
endif () | ||
endif () | ||
|
||
# The file compile_commands.json is generated in build directory, so LSP could | ||
# pick it up and guess all include paths, defines and other stuff. | ||
# If Nix is used, LSP could not guess the locations of implicit include | ||
# directories, so we need to include them explicitly. | ||
if(CMAKE_EXPORT_COMPILE_COMMANDS) | ||
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES | ||
${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES}) | ||
endif() | ||
|
||
# TODO: check what is actually required here | ||
include(CMConfig) | ||
include(CMDeploy) | ||
include(CMSetupVersion) | ||
|
||
# TODO: beutify entire cmake tree of parallel crypto3 modules the same way we did in origin crypto3 | ||
find_package(Boost REQUIRED COMPONENTS filesystem log program_options thread random unit_test_framework) | ||
find_package(crypto3 REQUIRED) | ||
|
||
# HACK: since there are no more crypto3::submodule targets, we have to ALIAS any used | ||
# target of such type to recently introduced crypto3::all target | ||
# TODO: update dependencies in actor modules | ||
add_library(crypto3::algebra ALIAS crypto3::all) | ||
add_library(crypto3::block ALIAS crypto3::all) | ||
add_library(crypto3::hash ALIAS crypto3::all) | ||
add_library(crypto3::multiprecision ALIAS crypto3::all) | ||
add_library(crypto3::random ALIAS crypto3::all) | ||
add_library(marshalling::core ALIAS crypto3::all) | ||
add_library(marshalling::crypto3_multiprecision ALIAS crypto3::all) | ||
add_library(marshalling::crypto3_algebra ALIAS crypto3::all) | ||
add_library(marshalling::crypto3_zk ALIAS crypto3::all) | ||
|
||
add_subdirectory(libs/parallelization-utils) | ||
add_subdirectory(libs/parallel-containers) | ||
add_subdirectory(libs/parallel-math) | ||
add_subdirectory(libs/parallel-zk) |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2024 =nil; Foundation | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.