OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Copyright 2011 Google Inc. All Rights Reserved. | 3 # Copyright (c) 2015 The Chromium Authors. All rights reserved. |
4 # Author: shess@chromium.org (Scott Hess) | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # TODO(shess): This notice needs updating. | 5 # found in the LICENSE file. |
6 | 6 |
7 cd src | 7 cd src |
8 | 8 |
9 mkdir bld | 9 mkdir bld |
10 cd bld | 10 cd bld |
11 ../configure | 11 ../configure |
12 FILES="sqlite3.h sqlite3.c" | 12 FILES="sqlite3.h sqlite3.c" |
| 13 # Add any options from sqlite.gyp referenced by parse.y or mkkeywordhash.c. |
13 OPTS="" | 14 OPTS="" |
14 # These options should match those in sqlite.gyp. | |
15 OPTS="$OPTS -DSQLITE_OMIT_LOAD_EXTENSION=1" | |
16 make "OPTS=$OPTS" $FILES | 15 make "OPTS=$OPTS" $FILES |
17 cp -f $FILES ../../amalgamation | 16 cp -f $FILES ../../amalgamation |
18 | 17 |
19 cd .. | 18 cd .. |
20 rm -rf bld | 19 rm -rf bld |
21 | |
22 # TODO(shess) I can't find config.h, which exists in the original | |
23 # third_party/sqlite/ directory. I also haven't found a client of it, | |
24 # yet, so maybe it's not a file we need. | |
OLD | NEW |