libreoffice/connectivity/Module_connectivity.mk

155 lines
3.1 KiB
Makefile
Raw Normal View History

# -*- 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,connectivity))
$(eval $(call gb_Module_add_targets,connectivity,\
AllLangResTarget_cnr \
AllLangResTarget_sdbcl \
AllLangResTarget_sdberr \
2012-04-06 20:10:17 +02:00
Configuration_calc \
Configuration_dbase \
Configuration_flat \
Configuration_mysql \
Configuration_odbc \
2011-12-22 16:59:41 -05:00
Library_calc \
2012-04-06 17:29:45 +02:00
Library_dbase \
Library_dbpool2 \
Library_dbtools \
2011-12-25 11:40:33 -05:00
Library_file \
2011-12-25 11:54:34 -05:00
Library_flat \
2012-04-06 17:29:45 +02:00
Library_mysql \
$(if $(filter ANDROID IOS,$(OS)),, \
Library_odbc \
Library_odbcbase) \
2012-04-06 17:29:45 +02:00
Library_sdbc2 \
))
ifneq ($(SOLAR_JAVA),)
$(eval $(call gb_Module_add_targets,connectivity,\
2012-04-06 20:10:17 +02:00
Configuration_hsqldb \
Configuration_jdbc \
Jar_sdbc_hsqldb \
2012-03-27 16:36:31 +02:00
Library_hsqldb \
2011-12-25 11:16:20 -05:00
Library_jdbc \
))
endif
ifneq ($(OS),WNT)
2011-12-21 21:43:58 -05:00
2011-12-20 19:41:57 -05:00
ifeq ($(ENABLE_KAB),TRUE)
$(eval $(call gb_Module_add_targets,connectivity,\
2012-04-06 20:10:17 +02:00
Configuration_kab \
2011-12-20 19:41:57 -05:00
Library_kab1 \
Library_kabdrv1 \
))
endif
2011-12-21 21:43:58 -05:00
ifeq ($(ENABLE_TDEAB),TRUE)
$(eval $(call gb_Module_add_targets,connectivity,\
Configuration_tdeab \
Library_tdeab1 \
Library_tdeabdrv1 \
))
endif
2011-12-21 21:43:58 -05:00
ifeq ($(OS),MACOSX)
$(eval $(call gb_Module_add_targets,connectivity,\
2012-04-06 20:10:17 +02:00
Configuration_macab \
2011-12-21 21:43:58 -05:00
Library_macab1 \
Library_macabdrv1 \
))
endif
2011-12-20 19:41:57 -05:00
endif
ifeq ($(OS),WNT)
2011-12-20 12:15:42 -05:00
$(eval $(call gb_Module_add_targets,connectivity,\
2012-04-06 20:10:17 +02:00
Configuration_ado \
2011-12-20 12:15:42 -05:00
Library_ado \
))
endif
2011-12-22 16:34:35 -05:00
ifeq ($(ENABLE_EVOAB2),TRUE)
$(eval $(call gb_Module_add_targets,connectivity,\
2012-04-14 09:53:48 +02:00
Configuration_evoab \
Library_evoab \
2011-12-22 16:34:35 -05:00
))
endif
ifeq ($(ENABLE_FIREBIRD_SDBC),TRUE)
$(eval $(call gb_Module_add_targets,connectivity,\
Configuration_firebird \
Library_firebird-sdbc \
Rdb_firebird-sdbc \
))
endif
ifeq ($(BUILD_POSTGRESQL_SDBC),YES)
$(eval $(call gb_Module_add_targets,connectivity,\
2012-04-06 20:10:17 +02:00
Configuration_postgresql \
Library_postgresql-sdbc \
Library_postgresql-sdbc-impl \
Package_postgresql-sdbc \
Rdb_postgresql-sdbc \
))
endif
ifeq ($(OS),WNT)
ifeq ($(WITH_MOZAB4WIN),YES)
$(eval $(call gb_Module_add_targets,connectivity,\
Configuration_mozab \
Library_mozab \
Library_mozabdrv \
))
else
$(eval $(call gb_Module_add_targets,connectivity,\
Library_mozbootstrap \
))
endif
else ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
2012-04-06 20:10:17 +02:00
$(eval $(call gb_Module_add_targets,connectivity,\
Configuration_mork \
Executable_mork_helper \
Library_mork \
Library_mozbootstrap \
2012-04-06 20:10:17 +02:00
))
$(eval $(call gb_Module_add_check_targets,connectivity,\
CppunitTest_connectivity_mork \
))
endif
ifeq ($(OS),WNT)
$(eval $(call gb_Module_add_check_targets,connectivity,\
CppunitTest_connectivity_ado \
))
endif
ifneq ($(filter QADEVOOO,$(BUILD_TYPE)),)
$(eval $(call gb_Module_add_subsequentcheck_targets,connectivity,\
Jar_ConnectivityTools \
))
2012-05-01 08:55:41 +02:00
# FIXME: Does not work. Convert to JUnit.
# JunitTest_complex \
endif
2012-04-07 07:33:39 +02:00
ORowSetValue: clean up sign/unsigned union member Also switch BOOLEAN constructor from sal_Bool to bool. old/new signed/unsigned storage situation: ------------------------------------------------------- SQL type | signed | unsigned old | unsigned new ------------------------------------------------------- TINYINT | sal_Int8 | sal_Int16 | sal_uInt8 SMALLINT | sal_Int16 | sal_Int32 | sal_uInt16 INTEGER | sal_Int32 | sal_Int64 | sal_uInt32 BIGINT | sal_Int64 | pValue (String*) | sal_uInt64 ------------------------------------------------------- When sticking an UNSIGNED TINYINT into an Any, silently promote it to UNSIGNED SMALLINT (that is sal_uInt16), else Any would take it as a sal_Bool and normalise to sal_True (1) or sal_False (0). When constructing an ORowSetValue from a sal_Bool, silently keep it as an unsigned 8 bit integer (that is understand it as a sal_uInt8). This will work in most cases, since when asked back for a bool or sal_Bool, we'll give back the right value. Only code looking at the type tag could possibly make a "wrong" decision. The main (hopefully only?) path through which this would happen is through an implementation of XParameters::setBoolean XRowUpdate::updateBoolean that would use its sal_Bool argument to construct an ORowSetValue. So make sure each implementation constructs a proper BOOLEAN so as not to get confused. For authorship/copyright purposes, this patch is a cooperation between Lionel Elie Mamane <lionel@mamane.lu> and David Ostrovsky <david@ostrovsky.org> Change-Id: I3f1f08716127147f077bff4edb6ec558b1b09e09
2013-02-04 11:12:57 +01:00
# general tests
$(eval $(call gb_Module_add_check_targets,connectivity,\
CppunitTest_connectivity_commontools \
))
# vim: set noet sw=4 ts=4: