package/odb: new package
ODB is an open-source, cross-platform, and cross-database
object-relational mapping (ORM) system for C++. It allows you to
persist C++ objects to a relational database without having to deal
with tables, columns, or SQL and without manually writing any mapping
code.
ODB supports MySQL, SQLite, PostgreSQL, Oracle, and Microsoft SQL
Server relational databases as well as C++98/03 and C++11 language
standards. It also comes with optional profiles for Boost and Qt
which allow you to seamlessly use value types, containers, and smart
pointers from these libraries in your persistent C++ classes.
This package is used for auto-generating ODB specific header files
into useable code that can be linked against a seperate libodb and a
specific libodb database library. As such, it is only needed as a
host program and is not user selectable.
Signed-off-by: Adam Duskett <aduskett@gmail.com>
[Kamel: Fix incorrect odb license]
Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
[Thomas: add patch fixing gcc10 build, add references to upstream
commits]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-07-06 17:30:36 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# odb
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
ODB_VERSION_MAJOR = 2.4
|
|
|
|
ODB_VERSION = $(ODB_VERSION_MAJOR).0
|
|
|
|
ODB_SOURCE = odb-$(ODB_VERSION).tar.bz2
|
|
|
|
ODB_SITE = https://www.codesynthesis.com/download/odb/$(ODB_VERSION_MAJOR)
|
|
|
|
ODB_LICENSE = GPL-3.0
|
|
|
|
ODB_LICENSE_FILES = LICENSE
|
2022-03-10 10:56:02 +01:00
|
|
|
# host-libodb is not needed to build host-odb, but it is needed to use
|
|
|
|
# the ODB compiler, as it install header files that are needed at
|
|
|
|
# runtime by the odb compiler.
|
|
|
|
HOST_ODB_DEPENDENCIES = host-libcutl host-libodb
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBODB_BOOST),y)
|
|
|
|
HOST_ODB_DEPENDENCIES += host-libodb-boost
|
|
|
|
endif
|
2021-06-03 22:09:01 +02:00
|
|
|
HOST_ODB_CONF_ENV = CXXFLAGS="$(HOST_CXXFLAGS) -std=c++11"
|
package/odb: new package
ODB is an open-source, cross-platform, and cross-database
object-relational mapping (ORM) system for C++. It allows you to
persist C++ objects to a relational database without having to deal
with tables, columns, or SQL and without manually writing any mapping
code.
ODB supports MySQL, SQLite, PostgreSQL, Oracle, and Microsoft SQL
Server relational databases as well as C++98/03 and C++11 language
standards. It also comes with optional profiles for Boost and Qt
which allow you to seamlessly use value types, containers, and smart
pointers from these libraries in your persistent C++ classes.
This package is used for auto-generating ODB specific header files
into useable code that can be linked against a seperate libodb and a
specific libodb database library. As such, it is only needed as a
host program and is not user selectable.
Signed-off-by: Adam Duskett <aduskett@gmail.com>
[Kamel: Fix incorrect odb license]
Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
[Thomas: add patch fixing gcc10 build, add references to upstream
commits]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-07-06 17:30:36 +02:00
|
|
|
|
|
|
|
# Prevent odb from trying to install the gcc plugin into the hosts
|
|
|
|
# gcc plugin directory. Instead, this will install the gcc plugin
|
|
|
|
# into host/libexec/odb
|
|
|
|
HOST_ODB_CONF_OPTS = --with-gcc-plugin-dir=no
|
|
|
|
|
|
|
|
$(eval $(host-autotools-package))
|