deltachat / deltachat-node-legacy

[WIP] Node bindings for deltachat-core
https://delta.chat
GNU General Public License v3.0
2 stars 1 forks source link

Build deltachat-core as an archive #2

Closed ralphtheninja closed 6 years ago

ralphtheninja commented 6 years ago

This removes the need to do sudo ninja install stuff to install a shared object globally. Instead we are telling meson to build a static library (libdeltachat.a), which we bake into the final deltachat.node binary.

Note also that we need to tell node-gyp to include the other static libraries built by ninja, together with sqlite3 and sasl.

An unrelated side note: We figured out that my problems with ssl was related to node.js being linked against an older version of openssl which conflicted with the version deltachat-core was linked against, which caused deltachat-core to try to call into an open ssl init function that was never loaded by node.

ralphtheninja commented 6 years ago

cc @r10s