2012-11-12 16:06:28 +00:00
|
|
|
Building for the browser
|
|
|
|
========================
|
|
|
|
|
2013-09-06 22:39:08 +00:00
|
|
|
# Install emscripten:
|
|
|
|
|
2018-02-27 09:54:54 +00:00
|
|
|
git clone git://github.com/kripken/emscripten.git
|
|
|
|
export PATH=/path/to/emscripten:$PATH
|
|
|
|
make clean
|
2013-09-06 22:39:08 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Build radare
|
|
|
|
|
2018-02-27 09:54:54 +00:00
|
|
|
sys/emscripten.sh
|
2013-09-06 22:39:08 +00:00
|
|
|
|
|
|
|
|
2018-02-27 09:54:54 +00:00
|
|
|
<!--
|
2013-09-06 22:39:08 +00:00
|
|
|
|
|
|
|
--- random notes ---
|
|
|
|
|
2013-09-07 00:20:38 +00:00
|
|
|
export CC="emcc --ignore-dynamic-linking"
|
2018-01-11 22:14:00 +00:00
|
|
|
./configure --prefix=/usr --disable-shared --enable-static --disable-debugger --with-compiler=emscripten --without-pic --with-nonpic
|
2021-12-02 16:39:59 +00:00
|
|
|
emmake make -j4
|
2012-11-12 16:06:28 +00:00
|
|
|
|
|
|
|
cd binr/radare2
|
|
|
|
emcc ../../libr/*/*.o radare2.c -I ../../libr/include/ -DR2_BIRTH=\"pop\" -DR2_GITTIP=\"123\" ../../libr/db/sdb/src/*.o
|
2013-06-07 11:21:51 +00:00
|
|
|
|
2013-09-06 22:39:08 +00:00
|
|
|
binr/rax2/rax2.js:
|
|
|
|
|
|
|
|
emcc -O2 rax2.o ../../libr/util/libr_util.a -o rax2.js
|
|
|
|
|
|
|
|
binr/rasm2/rasm2.js:
|
|
|
|
|
|
|
|
emcc -O2 -L.. -o rasm2.js ../../shlr/sdb/src/libsdb.a ../../libr/fs/p/grub/libgrubfs.a -lm $A/util/libr_util.a $A/asm/libr_asm.a rasm2.o ../../libr/util/libr_util.a ../../libr/parse/libr_parse.a ../../libr/db/libr_db.a ../../libr/syscall/libr_syscall.a ../../libr/asm/libr_asm.a ../../libr/lib/libr_lib.a ../../libr/db/libr_db.a ../../shlr/sdb/src/libsdb.a ../../libr/util/libr_util.a
|
2018-02-27 09:54:54 +00:00
|
|
|
|
|
|
|
-->
|