-
Notifications
You must be signed in to change notification settings - Fork 13
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 #7 from hyperledger/feature/cmake-fixes
Cmake fixes; fix so library compilation error
- Loading branch information
Showing
31 changed files
with
318 additions
and
221 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
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
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
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,24 @@ | ||
{ | ||
global: | ||
ed25519_create_keypair; | ||
ed25519_derive_public_key; | ||
ed25519_sign; | ||
ed25519_verify; | ||
|
||
sha512_init; | ||
sha512_final; | ||
sha512_update; | ||
sha512; | ||
SHA_512_CONTEXT_SIZE; | ||
|
||
sha256_init; | ||
sha256_final; | ||
sha256_update; | ||
sha256; | ||
SHA_256_CONTEXT_SIZE; | ||
|
||
randombytes; | ||
|
||
|
||
local: *; | ||
}; |
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,24 +1,8 @@ | ||
function(configedimpl target) | ||
set_target_properties(${target} PROPERTIES EXCLUDE_FROM_ALL TRUE) | ||
|
||
install(TARGETS ${LIB} EXPORT ed25519Config | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
) | ||
|
||
target_include_directories(${target} PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:include> | ||
) | ||
endfunction() | ||
|
||
if(EDIMPL STREQUAL "amd64-64-24k") | ||
if(CAN_BUILD_AMD64) | ||
add_subdirectory(amd64-64-24k) | ||
elseif(EDIMPL STREQUAL "amd64-64-24k-pic") | ||
add_subdirectory(amd64-64-24k-pic) | ||
elseif(EDIMPL STREQUAL "ref10") | ||
add_subdirectory(ref10) | ||
else() | ||
message(FATAL_ERROR "No such EDIMPL implementation ${EDIMPL}") | ||
message(STATUS "amd64-64-24k targets are not available on your platform") | ||
endif() | ||
|
||
add_subdirectory(ref10) |
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,11 +1,6 @@ | ||
enable_language(ASM) | ||
set(LIB amd64-64-24k-pic) | ||
|
||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | ||
FILE(GLOB sources ${CMAKE_CURRENT_SOURCE_DIR}/*.c) | ||
FILE(GLOB asm ${CMAKE_CURRENT_SOURCE_DIR}/*.s) | ||
add_library(${LIB} OBJECT | ||
${sources} | ||
${asm} | ||
FILE(GLOB sources ${CMAKE_CURRENT_SOURCE_DIR}/*.[cs]) | ||
|
||
ed25519_add_library(amd64-64-24k-pic | ||
SOURCES ${sources} | ||
) | ||
set_target_properties(${LIB} PROPERTIES EXCLUDE_FROM_ALL TRUE) |
Oops, something went wrong.