a7a9fd46ca
- Fix uninitialized indicators in conversion_into_type and conversion_use_type specialisations - Fixed placeholder matching for PostgreSQL-style casts with ORM - Fixed memory leaking in use binding in case of bind/unbind sequence - Fixed sscanf formatter for MinGW/MSVC in backends - Fixed partial placeholder name matching for ORM cases - Added test for use of indicators with rowset<row> - Added test for get_affected_rows after bulk operations Add options for selecting MySQL/PostgreSQL/SQLite backends, defaulting to PostgreSQL.
38 lines
869 B
Makefile
38 lines
869 B
Makefile
# $NetBSD: options.mk,v 1.1 2013/09/11 12:22:33 joerg Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.soci
|
|
PKG_SUPPORTED_OPTIONS= mysql pgsql sqlite
|
|
PKG_SUGGESTED_OPTIONS= pgsql
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
PLIST_VARS+= ${PKG_SUPPORTED_OPTIONS}
|
|
|
|
CMAKE_ARGS+= -DWITH_ODBC=off -DWITH_ORACLE=off \
|
|
-DWITH_FIREBIRD=off -DWITH_DB2=off
|
|
|
|
PLIST_VARS+= mysql pgsql sqlite
|
|
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
|
.include "../../mk/mysql.buildlink3.mk"
|
|
CMAKE_ARGS+= -DWITH_MYSQL=on
|
|
PLIST.mysql= yes
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_MYSQL=off
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
.include "../../mk/pgsql.buildlink3.mk"
|
|
CMAKE_ARGS+= -DWITH_POSTGRESQL=on
|
|
PLIST.pgsql= yes
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_POSTGRESQL=off
|
|
.endif
|
|
|
|
.if !empty(PKG_OPTIONS:Msqlite)
|
|
.include "../../databases/sqlite3/buildlink3.mk"
|
|
CMAKE_ARGS+= -DWITH_SQLITE3=on
|
|
PLIST.sqlite= yes
|
|
.else
|
|
CMAKE_ARGS+= -DWITH_SQLITE3=off
|
|
.endif
|