~ubuntu-branches/ubuntu/quantal/enigmail/quantal-security

« back to all changes in this revision

Viewing changes to db/sqlite3/src/Makefile.in

  • Committer: Package Import Robot
  • Author(s): Chris Coulson
  • Date: 2013-09-13 16:02:15 UTC
  • mfrom: (0.12.16)
  • Revision ID: package-import@ubuntu.com-20130913160215-u3g8nmwa0pdwagwc
Tags: 2:1.5.2-0ubuntu0.12.10.1
* New upstream release v1.5.2 for Thunderbird 24

* Build enigmail using a stripped down Thunderbird 17 build system, as it's
  now quite difficult to build the way we were doing previously, with the
  latest Firefox build system
* Add debian/patches/no_libxpcom.patch - Don't link against libxpcom, as it
  doesn't exist anymore (but exists in the build system)
* Add debian/patches/use_sdk.patch - Use the SDK version of xpt.py and
  friends
* Drop debian/patches/ipc-pipe_rename.diff (not needed anymore)
* Drop debian/patches/makefile_depth.diff (not needed anymore)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# This Source Code Form is subject to the terms of the Mozilla Public
3
 
# License, v. 2.0. If a copy of the MPL was not distributed with this
4
 
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
 
 
6
 
DEPTH           = @DEPTH@
7
 
topsrcdir       = @top_srcdir@
8
 
srcdir          = @srcdir@
9
 
VPATH           = @srcdir@
10
 
 
11
 
include $(DEPTH)/config/autoconf.mk
12
 
 
13
 
MODULE           = sqlite3
14
 
LIBRARY_NAME     = mozsqlite3
15
 
SHORT_LIBNAME    = mozsqlt3
16
 
FORCE_SHARED_LIB = 1
17
 
VISIBILITY_FLAGS =
18
 
LIB_IS_C_ONLY    = 1
19
 
 
20
 
ifeq ($(OS_ARCH),WINNT)
21
 
ifndef GNU_CC
22
 
DEFFILE = $(CURDIR)/sqlite-processed.def
23
 
RCFILE  = sqlite.rc
24
 
RESFILE = sqlite.res
25
 
 
26
 
GARBAGE += \
27
 
  sqlite-version.h \
28
 
  $(DEFFILE) \
29
 
  $(NULL)
30
 
 
31
 
# We generate the appropriate version header file with our python script.
32
 
sqlite-version.h: sqlite-version.py sqlite3.h
33
 
        $(PYTHON) $^ > $@
34
 
 
35
 
# We have to preprocess our def file because we need different symbols in debug
36
 
# builds exposed that are not built in non-debug builds.
37
 
$(DEFFILE): sqlite.def
38
 
        @$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) \
39
 
          $(srcdir)/sqlite.def > $(DEFFILE)
40
 
 
41
 
export:: sqlite-version.h
42
 
endif
43
 
endif
44
 
 
45
 
ifeq (Darwin,$(OS_TARGET))
46
 
# On OSX, with jemalloc enabled, having sqlite linked against mozglue
47
 
# causes crashes in NSS standalone tools.
48
 
MOZ_GLUE_LDFLAGS =
49
 
endif
50
 
 
51
 
# XXX Force -O2 optimisation on Mac because using the default -O3 causes
52
 
# crashes. See bug 676499.
53
 
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
54
 
MODULE_OPTIMIZE_FLAGS = -O2
55
 
endif
56
 
 
57
 
# Force /O2 optimisation on Windows because using the default /O1 causes
58
 
# crashes with MSVC2005 and PGO. See bug 719584.
59
 
ifeq ($(OS_ARCH),WINNT)
60
 
MODULE_OPTIMIZE_FLAGS = -O2
61
 
endif
62
 
 
63
 
EXPORTS = \
64
 
  sqlite3.h \
65
 
  $(NULL)
66
 
 
67
 
CSRCS = \
68
 
  sqlite3.c \
