summaryrefslogtreecommitdiffstats
path: root/third_party/sqlite/google_generate_amalgamation.sh
blob: 3211580cc1f7c9dc0ae5599f4fcd51a27c13351c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
#
# Copyright 2011 Google Inc. All Rights Reserved.
# Author: shess@chromium.org (Scott Hess)
# TODO(shess): This notice needs updating.

cd src

mkdir bld
cd bld
../configure
FILES="sqlite3.h sqlite3.c"
OPTS=""
# These options should match those in sqlite.gyp.
OPTS="$OPTS -DSQLITE_OMIT_LOAD_EXTENSION=1"
make "OPTS=$OPTS" $FILES
cp -f $FILES ../../amalgamation

cd ..
rm -rf bld

# TODO(shess) I can't find config.h, which exists in the original
# third_party/sqlite/ directory.  I also haven't found a client of it,
# yet, so maybe it's not a file we need.