Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (17 sloc) 864 Bytes
Building the libotr3.js
1. [Setup Emscripten + LLVM clang compilers](https://github.com/kripken/emscripten/wiki/Tutorial)
2. [Setup crypto-emscripten build script](https://github.com/mnaamani/crypto-emscripten).
This will be used to compile libgpg-error,libgcrypt and libotr into bitcode.
In the root directory of crypto-emscripten folder, edit **build-libs.sh** and set *LIBOTR_VERSION* to *"3.2.1"*.
Then run the build script.
./build-libs.sh
export CRYPTO_EMSCRIPTEN=`pwd`
3. Get the source of otr3-em and make the module.
git clone https://github.com/mnaamani/otr3-em.git
cd otr3-em/
Either run:
make -e #this will use the environement variable exported in step 2 to locate crypto-emscripten
..or
make CRYPTO_EMSCRIPTEN=/path/to/crypto-emscripten
4. Run a test
node test