forked from ElementsProject/libwally-core
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: JS Bindings From Jerzy Kozera (jkozera)
- Loading branch information
1 parent
78700bc
commit 75c5c9d
Showing
36 changed files
with
3,167 additions
and
6 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
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,63 @@ | ||
{ | ||
"targets": [ | ||
{ | ||
"target_name": "copy_srcs", | ||
"copies": [ | ||
{ | ||
"files": [ "<(libwally_dir)/src/internal.h", "<(libwally_dir)/src/ccan/ccan/crypto/sha512/sha512.c", "<(libwally_dir)/src/ccan/ccan/crypto/ripemd160/ripemd160.c", "<(libwally_dir)/src/ccan/ccan/crypto/sha256/sha256.c", "<(libwally_dir)/src/secp256k1/src/secp256k1.c", "<(libwally_dir)/src/secp256k1/src/util.h", "<(libwally_dir)/src/internal.c", "<(libwally_dir)/src/base58.c", "<(libwally_dir)/src/aes.c", "<(libwally_dir)/src/scrypt.c", "<(libwally_dir)/src/pbkdf2.c", "<(libwally_dir)/src/hmac.c", "<(libwally_dir)/src/bip38.c", "<(libwally_dir)/src/sign.c", "<(libwally_dir)/src/bip32.c", "<(libwally_dir)/src/elements.c" ], | ||
"destination": "src" | ||
} | ||
], | ||
"conditions": [ | ||
[ 'OS=="win"', { | ||
"copies+=": [ | ||
{ | ||
"files": [ "windows_config/config.h", "windows_config/libsecp256k1-config.h" ], | ||
"destination": "src" | ||
} | ||
] | ||
}], | ||
] | ||
}, | ||
{ | ||
"target_name": "deps", | ||
"dependencies": [ "copy_srcs" ], | ||
"sources": [ "src/aes.c", "src/base58.c", "src/bip38.c", "src/hmac.c", "src/internal.c", "src/pbkdf2.c", "src/ripemd160.c", "src/scrypt.c", "src/secp256k1.c", "src/sha256.c", "src/sha512.c", "src/sign.c", "src/bip32.c", "src/elements.c" ], | ||
"defines": [ "SWIG_JAVASCRIPT_BUILD", "HAVE_CONFIG_H" ], | ||
"include_dirs": [ "src", "<(libwally_dir)", "<(libwally_dir)/src", "<(libwally_dir)/src/secp256k1", "<(libwally_dir)/src/secp256k1/src", "<(libwally_dir)/src/ccan" ], | ||
"type": "static_library" | ||
}, | ||
{ | ||
"target_name": "wallycore", | ||
"dependencies": [ "deps" ], | ||
"sources": [ "nan_wrap.cc" ], | ||
"include_dirs": [ "<(libwally_dir)/src", "<!(node -e \"require('nan')\")" ], | ||
"defines": [ "SWIG_JAVASCRIPT_BUILD", "HAVE_CONFIG_H" ], | ||
"conditions": [ | ||
[ 'OS=="win"', { | ||
"libraries": [ "Release/deps.lib" ], | ||
}], | ||
[ 'OS!="win"', { | ||
"libraries": [ "Release/deps.a" ], | ||
}] | ||
] | ||
} | ||
], | ||
"conditions": [ | ||
[ 'OS=="mac"', { | ||
"xcode_settings": { | ||
"CLANG_CXX_LIBRARY": "libc++" | ||
} | ||
}], | ||
[ 'OS=="win"', { | ||
"variables": { | ||
"libwally_dir": "<!(echo %LIBWALLY_DIR%)" | ||
} | ||
}], | ||
[ 'OS!="win"', { | ||
"variables": { | ||
"libwally_dir": "<!(echo $LIBWALLY_DIR)" | ||
} | ||
}] | ||
] | ||
} |
Empty file.
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,8 @@ | ||
module Wally [system] { | ||
header "wally_define_javascript_build.h" | ||
header "../../../include/wally_crypto.h" | ||
header "../../../include/wally_bip38.h" | ||
header "../../../include/wally_bip32.h" | ||
header "../../../bip32_int.h" | ||
export * | ||
} |
1 change: 1 addition & 0 deletions
1
src/swig_js/cordovaplugin/WallyModule/wally_define_javascript_build.h
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 @@ | ||
#define SWIG_JAVASCRIPT_BUILD 1 |
Oops, something went wrong.