forked from premiere/premiere-libtorrent
991f0c2a45
It's not a test as such, since it's got its own main() that takes arguments, doesn't return a result that can be directly compared against expected results, and doesn't make use of the test_common infrastructure. The CMake build attempts to build all files named test_*.cpp with test_common, whose main() and load_file() symbols clash with those that the benchmark provides. Instead of making an exception, let's rename it to something that doesn't start with "test_". Its usage message even claims it's called bdecode_benchmark, so we use that. Also, complete the file listing for test_common in CMake and use an OBJECT pseudo-library there instead of STATIC. It's just as good and jives better with having symbols provided by the executable. (Follow-up patch in the works to provide Asio symbols that way.) test_natpmp is a proper test but doesn't currently build, so exclude it from the build for now. |
||
---|---|---|
bindings | ||
docs | ||
ed25519 | ||
examples | ||
include/libtorrent | ||
m4 | ||
src | ||
test | ||
tools | ||
.gitignore | ||
.travis.yml | ||
AUTHORS | ||
CMakeLists.txt | ||
COPYING | ||
ChangeLog | ||
Jamfile | ||
Jamroot.jam | ||
LICENSE | ||
Makefile.am | ||
NEWS | ||
README.rst | ||
appveyor.yml | ||
autotool.sh | ||
bootstrap.sh | ||
build_dist.sh | ||
configure.ac | ||
libtorrent-rasterbar-cmake.pc.in | ||
libtorrent-rasterbar.pc.in | ||
setup.py |
README.rst
libtorrent ---------- .. image:: https://travis-ci.org/arvidn/libtorrent.svg?branch=master :target: https://travis-ci.org/arvidn/libtorrent .. image:: https://ci.appveyor.com/api/projects/status/w7teauvub5813mew/branch/master?svg=true :target: https://ci.appveyor.com/project/arvidn/libtorrent/branch/master .. image:: https://www.openhub.net/p/rasterbar-libtorrent/widgets/project_thin_badge.gif :target: https://www.openhub.net/p/rasterbar-libtorrent?ref=sample libtorrent is an open source C++ library implementing the BitTorrent protocol, along with most popular extensions, making it suitable for real world deployment. It is configurable to be able to fit both servers and embedded devices. The main goals of libtorrent are to be efficient and easy to use. See `libtorrent.org`__ for more detailed build and usage instructions. .. __: http://libtorrent.org To build with boost-build, make sure boost and boost-build is installed and run: b2 In the libtorrent root. To build the examples, run ``b2`` in the ``examples`` directory. See `building.html`__ for more details on how to build and which configuration options are available. For python bindings, see `the python docs`__. .. __: docs/building.rst .. __: docs/python_binding.rst