fix makefile
This commit is contained in:
parent
ff106f8c9e
commit
5a19c9a5a1
12
.travis.yml
12
.travis.yml
|
@ -5,7 +5,7 @@ matrix:
|
||||||
- env: variant=test_release lang=cpp11 sim=0 coverage=1 docs=1
|
- env: variant=test_release lang=cpp11 sim=0 coverage=1 docs=1
|
||||||
- env: variant=test_debug lang=sanitizer sim=1 coverage=0
|
- env: variant=test_debug lang=sanitizer sim=1 coverage=0
|
||||||
- env: variant=test_debug lang=cpp98 sim=0 coverage=0
|
- env: variant=test_debug lang=cpp98 sim=0 coverage=0
|
||||||
- env: variant=test_barebones lang=cpp11 sim=0 coverage=0
|
- env: variant=test_barebones lang=cpp11 sim=0 coverage=0 autotools=1
|
||||||
|
|
||||||
- env: variant=test_debug lang=cpp11 sim=0 coverage=0 target=osx-tests
|
- env: variant=test_debug lang=cpp11 sim=0 coverage=0 target=osx-tests
|
||||||
os: osx
|
os: osx
|
||||||
|
@ -113,6 +113,16 @@ script:
|
||||||
fi
|
fi
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
|
# run through autotools and ./configure to make sure it works
|
||||||
|
- 'if [[ "$autotools" == "1" ]]; then
|
||||||
|
./autotool.sh &&
|
||||||
|
export CXX=g++-5 &&
|
||||||
|
export CC=gcc-5 &&
|
||||||
|
export CXXFLAGS="-Werror -Wno-deprecated-declarations" &&
|
||||||
|
./configure --enable-debug --enable-encryption --enable-examples --enable-tests --enable-python-binding &&
|
||||||
|
make -j2;
|
||||||
|
fi'
|
||||||
|
|
||||||
# build libtorrent separately and install it in a temporary (well known) dir
|
# build libtorrent separately and install it in a temporary (well known) dir
|
||||||
# we have to do this because on linux the name of the python module is the same
|
# we have to do this because on linux the name of the python module is the same
|
||||||
# as the main library, so we can't stage them to the same directory
|
# as the main library, so we can't stage them to the same directory
|
||||||
|
|
|
@ -20,6 +20,8 @@ client_test_SOURCES = client_test.cpp print.cpp session_view.cpp torrent_view.cp
|
||||||
stats_counters_SOURCES = stats_counters.cpp
|
stats_counters_SOURCES = stats_counters.cpp
|
||||||
bt_get_SOURCES = bt-get.cpp
|
bt_get_SOURCES = bt-get.cpp
|
||||||
bt_get2_SOURCES = bt-get2.cpp
|
bt_get2_SOURCES = bt-get2.cpp
|
||||||
|
bt_get_CXXFLAGS = -std=c++11
|
||||||
|
bt_get2_CXXFLAGS = -std=c++11
|
||||||
dump_torrent_SOURCES = dump_torrent.cpp
|
dump_torrent_SOURCES = dump_torrent.cpp
|
||||||
make_torrent_SOURCES = make_torrent.cpp
|
make_torrent_SOURCES = make_torrent.cpp
|
||||||
simple_client_SOURCES = simple_client.cpp
|
simple_client_SOURCES = simple_client.cpp
|
||||||
|
|
|
@ -2452,6 +2452,8 @@ namespace libtorrent
|
||||||
// picker_log_notification).
|
// picker_log_notification).
|
||||||
struct TORRENT_EXPORT picker_log_alert TORRENT_FINAL : peer_alert
|
struct TORRENT_EXPORT picker_log_alert TORRENT_FINAL : peer_alert
|
||||||
{
|
{
|
||||||
|
TORRENT_DEFINE_ALERT(picker_log_alert, 89)
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_LOGGING
|
#ifndef TORRENT_DISABLE_LOGGING
|
||||||
|
|
||||||
// internal
|
// internal
|
||||||
|
@ -2459,8 +2461,6 @@ namespace libtorrent
|
||||||
, tcp::endpoint const& ep, peer_id const& peer_id, boost::uint32_t flags
|
, tcp::endpoint const& ep, peer_id const& peer_id, boost::uint32_t flags
|
||||||
, piece_block const* blocks, int num_blocks);
|
, piece_block const* blocks, int num_blocks);
|
||||||
|
|
||||||
TORRENT_DEFINE_ALERT(picker_log_alert, 89)
|
|
||||||
|
|
||||||
static const int static_category = alert::picker_log_notification;
|
static const int static_category = alert::picker_log_notification;
|
||||||
virtual std::string message() const TORRENT_OVERRIDE;
|
virtual std::string message() const TORRENT_OVERRIDE;
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ namespace aux
|
||||||
|
|
||||||
// to make sure we never say we've downloaded more bytes of a file than
|
// to make sure we never say we've downloaded more bytes of a file than
|
||||||
// its file size
|
// its file size
|
||||||
std::vector<std::int64_t> m_file_sizes;
|
std::vector<boost::int64_t> m_file_sizes;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -47,7 +47,7 @@ test_programs = \
|
||||||
test_file_progress \
|
test_file_progress \
|
||||||
test_linked_list \
|
test_linked_list \
|
||||||
test_direct_dht \
|
test_direct_dht \
|
||||||
test_ed25519.cpp
|
test_ed25519
|
||||||
|
|
||||||
if ENABLE_TESTS
|
if ENABLE_TESTS
|
||||||
check_PROGRAMS = $(test_programs) $(benchmark_programs)
|
check_PROGRAMS = $(test_programs) $(benchmark_programs)
|
||||||
|
@ -234,6 +234,7 @@ test_remap_files_SOURCES = test_remap_files.cpp
|
||||||
test_file_progress_SOURCES = test_file_progress.cpp
|
test_file_progress_SOURCES = test_file_progress.cpp
|
||||||
test_linked_list_SOURCES = test_linked_list.cpp
|
test_linked_list_SOURCES = test_linked_list.cpp
|
||||||
test_direct_dht_SOURCES = test_direct_dht.cpp
|
test_direct_dht_SOURCES = test_direct_dht.cpp
|
||||||
|
test_ed25519_SOURCES = test_ed25519.cpp
|
||||||
|
|
||||||
LDADD = libtest.la $(top_builddir)/src/libtorrent-rasterbar.la
|
LDADD = libtest.la $(top_builddir)/src/libtorrent-rasterbar.la
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <ed25519.hpp>
|
#include "libtorrent/ed25519.hpp"
|
||||||
#include "libtorrent/hex.hpp"
|
#include "libtorrent/hex.hpp"
|
||||||
|
|
||||||
using namespace libtorrent;
|
using namespace libtorrent;
|
||||||
|
|
Loading…
Reference in New Issue