mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-08-31 15:38:13 +02:00
move vendor/secp256k1-0.3.0 to vendor/secp256k1/repo
This commit is contained in:
parent
e8ee3fc0de
commit
9587586968
132 changed files with 0 additions and 0 deletions
14
vendor/secp256k1/repo/cmake/Check64bitAssembly.cmake
vendored
Normal file
14
vendor/secp256k1/repo/cmake/Check64bitAssembly.cmake
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
include(CheckCSourceCompiles)
|
||||
|
||||
function(check_64bit_assembly)
|
||||
check_c_source_compiles("
|
||||
#include <stdint.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
uint64_t a = 11, tmp;
|
||||
__asm__ __volatile__(\"movq $0x100000000,%1; mulq %%rsi\" : \"+a\"(a) : \"S\"(tmp) : \"cc\", \"%rdx\");
|
||||
}
|
||||
" HAS_64BIT_ASM)
|
||||
set(HAS_64BIT_ASM ${HAS_64BIT_ASM} PARENT_SCOPE)
|
||||
endfunction()
|
||||
12
vendor/secp256k1/repo/cmake/CheckStringOptionValue.cmake
vendored
Normal file
12
vendor/secp256k1/repo/cmake/CheckStringOptionValue.cmake
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
function(check_string_option_value option)
|
||||
get_property(expected_values CACHE ${option} PROPERTY STRINGS)
|
||||
if(expected_values)
|
||||
foreach(value IN LISTS expected_values)
|
||||
if(value STREQUAL "${${option}}")
|
||||
return()
|
||||
endif()
|
||||
endforeach()
|
||||
message(FATAL_ERROR "${option} value is \"${${option}}\", but must be one of ${expected_values}.")
|
||||
endif()
|
||||
message(AUTHOR_WARNING "The STRINGS property must be set before invoking `check_string_option_value' function.")
|
||||
endfunction()
|
||||
41
vendor/secp256k1/repo/cmake/FindValgrind.cmake
vendored
Normal file
41
vendor/secp256k1/repo/cmake/FindValgrind.cmake
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
|
||||
find_program(BREW_COMMAND brew)
|
||||
execute_process(
|
||||
COMMAND ${BREW_COMMAND} --prefix valgrind
|
||||
OUTPUT_VARIABLE valgrind_brew_prefix
|
||||
ERROR_QUIET
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
endif()
|
||||
|
||||
set(hints_paths)
|
||||
if(valgrind_brew_prefix)
|
||||
set(hints_paths ${valgrind_brew_prefix}/include)
|
||||
endif()
|
||||
|
||||
find_path(Valgrind_INCLUDE_DIR
|
||||
NAMES valgrind/memcheck.h
|
||||
HINTS ${hints_paths}
|
||||
)
|
||||
|
||||
if(Valgrind_INCLUDE_DIR)
|
||||
include(CheckCSourceCompiles)
|
||||
set(CMAKE_REQUIRED_INCLUDES ${Valgrind_INCLUDE_DIR})
|
||||
check_c_source_compiles("
|
||||
#include <valgrind/memcheck.h>
|
||||
#if defined(NVALGRIND)
|
||||
# error \"Valgrind does not support this platform.\"
|
||||
#endif
|
||||
|
||||
int main() {}
|
||||
" Valgrind_WORKS)
|
||||
endif()
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Valgrind
|
||||
REQUIRED_VARS Valgrind_INCLUDE_DIR Valgrind_WORKS
|
||||
)
|
||||
|
||||
mark_as_advanced(
|
||||
Valgrind_INCLUDE_DIR
|
||||
)
|
||||
23
vendor/secp256k1/repo/cmake/TryAddCompileOption.cmake
vendored
Normal file
23
vendor/secp256k1/repo/cmake/TryAddCompileOption.cmake
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
include(CheckCCompilerFlag)
|
||||
|
||||
function(try_add_compile_option option)
|
||||
string(MAKE_C_IDENTIFIER ${option} result)
|
||||
string(TOUPPER ${result} result)
|
||||
set(result "C_SUPPORTS${result}")
|
||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
||||
if(NOT MSVC)
|
||||
set(CMAKE_REQUIRED_FLAGS "-Werror")
|
||||
endif()
|
||||
check_c_compiler_flag(${option} ${result})
|
||||
if(${result})
|
||||
get_property(compile_options
|
||||
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
PROPERTY COMPILE_OPTIONS
|
||||
)
|
||||
list(APPEND compile_options "${option}")
|
||||
set_property(
|
||||
DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
PROPERTY COMPILE_OPTIONS "${compile_options}"
|
||||
)
|
||||
endif()
|
||||
endfunction()
|
||||
3
vendor/secp256k1/repo/cmake/arm-linux-gnueabihf.toolchain.cmake
vendored
Normal file
3
vendor/secp256k1/repo/cmake/arm-linux-gnueabihf.toolchain.cmake
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
set(CMAKE_SYSTEM_NAME Linux)
|
||||
set(CMAKE_SYSTEM_PROCESSOR arm)
|
||||
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
|
||||
5
vendor/secp256k1/repo/cmake/config.cmake.in
vendored
Normal file
5
vendor/secp256k1/repo/cmake/config.cmake.in
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
@PACKAGE_INIT@
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake")
|
||||
|
||||
check_required_components(@PROJECT_NAME@)
|
||||
3
vendor/secp256k1/repo/cmake/x86_64-w64-mingw32.toolchain.cmake
vendored
Normal file
3
vendor/secp256k1/repo/cmake/x86_64-w64-mingw32.toolchain.cmake
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
set(CMAKE_SYSTEM_NAME Windows)
|
||||
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||
set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc)
|
||||
Loading…
Add table
Add a link
Reference in a new issue