Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
/ libtorrent-go Public archive
forked from scakemyer/libtorrent-go

SWIG Go bindings for libtorrent-rasterbar

License

Notifications You must be signed in to change notification settings

coreos/libtorrent-go

 
 

Repository files navigation

libtorrent-go Build Status

Cross-compiled SWIG Go bindings for libtorrent-rasterbar 1.0.8 using Go 1.6.

Supported platforms

  • android-arm
  • android-x64
  • android-x86
  • darwin-x64
  • linux-arm
  • linux-x64
  • linux-x86
  • windows-x64
  • windows-x86

How to use it?

  • First, you need a working Go project and Docker

  • Download libtorrent-go:

go get github.com/coreos/libtorrent-go
  • Build libtorrent-go:
cd $GOPATH/go/src/github.com/coreos/libtorrent-go
make [all | android-arm | darwin-x64 | linux-x86 | linux-x64 | linux-arm | windows-x86 | windows-x64 ]

The cross-compilation is done within Docker containers, which are based on github.com/coreos/cross-compiler and on which the libtorrent-rasterbar and Go are compiled. The container images are pulled from Quay.io. You may also rebuild the images by yourself by running:

make env

Again, this is totally optionnal and depends on your needs. Note that this could take a long-time. You may specify the PLATFORMS variable in order to build a subset of the containers.

  • Import libtorrent-go in your Go project:
import "github.com/coreos/libtorrent-go"

Built packages will be placed as $GOPATH/pkg/<platform>/libtorrent-go.a

Why another fork?

Forked from https://github.com/steeve/libtorrent-go

  • Go 1.6
  • CamelCased identifier names
  • Simplified build steps
  • peer_info support
  • Save and load resume_data support
  • Android ARM fixed

Acknowledgements:

About

SWIG Go bindings for libtorrent-rasterbar

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.4%
  • Makefile 5.8%
  • Go 0.8%