Add JavaScript API binding with NPAPI Plugin

This commit is contained in:
Zhi Guan
2019-02-28 17:50:01 +08:00
parent 5b90476864
commit 7e1857d9e9
10 changed files with 2259 additions and 0 deletions

13
npapi/Makefile Normal file
View File

@@ -0,0 +1,13 @@
.PHONY: all clean install
all:
gcc -shared -Wall main.c PluginObject.c GmSSLObject.c -lcrypto -ldl -o libgmssl.so
clean:
rm -f *.o
rm -f *.so
install:
cp libgmssl.so /usr/lib/mozilla/plugins/