summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-20 10:02:49 -0500
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-04-14 12:47:38 +0200
commit6407f1abd4f2f598f42cd416d7de9345c77e2444 (patch)
treece442ff39c5a091c6af7cb5e635276aeaca5a850 /db
parent28f0155307b8182653e31c1dd969828bbb0249f0 (diff)
downloadUXP-6407f1abd4f2f598f42cd416d7de9345c77e2444.tar
UXP-6407f1abd4f2f598f42cd416d7de9345c77e2444.tar.gz
UXP-6407f1abd4f2f598f42cd416d7de9345c77e2444.tar.lz
UXP-6407f1abd4f2f598f42cd416d7de9345c77e2444.tar.xz
UXP-6407f1abd4f2f598f42cd416d7de9345c77e2444.zip
Issue #1457 - Unfold sqlite3 from nss
Diffstat (limited to 'db')
-rw-r--r--db/sqlite3/src/moz.build26
1 files changed, 11 insertions, 15 deletions
diff --git a/db/sqlite3/src/moz.build b/db/sqlite3/src/moz.build
index 1c26db9c4..70a5f456a 100644
--- a/db/sqlite3/src/moz.build
+++ b/db/sqlite3/src/moz.build
@@ -3,25 +3,18 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-NO_VISIBILITY_FLAGS = True
-EXPORTS += [
- 'sqlite3.h',
-]
+NO_VISIBILITY_FLAGS = True
# We allow warnings for third-party code that can be updated from upstream.
ALLOW_COMPILER_WARNINGS = True
-if CONFIG['MOZ_FOLD_LIBS']:
- # When folding libraries, sqlite is actually in the nss library.
- FINAL_LIBRARY = 'nss'
-else:
- # The final library is in config/external/sqlite
- FINAL_LIBRARY = 'sqlite'
+GeckoSharedLibrary('sqlite', linkage=None, mozglue='library')
+SHARED_LIBRARY_NAME = 'mozsqlite3'
+SYMBOLS_FILE = 'sqlite.symbols'
-SOURCES += [
- 'sqlite3.c',
-]
+EXPORTS += ['sqlite3.h']
+SOURCES += ['sqlite3.c']
# -DSQLITE_SECURE_DELETE=1 will cause SQLITE to 0-fill delete data so we
# don't have to vacuum to make sure the data is not visible in the file.
@@ -34,8 +27,11 @@ SOURCES += [
# hidden preference. If that preference is missing or invalid then this value
# will be used.
# Note: Be sure to update the configure.in checks when these change!
-for var in ('SQLITE_SECURE_DELETE', 'SQLITE_THREADSAFE', 'SQLITE_CORE',
- 'SQLITE_ENABLE_FTS3', 'SQLITE_ENABLE_UNLOCK_NOTIFY',
+for var in ('SQLITE_SECURE_DELETE',
+ 'SQLITE_THREADSAFE',
+ 'SQLITE_CORE',
+ 'SQLITE_ENABLE_FTS3',
+ 'SQLITE_ENABLE_UNLOCK_NOTIFY',
'SQLITE_ENABLE_DBSTAT_VTAB'):
DEFINES[var] = 1