track 3.7.10
[sqlcipher.git] / mkextw.sh
blob2d1b6d133537727e74a779933ea831f6b88328d8
1 #!/bin/sh
3 # This script is used to compile SQLite extensions into DLLs.
5 make fts2amal.c
6 PATH=$PATH:/opt/mingw/bin
7 OPTS='-DTHREADSAFE=1 -DBUILD_sqlite=1 -DSQLITE_OS_WIN=1'
8 CC="i386-mingw32msvc-gcc -O2 $OPTS -Itsrc"
9 NM="i386-mingw32msvc-nm"
10 CMD="$CC -c fts2amal.c"
11 echo $CMD
12 $CMD
13 echo 'EXPORTS' >fts2.def
14 echo 'sqlite3_extension_init' >>fts2.def
15 i386-mingw32msvc-dllwrap \
16 --def fts2.def -v --export-all \
17 --driver-name i386-mingw32msvc-gcc \
18 --dlltool-name i386-mingw32msvc-dlltool \
19 --as i386-mingw32msvc-as \
20 --target i386-mingw32 \
21 -dllname fts2.dll -lmsvcrt fts2amal.o
22 zip fts2dll.zip fts2.dll fts2.def