[Libreoffice-commits] .: Branch 'feature/sqlite' - connectivity/source

Anthony W Youngman wol at kemper.freedesktop.org
Wed Jan 26 08:35:08 PST 2011


 connectivity/source/drivers/sqlite3/makefile.mk |  155 ++++++++++++++++++++++++
 1 file changed, 155 insertions(+)

New commits:
commit c7e246089c69d6f08def791279656bc759003230
Author: Wol <anthony at youngman.org.uk>
Date:   Wed Jan 26 16:33:32 2011 +0000

    Add makefile.mk, try to get sqlite_connection to compile

diff --git a/connectivity/source/drivers/sqlite3/makefile.mk b/connectivity/source/drivers/sqlite3/makefile.mk
new file mode 100644
index 0000000..6b44889
--- /dev/null
+++ b/connectivity/source/drivers/sqlite3/makefile.mk
@@ -0,0 +1,155 @@
+#*************************************************************************
+#
+#   $RCSfile$
+#
+#   $Revision$
+#
+#   last change: $Author$ $Date$
+#
+#   The Contents of this file are made available subject to the terms of
+#   either of the following licenses
+#
+#          - GNU Lesser General Public License Version 2.1
+#          - Sun Industry Standards Source License Version 1.1
+#
+#   Sun Microsystems Inc., October, 2000
+#
+#   GNU Lesser General Public License Version 2.1
+#   =============================================
+#   Copyright 2000 by Sun Microsystems, Inc.
+#   901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+#   This library is free software; you can redistribute it and/or
+#   modify it under the terms of the GNU Lesser General Public
+#   License version 2.1, as published by the Free Software Foundation.
+#
+#   This library is distributed in the hope that it will be useful,
+#   but WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+#   Lesser General Public License for more details.
+#
+#   You should have received a copy of the GNU Lesser General Public
+#   License along with this library; if not, write to the Free Software
+#   Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+#   MA  02111-1307  USA
+#
+#
+#   Sun Industry Standards Source License Version 1.1
+#   =================================================
+#   The contents of this file are subject to the Sun Industry Standards
+#   Source License Version 1.1 (the "License"); You may not use this file
+#   except in compliance with the License. You may obtain a copy of the
+#   License at http://www.openoffice.org/license.html.
+#
+#   Software provided under this License is provided on an "AS IS" basis,
+#   WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+#   WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+#   MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+#   See the License for the specific provisions governing your rights and
+#   obligations concerning the Software.
+#
+#   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+#   Copyright: 2000 by Sun Microsystems, Inc.
+#
+#   All Rights Reserved.
+#
+#   Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+PRJ=..$/..$/..
+
+PRJNAME=sqlite
+TARGET=sqlite
+ENABLE_EXCEPTIONS=TRUE
+LIBTARGET=NO
+USE_DEFFILE=TRUE
+NO_DEFAULT_STL=TRUE
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE :  settings.mk
+#-------------------------------------------------------------------
+
+# uno component naming scheme
+DLLPRE=
+
+SQLITE_SDBC_MAJOR=0
+SQLITE_SDBC_MINOR=1
+SQLITE_SDBC_MICRO=1
+
+# use the static version
+.IF "$(GUI)"=="WNT"
+SQLITELIB= wsock32.lib advapi32.lib sqlite.lib
+.ELSE
+SQLITELIB= -lsqlite -lvos3gcc3 -ldbtools2
+.ENDIF
+
+CFLAGS+=-I../../inc -I$(SOLARINCDIR)$/sqlite \
+    -DSQL=1 \
+    -DSQLITE_SDBC_MAJOR=$(SQLITE_SDBC_MAJOR) \
+    -DSQLITE_SDBC_MINOR=$(SQLITE_SDBC_MINOR) \
+    -DSQLITE_SDBC_MICRO=$(SQLITE_SDBC_MICRO)
+
+SHL1TARGET=sqlite-sdbc.uno
+LIB1TARGET=$(SLB)$/$(SHL1TARGET).lib
+LIB1OBJFILES= \
+    $(SLO)$/sqlite_driver.obj
+
+SHL1STDLIBS= \
+    $(CPPULIB)       \
+    $(CPPUHELPERLIB) \
+    $(SALLIB)
+
+SHL1LIBS=	$(LIB1TARGET)
+SHL1DEF=	$(MISC)$/$(SHL1TARGET).def
+DEF1NAME=	$(SHL1TARGET)
+SHL1VERSIONMAP=$(SOLARENV)$/src$/component.map
+
+SHL2TARGET=sqlite-sdbc-impl.uno
+LIB2TARGET=$(SLB)$/$(SHL2TARGET).lib
+LIB2OBJFILES= \
+    $(SLO)$/sqlite_connection.obj \
+    $(SLO)$/sqlite_statement.obj \
+    $(SLO)$/sqlite_resultset.obj \
+    $(SLO)$/sqlite_preparedstatement.obj \
+    $(SLO)$/sqlite_resultsetmetadata.obj \
+    $(SLO)$/sqlite_databasemetadata.obj
+
+SHL2STDLIBS= \
+    $(CPPULIB)   \
+    $(CPPUHELPERLIB)   \
+    $(SALLIB)   \
+    $(SALHELPERLIB)   \
+    $(SQLITELIB)
+
+SHL2LIBS=    $(LIB2TARGET)
+SHL2DEF=     $(MISC)$/$(SHL2TARGET).def
+DEF2NAME=    $(SHL2TARGET)
+SHL2VERSIONMAP=$(SOLARENV)$/src$/component.map
+
+
+SLOFILES=       $(LIB1OBJFILES) $(LIB2OBJFILES)
+
+
+DRIVERNAME=sqlite-sdbc-$(SQLITE_SDBC_MAJOR).$(SQLITE_SDBC_MINOR).$(SQLITE_SDBC_MICRO).zip
+ALLTAR : $(DLLDEST)$/$(DRIVERNAME)
+
+# --- Targets ------------------------------------------------------
+.INCLUDE :  target.mk
+
+
+$(DLLDEST)$/$(DRIVERNAME): 	DataAccess.xcu \
+    $(DLLDEST)$/$(SHL1TARGET)$(DLLPOST) \
+    $(DLLDEST)$/$(SHL2TARGET)$(DLLPOST)
+    $(eq,$(SHELL),$(COMSPEC) +copy cp) DataAccess.xcu $(DLLDEST)$
+    +cd $(DLLDEST)$ && zip -r $(DRIVERNAME) DataAccess.xcu \
+    $(SHL1TARGET)$(DLLPOST) \
+    $(SHL2TARGET)$(DLLPOST)
+
+strip :
+.IF "$(GUI)"!="WNT"
+    strip $(DLLDEST)$/$(SHL1TARGET)$(DLLPOST) $(DLLDEST)$/$(SHL2TARGET)$(DLLPOST)
+.ENDIF


More information about the Libreoffice-commits mailing list