Commit Graph

226 Commits

Author SHA1 Message Date
arvidn 748bb81570 include sha1.cpp in the build unconditionally, match build configuration options to using built-in sha1 and defining it 2019-02-13 00:14:53 +01:00
arvidn f4f1425115 use UNC paths pervasively on windows 2019-01-12 21:00:40 +01:00
arvidn 8b067310b1 merged RC_1_1 into master 2019-01-12 00:53:45 +01:00
arvidn b443d33430 bump version number 2019-01-11 11:30:37 +01:00
Chocobo1 e53bc71f63 Don't generate pkg-config when compiling with MSVC 2019-01-07 02:36:59 +01:00
arvidn bac57a6e69 merged RC_1_1 into master 2018-11-24 01:23:10 +01:00
arvidn cdf66409a4 don't use page aligned disk buffers 2018-11-23 18:41:25 +01:00
Eugene Shalygin 04fd20d62b cmake: read project version from the version.hpp file 2018-11-18 00:04:12 +01:00
arvidn 7103b12cb7 remove typed_span type 2018-11-17 00:43:58 +01:00
arvidn 6381b35891 bump verson to 1.1.11.0 2018-11-16 15:52:16 +01:00
Eugene Shalygin b91c595b43 cmake: allow selecting C++ standard version during build
This backports commit 8e72fad3c to the RC_1_1 branch, taking into
account that C++98 is allowed for RC_1_1 with older boost versions.
2018-11-15 13:14:13 +01:00
Eugene Shalygin f425a3818a cmake: make pkg-config package name independent of target name 2018-11-13 07:43:07 +01:00
Eugene Shalygin 5c533522cb cmake: make pkg-config package name independent of target name 2018-11-13 01:04:10 +01:00
Eugene Shalygin 89a6e3cf7a cmake: allow selecting C++ standard version during build
Also moves helper functions into a module file and replaces JOIN
generator expressions with list(TRANSFORM) commands in order to get
the correct sources list at the configure stage.
2018-10-31 00:24:41 +01:00
Eugene Shalygin ba294e6594 cmake: backport changes from the master branch
This fixes generated pkg-config file and adds options to build python
bindings.
2018-10-31 00:17:36 +01:00
Arvid Norberg 9758d2f08f general cleanups of build files. Specifically to fix the propagation properties of _WIN32_WINNT, include missing CMake files in the tarball, and fix some risky ABI altering properties in CMake files 2018-10-12 10:06:59 +02:00
arvidn 6df82a9ee6 fix cmake default built to enable logging 2018-10-08 07:15:54 +02:00
arvidn 5913d16f01 fix SOVERSION in CMakeLists 2018-10-07 13:28:01 +02:00
Arvid Norberg 200bb494c3 bump version 2018-10-01 09:41:37 +02:00
Arvid Norberg b90564d418 remove the IPv6 enable/disable build config 2018-08-19 22:20:54 +02:00
Arvid Norberg 4282dd072a factor out generate_peer_id into its own file 2018-07-25 08:49:18 +02:00
Arvid Norberg 2f56fa6c3e bump version to 1.1.9 2018-07-20 13:06:12 +02:00
arvidn 4633258fbe make the DHT announce flags a strong type 2018-07-16 12:04:16 +02:00
arvidn 4576723090 bump version to 1.1.8 2018-06-25 12:25:11 +02:00
arvidn 5530793c75 improve the API for iterating over all files and pieces, with the new strong index types. 2018-06-12 11:44:29 +02:00
Alden Torres 6c4869f044 moved instantiate_connection to aux namespace 2018-05-29 09:25:25 +02:00
Eugene Shalygin b1d7dd89c1 Reflect Boost version and C++11/14 interconnection in CMake build
C++ standard and Boost requirements are connected:
1. With C++11 onward, we require Boost system component, with
C++03 we need chrono and random components too
2. When building against boost 1.66 and newer, C++11 is required.

