connectivity: convert hsqldb

This commit is contained in:
David Tardon 2012-03-27 16:36:31 +02:00
parent b3d2b95755
commit 579f52d41e
5 changed files with 150 additions and 0 deletions

View file

@ -280,6 +280,7 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
fwm \
guesslang \
helplinker \
hsqldb \
hwp \
hyphen \
i18nregexp \

View file

@ -1220,6 +1220,26 @@ $(call gb_LinkTarget_set_include,$(1),\
)
endef
ifdef ($(SYSTEM_HSQLDB),YES)
define gb_LinkTarget__use_hsqldb
$(call gb_LinkTarget_add_defs,$(1),\
-DSYSTEM_HSQLDB \
-DHSQLDB_JAR=\""file://$(HSQLDB_JAR)"\" \
)
endef
else # !SYSTEM_HSQLDB
define gb_LinkTarget__use_hsqldb
endef
endif # SYSTEM_HSQLDB
# MacOSX-only frameworks ############################################
# (in alphabetical order)

View file

@ -0,0 +1,47 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# Major Contributor(s):
# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
# (initial developer)
#
# All Rights Reserved.
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_AllLangResTarget_AllLangResTarget,hsqldb))
$(eval $(call gb_AllLangResTarget_set_reslocation,hsqldb,database))
$(eval $(call gb_AllLangResTarget_add_srs,hsqldb,\
database \
))
$(eval $(call gb_SrsTarget_SrsTarget,hsqldb/res))
$(eval $(call gb_SrsTarget_set_include,hsqldb/res,\
-I$(SRCDIR)/connectivity/source/drivers/hsqldb \
$$(INCLUDE) \
))
$(eval $(call gb_SrsTarget_add_files,hsqldb/res,\
connectivity/source/drivers/hsqldb/hsqlui.src \
))
# vim: set noet sw=4 ts=4:

View file

@ -0,0 +1,80 @@
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License or as specified alternatively below. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# Major Contributor(s):
# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
# (initial developer)
#
# All Rights Reserved.
#
# For minor contributions see the git repository.
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
# instead of those above.
$(eval $(call gb_Library_Library,hsqldb))
$(eval $(call gb_Library_set_include,hsqldb,\
-I$(SRCDIR)/connectivity/source/inc \
$$(INCLUDE) \
))
$(eval $(call gb_Library_use_externals,hsqldb,\
hsqldb \
))
$(eval $(call gb_Library_add_api,hsqldb,\
offapi \
udkapi \
))
$(eval $(call gb_Library_add_linked_libs,hsqldb,\
comphelper \
cppu \
cppuhelper \
dbtools \
jvmfwk \
sal \
tl \
utl \
$(gb_STDLIBS) \
))
$(eval $(call gb_Library_set_componentfile,hsqldb,connectivity/source/drivers/hsqldb/hsqldb))
$(eval $(call gb_Library_add_exception_objects,hsqldb,\
connectivity/source/drivers/hsqldb/HCatalog \
connectivity/source/drivers/hsqldb/HColumns \
connectivity/source/drivers/hsqldb/HConnection \
connectivity/source/drivers/hsqldb/HDriver \
connectivity/source/drivers/hsqldb/HStorageAccess \
connectivity/source/drivers/hsqldb/HStorageMap \
connectivity/source/drivers/hsqldb/HTable \
connectivity/source/drivers/hsqldb/HTables \
connectivity/source/drivers/hsqldb/HTerminateListener \
connectivity/source/drivers/hsqldb/HTools \
connectivity/source/drivers/hsqldb/HUser \
connectivity/source/drivers/hsqldb/HUsers \
connectivity/source/drivers/hsqldb/HView \
connectivity/source/drivers/hsqldb/HViews \
connectivity/source/drivers/hsqldb/Hservices \
connectivity/source/drivers/hsqldb/StorageFileAccess \
connectivity/source/drivers/hsqldb/StorageNativeInputStream \
connectivity/source/drivers/hsqldb/StorageNativeOutputStream \
connectivity/source/drivers/hsqldb/accesslog \
))
# vim: set noet sw=4 ts=4:

View file

@ -45,8 +45,10 @@ $(eval $(call gb_Module_add_targets,connectivity,\
ifneq ($(SOLAR_JAVA),)
$(eval $(call gb_Module_add_targets,connectivity,\
AllLangResTarget_hsqldb \
Jar_ConnectivityTools \
Jar_sdbc_hsqldb \
Library_hsqldb \
Library_jdbc \
))
endif