Skip to content

the-horo/dubtoebuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project is still in active development. You will encounter bugs when using it.

This is a pycargoebuild clone that works on D packages.

Basic usage

Get a git snapshot of a D package supporting dub and checkout to a version tag. Then, in the root of that project run dubtoebuild.

For example:

$ cd /tmp
$ git clone https://github.com/CyberShadow/btdu
Cloning into 'btdu'...
remote: Enumerating objects: 2124, done.
remote: Counting objects: 100% (128/128), done.
remote: Compressing objects: 100% (76/76), done.
remote: Total 2124 (delta 63), reused 83 (delta 35), pack-reused 1996 (from 1)
Receiving objects: 100% (2124/2124), 537.20 KiB | 1.32 MiB/s, done.
Resolving deltas: 100% (1205/1205), done.
$ cd btdu
$ git checkout v0.6.0

And then run:

$ /path/to/dubtoebuild
DUB_DEPENDENCIES=(
	"ae@0.0.3461"
	"btdu@0.6.0"
	"btrfs@0.0.21"
	"emsi_containers@0.9.0"
	"ncurses@1.0.0"
)
###########
LICENSE="GPL-2"
LICENSE+=" Boost-1.0 GPL-2 MIT MPL-2.0"

Compiling

Using dub:

dub build

Using meson:

meson setup build
ninja -C build

All 3 major compilers are supported but you need a relatively recent version of each one.

Testing

Part of the testuite can be run with dub:

dub test

To run all the tests you would need meson:

ninja -C build test

About

Pycargoebuild but for D packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published