summaryrefslogtreecommitdiff
path: root/mysqlc
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2013-01-24 15:43:52 -0500
committerMichael Stahl <mstahl@redhat.com>2013-01-28 22:54:08 +0000
commitb02d799732594eee67cab0f86dc3b09182f628a5 (patch)
tree5a90134c1c2ac1ed5a25933ce84a8fdab196030f /mysqlc
parentc322d509231f9e1220fb86be68f13c5f4b135ccb (diff)
convert mysqlc to gbuild and add to tail_build
Change-Id: Ia64bc884ed04a5d5652fb743f543a39e6b6bbcf2 Reviewed-on: https://gerrit.libreoffice.org/1901 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'mysqlc')
-rw-r--r--mysqlc/Configuration_mysql.mk15
-rw-r--r--mysqlc/Extension_mysql-connector-ooo.mk34
-rw-r--r--mysqlc/Library_mysqlc.mk64
-rw-r--r--mysqlc/Makefile7
-rw-r--r--mysqlc/Module_mysqlc.mk22
-rw-r--r--mysqlc/prj/build.lst3
-rw-r--r--mysqlc/prj/d.lst4
-rw-r--r--mysqlc/prj/dmake0
-rw-r--r--mysqlc/source/META-INF/manifest.xml (renamed from mysqlc/source/manifest.xml)0
-rw-r--r--mysqlc/source/delzip0
-rw-r--r--mysqlc/source/description.xml2
-rw-r--r--mysqlc/source/exports.dxp2
-rw-r--r--mysqlc/source/makefile.mk269
-rw-r--r--mysqlc/source/mysqlc_preparedstatement.cxx4
-rw-r--r--mysqlc/version.mk21
15 files changed, 148 insertions, 299 deletions
diff --git a/mysqlc/Configuration_mysql.mk b/mysqlc/Configuration_mysql.mk
new file mode 100644
index 000000000000..5c21154e2e69
--- /dev/null
+++ b/mysqlc/Configuration_mysql.mk
@@ -0,0 +1,15 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# 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/.
+#
+
+$(eval $(call gb_Configuration_Configuration,mysql,nodeliver))
+
+$(eval $(call gb_Configuration_add_localized_datas,mysql,mysqlc/source/registry/data,\
+ org/openoffice/Office/DataAccess/Drivers.xcu \
+))
+
diff --git a/mysqlc/Extension_mysql-connector-ooo.mk b/mysqlc/Extension_mysql-connector-ooo.mk
new file mode 100644
index 000000000000..65f2b0d5cd97
--- /dev/null
+++ b/mysqlc/Extension_mysql-connector-ooo.mk
@@ -0,0 +1,34 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# 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/.
+#
+
+$(eval $(call gb_Extension_Extension,mysql-connector-ooo,mysqlc/source))
+
+$(eval $(call gb_Extension_add_library,mysql-connector-ooo,mysqlc))
+
+$(eval $(call gb_Extension_add_file,mysql-connector-ooo,registry/data/org/openoffice/Office/DataAccess/Drivers.xcu,$(call gb_XcuFile_for_extension,mysqlc/source/registry/data/org/openoffice/Office/DataAccess/Drivers.xcu)))
+
+$(eval $(call gb_Extension_add_files,mysql-connector-ooo,images,\
+ $(SRCDIR)/icon-themes/galaxy/desktop/res/extension_32.png \
+))
+
+ifeq ($(SYSTEM_MYSQL_CPPCON),NO)
+$(eval $(call gb_Extension_add_files,mysql-connector-ooo,,\
+ $(call gb_Library_get_target,mysqlcppcon) \
+))
+endif
+
+# HACK: comes from Library_mysql.mk
+ifeq ($(SYSTEM_MYSQL),NO)
+$(eval $(call gb_Extension_add_files,mysql-connector-ooo,,\
+ $(LIBMYSQL_PATH)/lib/$(MYSQL_LIBFILE) \
+))
+endif
+
+
+# vim: set noet sw=4 ts=4:
diff --git a/mysqlc/Library_mysqlc.mk b/mysqlc/Library_mysqlc.mk
new file mode 100644
index 000000000000..edcc36639350
--- /dev/null
+++ b/mysqlc/Library_mysqlc.mk
@@ -0,0 +1,64 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# 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/.
+#
+
+$(eval $(call gb_Library_Library,mysqlc))
+
+$(eval $(call gb_Library_set_warnings_not_errors,mysqlc))
+
+$(eval $(call gb_Library_use_externals,mysqlc,\
+ boost_headers \
+ mysql \
+ mysqlcppconn \
+))
+
+ifeq ($(SYSTEM_MYSQL_CPPCONN),NO)
+$(eval $(call gb_Library_add_libs,mysqlc,\
+ $(if $(filter-out WNT,$(OS)),$(if $(filter MACOSX SOLARIS,$(OS)),-lz -lm,\
+ -rdynamic -lz -lcrypt -lnsl -lm)) \
+))
+endif
+
+$(eval $(call gb_Library_use_sdk_api,mysqlc))
+
+$(eval $(call gb_Library_use_libraries,mysqlc,\
+ cppu \
+ sal \
+ salhelper \
+ cppuhelper \
+))
+
+MYSQL_LIBFILE :=$(if $(filter WNT,$(OS)),libmysql.dll,\
+ $(if $(filter MACOSX,$(OS)),libmysql.16.dylib,libmysql.so.16))
+
+$(eval $(call gb_Library_add_defs,mysqlc,\
+ -DCPPDBC_EXPORTS \
+ -DCPPCON_LIB_BUILD \
+ -DMYSQLC_VERSION_MAJOR=$(MYSQLC_MAJOR) \
+ -DMYSQLC_VERSION_MINOR=$(MYSQLC_MINOR) \
+ -DMYSQLC_VERSION_MICRO=$(MYSQLC_MICRO) \
+ $(if $(filter NO,$(SYSTEM_MYSQL)),-DMYSQL_LIB=\"$(MYSQL_LIBFILE)\") \
+ $(if $(filter NO,$(SYSTEM_MYSQL_CPPCONN)),\
+ -DCPPCONN_LIB=\"$(call gb_Library_get_runtime_filename,mysqlcppconn)\") \
+))
+
+$(eval $(call gb_Library_add_exception_objects,mysqlc,\
+ mysqlc/source/mysqlc_driver \
+ mysqlc/source/mysqlc_services \
+ mysqlc/source/mysqlc_connection \
+ mysqlc/source/mysqlc_resultset \
+ mysqlc/source/mysqlc_resultsetmetadata \
+ mysqlc/source/mysqlc_statement \
+ mysqlc/source/mysqlc_preparedstatement \
+ mysqlc/source/mysqlc_databasemetadata \
+ mysqlc/source/mysqlc_types \
+ mysqlc/source/mysqlc_general \
+ mysqlc/source/mysqlc_propertyids \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/mysqlc/Makefile b/mysqlc/Makefile
new file mode 100644
index 000000000000..ccb1c85a04da
--- /dev/null
+++ b/mysqlc/Makefile
@@ -0,0 +1,7 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+
+module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
+
+include $(module_directory)/../solenv/gbuild/partial_build.mk
+
+# vim: set noet sw=4 ts=4:
diff --git a/mysqlc/Module_mysqlc.mk b/mysqlc/Module_mysqlc.mk
new file mode 100644
index 000000000000..f4fa114642b7
--- /dev/null
+++ b/mysqlc/Module_mysqlc.mk
@@ -0,0 +1,22 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# 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/.
+#
+
+$(eval $(call gb_Module_Module,mysqlc))
+
+ifeq ($(ENABLE_MYSQLC),YES)
+
+$(eval $(call gb_Module_add_targets,mysqlc,\
+ Configuration_mysql \
+ Library_mysqlc \
+ Extension_mysql-connector-ooo \
+))
+
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/mysqlc/prj/build.lst b/mysqlc/prj/build.lst
index 3cbb4e66d88a..90affce8eb66 100644
--- a/mysqlc/prj/build.lst
+++ b/mysqlc/prj/build.lst
@@ -1,3 +1,2 @@
mc mysqlc : solenv MYSQLCPPCONN:mysqlcppconn offapi cppu soltools cppuhelper readlicense_oo NULL
-ch mysqlc usr1 - all mc_mkout NULL
-mc mysqlc\source nmake - all mc_source NULL
+mc mysqlc\prj nmake - all mc_mysqlc NULL
diff --git a/mysqlc/prj/d.lst b/mysqlc/prj/d.lst
index a173c3593672..e69de29bb2d1 100644
--- a/mysqlc/prj/d.lst
+++ b/mysqlc/prj/d.lst
@@ -1,4 +0,0 @@
-# Extensions
-
-..\%__SRC%\bin\*.oxt %_DEST%\bin\*.oxt
-
diff --git a/mysqlc/prj/dmake b/mysqlc/prj/dmake
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/mysqlc/prj/dmake
+++ /dev/null
diff --git a/mysqlc/source/manifest.xml b/mysqlc/source/META-INF/manifest.xml
index 7c7ffb25fbe7..7c7ffb25fbe7 100644
--- a/mysqlc/source/manifest.xml
+++ b/mysqlc/source/META-INF/manifest.xml
diff --git a/mysqlc/source/delzip b/mysqlc/source/delzip
deleted file mode 100644
index e69de29bb2d1..000000000000
--- a/mysqlc/source/delzip
+++ /dev/null
diff --git a/mysqlc/source/description.xml b/mysqlc/source/description.xml
index b19e3dad1921..cd5c3c0cd1c4 100644
--- a/mysqlc/source/description.xml
+++ b/mysqlc/source/description.xml
@@ -20,7 +20,7 @@
xmlns:xlink="http://www.w3.org/1999/xlink">
<identifier value="UPDATED_IDENTIFIER"/>
- <version value="#VERSION#" />
+ <version value="1.0.1" />
<platform value="UPDATED_SUPPORTED_PLATFORM" />
<display-name>
<name lang="en-US">MySQL Connector</name>
diff --git a/mysqlc/source/exports.dxp b/mysqlc/source/exports.dxp
deleted file mode 100644
index 51703a04666a..000000000000
--- a/mysqlc/source/exports.dxp
+++ /dev/null
@@ -1,2 +0,0 @@
-component_writeInfo
-component_getFactory
diff --git a/mysqlc/source/makefile.mk b/mysqlc/source/makefile.mk
deleted file mode 100644
index 6402e13a2b90..000000000000
--- a/mysqlc/source/makefile.mk
+++ /dev/null
@@ -1,269 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2008 by Sun Microsystems, Inc.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org 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 version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ=..
-PRJNAME=mysqlc
-
-.INCLUDE : $(PRJ)$/version.mk
-
-TARGET=mysqlc
-ENABLE_EXCEPTIONS=TRUE
-VISIBILITY_HIDDEN = TRUE
-LIBTARGET=NO
-EXTENSIONNAME:=mysql-connector-ooo
-
-EXTERNAL_WARNINGS_NOT_ERRORS = TRUE
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-#-------------------------------------------------------------------
-
-#---- extension version
-EXTENSION_VERSION_BASE=$(MYSQLC_VERSION_MAJOR).$(MYSQLC_VERSION_MINOR).$(MYSQLC_VERSION_MICRO)
- EXTENSION_VERSION=$(EXTENSION_VERSION_BASE)
-
-#---- extension title package name
-EXTENSION_ZIPNAME:=$(EXTENSIONNAME)
-
-#-------------------------------------------------------------------
-
-# The headers delivered from C/C++ have a habit of putting a ";" after the closing bracked of a namespace, which
-# yields a warning with Solaris' compiler. Until this is fixed in C/C++, silence this warning
-.IF "$(OS)" == "SOLARIS"
- CFLAGSWARNCXX+=,wemptydecl
- CFLAGSWARNCXX:=$(CFLAGSWARNCXX:s/ ,/,/)
-.ENDIF
-
-#-------------------------------------------------------------------
-.IF "$(ENABLE_MYSQLC)" != "YES"
-@all:
- @echo "Mysql native driver extension build disabled."
-.ENDIF
-
-# use the static version
-.IF "$(OS)"=="WNT"
- MYSQL_LIBDIR=$(LIBMYSQL_PATH)$/lib
- MYSQL_INCDIR=$(LIBMYSQL_PATH)$/include
-.ELSE
- .IF "$(SYSTEM_MYSQL)" != "YES"
- MYSQL_LIBDIR=$(LIBMYSQL_PATH)$/lib
- MYSQL_INCDIR=$(LIBMYSQL_PATH)$/include
- .ENDIF
-.ENDIF
-
-.IF "$(SYSTEM_MYSQL)" == "YES"
-CFLAGS+=-DSYSTEM_MYSQL
-.ENDIF
-
-.IF "$(SYSTEM_MYSQL_CPPCONN)" == "YES"
-CFLAGS+=-DSYSTEM_MYSQL_CPPCONN
-.ENDIF
-
-CDEFS+=-DCPPDBC_EXPORTS -DCPPCONN_LIB_BUILD
-.IF "$(SYSTEM_MYSQL_CPPCONN)" != "YES"
-CDEFS += -DCPPCONN_LIB=\"$(DLLPRE)mysqlcppconn$(DLLPOST)\"
-.ENDIF
-
-# --------------- MySQL settings ------------------
-.IF "$(OS)"=="WNT"
- MYSQL_INC=-I$(SOLARINCDIR)$/mysqlcppconn -I$(SOLARINCDIR)$/mysqlcppconn/cppconn -I$(MYSQL_INCDIR)
- MYSQL_LIB=$(MYSQL_LIBDIR)$/libmysql.lib
- MYSQL_LIBFILE=$(MYSQL_LIBDIR)$/libmysql.dll
- MYSQL_CPPCONNFILE=$(SOLARBINDIR)$/$(DLLPRE)mysqlcppconn$(DLLPOST)
-.ELSE
- .IF "$(SYSTEM_MYSQL)" != "YES"
- MYSQL_INC+=-I$(MYSQL_INCDIR)
- .IF "$(OS)"=="MACOSX"
- MYSQL_LIBFILE=$(MYSQL_LIBDIR)$/$(DLLPRE)mysql.16$(DLLPOST)
- .ELSE
- MYSQL_LIBFILE=$(MYSQL_LIBDIR)$/$(DLLPRE)mysql$(DLLPOST).16
- .ENDIF
- .ENDIF
-
- .IF "$(SYSTEM_MYSQL_CPPCONN)" != "YES"
- .IF "$(OS)"=="MACOSX" || "$(OS)" == "SOLARIS"
- MYSQL_LIB+=-lz -lm
- .ELSE
- MYSQL_LIB+=-rdynamic -lz -lcrypt -lnsl -lm
- .ENDIF
- MYSQL_CPPCONNFILE=$(SOLARLIBDIR)$/$(DLLPRE)mysqlcppconn$(DLLPOST)
- .ELSE
- MYSQL_CPPCONN_LIB+=-lmysqlcppconn
- .ENDIF
-.ENDIF
-
-.IF "$(SYSTEM_MYSQL_CPPCONN)" != "YES"
- MYSQL_INC+=-I$(SOLARINCDIR)$/mysqlcppconn -I$(SOLARINCDIR)$/mysqlcppconn/cppconn
-.ENDIF
-
-CFLAGS+=-I..$/..$/inc $(MYSQL_INC) \
- -I$(WORKDIR)/UnpackedTarball/boost \
- -DMYSQLC_VERSION_MAJOR=$(MYSQLC_VERSION_MAJOR) \
- -DMYSQLC_VERSION_MINOR=$(MYSQLC_VERSION_MINOR) \
- -DMYSQLC_VERSION_MICRO=$(MYSQLC_VERSION_MICRO) \
- $(MYSQL_DEFINES)
-
-# provide the name of the MySQL client lib to the C++ code
-.IF "$(SYSTEM_MYSQL)" != "YES"
-CDEFS += -DMYSQL_LIB=\"$(MYSQL_LIBFILE:f)\"
-.ENDIF
-
-#--------------------------------------------------
-
-SHL1DLLPRE=
-SHL1TARGET=$(TARGET).uno
-LIB1TARGET=$(SLB)$/$(SHL1TARGET).lib
-LIB1OBJFILES= \
- $(SLO)$/mysqlc_driver.obj \
- $(SLO)$/mysqlc_services.obj \
- $(SLO)$/mysqlc_connection.obj \
- $(SLO)$/mysqlc_resultset.obj \
- $(SLO)$/mysqlc_resultsetmetadata.obj \
- $(SLO)$/mysqlc_statement.obj \
- $(SLO)$/mysqlc_preparedstatement.obj \
- $(SLO)$/mysqlc_databasemetadata.obj \
- $(SLO)$/mysqlc_types.obj \
- $(SLO)$/mysqlc_general.obj \
- $(SLO)$/mysqlc_propertyids.obj
-
-SHL1STDLIBS= \
- $(MYSQL_LIB) \
- $(MYSQL_CPPCONN_LIB) \
- $(CPPULIB) \
- $(SALLIB) \
- $(SALHELPERLIB) \
- $(CPPUHELPERLIB)
-
-SHL1LIBS= $(LIB1TARGET)
-SHL1DEF= $(MISC)$/$(SHL1TARGET).def
-SHL1RPATH=OXT
-DEF1NAME= $(SHL1TARGET)
-DEF1EXPORTFILE= exports.dxp
-
-# create Extension -----------------------------
-
-# DESCRIPTION_SRC is the source file which is copied into the extension
-# It is defaulted to "description.xml", but we want to pre-process it, so we use an intermediate
-# file
-DESCRIPTION_SRC = $(MISC)$/description.xml
-
-COMPONENT_XCU=\
- registry$/data$/org$/openoffice$/Office$/DataAccess$/Drivers.xcu
-
-COMPONENT_MERGED_XCU= \
- $(foreach,i,$(COMPONENT_XCU) $(EXTENSIONDIR)$/$i)
-
-COMPONENT_LIBRARY = \
- $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
-
-COMPONENT_MYSQL_LIBFILE = \
- $(EXTENSIONDIR)$/$(MYSQL_LIBFILE:f)
-
-COMPONENT_MYSQL_CPPCONN_FILE=\
- $(EXTENSIONDIR)$/$(MYSQL_CPPCONNFILE:f)
-
-COMPONENT_LIBRARIES=\
- $(COMPONENT_LIBRARY)
-
-COMPONENT_IMAGES= \
- $(EXTENSIONDIR)$/images$/extension_32.png
-
-# ........ component description ........
-# one file for each WITH_LANG token
-COMPONENT_DESCRIPTIONS=$/$(foreach,lang,$(alllangiso) description-$(lang).txt)
-COMPONENT_DESCRIPTIONS_PACKDEP= \
- $(foreach,i,$(COMPONENT_DESCRIPTIONS) $(EXTENSIONDIR)$/$i)
-
-# ........ dependencies for packaging the extension ........
-EXTENSION_PACKDEPS=makefile.mk $(COMPONENT_IMAGES) $(COMPONENT_DESCRIPTIONS_PACKDEP) $(COMPONENT_MERGED_XCU)
-
-.IF "$(SYSTEM_MYSQL)" != "YES"
-EXTENSION_PACKDEPS+=$(COMPONENT_MYSQL_LIBFILE)
-.ENDIF
-
-.IF "$(SYSTEM_MYSQL_CPPCONN)" != "YES"
-EXTENSION_PACKDEPS+=$(COMPONENT_MYSQL_CPPCONN_FILE)
-.ENDIF
-
-# --- Targets ------------------------------------------------------
-.INCLUDE : extension_pre.mk
-.INCLUDE : target.mk
-.INCLUDE : extension_post.mk
-
-$(COMPONENT_IMAGES) : $(SRC_ROOT)/$(RSCDEFIMG)$/desktop$/res$/$$(@:f)
- @@-$(MKDIRHIER) $(@:d)
- $(COPY) $< $@
-
-# xcu files: copy
-# the following is a hack for now - need to find out the generic mechanism later
-
-$(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess$/Drivers.xcu : .$/registry$/data$/org$/openoffice$/Office$/DataAccess$/Drivers.xcu
- @@-$(MKDIRHIER) $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess
- @$(COPY) $< $(EXTENSIONDIR)$/registry$/data$/org$/openoffice$/Office$/DataAccess$/Drivers.xcu > $(NULLDEV)
-
-$(COMPONENT_DESCRIPTIONS_PACKDEP) : $(DESCRIPTION)
-
-$(DESCRIPTION_SRC): description.xml
- +-$(RM) $@
-.IF "$(WITH_LANG)" != ""
- $(XRMEX) -p $(PRJNAME) -i $< -o $@ -m $(mktmp $(foreach,lang,$(subst,en-US, $(WITH_LANG_LIST)) $(SRCDIR)/translations/source/$(lang)/$(PRJNAME)$/$(PATH_IN_MODULE).po)) -l all
- $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" < $@ > $@.new
- mv $@.new $@
- @$(COPY) $(@:d)/description-*.txt $(EXTENSIONDIR)
-.ELSE
- $(SED) "s/#VERSION#/$(EXTENSION_VERSION)/" < $< > $@
-.ENDIF
- @$(COPY) description-en-US.txt $(EXTENSIONDIR)
-
-.IF "$(SYSTEM_MYSQL)" != "YES"
-# --- the MySQL client lib needs to be copied
-$(COMPONENT_MYSQL_LIBFILE): $(MYSQL_LIBFILE)
- @@-$(MKDIRHIER) $(@:d)
- @$(COPY) $< $@ > $(NULLDEV)
- .IF "$(OS)" == "MACOSX"
- $(XCRUN) install_name_tool -id @__________________________________________________OOO/$(MYSQL_LIBFILE:f) $@
- .ENDIF
-.ENDIF
-
-.IF "$(SYSTEM_MYSQL_CPPCONN)" != "YES"
-# --- the MySQL cppconn lib needs to be copied
-$(COMPONENT_MYSQL_CPPCONN_FILE): $(MYSQL_CPPCONNFILE)
- @@-$(MKDIRHIER) $(@:d)
- @$(COPY) $< $@ > $(NULLDEV)
- .IF "$(OS)" == "MACOSX"
- $(XCRUN) install_name_tool -change $(MYSQL_LIBFILE:f) @loader_path/$(MYSQL_LIBFILE:f) $@
- .ENDIF
-.ENDIF
-
-.IF "$(OS)" == "MACOSX"
-$(EXTENSION_TARGET): adjust_libmysql_path
-
-adjust_libmysql_path: $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
- $(XCRUN) install_name_tool -change $(MYSQL_LIBFILE:f) @loader_path/$(MYSQL_LIBFILE:f) $(EXTENSIONDIR)$/$(SHL1TARGET)$(DLLPOST)
-.ENDIF
diff --git a/mysqlc/source/mysqlc_preparedstatement.cxx b/mysqlc/source/mysqlc_preparedstatement.cxx
index c01a79c6f786..dc0ebc06facf 100644
--- a/mysqlc/source/mysqlc_preparedstatement.cxx
+++ b/mysqlc/source/mysqlc_preparedstatement.cxx
@@ -35,6 +35,10 @@
#include <stdio.h>
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
using namespace connectivity::mysqlc;
using namespace com::sun::star::uno;
using namespace com::sun::star::lang;
diff --git a/mysqlc/version.mk b/mysqlc/version.mk
deleted file mode 100644
index 3340fe85b04a..000000000000
--- a/mysqlc/version.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# 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/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 .
-#
-
-MYSQLC_VERSION_MAJOR=1
-MYSQLC_VERSION_MINOR=0
-MYSQLC_VERSION_MICRO=1