Parcourir la Source

Add task to create makeshift JavaScriptCore "docs"

Actually just grepping for exported names, but it works well enough for
a start.
Lucas Stadler 9 ans auparavant
Parent
commit
82556c6364
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      c/ton/Makefile

+ 3 - 0
c/ton/Makefile

@ -2,3 +2,6 @@ JSC_CFLAGS = $(shell pkg-config javascriptcoregtk-4.0 --cflags --libs)
2 2
3 3
ton: *.c
4 4
	clang $(JSC_CFLAGS) main.c -o $@
5
6
jsc-funcs:
7
	grep -Rh JS_EXPORT /usr/include/webkitgtk-4.0/JavaScriptCore | sed 's/^JS_EXPORT //' | grep -v '^#' > $@