2017-04-19 16:23:19 +03:00
|
|
|
find_package(ZLIB 1.2.5.2 REQUIRED)
|
2015-11-06 21:03:18 +03:00
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
add_library(qbt_base STATIC
|
2020-04-30 11:34:41 +03:00
|
|
|
# headers
|
2020-05-07 20:15:33 +03:00
|
|
|
algorithm.h
|
|
|
|
asyncfilestorage.h
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/addtorrentparams.h
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/bandwidthscheduler.h
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/cachestatus.h
|
2020-04-27 11:26:45 +03:00
|
|
|
bittorrent/customstorage.h
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/downloadpriority.h
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/filterparserthread.h
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/infohash.h
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/ltunderlyingtype.h
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/magneturi.h
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/nativesessionextension.h
|
|
|
|
bittorrent/nativetorrentextension.h
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/peeraddress.h
|
|
|
|
bittorrent/peerinfo.h
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/portforwarderimpl.h
|
|
|
|
bittorrent/resumedatasavingmanager.h
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/session.h
|
|
|
|
bittorrent/sessionstatus.h
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/speedmonitor.h
|
|
|
|
bittorrent/statistics.h
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/torrentcreatorthread.h
|
|
|
|
bittorrent/torrenthandle.h
|
|
|
|
bittorrent/torrenthandleimpl.h
|
|
|
|
bittorrent/torrentinfo.h
|
|
|
|
bittorrent/tracker.h
|
|
|
|
bittorrent/trackerentry.h
|
2020-05-07 20:15:33 +03:00
|
|
|
exceptions.h
|
|
|
|
filesystemwatcher.h
|
|
|
|
global.h
|
2020-04-30 11:34:41 +03:00
|
|
|
http/connection.h
|
|
|
|
http/httperror.h
|
|
|
|
http/irequesthandler.h
|
|
|
|
http/requestparser.h
|
|
|
|
http/responsebuilder.h
|
|
|
|
http/responsegenerator.h
|
|
|
|
http/server.h
|
|
|
|
http/types.h
|
2020-05-07 20:15:33 +03:00
|
|
|
iconprovider.h
|
|
|
|
indexrange.h
|
|
|
|
logger.h
|
2020-04-30 11:34:41 +03:00
|
|
|
net/dnsupdater.h
|
2020-05-07 20:15:33 +03:00
|
|
|
net/downloadhandlerimpl.h
|
2020-04-30 11:34:41 +03:00
|
|
|
net/downloadmanager.h
|
2020-05-07 20:15:33 +03:00
|
|
|
net/geoipdatabase.h
|
2020-04-30 11:34:41 +03:00
|
|
|
net/geoipmanager.h
|
|
|
|
net/portforwarder.h
|
|
|
|
net/proxyconfigurationmanager.h
|
|
|
|
net/reverseresolution.h
|
|
|
|
net/smtp.h
|
2020-05-07 20:15:33 +03:00
|
|
|
preferences.h
|
|
|
|
profile.h
|
|
|
|
profile_p.h
|
2020-04-30 11:34:41 +03:00
|
|
|
rss/rss_article.h
|
|
|
|
rss/rss_autodownloader.h
|
|
|
|
rss/rss_autodownloadrule.h
|
|
|
|
rss/rss_feed.h
|
|
|
|
rss/rss_folder.h
|
|
|
|
rss/rss_item.h
|
2020-05-07 20:15:33 +03:00
|
|
|
rss/rss_parser.h
|
2020-04-30 11:34:41 +03:00
|
|
|
rss/rss_session.h
|
2020-05-07 20:15:33 +03:00
|
|
|
scanfoldersmodel.h
|
2020-04-30 11:34:41 +03:00
|
|
|
search/searchdownloadhandler.h
|
|
|
|
search/searchhandler.h
|
|
|
|
search/searchpluginmanager.h
|
2020-05-07 20:15:33 +03:00
|
|
|
settingsstorage.h
|
|
|
|
torrentfileguard.h
|
|
|
|
torrentfilter.h
|
|
|
|
tristatebool.h
|
|
|
|
types.h
|
|
|
|
unicodestrings.h
|
2020-04-30 11:34:41 +03:00
|
|
|
utils/bytearray.h
|
|
|
|
utils/foreignapps.h
|
|
|
|
utils/fs.h
|
|
|
|
utils/gzip.h
|
|
|
|
utils/io.h
|
|
|
|
utils/misc.h
|
|
|
|
utils/net.h
|
|
|
|
utils/password.h
|
|
|
|
utils/random.h
|
|
|
|
utils/string.h
|
|
|
|
utils/version.h
|
2018-06-14 12:54:23 +03:00
|
|
|
|
2020-04-30 11:34:41 +03:00
|
|
|
# sources
|
2020-05-07 20:15:33 +03:00
|
|
|
asyncfilestorage.cpp
|
|
|
|
bittorrent/bandwidthscheduler.cpp
|
2020-04-27 11:26:45 +03:00
|
|
|
bittorrent/customstorage.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/downloadpriority.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/filterparserthread.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/infohash.cpp
|
|
|
|
bittorrent/magneturi.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/nativesessionextension.cpp
|
|
|
|
bittorrent/nativetorrentextension.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/peeraddress.cpp
|
|
|
|
bittorrent/peerinfo.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/portforwarderimpl.cpp
|
|
|
|
bittorrent/resumedatasavingmanager.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/session.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
bittorrent/speedmonitor.cpp
|
|
|
|
bittorrent/statistics.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
bittorrent/torrentcreatorthread.cpp
|
|
|
|
bittorrent/torrenthandle.cpp
|
|
|
|
bittorrent/torrenthandleimpl.cpp
|
|
|
|
bittorrent/torrentinfo.cpp
|
|
|
|
bittorrent/tracker.cpp
|
|
|
|
bittorrent/trackerentry.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
exceptions.cpp
|
|
|
|
filesystemwatcher.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
http/connection.cpp
|
|
|
|
http/httperror.cpp
|
|
|
|
http/requestparser.cpp
|
|
|
|
http/responsebuilder.cpp
|
|
|
|
http/responsegenerator.cpp
|
|
|
|
http/server.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
iconprovider.cpp
|
|
|
|
logger.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
net/dnsupdater.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
net/downloadhandlerimpl.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
net/downloadmanager.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
net/geoipdatabase.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
net/geoipmanager.cpp
|
|
|
|
net/portforwarder.cpp
|
|
|
|
net/proxyconfigurationmanager.cpp
|
|
|
|
net/reverseresolution.cpp
|
|
|
|
net/smtp.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
preferences.cpp
|
|
|
|
profile.cpp
|
|
|
|
profile_p.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
rss/rss_article.cpp
|
|
|
|
rss/rss_autodownloader.cpp
|
|
|
|
rss/rss_autodownloadrule.cpp
|
|
|
|
rss/rss_feed.cpp
|
|
|
|
rss/rss_folder.cpp
|
|
|
|
rss/rss_item.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
rss/rss_parser.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
rss/rss_session.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
scanfoldersmodel.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
search/searchdownloadhandler.cpp
|
|
|
|
search/searchhandler.cpp
|
|
|
|
search/searchpluginmanager.cpp
|
2020-05-07 20:15:33 +03:00
|
|
|
settingsstorage.cpp
|
|
|
|
torrentfileguard.cpp
|
|
|
|
torrentfilter.cpp
|
|
|
|
tristatebool.cpp
|
2020-04-30 11:34:41 +03:00
|
|
|
utils/bytearray.cpp
|
|
|
|
utils/foreignapps.cpp
|
|
|
|
utils/fs.cpp
|
|
|
|
utils/gzip.cpp
|
|
|
|
utils/io.cpp
|
|
|
|
utils/misc.cpp
|
|
|
|
utils/net.cpp
|
|
|
|
utils/password.cpp
|
|
|
|
utils/random.cpp
|
|
|
|
utils/string.cpp
|
2015-11-06 21:03:18 +03:00
|
|
|
)
|
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
target_link_libraries(qbt_base
|
|
|
|
PRIVATE
|
|
|
|
ZLIB::ZLIB
|
|
|
|
PUBLIC
|
|
|
|
LibtorrentRasterbar::torrent-rasterbar
|
|
|
|
Qt5::Core Qt5::Network Qt5::Xml
|
|
|
|
)
|
2017-01-19 15:10:09 +03:00
|
|
|
|
2018-06-05 04:03:38 +03:00
|
|
|
if (Qt5DBus_FOUND)
|
|
|
|
target_link_libraries(qbt_base PRIVATE Qt5::DBus)
|
2020-04-30 11:34:41 +03:00
|
|
|
endif()
|
2016-05-01 03:54:53 +03:00
|
|
|
|
2016-03-12 05:49:34 +03:00
|
|
|
if (APPLE)
|
|
|
|
find_library(IOKit_LIBRARY IOKit)
|
|
|
|
find_library(Carbon_LIBRARY Carbon)
|
2017-08-11 08:37:06 +03:00
|
|
|
find_library(AppKit_LIBRARY AppKit)
|
|
|
|
target_link_libraries(qbt_base PRIVATE ${Carbon_LIBRARY} ${IOKit_LIBRARY} ${AppKit_LIBRARY})
|
2020-04-30 11:34:41 +03:00
|
|
|
endif()
|