mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-23 06:45:21 +01:00
2021 05 02 m1 secp256k1 natives (#3014)
* Add protoc exception for apples new chip arch. This requires protoc to be built manually as they do not natively ship m1 support yet * Add osx_arm64 secp256k1 native binaries
This commit is contained in:
parent
8ec93c6632
commit
1339abe410
8 changed files with 48 additions and 0 deletions
BIN
secp256k1jni/natives/osx_arm64/libsecp256k1.0.dylib
Executable file
BIN
secp256k1jni/natives/osx_arm64/libsecp256k1.0.dylib
Executable file
Binary file not shown.
BIN
secp256k1jni/natives/osx_arm64/libsecp256k1.a
Normal file
BIN
secp256k1jni/natives/osx_arm64/libsecp256k1.a
Normal file
Binary file not shown.
1
secp256k1jni/natives/osx_arm64/libsecp256k1.dylib
Symbolic link
1
secp256k1jni/natives/osx_arm64/libsecp256k1.dylib
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
libsecp256k1.0.dylib
|
1
secp256k1jni/natives/osx_arm64/libsecp256k1.la
Symbolic link
1
secp256k1jni/natives/osx_arm64/libsecp256k1.la
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../libsecp256k1.la
|
41
secp256k1jni/natives/osx_arm64/libsecp256k1.lai
Normal file
41
secp256k1jni/natives/osx_arm64/libsecp256k1.lai
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# libsecp256k1.la - a libtool library file
|
||||||
|
# Generated by libtool (GNU libtool) 2.4.6
|
||||||
|
#
|
||||||
|
# Please DO NOT delete this file!
|
||||||
|
# It is necessary for linking the library.
|
||||||
|
|
||||||
|
# The name that we can dlopen(3).
|
||||||
|
dlname='libsecp256k1.0.dylib'
|
||||||
|
|
||||||
|
# Names of this library.
|
||||||
|
library_names='libsecp256k1.0.dylib libsecp256k1.dylib'
|
||||||
|
|
||||||
|
# The name of the static archive.
|
||||||
|
old_library='libsecp256k1.a'
|
||||||
|
|
||||||
|
# Linker flags that cannot go in dependency_libs.
|
||||||
|
inherited_linker_flags=' '
|
||||||
|
|
||||||
|
# Libraries that this one depends upon.
|
||||||
|
dependency_libs=''
|
||||||
|
|
||||||
|
# Names of additional weak libraries provided by this library
|
||||||
|
weak_library_names=''
|
||||||
|
|
||||||
|
# Version information for libsecp256k1.
|
||||||
|
current=0
|
||||||
|
age=0
|
||||||
|
revision=0
|
||||||
|
|
||||||
|
# Is this an already installed library?
|
||||||
|
installed=yes
|
||||||
|
|
||||||
|
# Should we warn about portability when linking against -modules?
|
||||||
|
shouldnotlink=no
|
||||||
|
|
||||||
|
# Files to dlopen/dlpreopen
|
||||||
|
dlopen=''
|
||||||
|
dlpreopen=''
|
||||||
|
|
||||||
|
# Directory that this library needs to be installed in:
|
||||||
|
libdir='/usr/local/lib'
|
BIN
secp256k1jni/natives/osx_arm64/libsecp256k1_jni.a
Normal file
BIN
secp256k1jni/natives/osx_arm64/libsecp256k1_jni.a
Normal file
Binary file not shown.
1
secp256k1jni/natives/osx_arm64/libsecp256k1_jni.la
Symbolic link
1
secp256k1jni/natives/osx_arm64/libsecp256k1_jni.la
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../libsecp256k1_jni.la
|
|
@ -1,6 +1,8 @@
|
||||||
package org.bitcoin;
|
package org.bitcoin;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.junit.runners.BlockJUnit4ClassRunner;
|
||||||
|
|
||||||
import java.math.BigInteger;
|
import java.math.BigInteger;
|
||||||
|
|
||||||
|
@ -10,6 +12,8 @@ import static org.bitcoin.NativeSecp256k1Util.assertEquals;
|
||||||
/**
|
/**
|
||||||
* This class holds test cases defined for testing this library.
|
* This class holds test cases defined for testing this library.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@RunWith(BlockJUnit4ClassRunner.class)
|
||||||
public class NativeSecp256k1Test {
|
public class NativeSecp256k1Test {
|
||||||
|
|
||||||
//TODO improve comments/add more tests
|
//TODO improve comments/add more tests
|
||||||
|
|
Loading…
Add table
Reference in a new issue