connectivity: convert kab to gbuild

This commit is contained in:
Peter Foley
2011-12-20 19:41:57 -05:00
committed by David Tardon
parent 0ea09fa771
commit 07d512eff1
6 changed files with 158 additions and 17 deletions

View File

@@ -278,18 +278,20 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
hwp \
hyphen \
i18nregexp \
icd \
icg \
idx \
ime \
ipb \
ipd \
ips \
ipt \
ipx \
ira \
itg \
iti \
icd \
icg \
idx \
ime \
ipb \
ipd \
ips \
ipt \
ipx \
ira \
itg \
iti \
kab1 \
kabdrv1 \
lng \
lnth \
log \

View File

@@ -1064,6 +1064,16 @@ endef
endif # SYSTEM_CURL
define gb_LinkTarget__use_kde
$(call gb_LinkTarget_add_libs,$(1),\
$(KDE_LIBS) \
)
$(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \
$(KDE_CFLAGS) \
)
endef
ifeq ($(SYSTEM_MOZILLA_HEADERS),YES)

View File

@@ -0,0 +1,56 @@
# -*- 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) 2011 Peter Foley <pefoley2@verizon.net> (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,kab1))
$(eval $(call gb_Library_add_package_headers,kab1,connectivity_inc))
$(eval $(call gb_Library_use_externals,kab1,kde))
$(eval $(call gb_Library_set_componentfile,kab1,connectivity/source/drivers/kab/kab1))
$(eval $(call gb_Library_add_api,kab1,\
offapi \
udkapi \
))
$(eval $(call gb_Library_add_linked_libs,kab1,\
comphelper \
cppu \
cppuhelper \
dbtools \
sal \
salhelper \
$(gb_STDLIBS) \
))
$(eval $(call gb_Library_add_exception_objects,kab1,\
connectivity/source/drivers/kab/KDriver \
connectivity/source/drivers/kab/KServices \
))
# vim: set noet sw=4 ts=4:

View File

@@ -0,0 +1,68 @@
# -*- 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) 2011 Peter Foley <pefoley2@verizon.net> (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,kabdrv1))
$(eval $(call gb_Library_add_package_headers,kabdrv1,connectivity_inc))
$(eval $(call gb_Library_add_api,kabdrv1,\
offapi \
udkapi \
))
$(eval $(call gb_Library_add_libs,kabdrv1,\
-lkabc \
))
$(eval $(call gb_Library_add_linked_libs,kabdrv1,\
cppu \
cppuhelper \
sal \
salhelper \
dbtools \
comphelper \
$(gb_STDLIBS) \
))
$(eval $(call gb_Library_add_exception_objects,kabdrv1,\
connectivity/source/drivers/kab/KColumns \
connectivity/source/drivers/kab/KTable \
connectivity/source/drivers/kab/KTables \
connectivity/source/drivers/kab/KCatalog \
connectivity/source/drivers/kab/KResultSet \
connectivity/source/drivers/kab/KStatement \
connectivity/source/drivers/kab/KPreparedStatement \
connectivity/source/drivers/kab/KDatabaseMetaData \
connectivity/source/drivers/kab/KConnection \
connectivity/source/drivers/kab/KResultSetMetaData \
connectivity/source/drivers/kab/kcondition \
connectivity/source/drivers/kab/korder \
connectivity/source/drivers/kab/kfields \
connectivity/source/drivers/kab/KDEInit \
))
# vim: set noet sw=4 ts=4:

View File

@@ -43,6 +43,15 @@ $(eval $(call gb_Module_add_targets,connectivity,\
))
endif
ifeq ($(GUI),UNX)
ifeq ($(ENABLE_KAB),TRUE)
$(eval $(call gb_Module_add_targets,connectivity,\
Library_kab1 \
Library_kabdrv1 \
))
endif
endif
ifeq ($(GUI),WNT)
$(eval $(call gb_Module_add_targets,connectivity,\
Library_ado \

View File

@@ -33,11 +33,6 @@ $(eval $(call gb_Library_set_include,vclplug_kde,\
-I$(SRCDIR)/vcl/inc \
))
$(eval $(call gb_Library_set_include,vclplug_kde,\
$$(INCLUDE) \
$$(KDE_CFLAGS) \
))
$(eval $(call gb_Library_add_defs,vclplug_kde,\
-DVCLPLUG_KDE_IMPLEMENTATION \
))
@@ -76,6 +71,7 @@ $(eval $(call gb_Library_use_libraries,vclplug_kde,\
$(eval $(call gb_Library_use_externals,vclplug_kde,\
icule \
icuuc \
kde \
))
$(eval $(call gb_Library_add_exception_objects,vclplug_kde,\