瀏覽代碼

Add task to create makeshift JavaScriptCore "docs"

Actually just grepping for exported names, but it works well enough for
a start.
Lucas Stadler 9 年之前
父節點
當前提交
82556c6364
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 '^#' > $@