Backed out changeset c00d894c9331
authorAndrew Sutherland <asutherland@asutherland.org>
Sat, 20 Mar 2010 02:16:58 -0700
changeset 5218 8b13001bc702c9d5b439c1916e873973af0e1f62
parent 5217 c00d894c9331366d60fa7f9d15999456a9e485e1
child 5219 188b04a3f3841ade962abaa358d781ac326d9199
push idunknown
push userunknown
push dateunknown
backs outc00d894c9331366d60fa7f9d15999456a9e485e1
Backed out changeset c00d894c9331
sqlite-backport/src/Makefile.in
sqlite-backport/src/sqlite.def
storage-backport/Makefile.in
storage-backport/build/Makefile.in
storage-backport/src/Makefile.in
--- a/sqlite-backport/src/Makefile.in
+++ b/sqlite-backport/src/Makefile.in
@@ -33,28 +33,25 @@
 # use your version of this file under the terms of the MPL, indicate your
 # decision by deleting the provisions above and replace them with the notice
 # and other provisions required by the GPL or the LGPL. If you do not delete
 # the provisions above, a recipient may use your version of this file under
 # the terms of any one of the MPL, the GPL or the LGPL.
 #
 # ***** END LICENSE BLOCK *****
 
-DEPTH		= ../..
-RELDEPTH 	= ../../mozilla
-realtopsrcdir	= @top_srcdir@
-moztopsrcdir	= @top_srcdir@/mozilla
+DEPTH		= ../../..
+topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
-topsrcdir = $(realtopsrcdir)
 include $(DEPTH)/config/autoconf.mk
 
 MODULE           = sqlite3
-LIBRARY_NAME     = sqlite3
+LIBRARY_NAME     = mozsqlite3
 SHORT_LIBNAME    = mozsqlt3
 FORCE_SHARED_LIB = 1
 VISIBILITY_FLAGS =
 LIB_IS_C_ONLY    = 1
 
 ifeq (,$(filter-out WINNT WINCE,$(OS_ARCH)))
 ifndef GNU_CC
 DEFFILE = $(CURDIR)/sqlite-processed.def
@@ -68,17 +65,17 @@ GARBAGE += \
 
 # We generate the appropriate version header file with our python script.
 sqlite-version.h: sqlite-version.py sqlite3.h
 	$(PYTHON) $^ > $@
 
 # We have to preprocess our def file because we need different symbols in debug
 # builds exposed that are not built in non-debug builds.
 $(DEFFILE): sqlite.def
-	@$(PYTHON) $(moztopsrcdir)/config/Preprocessor.py $(DEFINES) \
+	@$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) \
 	  $(srcdir)/sqlite.def > $(DEFFILE)
 
 export:: sqlite-version.h
 endif
 endif
 
 ifdef GNU_CC
 MODULE_OPTIMIZE_FLAGS = -O2
@@ -132,12 +129,12 @@ endif
 endif
 
 include $(topsrcdir)/config/rules.mk
 
 # next line allows use of MOZ_OBJDIR in .mozconfig with older gcc on BeOS, maybe others
 LOCAL_INCLUDES += -I$(srcdir)
 
 ifeq ($(OS_ARCH),OS2)
-ADD_TO_DEF_FILE = $(PYTHON) $(moztopsrcdir)/config/Preprocessor.py $(DEFINES) \
+ADD_TO_DEF_FILE = $(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) \
        $(srcdir)/sqlite.def | sed -e '1,/^EXPORTS$$/ d' -e 's,sqlite3,_\0,' \
        -e 's,\ DATA.*$$,,' >> $(DEF_FILE)
 endif
--- a/sqlite-backport/src/sqlite.def
+++ b/sqlite-backport/src/sqlite.def
@@ -28,17 +28,17 @@
 ; use your version of this file under the terms of the MPL, indicate your
 ; decision by deleting the provisions above and replace them with the notice
 ; and other provisions required by the GPL or the LGPL. If you do not delete
 ; the provisions above, a recipient may use your version of this file under
 ; the terms of any one of the MPL, the GPL or the LGPL.
 ;
 ; ***** END LICENSE BLOCK *****
 
-LIBRARY sqlite3.dll
+LIBRARY mozsqlite3.dll
 
 EXPORTS
         sqlite3_aggregate_context
         sqlite3_aggregate_count
         sqlite3_auto_extension
         sqlite3_bind_blob
         sqlite3_bind_double
         sqlite3_bind_int
--- a/storage-backport/Makefile.in
+++ b/storage-backport/Makefile.in
@@ -42,37 +42,22 @@ topsrcdir	= @top_srcdir@
 srcdir		= @srcdir@
 VPATH		= @srcdir@
 
 include $(RELDEPTH)/config/autoconf.mk
 
 MODULE		= storage
 
 ifndef MOZ_NATIVE_SQLITE
-DIRS		= ../sqlite-backport/src
+DIRS		= ../mozilla/db/sqlite3/src
 endif
 
 DIRS		+= public \
 		   src \
 		   build \
 		   $(NULL)
 
 ifdef ENABLE_TESTS
 TOOL_DIRS += test
 endif
 
-
-# do not install into our module dir; comm-central snafu
-include $(topsrcdir)/config/config.mk
-PUBLIC=$(DIST)/include
-
 include $(topsrcdir)/config/rules.mk
 
-ifdef SUBMAKEFILES
-# if topsrcdir includes mozilla, keep it, otherwise add mozilla
-ifeq ($(notdir @top_srcdir@),mozilla)
-../sqlite-backport/src/Makefile: AUTOCONF_TOOLS:=@top_srcdir@/build/autoconf
-../sqlite-backport/src/Makefile: topsrcdir:=@top_srcdir@/..
-else
-../sqlite-backport/src/Makefile: AUTOCONF_TOOLS:=@top_srcdir@/mozilla/build/autoconf
-../sqlite-backport/src/Makefile: topsrcdir:=@top_srcdir@
-endif
-endif
--- a/storage-backport/build/Makefile.in
+++ b/storage-backport/build/Makefile.in
@@ -47,16 +47,17 @@ include $(DEPTH)/config/autoconf.mk
 MODULE		= storage
 LIBRARY_NAME = storagecomps
 SHORT_LIBNAME = strgcmps
 EXPORT_LIBRARY = 1
 IS_COMPONENT = 1
 MODULE_NAME = mozStorageModule
 LIBXUL_LIBRARY = 1
 
+
 EXPORTS = mozStorageCID.h
 
 CPPSRCS = mozStorageModule.cpp
 
 LOCAL_INCLUDES = \
 	$(SQLITE_CFLAGS) \
 	-I$(srcdir)/../src
 
--- a/storage-backport/src/Makefile.in
+++ b/storage-backport/src/Makefile.in
@@ -45,16 +45,17 @@ include $(DEPTH)/config/autoconf.mk
 
 MODULE           = storage
 LIBRARY_NAME     = storage_s
 MODULE_NAME      = mozStorageModule
 FORCE_STATIC_LIB = 1
 GRE_MODULE       = 1
 LIBXUL_LIBRARY = 1
 
+
 EXPORTS_NAMESPACES = mozilla/storage
 
 EXPORTS_mozilla/storage = \
   Variant.h \
   Variant_inl.h \
   $(NULL)
 
 CPPSRCS = \