69
 
  $(NULL)
70
 
 
71
 
# -DSQLITE_SECURE_DELETE=1 will cause SQLITE to 0-fill delete data so we
72
 
# don't have to vacuum to make sure the data is not visible in the file.
73
 
# -DSQLITE_ENABLE_FTS3=1 enables the full-text index module.
74
 
# -DSQLITE_CORE=1 statically links that module into the SQLite library.
75
 
# -DSQLITE_DEFAULT_PAGE_SIZE=32768 and SQLITE_MAX_DEFAULT_PAGE_SIZE=32768
76
 
# increases the page size from 1k, see bug 416330.  The value must stay in sync
77
 
# with mozIStorageConnection::DEFAULT_PAGE_SIZE.
78
 
# -DSQLITE_MAX_SCHEMA_RETRY increases the times SQLite may try to reparse
79
 
# statements when the schema changes. This is important when supporting lots of
80
 
# concurrent connections, especially when they use shared cache.
81
 
# Note: Be sure to update the configure.in checks when these change!
82
 
DEFINES = \
83
 
  -DSQLITE_SECURE_DELETE=1 \
84
 
  -DSQLITE_THREADSAFE=1 \
85
 
  -DSQLITE_CORE=1 \
86
 
  -DSQLITE_ENABLE_FTS3=1 \
87
 
  -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
88
 
  -DSQLITE_DEFAULT_PAGE_SIZE=32768 \
89
 
  -DSQLITE_MAX_DEFAULT_PAGE_SIZE=32768 \
90
 
  -DSQLITE_MAX_SCHEMA_RETRY=25 \
91
 
  $(NULL)
92
 
 
93
 
# -DSQLITE_ENABLE_LOCKING_STYLE=1 to help with AFP folders
94
 
ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
95
 
DEFINES += -DSQLITE_ENABLE_LOCKING_STYLE=1
96
 
endif
97
 
 
98
 
# Turn on SQLite's assertions in debug builds.
99
 
ifdef MOZ_DEBUG
100
 
DEFINES += -DSQLITE_DEBUG=1
101
 
endif
102
 
 
103
 
# disable PGO for Sun Studio
104
 
ifdef SOLARIS_SUNPRO_CC
105
 
NO_PROFILE_GUIDED_OPTIMIZE = 1
106
 
endif
107
 
 
108
 
ifeq ($(OS_ARCH),OS2)
109
 
ifdef MOZ_OS2_HIGH_MEMORY
110
 
DEFINES += -DOS2_HIGH_MEMORY
111
 
endif
112
 
endif
113
 
 
114
 
ifeq ($(OS_TARGET),Android)
115
 
# default to user readable only to fit Android security model
116
 
DEFINES += -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600
117
 
endif
118
 
 
119
 
# Force using malloc_usable_size when building with jemalloc because _msize
120
 
# causes assertions on Win64. See bug 719579.
121
 
ifeq ($(OS_ARCH),WINNT)
122
 
ifdef MOZ_MEMORY
123
 
DEFINES += \
124
 
  -DHAVE_MALLOC_USABLE_SIZE \
125
 
  -DSQLITE_WITHOUT_MSIZE \
126
 
  $(NULL)
127
 
endif
128
 
endif
129
 
 
130
 
include $(topsrcdir)/config/rules.mk
131
 
 
132
 
# next line allows use of MOZ_OBJDIR in .mozconfig with older gcc on BeOS, maybe others
133
 
LOCAL_INCLUDES += -I$(srcdir)
134
 
 
135
 
ifeq ($(OS_ARCH),OS2)
136
 
ADD_TO_DEF_FILE = $(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) \
137
 
       $(srcdir)/sqlite.def | sed -e '1,/^EXPORTS$$/ d' -e 's,sqlite3,_\0,' \
138
 
       -e 's,\ DATA.*$$,,' >> $(DEF_FILE)
139
 
endif