mkdll.sh

来自「sqlite database for embed linux」· Shell 代码 · 共 46 行

SH
46
字号
#!/bin/sh## This script is used to compile SQLite into a DLL.## Two separate DLLs are generated.  "sqlite3.dll" is the core# library.  "tclsqlite3.dll" contains the TCL bindings and is the# library that is loaded into TCL in order to run SQLite.#make sqlite3.cPATH=$PATH:/opt/mingw/binTCLDIR=/home/drh/tcltk/846/win/846winTCLSTUBLIB=$TCLDIR/libtcl84stub.aOPTS='-DUSE_TCL_STUBS=1 -DTHREADSAFE=1 -DBUILD_sqlite=1 -DOS_WIN=1'CC="i386-mingw32msvc-gcc -O2 $OPTS -Itsrc -I$TCLDIR"NM="i386-mingw32msvc-nm"CMD="$CC -c sqlite3.c"echo $CMD$CMDCMD="$CC -c tsrc/tclsqlite.c -o tclsqlite.o"echo $CMD$CMDecho 'EXPORTS' >tclsqlite3.def$NM sqlite3.o tclsqlite.o | grep ' T ' >temp1grep '_Init$' temp1 >temp2grep '_SafeInit$' temp1 >>temp2grep ' T _sqlite3_' temp1 >>temp2echo 'EXPORTS' >tclsqlite3.defsed 's/^.* T _//' temp2 | sort | uniq >>tclsqlite3.defi386-mingw32msvc-dllwrap \     --def tclsqlite3.def -v --export-all \     --driver-name i386-mingw32msvc-gcc \     --dlltool-name i386-mingw32msvc-dlltool \     --as i386-mingw32msvc-as \     --target i386-mingw32 \     -dllname tclsqlite3.dll -lmsvcrt tclsqlite.o sqlite3.o $TCLSTUBLIB$NM sqlite3.o | grep ' T ' >temp1echo 'EXPORTS' >sqlite3.defgrep ' _sqlite3_' temp1 | sed 's/^.* _//' >>sqlite3.defi386-mingw32msvc-dllwrap \     --def sqlite3.def -v --export-all \     --driver-name i386-mingw32msvc-gcc \     --dlltool-name i386-mingw32msvc-dlltool \     --as i386-mingw32msvc-as \     --target i386-mingw32 \     -dllname sqlite3.dll -lmsvcrt sqlite3.o

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?