Skip to content

Commit

Permalink
cace
Browse files Browse the repository at this point in the history
  • Loading branch information
george012 committed Jun 20, 2024
1 parent acc4e41 commit 87f1b60
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 60 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ find_package(OpenSSL REQUIRED)
if(OPENSSL_FOUND)
include_directories(${OPENSSL_INCLUDE_DIR})
message(STATUS "OpenSSL include directory: ${OPENSSL_INCLUDE_DIR}")
message(STATUS "OpenSSL libraries: ${OPENSSL_LIBRARIES}")
else()
message(FATAL_ERROR "OpenSSL not found!")
endif()
Expand Down
30 changes: 30 additions & 0 deletions cgo_configure.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//go:build (darwin && amd64) || (darwin && arm64) || (linux && amd64) || (linux && arm64) || (windows && amd64) || (windows && arm64)

package ltc_scrypt_go

/*
#cgo darwin,amd64 CFLAGS: -I${SRCDIR}/lib/darwin -I${SRCDIR}/lib/include -I/usr/local/opt/openssl/include
#cgo darwin,amd64 CPPFLAGS: -I${SRCDIR}/lib/darwin -I${SRCDIR}/lib/include -I/usr/local/opt/openssl/include
#cgo darwin,amd64 LDFLAGS: ${SRCDIR}/lib/darwin/libscrypt.a /usr/local/opt/openssl/lib/libssl.a /usr/local/opt/openssl/lib/libcrypto.a
#cgo darwin,arm64 CFLAGS: -I${SRCDIR}/lib/darwin -I${SRCDIR}/lib/include -I/usr/local/opt/openssl/include
#cgo darwin,arm64 CPPFLAGS: -I${SRCDIR}/lib/darwin -I${SRCDIR}/lib/include -I/usr/local/opt/openssl/include
#cgo darwin,arm64 LDFLAGS: ${SRCDIR}/lib/darwin/libscrypt_arm64.a /usr/local/opt/openssl/lib/libssl.a /usr/local/opt/openssl/lib/libcrypto.a
#cgo linux,amd64 CFLAGS: -I${SRCDIR}/lib/linux -I${SRCDIR}/lib/include -I/usr/include/openssl
#cgo linux,amd64 CPPFLAGS: -I${SRCDIR}/lib/linux -I${SRCDIR}/lib/include -I/usr/include/openssl
#cgo linux,amd64 LDFLAGS: ${SRCDIR}/lib/linux/libscrypt.a /usr/lib/x86_64-linux-gnu/libssl.a /usr/lib/x86_64-linux-gnu/libcrypto.a
#cgo linux,arm64 CFLAGS: -I${SRCDIR}/lib/linux -I${SRCDIR}/lib/include -I/usr/include/openssl
#cgo linux,arm64 CPPFLAGS: -I${SRCDIR}/lib/linux -I${SRCDIR}/lib/include -I/usr/include/openssl
#cgo linux,arm64 LDFLAGS: ${SRCDIR}/lib/linux/libscrypt_arm64.a /usr/lib/aarch64-linux-gnu/libssl.a /usr/lib/aarch64-linux-gnu/libcrypto.a
#cgo windows,amd64 CFLAGS: -I${SRCDIR}/lib/windows -I${SRCDIR}/lib/include
#cgo windows,amd64 CPPFLAGS: -I${SRCDIR}/lib/windows -I${SRCDIR}/lib/include
#cgo windows,amd64 LDFLAGS: ${SRCDIR}/lib/windows/libscrypt.a C:/msys64/mingw64/lib/libssl.a C:/msys64/mingw64/lib/libcrypto.a
#cgo windows,arm64 CFLAGS: -I${SRCDIR}/lib/windows -I${SRCDIR}/lib/include
#cgo windows,arm64 CPPFLAGS: -I${SRCDIR}/lib/windows -I${SRCDIR}/lib/include
#cgo windows,arm64 LDFLAGS: ${SRCDIR}/lib/windows/libscrypt_arm64.a /mingw64/lib/libssl.a /mingw64/lib/libcrypto.a
*/
import "C"
10 changes: 0 additions & 10 deletions cgo_darwin_arm64.go

This file was deleted.

10 changes: 0 additions & 10 deletions cgo_darwin_x86_64.go

This file was deleted.

10 changes: 0 additions & 10 deletions cgo_linux_arm64.go

This file was deleted.

10 changes: 0 additions & 10 deletions cgo_linux_x86_64.go

This file was deleted.

10 changes: 0 additions & 10 deletions cgo_windows_arm64.go

This file was deleted.

10 changes: 0 additions & 10 deletions cgo_windows_x86_64.go

This file was deleted.

Binary file modified lib/darwin/libscrypt.a
Binary file not shown.
Binary file modified lib/darwin/libscrypt_arm64.a
Binary file not shown.

0 comments on commit 87f1b60

Please sign in to comment.