Makefile.am 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. SUBDIRS = includes
  2. bin_PROGRAMS = aria2c
  3. aria2c_SOURCES = main.cc
  4. SRCS = \
  5. a2algo.h\
  6. a2functional.h\
  7. a2io.h\
  8. a2iterator.h\
  9. a2netcompat.h\
  10. A2STR.cc A2STR.h\
  11. a2time.h\
  12. AbstractAuthResolver.cc AbstractAuthResolver.h\
  13. AbstractCommand.cc AbstractCommand.h\
  14. AbstractDiskWriter.cc AbstractDiskWriter.h\
  15. AbstractHttpServerResponseCommand.cc \
  16. AbstractHttpServerResponseCommand.h \
  17. AbstractOptionHandler.cc AbstractOptionHandler.h\
  18. AbstractProxyRequestCommand.cc AbstractProxyRequestCommand.h\
  19. AbstractProxyResponseCommand.cc AbstractProxyResponseCommand.h\
  20. AbstractSingleDiskAdaptor.cc AbstractSingleDiskAdaptor.h\
  21. AdaptiveFileAllocationIterator.cc AdaptiveFileAllocationIterator.h\
  22. AdaptiveURISelector.cc AdaptiveURISelector.h\
  23. AnonDiskWriterFactory.h\
  24. array_fun.h\
  25. AuthConfig.cc AuthConfig.h\
  26. AuthConfigFactory.cc AuthConfigFactory.h\
  27. AuthResolver.h\
  28. AutoSaveCommand.cc AutoSaveCommand.h\
  29. BackupIPv4ConnectCommand.h BackupIPv4ConnectCommand.cc\
  30. base32.cc base32.h\
  31. base64.h\
  32. BinaryStream.h\
  33. bitfield.cc bitfield.h\
  34. BitfieldMan.cc BitfieldMan.h\
  35. BtProgressInfoFile.h\
  36. BufferedFile.cc BufferedFile.h\
  37. ByteArrayDiskWriter.cc ByteArrayDiskWriter.h\
  38. ByteArrayDiskWriterFactory.h\
  39. CheckIntegrityCommand.cc CheckIntegrityCommand.h\
  40. CheckIntegrityDispatcherCommand.cc CheckIntegrityDispatcherCommand.h\
  41. CheckIntegrityEntry.cc CheckIntegrityEntry.h\
  42. CheckIntegrityMan.h\
  43. Checksum.cc Checksum.h\
  44. ChecksumCheckIntegrityEntry.cc ChecksumCheckIntegrityEntry.h\
  45. ChunkChecksum.cc ChunkChecksum.h\
  46. ChunkedDecodingStreamFilter.cc ChunkedDecodingStreamFilter.h\
  47. ColorizedStream.cc ColorizedStream.h\
  48. Command.cc Command.h\
  49. common.h\
  50. ConnectCommand.cc ConnectCommand.h\
  51. console.cc console.h\
  52. ConsoleStatCalc.cc ConsoleStatCalc.h\
  53. ContentTypeRequestGroupCriteria.cc ContentTypeRequestGroupCriteria.h\
  54. Context.cc Context.h\
  55. ContextAttribute.cc ContextAttribute.h\
  56. ControlChain.h\
  57. Cookie.cc Cookie.h\
  58. CookieStorage.cc CookieStorage.h\
  59. cookie_helper.cc cookie_helper.h\
  60. CreateRequestCommand.cc CreateRequestCommand.h\
  61. crypto_endian.h\
  62. CUIDCounter.cc CUIDCounter.h\
  63. DefaultAuthResolver.cc DefaultAuthResolver.h\
  64. DefaultBtProgressInfoFile.cc DefaultBtProgressInfoFile.h\
  65. DefaultDiskWriter.cc DefaultDiskWriter.h\
  66. DefaultDiskWriterFactory.cc DefaultDiskWriterFactory.h\
  67. DefaultPieceStorage.cc DefaultPieceStorage.h\
  68. DefaultStreamPieceSelector.cc DefaultStreamPieceSelector.h\
  69. DelayedCommand.h\
  70. Dependency.h\
  71. DirectDiskAdaptor.cc DirectDiskAdaptor.h\
  72. DiskAdaptor.cc DiskAdaptor.h\
  73. DiskWriter.h\
  74. DiskWriterFactory.h\
  75. DlAbortEx.cc DlAbortEx.h\
  76. DlRetryEx.cc DlRetryEx.h\
  77. DNSCache.cc DNSCache.h\
  78. DownloadCommand.cc DownloadCommand.h\
  79. DownloadContext.cc DownloadContext.h\
  80. DownloadEngine.cc DownloadEngine.h\
  81. DownloadEngineFactory.cc DownloadEngineFactory.h\
  82. DownloadFailureException.cc DownloadFailureException.h\
  83. DownloadHandler.cc DownloadHandler.h\
  84. DownloadHandlerConstants.cc DownloadHandlerConstants.h\
  85. DownloadResult.cc DownloadResult.h\
  86. download_handlers.cc download_handlers.h\
  87. download_helper.cc download_helper.h\
  88. error_code.h\
  89. Event.h\
  90. EventPoll.h\
  91. Exception.cc Exception.h\
  92. FatalException.cc FatalException.h\
  93. FeatureConfig.cc FeatureConfig.h\
  94. FeedbackURISelector.cc FeedbackURISelector.h\
  95. File.cc File.h\
  96. FileAllocationCommand.cc FileAllocationCommand.h\
  97. FileAllocationDispatcherCommand.cc FileAllocationDispatcherCommand.h\
  98. FileAllocationEntry.cc FileAllocationEntry.h\
  99. FileAllocationIterator.h\
  100. FileAllocationMan.h\
  101. FileEntry.cc FileEntry.h\
  102. FillRequestGroupCommand.cc FillRequestGroupCommand.h\
  103. fmt.cc fmt.h\
  104. FtpConnection.cc FtpConnection.h\
  105. FtpDownloadCommand.cc FtpDownloadCommand.h\
  106. FtpFinishDownloadCommand.cc FtpFinishDownloadCommand.h\
  107. FtpInitiateConnectionCommand.cc FtpInitiateConnectionCommand.h\
  108. FtpNegotiationCommand.cc FtpNegotiationCommand.h\
  109. FtpNegotiationConnectChain.h\
  110. FtpTunnelRequestCommand.cc FtpTunnelRequestCommand.h\
  111. FtpTunnelRequestConnectChain.h\
  112. FtpTunnelResponseCommand.cc FtpTunnelResponseCommand.h\
  113. GenericParser.h\
  114. GeomStreamPieceSelector.cc GeomStreamPieceSelector.h\
  115. GroupId.cc GroupId.h\
  116. GrowSegment.cc GrowSegment.h\
  117. HashFuncEntry.h \
  118. HaveEraseCommand.cc HaveEraseCommand.h\
  119. help_tags.cc help_tags.h\
  120. HttpConnection.cc HttpConnection.h\
  121. HttpDownloadCommand.cc HttpDownloadCommand.h\
  122. HttpHeader.cc HttpHeader.h\
  123. HttpHeaderProcessor.cc HttpHeaderProcessor.h\
  124. HttpInitiateConnectionCommand.cc HttpInitiateConnectionCommand.h\
  125. HttpListenCommand.cc HttpListenCommand.h\
  126. HttpProxyRequestCommand.cc HttpProxyRequestCommand.h\
  127. HttpProxyRequestConnectChain.h\
  128. HttpProxyResponseCommand.cc HttpProxyResponseCommand.h\
  129. HttpRequest.cc HttpRequest.h\
  130. HttpRequestCommand.cc HttpRequestCommand.h\
  131. HttpRequestConnectChain.h\
  132. HttpResponse.cc HttpResponse.h\
  133. HttpResponseCommand.cc HttpResponseCommand.h\
  134. HttpServer.cc HttpServer.h\
  135. HttpServerBodyCommand.cc HttpServerBodyCommand.h\
  136. HttpServerCommand.cc HttpServerCommand.h\
  137. HttpServerResponseCommand.cc HttpServerResponseCommand.h\
  138. HttpSkipResponseCommand.cc HttpSkipResponseCommand.h\
  139. IndexedList.h\
  140. InitiateConnectionCommand.cc InitiateConnectionCommand.h\
  141. InitiateConnectionCommandFactory.cc InitiateConnectionCommandFactory.h\
  142. InorderStreamPieceSelector.cc InorderStreamPieceSelector.h\
  143. InorderURISelector.cc InorderURISelector.h\
  144. IOFile.cc IOFile.h\
  145. IteratableChecksumValidator.cc IteratableChecksumValidator.h\
  146. IteratableChunkChecksumValidator.cc IteratableChunkChecksumValidator.h\
  147. IteratableValidator.h\
  148. json.cc json.h\
  149. JsonDiskWriter.h\
  150. JsonParser.cc JsonParser.h\
  151. Lock.h \
  152. LogFactory.cc LogFactory.h\
  153. Logger.cc Logger.h\
  154. LongestSequencePieceSelector.cc LongestSequencePieceSelector.h\
  155. MemoryBufferPreDownloadHandler.h\
  156. MemoryPreDownloadHandler.h\
  157. message.h\
  158. MessageDigest.cc MessageDigest.h\
  159. MessageDigestImpl.h\
  160. message_digest_helper.cc message_digest_helper.h\
  161. MetadataInfo.cc MetadataInfo.h\
  162. MetalinkHttpEntry.cc MetalinkHttpEntry.h\
  163. MultiDiskAdaptor.cc MultiDiskAdaptor.h\
  164. MultiFileAllocationIterator.cc MultiFileAllocationIterator.h\
  165. MultiUrlRequestInfo.cc MultiUrlRequestInfo.h\
  166. NameResolver.cc NameResolver.h\
  167. Netrc.cc Netrc.h\
  168. NetrcAuthResolver.cc NetrcAuthResolver.h\
  169. NetStat.cc NetStat.h\
  170. Notifier.cc Notifier.h\
  171. NsCookieParser.cc NsCookieParser.h\
  172. NullHandle.h\
  173. NullOutputFile.h\
  174. NullProgressInfoFile.h\
  175. NullSinkStreamFilter.cc NullSinkStreamFilter.h\
  176. NullStatCalc.h\
  177. Option.cc Option.h\
  178. OptionHandler.cc OptionHandler.h\
  179. OptionHandlerException.cc OptionHandlerException.h\
  180. OptionHandlerFactory.cc OptionHandlerFactory.h\
  181. OptionHandlerImpl.cc OptionHandlerImpl.h\
  182. OptionParser.cc OptionParser.h\
  183. option_processing.cc\
  184. OutputFile.h\
  185. paramed_string.cc paramed_string.h\
  186. PeerStat.cc PeerStat.h\
  187. Piece.cc Piece.h\
  188. PiecedSegment.cc PiecedSegment.h\
  189. PieceHashCheckIntegrityEntry.cc PieceHashCheckIntegrityEntry.h\
  190. PieceSelector.h\
  191. PieceStatMan.cc PieceStatMan.h\
  192. PieceStorage.h\
  193. Platform.cc Platform.h\
  194. PostDownloadHandler.h\
  195. PreDownloadHandler.h\
  196. prefs.cc prefs.h\
  197. ProgressAwareEntry.h\
  198. ProtocolDetector.cc ProtocolDetector.h\
  199. Randomizer.h\
  200. Range.cc Range.h\
  201. RarestPieceSelector.cc RarestPieceSelector.h\
  202. RealtimeCommand.cc RealtimeCommand.h\
  203. RecoverableException.cc RecoverableException.h\
  204. Request.cc Request.h\
  205. RequestGroup.cc RequestGroup.h\
  206. RequestGroupCriteria.h\
  207. RequestGroupEntry.cc RequestGroupEntry.h\
  208. RequestGroupMan.cc RequestGroupMan.h\
  209. RpcMethod.cc RpcMethod.h\
  210. RpcMethodFactory.cc RpcMethodFactory.h\
  211. RpcMethodImpl.cc RpcMethodImpl.h\
  212. RpcRequest.cc RpcRequest.h\
  213. RpcResponse.cc RpcResponse.h\
  214. rpc_helper.cc rpc_helper.h\
  215. SaveSessionCommand.h SaveSessionCommand.cc\
  216. SegList.h\
  217. Segment.h\
  218. SegmentMan.cc SegmentMan.h\
  219. SelectEventPoll.cc SelectEventPoll.h\
  220. SequentialDispatcherCommand.h\
  221. SequentialPicker.h\
  222. ServerStat.cc ServerStat.h\
  223. ServerStatMan.cc ServerStatMan.h\
  224. SessionSerializer.cc SessionSerializer.h\
  225. Signature.cc Signature.h\
  226. SimpleRandomizer.cc SimpleRandomizer.h\
  227. SingleFileAllocationIterator.cc SingleFileAllocationIterator.h\
  228. SingletonHolder.h\
  229. SinkStreamFilter.cc SinkStreamFilter.h\
  230. SocketBuffer.cc SocketBuffer.h\
  231. SocketCore.cc SocketCore.h\
  232. SocketRecvBuffer.cc SocketRecvBuffer.h\
  233. SpeedCalc.cc SpeedCalc.h\
  234. StatCalc.h\
  235. StreamCheckIntegrityEntry.cc StreamCheckIntegrityEntry.h\
  236. StreamFileAllocationEntry.cc StreamFileAllocationEntry.h\
  237. StreamFilter.cc StreamFilter.h\
  238. StreamPieceSelector.h\
  239. StructParserStateMachine.h\
  240. TimeA2.cc TimeA2.h\
  241. TimeBasedCommand.cc TimeBasedCommand.h\
  242. TimedHaltCommand.cc TimedHaltCommand.h\
  243. TimerA2.cc TimerA2.h\
  244. timespec.h\
  245. TorrentAttribute.cc TorrentAttribute.h\
  246. TransferStat.cc TransferStat.h\
  247. TruncFileAllocationIterator.cc TruncFileAllocationIterator.h\
  248. UnknownLengthPieceStorage.cc UnknownLengthPieceStorage.h\
  249. UnknownOptionException.cc UnknownOptionException.h\
  250. uri.cc uri.h\
  251. UriListParser.cc UriListParser.h\
  252. URIResult.cc URIResult.h\
  253. URISelector.h\
  254. uri_split.c uri_split.h\
  255. usage_text.h\
  256. util.cc util.h\
  257. util_security.cc util_security.h\
  258. ValueBase.cc ValueBase.h\
  259. ValueBaseDiskWriter.h\
  260. ValueBaseJsonParser.h\
  261. ValueBaseStructParserState.h\
  262. ValueBaseStructParserStateImpl.cc ValueBaseStructParserStateImpl.h\
  263. ValueBaseStructParserStateMachine.cc ValueBaseStructParserStateMachine.h\
  264. version_usage.cc\
  265. wallclock.cc wallclock.h\
  266. WatchProcessCommand.cc WatchProcessCommand.h\
  267. WrDiskCache.cc WrDiskCache.h\
  268. WrDiskCacheEntry.cc WrDiskCacheEntry.h\
  269. XmlRpcRequestParserController.cc XmlRpcRequestParserController.h\
  270. OpenedFileCounter.cc OpenedFileCounter.h \
  271. SHA1IOFile.cc SHA1IOFile.h \
  272. EvictSocketPoolCommand.cc EvictSocketPoolCommand.h
  273. if ANDROID
  274. SRCS += android/android.c
  275. endif # ANDROID
  276. # Android NDK R8e does not provide ftruncate64. Use assembly code from
  277. # android source code and link it.
  278. if ANDROID_ARM
  279. SRCS += android/arm-ftruncate64.S
  280. endif # ANDROID_ARM
  281. if ANDROID_MIPS
  282. SRCS += android/mips-ftruncate64.S
  283. endif # ANDROID_MIPS
  284. if ANDROID_X86
  285. SRCS += android/x86-ftruncate64.S android/x86-asm.h
  286. endif # ANDROID_X86
  287. if MINGW_BUILD
  288. SRCS += WinConsoleFile.cc WinConsoleFile.h
  289. endif # MINGW_BUILD
  290. if ENABLE_WEBSOCKET
  291. SRCS += \
  292. WebSocketInteractionCommand.cc WebSocketInteractionCommand.h\
  293. WebSocketResponseCommand.cc WebSocketResponseCommand.h\
  294. WebSocketSession.cc WebSocketSession.h\
  295. WebSocketSessionMan.cc WebSocketSessionMan.h
  296. endif # ENABLE_WEBSOCKET
  297. if !ENABLE_WEBSOCKET
  298. SRCS += NullWebSocketSessionMan.h
  299. endif # !ENABLE_WEBSOCKET
  300. if HAVE_SOME_XMLLIB
  301. SRCS += \
  302. ParserStateMachine.h\
  303. XmlAttr.cc XmlAttr.h\
  304. XmlParser.cc XmlParser.h
  305. endif # HAVE_SOME_XMLLIB
  306. if HAVE_LIBXML2
  307. SRCS += Xml2XmlParser.cc Xml2XmlParser.h
  308. endif # HAVE_LIBXML2
  309. if HAVE_LIBEXPAT
  310. SRCS += ExpatXmlParser.cc ExpatXmlParser.h
  311. endif # HAVE_LIBEXPAT
  312. if ENABLE_XML_RPC
  313. SRCS += \
  314. XmlRpcDiskWriter.cc XmlRpcDiskWriter.h\
  315. XmlRpcRequestParserState.h\
  316. XmlRpcRequestParserStateImpl.cc XmlRpcRequestParserStateImpl.h\
  317. XmlRpcRequestParserStateMachine.cc XmlRpcRequestParserStateMachine.h
  318. endif # ENABLE_XML_RPC
  319. if HAVE_SOME_FALLOCATE
  320. SRCS += FallocFileAllocationIterator.cc FallocFileAllocationIterator.h
  321. endif # HAVE_SOME_FALLOCATE
  322. if HAVE_EPOLL
  323. SRCS += EpollEventPoll.cc EpollEventPoll.h
  324. endif # HAVE_EPOLL
  325. if ENABLE_SSL
  326. SRCS += TLSContext.h TLSSession.h
  327. endif # ENABLE_SSL
  328. if USE_APPLE_MD
  329. SRCS += AppleMessageDigestImpl.cc
  330. endif # USE_APPLE_MD
  331. if HAVE_APPLETLS
  332. SRCS += \
  333. AppleTLSContext.cc AppleTLSContext.h \
  334. AppleTLSSession.cc AppleTLSSession.h
  335. endif # HAVE_APPLETLS
  336. if HAVE_WINTLS
  337. SRCS += \
  338. WinTLSContext.cc WinTLSContext.h \
  339. WinTLSSession.cc WinTLSSession.h
  340. endif # HAVE_WINTLS
  341. if USE_INTERNAL_BIGNUM
  342. SRCS += \
  343. bignum.h\
  344. InternalDHKeyExchange.cc InternalDHKeyExchange.h
  345. endif
  346. if USE_INTERNAL_ARC4
  347. SRCS += InternalARC4Encryptor.cc InternalARC4Encryptor.h
  348. endif
  349. if USE_INTERNAL_MD
  350. SRCS += \
  351. InternalMessageDigestImpl.cc\
  352. crypto_hash.cc crypto_hash.h
  353. endif # USE_WINDOWS_MD
  354. if HAVE_LIBGNUTLS
  355. SRCS += \
  356. LibgnutlsTLSContext.cc LibgnutlsTLSContext.h \
  357. LibgnutlsTLSSession.cc LibgnutlsTLSSession.h
  358. endif # HAVE_LIBGNUTLS
  359. if HAVE_LIBGCRYPT
  360. SRCS += \
  361. LibgcryptARC4Encryptor.cc LibgcryptARC4Encryptor.h \
  362. LibgcryptDHKeyExchange.cc LibgcryptDHKeyExchange.h
  363. if USE_LIBGCRYPT_MD
  364. SRCS += LibgcryptMessageDigestImpl.cc
  365. endif # USE_LIBGCRYPT_MD
  366. endif # HAVE_LIBGCRYPT
  367. if HAVE_LIBNETTLE
  368. SRCS += LibnettleARC4Encryptor.cc LibnettleARC4Encryptor.h
  369. if USE_LIBNETTLE_MD
  370. SRCS += LibnettleMessageDigestImpl.cc
  371. endif # USE_LIBNETTLE_MD
  372. endif # HAVE_LIBNETTLE
  373. if HAVE_LIBGMP
  374. SRCS += \
  375. a2gmp.cc a2gmp.h \
  376. LibgmpDHKeyExchange.cc LibgmpDHKeyExchange.h
  377. endif # HAVE_LIBGMP
  378. if HAVE_OPENSSL
  379. SRCS += \
  380. LibsslARC4Encryptor.cc LibsslARC4Encryptor.h \
  381. LibsslDHKeyExchange.cc LibsslDHKeyExchange.h
  382. if !HAVE_APPLETLS
  383. SRCS += \
  384. LibsslTLSContext.cc LibsslTLSContext.h \
  385. LibsslTLSSession.cc LibsslTLSSession.h
  386. endif # !HAVE_APPLETLS
  387. if USE_OPENSSL_MD
  388. SRCS += LibsslMessageDigestImpl.cc
  389. endif
  390. endif # HAVE_OPENSSL
  391. if HAVE_ZLIB
  392. SRCS += \
  393. GZipDecodingStreamFilter.cc GZipDecodingStreamFilter.h\
  394. GZipEncoder.cc GZipEncoder.h\
  395. GZipFile.cc GZipFile.h \
  396. Adler32MessageDigestImpl.cc Adler32MessageDigestImpl.h
  397. endif # HAVE_ZLIB
  398. if HAVE_SQLITE3
  399. SRCS += \
  400. Sqlite3CookieParser.cc Sqlite3CookieParser.h\
  401. Sqlite3CookieParserImpl.cc Sqlite3CookieParserImpl.h
  402. endif # HAVE_SQLITE3
  403. if HAVE_LIBSSH2
  404. SRCS += SSHSession.cc SSHSession.h \
  405. SftpNegotiationCommand.cc SftpNegotiationCommand.h \
  406. SftpNegotiationConnectChain.h \
  407. SftpDownloadCommand.cc SftpDownloadCommand.h \
  408. SftpFinishDownloadCommand.cc SftpFinishDownloadCommand.h
  409. endif # HAVE_LIBSSH2
  410. if ENABLE_ASYNC_DNS
  411. SRCS += \
  412. AsyncNameResolver.cc AsyncNameResolver.h\
  413. AsyncNameResolverMan.cc AsyncNameResolverMan.h
  414. endif # ENABLE_ASYNC_DNS
  415. if ENABLE_BITTORRENT
  416. SRCS += \
  417. AbstractBtMessage.cc AbstractBtMessage.h\
  418. ActivePeerConnectionCommand.cc ActivePeerConnectionCommand.h\
  419. AnnounceList.h AnnounceList.cc\
  420. AnnounceTier.cc AnnounceTier.h\
  421. ARC4Encryptor.h\
  422. bencode2.cc bencode2.h\
  423. BencodeDiskWriter.h\
  424. BencodeDiskWriterFactory.h\
  425. BencodeParser.cc BencodeParser.h\
  426. bittorrent_helper.cc bittorrent_helper.h\
  427. BtAbortOutstandingRequestEvent.cc BtAbortOutstandingRequestEvent.h\
  428. BtAllowedFastMessage.cc BtAllowedFastMessage.h\
  429. BtAnnounce.cc BtAnnounce.h\
  430. BtBitfieldMessage.cc BtBitfieldMessage.h\
  431. BtBitfieldMessageValidator.cc BtBitfieldMessageValidator.h\
  432. BtCancelMessage.cc BtCancelMessage.h\
  433. BtCancelSendingPieceEvent.h\
  434. BtCheckIntegrityEntry.cc BtCheckIntegrityEntry.h\
  435. BtChokeMessage.cc BtChokeMessage.h\
  436. BtChokingEvent.h\
  437. BtConstants.h\
  438. BtDependency.cc BtDependency.h\
  439. BtExtendedMessage.cc BtExtendedMessage.h\
  440. BtFileAllocationEntry.cc BtFileAllocationEntry.h\
  441. BtHandshakeMessage.cc BtHandshakeMessage.h\
  442. BtHandshakeMessageValidator.cc BtHandshakeMessageValidator.h\
  443. BtHaveAllMessage.cc BtHaveAllMessage.h\
  444. BtHaveMessage.cc BtHaveMessage.h\
  445. BtHaveNoneMessage.cc BtHaveNoneMessage.h\
  446. BtInteractive.h\
  447. BtInterestedMessage.cc BtInterestedMessage.h\
  448. BtKeepAliveMessage.cc BtKeepAliveMessage.h\
  449. BtLeecherStateChoke.cc BtLeecherStateChoke.h\
  450. BtMessage.h\
  451. BtMessageDispatcher.h\
  452. BtMessageFactory.h\
  453. BtMessageReceiver.h\
  454. BtMessageValidator.h\
  455. BtNotInterestedMessage.cc BtNotInterestedMessage.h\
  456. BtPieceMessage.cc BtPieceMessage.h\
  457. BtPieceMessageValidator.cc BtPieceMessageValidator.h\
  458. BtPortMessage.cc BtPortMessage.h\
  459. BtPostDownloadHandler.cc BtPostDownloadHandler.h\
  460. BtRegistry.cc BtRegistry.h\
  461. BtRejectMessage.cc BtRejectMessage.h\
  462. BtRequestFactory.h\
  463. BtRequestMessage.cc BtRequestMessage.h\
  464. BtRuntime.cc BtRuntime.h\
  465. BtSeederStateChoke.cc BtSeederStateChoke.h\
  466. BtSetup.cc BtSetup.h\
  467. BtStopDownloadCommand.cc BtStopDownloadCommand.h\
  468. BtSuggestPieceMessage.cc BtSuggestPieceMessage.h\
  469. BtUnchokeMessage.cc BtUnchokeMessage.h\
  470. DefaultBtAnnounce.cc DefaultBtAnnounce.h\
  471. DefaultBtInteractive.cc DefaultBtInteractive.h\
  472. DefaultBtMessageDispatcher.cc DefaultBtMessageDispatcher.h\
  473. DefaultBtMessageFactory.cc DefaultBtMessageFactory.h\
  474. DefaultBtMessageReceiver.cc DefaultBtMessageReceiver.h\
  475. DefaultBtRequestFactory.cc DefaultBtRequestFactory.h\
  476. DefaultExtensionMessageFactory.cc DefaultExtensionMessageFactory.h\
  477. DefaultPeerStorage.cc DefaultPeerStorage.h\
  478. DHKeyExchange.h\
  479. DHTAbstractMessage.cc DHTAbstractMessage.h\
  480. DHTAbstractNodeLookupTask.h\
  481. DHTAbstractTask.cc DHTAbstractTask.h\
  482. DHTAnnouncePeerMessage.cc DHTAnnouncePeerMessage.h\
  483. DHTAnnouncePeerReplyMessage.cc DHTAnnouncePeerReplyMessage.h\
  484. DHTAutoSaveCommand.cc DHTAutoSaveCommand.h\
  485. DHTBucket.cc DHTBucket.h\
  486. DHTBucketRefreshCommand.cc DHTBucketRefreshCommand.h\
  487. DHTBucketRefreshTask.cc DHTBucketRefreshTask.h\
  488. DHTBucketTree.cc DHTBucketTree.h\
  489. DHTConnection.h\
  490. DHTConnectionImpl.cc DHTConnectionImpl.h\
  491. DHTConstants.h\
  492. DHTEntryPointNameResolveCommand.cc DHTEntryPointNameResolveCommand.h\
  493. DHTFindNodeMessage.cc DHTFindNodeMessage.h\
  494. DHTFindNodeReplyMessage.cc DHTFindNodeReplyMessage.h\
  495. DHTGetPeersCommand.cc DHTGetPeersCommand.h\
  496. DHTGetPeersMessage.cc DHTGetPeersMessage.h\
  497. DHTGetPeersReplyMessage.cc DHTGetPeersReplyMessage.h\
  498. DHTIDCloser.h\
  499. DHTInteractionCommand.cc DHTInteractionCommand.h\
  500. DHTMessage.cc DHTMessage.h\
  501. DHTMessageCallback.h\
  502. DHTMessageDispatcher.h\
  503. DHTMessageDispatcherImpl.cc DHTMessageDispatcherImpl.h\
  504. DHTMessageEntry.cc DHTMessageEntry.h\
  505. DHTMessageFactory.h\
  506. DHTMessageFactoryImpl.cc DHTMessageFactoryImpl.h\
  507. DHTMessageReceiver.cc DHTMessageReceiver.h\
  508. DHTMessageTracker.cc DHTMessageTracker.h\
  509. DHTMessageTrackerEntry.cc DHTMessageTrackerEntry.h\
  510. DHTNode.cc DHTNode.h\
  511. DHTNodeLookupEntry.cc DHTNodeLookupEntry.h\
  512. DHTNodeLookupTask.cc DHTNodeLookupTask.h\
  513. DHTNodeLookupTaskCallback.cc DHTNodeLookupTaskCallback.h\
  514. DHTPeerAnnounceCommand.cc DHTPeerAnnounceCommand.h\
  515. DHTPeerAnnounceEntry.cc DHTPeerAnnounceEntry.h\
  516. DHTPeerAnnounceStorage.cc DHTPeerAnnounceStorage.h\
  517. DHTPeerLookupTask.cc DHTPeerLookupTask.h\
  518. DHTPeerLookupTaskCallback.cc DHTPeerLookupTaskCallback.h\
  519. DHTPingMessage.cc DHTPingMessage.h\
  520. DHTPingReplyMessage.cc DHTPingReplyMessage.h\
  521. DHTPingReplyMessageCallback.h\
  522. DHTPingTask.cc DHTPingTask.h\
  523. DHTQueryMessage.cc DHTQueryMessage.h\
  524. DHTRegistry.cc DHTRegistry.h\
  525. DHTReplaceNodeTask.cc DHTReplaceNodeTask.h\
  526. DHTResponseMessage.cc DHTResponseMessage.h\
  527. DHTRoutingTable.cc DHTRoutingTable.h\
  528. DHTRoutingTableDeserializer.cc DHTRoutingTableDeserializer.h\
  529. DHTRoutingTableSerializer.cc DHTRoutingTableSerializer.h\
  530. DHTSetup.cc DHTSetup.h\
  531. DHTTask.h\
  532. DHTTaskExecutor.cc DHTTaskExecutor.h\
  533. DHTTaskFactory.h\
  534. DHTTaskFactoryImpl.cc DHTTaskFactoryImpl.h\
  535. DHTTaskQueue.h\
  536. DHTTaskQueueImpl.cc DHTTaskQueueImpl.h\
  537. DHTTokenTracker.cc DHTTokenTracker.h\
  538. DHTTokenUpdateCommand.cc DHTTokenUpdateCommand.h\
  539. DHTUnknownMessage.cc DHTUnknownMessage.h\
  540. ExtensionMessage.h\
  541. ExtensionMessageFactory.h\
  542. ExtensionMessageRegistry.cc ExtensionMessageRegistry.h\
  543. HandshakeExtensionMessage.cc HandshakeExtensionMessage.h\
  544. IndexBtMessage.cc IndexBtMessage.h\
  545. IndexBtMessageValidator.cc IndexBtMessageValidator.h\
  546. InitiatorMSEHandshakeCommand.cc InitiatorMSEHandshakeCommand.h\
  547. LpdDispatchMessageCommand.cc LpdDispatchMessageCommand.h\
  548. LpdMessage.cc LpdMessage.h\
  549. LpdMessageDispatcher.cc LpdMessageDispatcher.h\
  550. LpdMessageReceiver.cc LpdMessageReceiver.h\
  551. LpdReceiveMessageCommand.cc LpdReceiveMessageCommand.h\
  552. magnet.cc magnet.h\
  553. MemoryBencodePreDownloadHandler.h\
  554. MSEHandshake.cc MSEHandshake.h\
  555. NameResolveCommand.cc NameResolveCommand.h\
  556. Peer.cc Peer.h\
  557. PeerAbstractCommand.cc PeerAbstractCommand.h\
  558. PeerAddrEntry.cc PeerAddrEntry.h\
  559. PeerChokeCommand.cc PeerChokeCommand.h\
  560. PeerConnection.cc PeerConnection.h\
  561. PeerInitiateConnectionCommand.cc PeerInitiateConnectionCommand.h\
  562. PeerInteractionCommand.cc PeerInteractionCommand.h\
  563. PeerListenCommand.cc PeerListenCommand.h\
  564. PeerReceiveHandshakeCommand.cc PeerReceiveHandshakeCommand.h\
  565. PeerSessionResource.cc PeerSessionResource.h\
  566. PeerStorage.h\
  567. PriorityPieceSelector.cc PriorityPieceSelector.h\
  568. RangeBtMessage.cc RangeBtMessage.h\
  569. RangeBtMessageValidator.cc RangeBtMessageValidator.h\
  570. ReceiverMSEHandshakeCommand.cc ReceiverMSEHandshakeCommand.h\
  571. RequestSlot.cc RequestSlot.h\
  572. SeedCheckCommand.cc SeedCheckCommand.h\
  573. SeedCriteria.h\
  574. ShareRatioSeedCriteria.cc ShareRatioSeedCriteria.h\
  575. SimpleBtMessage.cc SimpleBtMessage.h\
  576. TimeSeedCriteria.cc TimeSeedCriteria.h\
  577. TrackerWatcherCommand.cc TrackerWatcherCommand.h\
  578. UDPTrackerClient.cc UDPTrackerClient.h\
  579. UDPTrackerRequest.cc UDPTrackerRequest.h\
  580. UnionSeedCriteria.cc UnionSeedCriteria.h\
  581. UTMetadataDataExtensionMessage.cc UTMetadataDataExtensionMessage.h\
  582. UTMetadataExtensionMessage.cc UTMetadataExtensionMessage.h\
  583. UTMetadataPostDownloadHandler.cc UTMetadataPostDownloadHandler.h\
  584. UTMetadataRejectExtensionMessage.cc UTMetadataRejectExtensionMessage.h\
  585. UTMetadataRequestExtensionMessage.cc\
  586. UTMetadataRequestExtensionMessage.h\
  587. UTMetadataRequestFactory.cc UTMetadataRequestFactory.h\
  588. UTMetadataRequestTracker.cc UTMetadataRequestTracker.h\
  589. UTPexExtensionMessage.cc UTPexExtensionMessage.h\
  590. ValueBaseBencodeParser.h\
  591. XORCloser.h\
  592. ZeroBtMessage.cc ZeroBtMessage.h
  593. endif # ENABLE_BITTORRENT
  594. if ENABLE_METALINK
  595. SRCS += \
  596. Metalink2RequestGroup.cc Metalink2RequestGroup.h\
  597. MetalinkEntry.cc MetalinkEntry.h\
  598. Metalinker.cc Metalinker.h\
  599. MetalinkMetaurl.cc MetalinkMetaurl.h\
  600. MetalinkParserController.cc MetalinkParserController.h\
  601. MetalinkParserState.cc MetalinkParserState.h\
  602. MetalinkParserStateImpl.cc MetalinkParserStateImpl.h\
  603. MetalinkParserStateMachine.cc MetalinkParserStateMachine.h\
  604. MetalinkParserStateV3Impl.cc MetalinkParserStateV3Impl.h\
  605. MetalinkParserStateV4Impl.cc MetalinkParserStateV4Impl.h\
  606. MetalinkPostDownloadHandler.cc MetalinkPostDownloadHandler.h\
  607. MetalinkResource.cc MetalinkResource.h\
  608. metalink_helper.cc metalink_helper.h
  609. endif # ENABLE_METALINK
  610. if !HAVE_ASCTIME_R
  611. SRCS += asctime_r.c asctime_r.h
  612. endif # !HAVE_ASCTIME_R
  613. if !HAVE_BASENAME
  614. SRCS += libgen.c libgen.h
  615. endif # !HAVE_BASENAME
  616. if !HAVE_GETADDRINFO
  617. SRCS += getaddrinfo.c getaddrinfo.h
  618. endif # !HAVE_GETADDRINFO
  619. if !HAVE_GAI_STRERROR
  620. SRCS += gai_strerror.c gai_strerror.h
  621. endif # !HAVE_GAI_STRERROR
  622. if !HAVE_GETTIMEOFDAY
  623. SRCS += gettimeofday.c gettimeofday.h
  624. endif # !HAVE_GETTIMEOFDAY
  625. if !HAVE_LOCALTIME_R
  626. SRCS += localtime_r.c localtime_r.h
  627. endif # !HAVE_LOCALTIME_R
  628. if !HAVE_STRPTIME
  629. SRCS += strptime.c strptime.h
  630. endif # !HAVE_STRPTIME
  631. if !HAVE_TIMEGM
  632. SRCS += timegm.c timegm.h
  633. endif # !HAVE_TIMEGM
  634. if !HAVE_DAEMON
  635. SRCS += daemon.cc daemon.h
  636. endif # !HAVE_DAEMON
  637. if HAVE_POLL
  638. SRCS += PollEventPoll.cc PollEventPoll.h
  639. endif # HAVE_POLL
  640. if HAVE_PORT_ASSOCIATE
  641. SRCS += PortEventPoll.cc PortEventPoll.h
  642. endif # HAVE_PORT_ASSOCIATE
  643. if HAVE_KQUEUE
  644. SRCS += KqueueEventPoll.cc KqueueEventPoll.h
  645. endif # HAVE_KQUEUE
  646. if HAVE_GETRANDOM_INTERFACE
  647. SRCS += getrandom_linux.c getrandom_linux.h
  648. endif # HAVE_GETRANDOM_INTERFACE
  649. if HAVE_LIBUV
  650. SRCS += LibuvEventPoll.cc LibuvEventPoll.h
  651. endif # HAVE_LIBUV
  652. AR = @AR@
  653. if ENABLE_LIBARIA2
  654. pkgconfigdir = $(libdir)/pkgconfig
  655. pkgconfig_DATA = libaria2.pc
  656. DISTCLEANFILES = $(pkgconfig_DATA)
  657. lib_LTLIBRARIES = libaria2.la
  658. SRCS += \
  659. ApiCallbackDownloadEventListener.cc ApiCallbackDownloadEventListener.h\
  660. aria2api.cc aria2api.h \
  661. KeepRunningCommand.cc KeepRunningCommand.h
  662. else # !ENABLE_LIBARIA2
  663. noinst_LTLIBRARIES = libaria2.la
  664. endif # !ENABLE_LIBARIA2
  665. libaria2_la_SOURCES = $(SRCS)
  666. libaria2_la_LIBADD = @WSLAY_LIBS@ @LTLIBINTL@
  667. AM_CPPFLAGS = \
  668. -I$(top_srcdir)/lib -I$(top_srcdir)/intl\
  669. -I$(srcdir)/includes -I$(builddir)/includes\
  670. -DLOCALEDIR=\"@localedir@\" @DEFS@ \
  671. @EXTRACPPFLAGS@ \
  672. @ZLIB_CFLAGS@ \
  673. @LIBUV_CFLAGS@ \
  674. @XML_CPPFLAGS@ \
  675. @EXPAT_CFLAGS@ \
  676. @SQLITE3_CFLAGS@ \
  677. @LIBGNUTLS_CFLAGS@ \
  678. @OPENSSL_CFLAGS@ \
  679. @LIBNETTLE_CFLAGS@ \
  680. @LIBGMP_CFLAGS@ \
  681. @LIBGCRYPT_CFLAGS@ \
  682. @LIBSSH2_CFLAGS@ \
  683. @LIBCARES_CFLAGS@ \
  684. @WSLAY_CFLAGS@ \
  685. @TCMALLOC_CFLAGS@ \
  686. @JEMALLOC_CFLAGS@
  687. AM_LDFLAGS = \
  688. @EXTRALDFLAGS@ \
  689. @APPLETLS_LDFLAGS@
  690. LDADD = libaria2.la @ALLOCA@ \
  691. @EXTRALIBS@ \
  692. @ZLIB_LIBS@ \
  693. @LIBUV_LIBS@ \
  694. @XML_LIBS@ \
  695. @EXPAT_LIBS@ \
  696. @SQLITE3_LIBS@ \
  697. @WINTLS_LIBS@ \
  698. @LIBGNUTLS_LIBS@ \
  699. @OPENSSL_LIBS@ \
  700. @LIBNETTLE_LIBS@ \
  701. @LIBGMP_LIBS@ \
  702. @LIBGCRYPT_LIBS@ \
  703. @LIBSSH2_LIBS@ \
  704. @LIBCARES_LIBS@ \
  705. @WSLAY_LIBS@ \
  706. @TCMALLOC_LIBS@ \
  707. @JEMALLOC_LIBS@
  708. AM_CFLAGS = @EXTRACFLAGS@
  709. AM_CXXFLAGS = @EXTRACXXFLAGS@