tweak: add documentation for segfault, debug in build.sh
This commit is contained in:
parent
707b84492c
commit
00113a38f4
|
@ -17,11 +17,12 @@ This is my personal version. Contribute upstream to [github.com/mini-rose/rose](
|
||||||
|
|
||||||
### To do
|
### To do
|
||||||
|
|
||||||
|
|
||||||
- [ ] Add "open in new window" functionality. <https://stackoverflow.com/questions/40180757/webkit2gtk-get-new-window-link>
|
- [ ] Add "open in new window" functionality. <https://stackoverflow.com/questions/40180757/webkit2gtk-get-new-window-link>
|
||||||
- Useful for opening links in new tab when clicking on them and selecting that option
|
- Useful for opening links in new tab when clicking on them and selecting that option
|
||||||
- And for actually opening links with the href newtab option.
|
- And for actually opening links with the href newtab option.
|
||||||
|
- Links: <https://docs.gtk.org/gobject/func.signal_connect.html>, <https://webkitgtk.org/reference/webkit2gtk/2.37.90/signal.AutomationSession.create-web-view.html>, <https://webkitgtk.org/reference/webkit2gtk/2.26.0/WebKitWebView.html#WebKitWebView-create>
|
||||||
- [ ] Find out what each of the css elements refers to.
|
- [ ] Find out what each of the css elements refers to.
|
||||||
|
- [ ] Use something other than Whatsapp as an example syslink.
|
||||||
|
|
||||||
Done:
|
Done:
|
||||||
- [x] String substitution on uri in order to redirect to better frontends.
|
- [x] String substitution on uri in order to redirect to better frontends.
|
||||||
|
|
5
build.sh
5
build.sh
|
@ -1,7 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
CC=clang
|
CC=clang
|
||||||
SRC=rose.c
|
SRC=rose.c
|
||||||
REQS=./plugins/*/*.c
|
REQS=./plugins/*/*.c
|
||||||
DEPS=('webkit2gtk-4.0')
|
DEPS=('webkit2gtk-4.0')
|
||||||
|
DEBUG="" # set to "-g" for debug mode.
|
||||||
|
|
||||||
INCS=`pkg-config --cflags ${DEPS[@]}`
|
INCS=`pkg-config --cflags ${DEPS[@]}`
|
||||||
LIBS=`pkg-config --libs ${DEPS[@]}`
|
LIBS=`pkg-config --libs ${DEPS[@]}`
|
||||||
|
@ -10,4 +13,4 @@ LIBS=`pkg-config --libs ${DEPS[@]}`
|
||||||
WYEBAB='-L/usr/lib/wyebrowser/adblock.so'
|
WYEBAB='-L/usr/lib/wyebrowser/adblock.so'
|
||||||
|
|
||||||
# echo $CC $INCS $LIBS $SRC $REQS $WYEBAB -o rose
|
# echo $CC $INCS $LIBS $SRC $REQS $WYEBAB -o rose
|
||||||
$CC $INCS $LIBS $SRC $REQS $WYEBAB -o rose
|
$CC $DEBUG $INCS $LIBS $SRC $REQS $WYEBAB -o rose
|
||||||
|
|
9
user-scripts/valgrind-notes.md
Normal file
9
user-scripts/valgrind-notes.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
In case you arrive at a segmentation fault when working on rose, you can use valgrind.
|
||||||
|
|
||||||
|
To do this, you can compile rose with the `DEBUG` value in `build.sh` set to `-g`
|
||||||
|
|
||||||
|
and then:
|
||||||
|
|
||||||
|
```
|
||||||
|
valgrind --track-origins=yes ./rose
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user