Skip to content

Commit

Permalink
WASM support (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpelliccioni authored Oct 31, 2023
1 parent 2f10451 commit cdb5377
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ _check_has_decl(sys/endian.h HAVE_SYS_ENDIAN_H htobe32 HAVE_DECL_HTOBE32)
_check_has_decl(sys/endian.h HAVE_SYS_ENDIAN_H htobe64 HAVE_DECL_HTOBE64)

find_package(secp256k1 REQUIRED)
find_package(Boost 1.81.0 COMPONENTS boost REQUIRED)
find_package(Boost COMPONENTS boost REQUIRED)

include(CheckCXXCompilerFlag)

Expand Down
12 changes: 5 additions & 7 deletions conan.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"version": "0.5",
"requires": [
"zlib/1.2.13#e377bee636333ae348d51ca90874e353%1682597484.674",
"secp256k1/0.17.0#7ccad3671360359af67ca3b6cbb0a4dc%1685530303.447",
"libbacktrace/cci.20210118#ec1aa63bbc10145c6a299e68e711670c%1676205469.545",
"gmp/6.2.1#c0aec48648a7dff99f293870b95cad36%1688915593.79",
"bzip2/1.0.8#411fc05e80d47a89045edc1ee6f23c1d%1678293522.814",
"boost/1.82.0#902463606663219fc8c6d2102f1b8c6a%1688915564.27"
"secp256k1/0.18.0#bb6a74c5ff0753d12b75d46ff3441ec1%1693504078.187339",
"gmp/6.3.0#38d8586053b8dbede9fa51901ecd5c29%1693503622.6331599",
"boost/1.83.0#cbc7e12c3206f912203f403e46bff8ec%1692423121.891"
],
"build_requires": [
"nodejs/16.3.0#ecc03e2039d93ec8c6df784f8533c8a2%1682717398.515",
"m4/1.4.19#c1c4b1ee919e34630bb9b50046253d3c%1676610086.39",
"b2/4.9.6#2e02945ad41739b8051247d14fe8297d%1679927934.674"
"emsdk/3.1.44#a6d941a26a1c416d25e3505805703a58%1691145317.971"
],
"python_requires": []
}
7 changes: 5 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def build_requirements(self):
self.test_requires("catch2/3.3.2")

def requirements(self):
self.requires("boost/1.82.0", transitive_headers=True, transitive_libs=True)
self.requires("secp256k1/0.17.0", transitive_headers=True, transitive_libs=True)
self.requires("boost/1.83.0", transitive_headers=True, transitive_libs=True)
self.requires("secp256k1/0.18.0", transitive_headers=True, transitive_libs=True)

if self.settings.compiler == "msvc" and self.options.currency == 'BCH':
self.requires("safeint/3.0.28", transitive_headers=True, transitive_libs=True)
Expand Down Expand Up @@ -79,6 +79,9 @@ def configure(self):
# self.options["boost"].without_filesystem = True
# self.options["boost"].without_log = True

if self.settings.os == "Emscripten":
self.options["boost/*"].header_only = True

if self.options.currency == 'BCH':
self.options["secp256k1/*"].enable_module_schnorr = True
else:
Expand Down

0 comments on commit cdb5377

Please sign in to comment.