Closes #3011, partially closes #2966.
2018-05-27 22:59:13 +02:00
Arvid Norberg ccdfd7383e move export.hpp into aux_ folder. put assert symbols in libtorrent namespace 2018-05-14 09:09:01 +02:00
Eugene Shalygin 44b5777be3 Make CMake export namespace to be consistent with library name
Use camel-cased library name "LibtorrentRasterbar" is used as namespace
name for exports and the import target in the find module.
2018-05-14 09:08:19 +02:00
Eugene Shalygin 7f2ce2ba9e Rename targets and config files for consistency
CMake does check both suffixes anyway (-config and Config), but since
the project name is "libtorrent-rasterbar", the "-config" suffix looks
better.
2018-05-14 09:08:19 +02:00
Eugene Shalygin a626f75c5e Refactor CMakeLists.txt
1. Replace custom 'shared' option with the standard BUILD_SHARED_LIBS
flag
2. Replace foreach() calls for source items with target_sources() and
generator expression $<JOIN:>.
3. Remove build types definition: makes no sense for
single-configuration generators, and is populated automatically for
multi-configuration ones.
4. Add feature summary
5. Enahnce compiler flags management for static runtime by utilizing functions
from the ucm project
6. Copy almost all options from the Jamfile.
7. If compiler supports C++14, use it.
8. Raise minimum required CMake version to 3.11 and drop bundled FindIconv.cmake
2018-05-14 09:08:19 +02:00
Eugene Shalygin 7e390b1ca7 Add tools to cmake build 2018-05-14 09:08:19 +02:00
arvidn fe612ca167 replace the TORRENT_CFG ABI check with inline namespaces around the symbol that can change ABI based on build configuration options 2018-05-13 19:25:17 +02:00
Alden Torres cb8b32f353 revert to use Boost variables in CMakeLists.txt 2018-05-01 10:50:21 +02:00
Eugene Shalygin 4afa4932df Add required dependencies to the generated package Config.cmake file 2018-04-29 19:48:26 +02:00
Eugene Shalygin 3c6e0b2578 Generate proper pkg-config file in cmake build 2018-04-29 19:48:26 +02:00
Eugene Shalygin 049e918295 build python bindings with cmake 2018-04-29 19:48:26 +02:00
arvidn 105934e578 bump version 2018-04-08 23:08:39 +02:00
Alexandre Janniaux f8889858f6 dynamically load getauxval so as to support older android devices 2018-03-12 09:11:01 +01:00
arvidn 9696082355 merged RC_1_1 into master 2018-02-25 09:36:12 +01:00
d_komarov 0ecb935d9d Fix test/CmakeLists.txt not found on Linux
* Rename test/CmakeLists.txt -> test/CMakeLists.txt
* Revert accidentally removed processing of resolve-countries option
2018-02-19 23:23:15 +01:00
d-komarov f94b62acf7 CMake improvements
CMake build scripts improved to simplify configuring and building of
project and tests.

Better use of compile definitions by replacing add_definitions with
target_compile_definitions. Use INTERFACE, PUBLIC and PRIVATE keywords
to separate scope of TORRENT_BUILDING_SHARED and TORRENT_LINKING_SHARED
definitions.

* Move tests to the separate file - test/CmakeLists.txt
* Fix use of compile definitions
* Remove redundant tailqueue.cpp
2018-02-19 23:23:15 +01:00
Alden Torres 1baf5eabdf added minimal support for cmake build in appveyor CI 2018-02-04 10:02:23 +01:00
Alden Torres 971cffaed9 added include files to CMakeLists.txt and added minimal support for cmake build in CI (#2767) 2018-02-04 02:03:40 +01:00
arvidn c8bf782bd0 bump version number to 1.1.6 2017-12-29 15:53:51 +01:00
arvidn f0bac4cac7 merged RC_1_1 into master 2017-10-14 15:22:22 +02:00
arvidn e67cf0a055 add missing files to CMakeLists.txt for test suite 2017-10-14 13:32:21 +02:00
silver e2a65adbc0 added dbghelp lib and bigobj to cmake for msvc 2017-10-14 02:22:06 +02:00
silver 2e5e7bb8dd enabled bigobj for msvc cmake build 2017-10-13 02:42:49 +02:00
Steven Siloti 87832ce706 fix building/running unit tests with cmake
Make test_common a propper library so that it can inherit build
properties from libtorrent.
Set the working directory to the test directory so that tests can find
their data files.
Remove reference to obsolete bdecode_benchmark test.
2017-09-16 10:19:10 +02:00