HibernateD and DDBC - ORM and DB abstraction layer for D
Sönke Ludwig
sludwig at outerproduct.org
Tue Apr 16 00:40:52 PDT 2013
Sorry, the library target types are still not fully implemented. But if
the package is used as a dependency instead of being directly built, it
will be properly used as a library instead of as an executable.
I would go with the following minimal package description for now (the
source folder and targetType="library" is inferred automatically):
{
"name": "DDBC",
"description": "DB Connector for D language, similar to JDBC",
"authors": ["Vadim Lopatin"],
"homepage": "http://sourceforge.net/projects/ddbc",
"license": "Boost Software License (BSL 1.0)",
"configurations": [
{
"name": "MySQL",
"versions": ["USE_MYSQL"]
}
]
}
However, there is one issue: The package registry needs to get either
sourceforge.net support, or support to upload arbitrary files (which is
difficult in the long term because of disk space usage). But even
without that support, the package can be used for now using:
$ svn co ... hibernated
$ dub add-local hibernated ~master
with other projects adding it to their package description with:
{
"dependencies": {"hibernated": "~master"}
}
I'll try to get the missing things sorted out shortly.
Am 12.04.2013 15:17, schrieb Vadim Lopatin:
> Still cannot build library using DUB.
>
> Tried different changes in package.json
>
> dub -v
> ...
> [7F6FC283306F:00000000 INF] Running dmd (compile)...
> [7F6FC283306F:00000000 dbg] dmd -w -g -debug -c -oftemp.o
> -version=USE_MYSQL -I/home/lve/src/ddbc/source source/drivers/sha1.d
> source/drivers/pgsqlddbc.d source/drivers/pgsql.d
> source/drivers/mysqlddbc.d source/drivers/mysql.d source/drivers/utils.d
> source/drivers/sqliteddbc.d source/common.d source/core.d
> [7F6FC283306F:00000000 INF] Linking...
> [7F6FC283306F:00000000 dbg] dmd -of/tmp/dub/2946988246/libddbc.a temp.o
> /usr/lib/x86_64-linux-gnu/libphobos2.a(dmain2_47f_1a5.o): In function
> `main':
>
>
> Why does it try to link app executable instead of just link library?
>
>
> package.json:
>
> {
> "name": "DDBC",
> "description": "DB Connector for D language, similar to JDBC",
> "authors": ["Vadim Lopatin"],
> "homepage": "http://sourceforge.net/projects/ddbc",
> "license": "Boost Software License (BSL 1.0)",
> "sourcePaths": ["source", "source/drivers"],
> "configurations": [
> {
> "name": "MySQL",
> "versions": ["USE_MYSQL"],
> "targetType": "staticLibrary",
> "targetPath": "bin",
> "targetName": "ddbc",
> }
> ]
> }
More information about the Digitalmars-d-announce
mailing list