summaryrefslogtreecommitdiff
path: root/connectivity/Library_odbc.mk
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2011-12-22 18:26:11 -0500
committerDavid Tardon <dtardon@redhat.com>2012-05-29 07:24:31 +0200
commit288243a5c36aa10d8287c6b90c61a7b3ea9999bc (patch)
tree88fe99000fe89951169b1f63bc2d6668322c7dac /connectivity/Library_odbc.mk
parent3b8587636ba0d9227d12657fe9a4cd2a095aed6b (diff)
connectivity: convert odbc to gbuild
Diffstat (limited to 'connectivity/Library_odbc.mk')
-rw-r--r--connectivity/Library_odbc.mk65
1 files changed, 65 insertions, 0 deletions
diff --git a/connectivity/Library_odbc.mk b/connectivity/Library_odbc.mk
new file mode 100644
index 000000000000..6744bb7f6aca
--- /dev/null
+++ b/connectivity/Library_odbc.mk
@@ -0,0 +1,65 @@
+# -*- 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,odbc))
+
+$(eval $(call gb_Library_add_package_headers,odbc,connectivity_inc))
+
+$(eval $(call gb_Library_set_componentfile,odbc,connectivity/source/drivers/odbc/odbc))
+
+$(eval $(call gb_Library_add_api,odbc,\
+ offapi \
+ udkapi \
+))
+
+$(eval $(call gb_Library_set_include,odbc,\
+ $$(INCLUDE) \
+ -I$(SRCDIR)/connectivity/source/inc \
+))
+
+ifeq ($(SYSTEM_ODBC_HEADERS),YES)
+$(eval $(call gb_Library_add_defs,odbc,\
+ -DSYSTEM_ODBC_HEADERS \
+))
+endif
+
+$(eval $(call gb_Library_add_linked_libs,odbc,\
+ odbcbase \
+ cppu \
+ cppuhelper \
+ sal \
+ salhelper \
+ $(gb_STDLIBS) \
+))
+
+$(eval $(call gb_Library_add_exception_objects,odbc,\
+ connectivity/source/drivers/odbc/oservices \
+ connectivity/source/drivers/odbc/ORealDriver \
+ connectivity/source/drivers/odbc/OFunctions \
+))
+
+# vim: set noet sw=4 ts=4: