Kaydet (Commit) c322d509 authored tarafından Peter Foley's avatar Peter Foley Kaydeden (comit) Michael Stahl

convert mysqlcppconn to gbuild and add to tail_build

Change-Id: I33a9ff3393b90c5b9f7d7fa85e8761c02160664f
Reviewed-on: https://gerrit.libreoffice.org/1900Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst ef7b1133
......@@ -123,6 +123,7 @@ $(eval $(call gb_Module_add_moduledirs,tail_build,\
$(call gb_Helper_optional,MDDS,mdds) \
Mesa \
$(call gb_Helper_optional,MORE_FONTS,more_fonts) \
$(call gb_Helper_optional,MYSQLCPPCONN,mysqlcppconn) \
$(call gb_Helper_optional,MYTHES,mythes) \
$(call gb_Helper_optional,NEON,neon) \
$(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
......
......@@ -183,6 +183,70 @@ $(call gb_LinkTarget_add_libs,$(1),-liconv)
endef
ifeq ($(SYSTEM_MYSQL),YES)
define gb_LinkTarget__use_mysql
$(call gb_LinkTarget_add_defs,$(1),\
-DSYSTEM_MYSQL \
)
$(call gb_LinkTarget_add_libs,$(1),\
$(MYSQL_LIB) \
)
$(call gb_LinkTarget_set_include,$(1),\
$(MYSQL_INC) \
$$(INCLUDE) \
)
endef
else
define gb_LinkTarget__use_mysql
$(call gb_LinkTarget_set_include,$(1),\
-I$(LIBMYSQL_PATH)/include \
$$(INCLUDE) \
)
endef
endif
ifeq ($(SYSTEM_MYSQL_CPPCONN),YES)
define gb_LinkTarget__use_mysqlcppconn
$(call gb_LinkTarget_add_libs,$(1),\
-lmysqlcppconn \
)
$(call gb_LinkTarget_add_defs,$(1),\
-DSYSTEM_MYSQL_CPPCONN` \
)
endef
else
$(eval $(call gb_Helper_register_libraries,OOOLIBS,\
mysqlcppconn \
))
define gb_LinkTarget__use_mysqlcppconn
$(call gb_LinkTarget_use_libraries,$(1),\
mysqlcppconn \
)
$(call gb_LinkTarget_set_include,$(1),\
-I$(call gb_UnpackedTarball_get_dir,mysqlcppconn) \
-I$(call gb_UnpackedTarball_get_dir,mysqlcppconn)/cppconn \
$$(INCLUDE) \
)
endef
endif
ifeq ($(SYSTEM_ZLIB),YES)
define gb_LinkTarget__use_zlib
......
......@@ -131,6 +131,7 @@ $(eval $(call gb_Module_add_moduledirs,ooo,\
$(call gb_Helper_optional,MDDS,mdds) \
Mesa \
$(call gb_Helper_optional,MORE_FONTS,more_fonts) \
$(call gb_Helper_optional,MYSQLCPPCONN,mysqlcppconn) \
$(call gb_Helper_optional,MYTHES,mythes) \
$(call gb_Helper_optional,NEON,neon) \
$(call gb_Helper_optional,NLPSOLVER,nlpsolver) \
......
......@@ -7804,7 +7804,8 @@ if test "$ENABLE_MYSQLC" = "YES"; then
AC_MSG_CHECKING([for $LIBMYSQL])
if test -e "$with_libmysql_path/lib/$LIBMYSQL"; then
AC_MSG_RESULT([found.])
LIBMYSQL_PATH=$with_libmysql_path
PathFormat "$with_libmysql_path"
LIBMYSQL_PATH="$formatted_path"
else
AC_MSG_ERROR([not found. Please specify proper path in --with-libmysql-path.])
fi
......
# -*- 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,mysqlcppconn))
$(eval $(call gb_Library_use_unpacked,mysqlcppconn,mysqlcppconn))
$(eval $(call gb_Library_use_externals,mysqlcppconn, \
mysql \
boost_headers \
))
$(eval $(call gb_Library_set_warnings_not_errors,mysqlcppconn))
$(eval $(call gb_Library_set_generated_cxx_suffix,mysqlcppconn,cpp))
$(eval $(call gb_Library_set_include,mysqlcppconn,\
$$(INCLUDE) \
-I$(call gb_UnpackedTarball_get_dir,mysqlcppconn) \
-I$(call gb_UnpackedTarball_get_dir,mysqlcppconn)/cppconn \
))
# HACK: generate import lib for msvc
ifeq ($(COM),MSC)
$(eval $(call gb_Library_add_ldflags,mysqlcppconn,\
/EXPORT:sql_mysql_get_driver_instance \
))
endif
$(eval $(call gb_Library_add_defs,mysqlcppconn,\
-DCPPCONN_LIB_BUILD \
$(if $(filter WNT,$(OS)),\
-DCPPDBC_WIN32 \
-D_CRT_SECURE_NO_WARNINGS \
-D_SCL_SECURE_NO_WARNINGS ) \
))
$(eval $(call gb_Library_add_generated_exception_objects,mysqlcppconn,\
UnpackedTarball/mysqlcppconn/driver/mysql_art_resultset \
UnpackedTarball/mysqlcppconn/driver/mysql_art_rset_metadata \
UnpackedTarball/mysqlcppconn/driver/mysql_connection \
UnpackedTarball/mysqlcppconn/driver/mysql_debug \
UnpackedTarball/mysqlcppconn/driver/mysql_driver \
UnpackedTarball/mysqlcppconn/driver/mysql_metadata \
UnpackedTarball/mysqlcppconn/driver/mysql_parameter_metadata \
UnpackedTarball/mysqlcppconn/driver/mysql_prepared_statement \
UnpackedTarball/mysqlcppconn/driver/mysql_ps_resultset \
UnpackedTarball/mysqlcppconn/driver/mysql_ps_resultset_metadata \
UnpackedTarball/mysqlcppconn/driver/mysql_resultbind \
UnpackedTarball/mysqlcppconn/driver/mysql_resultset \
UnpackedTarball/mysqlcppconn/driver/mysql_resultset_metadata \
UnpackedTarball/mysqlcppconn/driver/mysql_statement \
UnpackedTarball/mysqlcppconn/driver/mysql_util \
UnpackedTarball/mysqlcppconn/driver/mysql_warning \
UnpackedTarball/mysqlcppconn/driver/nativeapi/mysql_client_api \
UnpackedTarball/mysqlcppconn/driver/nativeapi/library_loader \
UnpackedTarball/mysqlcppconn/driver/nativeapi/mysql_native_driver_wrapper \
UnpackedTarball/mysqlcppconn/driver/nativeapi/mysql_native_connection_wrapper \
UnpackedTarball/mysqlcppconn/driver/nativeapi/mysql_native_resultset_wrapper \
UnpackedTarball/mysqlcppconn/driver/nativeapi/mysql_native_statement_wrapper \
))
# vim: set noet sw=4 ts=4:
# -*- 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:
# -*- 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,mysqlcppconn))
ifeq ($(SYSTEM_MYSQL_CPPCONN),NO)
$(eval $(call gb_Module_add_targets,mysqlcppconn,\
UnpackedTarball_mysqlcppconn \
Library_mysqlcppconn \
))
endif
# vim: set noet sw=4 ts=4:
# -*- 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_UnpackedTarball_UnpackedTarball,mysqlcppconn))
$(eval $(call gb_UnpackedTarball_set_tarball,mysqlcppconn,$(MYSQLCPPCONN_TARBALL)))
$(eval $(call gb_UnpackedTarball_add_file,mysqlcppconn,cppconn/config.h,mysqlcppconn/config.h))
ifeq ($(SYSTEM_MYSQL),YES)
$(eval $(call gb_UnpackedTarball_add_file,mysqlcppconn,driver/nativeapi/binding_config.h,mysqlcppconn/binding_static.h))
else
$(eval $(call gb_UnpackedTarball_add_file,mysqlcppconn,driver/nativeapi/binding_config.h,mysqlcppconn/binding_dynamic.h))
endif
$(eval $(call gb_UnpackedTarball_add_patches,mysqlcppconn,\
mysqlcppconn/patches/mysql-connector-c++-1.1.0.patch \
$(if $(filter NO,$(SYSTEM_MYSQL)), \
mysqlcppconn/patches/mysql-connector-c++-1.1.0-mysql-binding-dynamic.patch) \
mysqlcppconn/patches/default_to_protocol_tcp.patch \
))
# vim: set noet sw=4 ts=4:
#define HAVE_DLFCN_H 1
//#define MYSQLCLIENT_STATIC_BINDING 1
#define HAVE_DLFCN_H 1
#define MYSQLCLIENT_STATIC_BINDING 1
#include <sal/types.h>
#define HAVE_FUNCTION_STRTOL 1
#define HAVE_FUNCTION_STRTOUL 1
#define HAVE_FUNCTION_STRTOL 1
#define HAVE_FUNCTION_STRTOULL 1
#if defined(MACOSX) || defined(SOLARIS) || defined(LINUX)
#define HAVE_STDINT_H
#define HAVE_INTTYPES_H
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#if !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H) && !defined(_MSC_VER)
// if we do not have the standard C99 integer types, then define them based on the respective SAL types
#if !defined(_SYS_TYPES_H)
typedef sal_Int8 int8_t;
typedef sal_Int16 int16_t;
typedef sal_Int32 int32_t;
#endif // !defined(_SYS_TYPES_H)
typedef sal_uInt8 uint8_t;
typedef sal_uInt16 uint16_t;
typedef sal_uInt32 uint32_t;
typedef sal_Int64 int64_t;
typedef sal_uInt64 uint64_t;
#endif // !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H)
#*************************************************************************
#
# 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.
#
#*************************************************************************
PRJNAME = mysqlcppconn
ENABLE_EXCEPTIONS = TRUE
USE_LDUMP2 = TRUE
EXTERNAL_WARNINGS_NOT_ERRORS = TRUE
CPPCONN_NATIVEAPI = cppconn_nativeapi
#*************************************************************************
#
# 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=mysqlcppconn
TARGET=so_mysqlcppconn
EXT_PROJECT_NAME=mysql-connector-c++-1.1.0
# --- Settings -----------------------------------------------------
.INCLUDE : settings.mk
# --- Files --------------------------------------------------------
TARFILE_NAME=$(EXT_PROJECT_NAME)
TARFILE_MD5=0981bda6548a8c8233ffce2b6e4b2a23
ADDITIONAL_FILES=\
driver$/makefile.mk \
driver$/nativeapi$/makefile.mk \
driver$/nativeapi$/binding_config.h \
cppconn$/config.h
CONVERTFILES=\
cppconn$/build_config.h
# distro-specific builds want to link against a particular mysql library
# then they do not require mysql-devel package at runtime
# So put mysql-connector-cpp/driver/nativeapi/binding_config.h into separate patch
# and enable/disable MYSQLCLIENT_STATIC_BINDING according to the used mysql library
.IF "$(SYSTEM_MYSQL)" == "YES"
MYSQL_BINDING=static
.ELSE
MYSQL_BINDING=dynamic
.ENDIF
PATCH_FILES=\
$(TARFILE_NAME).patch \
$(TARFILE_NAME)-mysql-binding-$(MYSQL_BINDING).patch \
patches/default_to_protocol_tcp.patch
BUILD_DIR=driver
BUILD_ACTION = \
cd nativeapi \
&& $(MAKE) $(MFLAGS) $(CALLMACROS) \
&& cd .. \
&& $(MAKE) $(MFLAGS) $(CALLMACROS)
# --- Targets ------------------------------------------------------
.INCLUDE : set_ext.mk
.INCLUDE : target.mk
.INCLUDE : tg_ext.mk
# --- post-build ---------------------------------------------------
# "normalize" the output structure, in that the C/C++ headers are
# copied to the canonic location in OUTPATH
# The allows, later on, to use the standard mechanisms to deliver those
# files, instead of delivering them out of OUTPATH/misc/build/..., which
# could cause problems
NORMALIZE_FLAG_FILE=so_normalized_$(TARGET)
$(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE) : $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE)
@$(GNUCOPY) -r $(PACKAGE_DIR)$/$(EXT_PROJECT_NAME)$/driver$/mysql_driver.h $(INCCOM)
-@$(MKDIRHIER) $(INCCOM)$/cppconn
@$(GNUCOPY) -r $(PACKAGE_DIR)$/$(EXT_PROJECT_NAME)$/cppconn$/* $(INCCOM)$/cppconn
@$(TOUCH) $(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE)
normalize: $(PACKAGE_DIR)$/$(NORMALIZE_FLAG_FILE)
$(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) : normalize
--- misc/mysql-connector-c++-1.1.0/driver/nativeapi/binding_config.h 2009-08-14 10:17:23.640625000 +0200
+++ misc/build/mysql-connector-c++-1.1.0/driver/nativeapi/binding_config.h 2009-08-14 10:13:50.359375000 +0200
@@ -1 +1,2 @@
-dummy
+#define HAVE_DLFCN_H 1
+#define MYSQLCLIENT_STATIC_BINDING 1
#*************************************************************************
#
# 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.
#
#*************************************************************************
.IF "$(SYSTEM_MYSQL)" == "YES"
CFLAGS+=-DSYSTEM_MYSQL
.ELSE
.IF "$(LIBMYSQL_PATH)" == ""
alltar:
@echo "need to have LIBMYSQL_PATH set to the location where libmysql (also known as 'MySQL Connector/C') is installed"
@force_dmake_to_error
.ENDIF
.ENDIF
.IF "$(OS)"=="WNT"
CFLAGS+=-DCPPDBC_WIN32 -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
.ENDIF # "$(OS)"=="WNT"
.IF "$(SYSTEM_MYSQL)" != "YES"
MYSQL_INC+=-I$(LIBMYSQL_PATH)$/include
.ENDIF
CFLAGS+=-I$(PRJINC) -I$(PRJINC)$/cppconn -I$(WORKDIR)/UnpackedTarball/boost $(MYSQL_INC) -DCPPCONN_LIB_BUILD
--- misc/mysql-connector-c++-1.1.0/driver/nativeapi/binding_config.h 2009-08-14 10:17:23.640625000 +0200
+++ misc/build/mysql-connector-c++-1.1.0/driver/nativeapi/binding_config.h 2009-08-14 10:13:50.359375000 +0200
@@ -1 +1,2 @@
-dummy
+#define HAVE_DLFCN_H 1
+//#define MYSQLCLIENT_STATIC_BINDING 1
--- misc/mysql-connector-c++-1.1.0/driver/nativeapi/mysql_client_api.h 2010-09-10 11:47:47.000000000 +0200
+++ misc/build/mysql-connector-c++-1.1.0/driver/nativeapi/mysql_client_api.h 2011-12-08 20:22:29.000000000 +0100
@@ -107,6 +107,8 @@
......
......@@ -32,44 +32,6 @@
+ #define CPPCONN_PUBLIC_EXCEPTION SAL_EXCEPTION_DLLPUBLIC_EXPORT
#endif //#ifndef _SQL_BUILD_CONFIG_H_
--- misc/mysql-connector-c++-1.1.0/cppconn/config.h 2009-08-14 10:17:38.234375000 +0200
+++ misc/build/mysql-connector-c++-1.1.0/cppconn/config.h 2009-08-14 09:56:37.000000000 +0200
@@ -1 +1,34 @@
-dummy
+#include <sal/types.h>
+
+#define HAVE_FUNCTION_STRTOL 1
+#define HAVE_FUNCTION_STRTOUL 1
+#define HAVE_FUNCTION_STRTOL 1
+#define HAVE_FUNCTION_STRTOULL 1
+
+#if defined(MACOSX) || defined(SOLARIS) || defined(LINUX)
+ #define HAVE_STDINT_H
+ #define HAVE_INTTYPES_H
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
+#if !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H)
+
+// if we do not have the standard C99 integer types, then define them based on the respective SAL types
+#if !defined(_SYS_TYPES_H)
+typedef sal_Int8 int8_t;
+typedef sal_Int16 int16_t;
+typedef sal_Int32 int32_t;
+#endif // !defined(_SYS_TYPES_H)
+typedef sal_uInt8 uint8_t;
+typedef sal_uInt16 uint16_t;
+typedef sal_uInt32 uint32_t;
+typedef sal_Int64 int64_t;
+typedef sal_uInt64 uint64_t;
+#endif // !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H)
--- misc/mysql-connector-c++-1.1.0/cppconn/exception.h 2009-08-20 17:51:23.000000000 +0200
+++ misc/build/mysql-connector-c++-1.1.0/cppconn/exception.h 2009-09-11 09:41:41.076379817 +0200
@@ -37,7 +37,7 @@
......@@ -112,74 +74,6 @@
{
NonScrollableException(const NonScrollableException& e) : SQLException(e.what(), e.sql_state, e.errNo) { }
NonScrollableException(const std::string& reason) : SQLException(reason, "", 0) {}
--- misc/mysql-connector-c++-1.1.0/driver/makefile.mk 2009-09-11 09:42:34.087202551 +0200
+++ misc/build/mysql-connector-c++-1.1.0/driver/makefile.mk 2009-09-11 09:42:25.902286382 +0200
@@ -1,1 +1,64 @@
-dummy
+PRJ=..$/..$/..$/..$/..
+
+.INCLUDE : $(PRJ)$/cppconn_config.pmk
+
+PRJINC=..
+TARGET=$(PRJNAME)
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+.INCLUDE : $(PRJ)$/mysql_config.pmk
+
+# --- Files --------------------------------------------------------
+
+.IF "$(OS)-$(RTL_ARCH)" == "LINUX-x86"
+ SHL1NOCHECK=TRUE
+.ENDIF
+SHL1TARGET=$(TARGET)
+
+LIB1TARGET=$(SLB)$/$(PRJNAME).lib
+LIB1OBJFILES+= \
+ $(SLO)$/mysql_art_resultset.obj \
+ $(SLO)$/mysql_art_rset_metadata.obj \
+ $(SLO)$/mysql_connection.obj \
+ $(SLO)$/mysql_debug.obj \
+ $(SLO)$/mysql_driver.obj \
+ $(SLO)$/mysql_metadata.obj \
+ $(SLO)$/mysql_parameter_metadata.obj \
+ $(SLO)$/mysql_prepared_statement.obj \
+ $(SLO)$/mysql_ps_resultset.obj \
+ $(SLO)$/mysql_ps_resultset_metadata.obj \
+ $(SLO)$/mysql_resultbind.obj \
+ $(SLO)$/mysql_resultset.obj \
+ $(SLO)$/mysql_resultset_metadata.obj \
+ $(SLO)$/mysql_statement.obj \
+ $(SLO)$/mysql_util.obj \
+ $(SLO)$/mysql_warning.obj \
+
+SHL1STDLIBS=\
+ $(MYSQL_LIB)
+
+SHL1RPATH=OXT
+SHL1IMPLIB= i$(TARGET)
+SHL1LIBS= $(LIB1TARGET) $(SLB)$/$(CPPCONN_NATIVEAPI).lib
+SHL1DEF= $(MISC)$/$(SHL1TARGET).def
+DEF1NAME= $(SHL1TARGET)
+DEF1DEPN= $(MISC)$/$(SHL1TARGET).flt \
+ $(LIB1TARGET)
+DEFLIB1NAME=$(TARGET)
+
+# --- Targets ------------------------------------------------------
+
+.INCLUDE : target.mk
+
+# --- filter file ------------------------------
+
+.IF "$(depend)"==""
+$(MISC)$/$(SHL1TARGET).flt: makefile.mk
+ @echo CLEAR_THE_FILE > $@
+ @echo _TI >>$@
+ @echo _real >>$@
+ @echo __CT >>$@
+.ENDIF # "$(depend)"==""
--- misc/mysql-connector-c++-1.1.0/driver/mysql_debug.h 2009-08-13 17:13:46.000000000 +0200
+++ misc/build/mysql-connector-c++-1.1.0/driver/mysql_debug.h 2009-08-14 09:56:37.015625000 +0200
@@ -25,16 +25,6 @@
......@@ -207,31 +101,4 @@
#include <stack>
#include "mysql_util.h"
--- misc/mysql-connector-c++-1.1.0/driver/nativeapi/makefile.mk 2009-08-17 21:32:53.694119382 +0200
+++ misc/build/mysql-connector-c++-1.1.0/driver/nativeapi/makefile.mk 2009-08-17 21:32:50.534346360 +0200
@@ -1 +1,24 @@
-dummy
+PRJ=..$/..$/..$/..$/..$/..
+PRJINC=..$/..
+
+.INCLUDE : $(PRJ)$/cppconn_config.pmk
+
+TARGET=$(CPPCONN_NATIVEAPI)
+
+# --- Settings -----------------------------------------------------
+
+.INCLUDE : settings.mk
+
+.INCLUDE : $(PRJ)$/mysql_config.pmk
+
+LIB1TARGET=$(SLB)$/$(TARGET).lib
+LIB1OBJFILES+= \
+ $(SLO)$/mysql_client_api.obj \
+ $(SLO)$/library_loader.obj \
+ $(SLO)$/mysql_native_driver_wrapper.obj \
+ $(SLO)$/mysql_native_connection_wrapper.obj \
+ $(SLO)$/mysql_native_resultset_wrapper.obj \
+ $(SLO)$/mysql_native_statement_wrapper.obj \
+
+# --- Targets ------------------------------------------------------
+.INCLUDE : target.mk
# mirror the dir structure a make install would create
mkdir: %_DEST%\inc\mysqlcppconn
mkdir: %_DEST%\inc\mysqlcppconn\cppconn
..\%__SRC%\inc\*.h %_DEST%\inc\mysqlcppconn\*.h
..\%__SRC%\inc\cppconn\*.h %_DEST%\inc\mysqlcppconn\cppconn\*.h
..\%__SRC%\bin\*.dll %_DEST%\bin\*.dll
..\%__SRC%\lib\lib*.so* %_DEST%\lib
..\%__SRC%\lib\*.sl %_DEST%\lib\*.sl
..\%__SRC%\lib\*.dylib %_DEST%\lib\*.dylib
..\%__SRC%\lib\*.dylib.* %_DEST%\lib\*.dylib.*
..\%__SRC%\lib\*.a %_DEST%\lib\*.a
..\%__SRC%\lib\i*.lib %_DEST%\lib
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment