forked from premiere/premiere-libtorrent
made win32 platforms use file_win.cpp and other platforms use file.cpp. factored out .cpp ending of source files in Jamfile
This commit is contained in:
parent
34473aad1b
commit
32dc04c09b
125
Jamfile
125
Jamfile
|
@ -35,64 +35,64 @@ feature.compose <openssl>off : ;
|
||||||
feature.compose <openssl>on : <define>TORRENT_USE_OPENSSL ;
|
feature.compose <openssl>on : <define>TORRENT_USE_OPENSSL ;
|
||||||
|
|
||||||
SOURCES =
|
SOURCES =
|
||||||
allocate_resources.cpp
|
allocate_resources
|
||||||
alert.cpp
|
alert
|
||||||
bandwidth_manager.cpp
|
bandwidth_manager
|
||||||
entry.cpp
|
entry
|
||||||
escape_string.cpp
|
escape_string
|
||||||
file.cpp
|
http_connection
|
||||||
http_connection.cpp
|
identify_client
|
||||||
identify_client.cpp
|
ip_filter
|
||||||
ip_filter.cpp
|
peer_connection
|
||||||
peer_connection.cpp
|
bt_peer_connection
|
||||||
bt_peer_connection.cpp
|
web_peer_connection
|
||||||
web_peer_connection.cpp
|
natpmp
|
||||||
natpmp.cpp
|
piece_picker
|
||||||
piece_picker.cpp
|
policy
|
||||||
policy.cpp
|
session
|
||||||
session.cpp
|
session_impl
|
||||||
session_impl.cpp
|
stat
|
||||||
stat.cpp
|
storage
|
||||||
storage.cpp
|
torrent
|
||||||
torrent.cpp
|
torrent_handle
|
||||||
torrent_handle.cpp
|
torrent_info
|
||||||
torrent_info.cpp
|
tracker_manager
|
||||||
tracker_manager.cpp
|
http_tracker_connection
|
||||||
http_tracker_connection.cpp
|
udp_tracker_connection
|
||||||
udp_tracker_connection.cpp
|
sha1
|
||||||
metadata_transfer.cpp
|
metadata_transfer
|
||||||
upnp.cpp
|
upnp
|
||||||
ut_pex.cpp
|
ut_pex
|
||||||
logger.cpp
|
logger
|
||||||
file_pool.cpp
|
file_pool
|
||||||
lsd.cpp
|
lsd
|
||||||
;
|
;
|
||||||
|
|
||||||
KADEMLIA_SOURCES =
|
KADEMLIA_SOURCES =
|
||||||
kademlia/closest_nodes.cpp
|
kademlia/closest_nodes
|
||||||
kademlia/dht_tracker.cpp
|
kademlia/dht_tracker
|
||||||
kademlia/node.cpp
|
kademlia/node
|
||||||
kademlia/refresh.cpp
|
kademlia/refresh
|
||||||
kademlia/rpc_manager.cpp
|
kademlia/rpc_manager
|
||||||
kademlia/find_data.cpp
|
kademlia/find_data
|
||||||
kademlia/node_id.cpp
|
kademlia/node_id
|
||||||
kademlia/routing_table.cpp
|
kademlia/routing_table
|
||||||
kademlia/traversal_algorithm.cpp
|
kademlia/traversal_algorithm
|
||||||
;
|
;
|
||||||
|
|
||||||
ZLIB_SOURCES =
|
ZLIB_SOURCES =
|
||||||
adler32.c
|
adler32
|
||||||
compress.c
|
compress
|
||||||
crc32.c
|
crc32
|
||||||
deflate.c
|
deflate
|
||||||
gzio.c
|
gzio
|
||||||
infback.c
|
infback
|
||||||
inffast.c
|
inffast
|
||||||
inflate.c
|
inflate
|
||||||
inftrees.c
|
inftrees
|
||||||
trees.c
|
trees
|
||||||
uncompr.c
|
uncompr
|
||||||
zutil.c
|
zutil
|
||||||
;
|
;
|
||||||
|
|
||||||
DEFINES = ;
|
DEFINES = ;
|
||||||
|
@ -107,18 +107,21 @@ if [ os.name ] = CYGWIN
|
||||||
DEFINES += _WIN32_WINNT=0x0500 ;
|
DEFINES += _WIN32_WINNT=0x0500 ;
|
||||||
DEFINES += __USE_W32_SOCKETS ;
|
DEFINES += __USE_W32_SOCKETS ;
|
||||||
DEFINES += WIN32 ;
|
DEFINES += WIN32 ;
|
||||||
|
SOURCES += file_win ;
|
||||||
}
|
}
|
||||||
|
else if [ os.name ] = NT
|
||||||
# some windows specific settings
|
|
||||||
|
|
||||||
if [ os.name ] = NT
|
|
||||||
{
|
{
|
||||||
lib wsock32 : : <name>wsock32.lib ;
|
lib wsock32 : : <name>wsock32.lib ;
|
||||||
LIBS += wsock32 ;
|
LIBS += wsock32 ;
|
||||||
DEFINES += WIN32_LEAN_AND_MEAN ;
|
DEFINES += WIN32_LEAN_AND_MEAN ;
|
||||||
DEFINES += _WIN32_WINNT=0x0500 ;
|
DEFINES += _WIN32_WINNT=0x0500 ;
|
||||||
DEFINES += WIN32 ;
|
DEFINES += WIN32 ;
|
||||||
}
|
SOURCES += file_win ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SOURCES += file ;
|
||||||
|
}
|
||||||
|
|
||||||
lib openssl_lib : : <name>crypto ;
|
lib openssl_lib : : <name>crypto ;
|
||||||
|
|
||||||
|
@ -170,13 +173,13 @@ project torrent
|
||||||
|
|
||||||
lib torrent
|
lib torrent
|
||||||
:
|
:
|
||||||
src/$(SOURCES)
|
src/$(SOURCES).cpp
|
||||||
zlib/$(ZLIB_SOURCES)
|
zlib/$(ZLIB_SOURCES).c
|
||||||
$(LIBS)
|
$(LIBS)
|
||||||
# pch
|
# pch
|
||||||
:
|
:
|
||||||
<dht-support>on:<source>src/$(KADEMLIA_SOURCES)
|
<dht-support>on:<source>src/$(KADEMLIA_SOURCES).cpp
|
||||||
<dht-support>logging:<source>src/$(KADEMLIA_SOURCES)
|
<dht-support>logging:<source>src/$(KADEMLIA_SOURCES).cpp
|
||||||
<openssl>off:<source>src/sha1.cpp
|
<openssl>off:<source>src/sha1.cpp
|
||||||
<openssl>on:<library>openssl_lib
|
<openssl>on:<library>openssl_lib
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue