qira/ida/build.sh

15 lines
390 B
Bash
Raw Normal View History

2014-06-26 21:16:45 +04:00
#!/bin/sh
set -e
SDKROOT=~/build/idasdk66
IDAROOT=~/ida-6.6
2014-06-27 01:52:25 +04:00
g++ template.cpp -m32 -fPIC -D__IDP__ -D__PLUGIN__ -c -D__LINUX__ -I$SDKROOT/include
g++ -m32 --shared template.o -L$IDAROOT -lida -o qira.plx libwebsockets.a -lcrypto -lz -lssl -lpthread
2014-07-02 22:31:15 +04:00
sha1sum qira.plx
if [ "$(diff qira.plx $IDAROOT/plugins/qira.plx)" != "" ]; then
echo "copying plugin"
cp qira.plx $IDAROOT/plugins
fi
2014-06-26 21:16:45 +04:00