-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
34 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,15 @@ | ||
Building for the browser | ||
======================== | ||
# Building for the browser | ||
|
||
# Install emscripten: | ||
## Install emscripten: | ||
|
||
git clone git://github.com/kripken/emscripten.git | ||
export PATH=/path/to/emscripten:$PATH | ||
make clean | ||
```bash | ||
$ git clone git://github.com/kripken/emscripten.git | ||
$ export PATH=/path/to/emscripten:$PATH | ||
$ make clean | ||
``` | ||
|
||
## Build radare | ||
|
||
# Build radare | ||
|
||
sys/emscripten.sh | ||
|
||
|
||
<!-- | ||
--- random notes --- | ||
export CC="emcc --ignore-dynamic-linking" | ||
./configure --prefix=/usr --disable-shared --enable-static --disable-debugger --with-compiler=emscripten --without-pic --with-nonpic | ||
emmake make -j4 | ||
cd binr/radare2 | ||
emcc ../../libr/*/*.o radare2.c -I ../../libr/include/ -DR2_BIRTH=\"pop\" -DR2_GITTIP=\"123\" ../../libr/db/sdb/src/*.o | ||
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 | ||
--> | ||
```bash | ||
$ sys/emscripten.sh | ||
``` |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# deprecate.. move into subprojects/sdb-deps.mk | ||
CFLAGS+=-I$(SHLR)/../subprojects/sdb/include | ||
SDB_ROOT=$(SHLR)/../subprojects/sdb | ||
SDB_CFLAGS+=-I$(SDB_ROOT)/include | ||
SDB_LDFLAGS+=$(SDB_ROOT)/lib/lib_sdb.a | ||
CFLAGS+=$(SDB_CFLAGS) |
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 |
---|---|---|
|
@@ -73,7 +73,7 @@ RebuildCapstone() { | |
} | ||
|
||
RebuildSdb() { | ||
Rebuild shlr/sdb | ||
Rebuild subprojects/sdb | ||
Rebuild libr/util | ||
} | ||
|
||
|