-
-
Notifications
You must be signed in to change notification settings - Fork 231
Expand file tree
/
Copy pathmeson.build
More file actions
103 lines (96 loc) · 2.51 KB
/
meson.build
File metadata and controls
103 lines (96 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
incdirs = include_directories('..', '.')
libtorrent_files = files(
'data/chunk.cc',
'data/chunk_list.cc',
'data/chunk_part.cc',
'data/hash_check_queue.cc',
'data/hash_chunk.cc',
'data/hash_queue.cc',
'data/hash_queue_node.cc',
'data/hash_torrent.cc',
'data/memory_chunk.cc',
'data/socket_file.cc',
'data/thread_disk.cc',
'dht/dht_bucket.cc',
'dht/dht_node.cc',
'dht/dht_router.cc',
'dht/dht_server.cc',
'dht/dht_tracker.cc',
'dht/dht_transaction.cc',
'download/available_list.cc',
'download/chunk_selector.cc',
'download/chunk_statistics.cc',
'download/delegator.cc',
'download/download_constructor.cc',
'download/download_main.cc',
'download/download_wrapper.cc',
'net/address_list.cc',
'net/curl_get.cc',
'net/curl_socket.cc',
'net/curl_stack.cc',
'net/listen.cc',
'net/socket_base.cc',
'net/socket_datagram.cc',
'net/socket_fd.cc',
'net/socket_set.cc',
'net/socket_stream.cc',
'net/thread_net.cc',
'net/throttle_internal.cc',
'net/throttle_list.cc',
'net/udns_library.cc',
'net/udns_resolver.cc',
'protocol/extensions.cc',
'protocol/handshake.cc',
'protocol/handshake_encryption.cc',
'protocol/handshake_manager.cc',
'protocol/initial_seed.cc',
'protocol/peer_connection_base.cc',
'protocol/peer_connection_leech.cc',
'protocol/peer_connection_metadata.cc',
'protocol/peer_factory.cc',
'protocol/request_list.cc',
'tracker/thread_tracker.cc',
'tracker/tracker_controller.cc',
'tracker/tracker_dht.cc',
'tracker/tracker_http.cc',
'tracker/tracker_list.cc',
'tracker/tracker_udp.cc',
'tracker/tracker_worker.cc',
'utils/diffie_hellman.cc',
'utils/instrumentation.cc',
'utils/signal_interrupt.cc',
)
subdir('torrent')
libtorrent_other = static_library(
'torrent_other',
libtorrent_files,
gnu_symbol_visibility: 'hidden',
dependencies: [curl_dep, ssl_dep],
include_directories: '..',
)
depinc = include_directories('.')
libtorrent_other_dep = declare_dependency(
include_directories: depinc,
link_with: [libtorrent_torrent, libtorrent_other],
)
libtorrent = library(
'libtorrent',
'manager.cc',
'thread_main.cc',
gnu_symbol_visibility: 'hidden',
name_prefix: '',
link_whole: libtorrent_torrent,
dependencies: [atomic_dep, libtorrent_other_dep, ssl_dep],
version: '31.0.0',
include_directories: '..',
install: true,
)
libtorrent_dep = declare_dependency(
include_directories: depinc,
link_with: libtorrent,
)
pconf = import('pkgconfig')
pconf.generate(
libtorrent,
description: 'A BitTorrent client',
)