Changeset 14
- Timestamp:
- Jan 12, 2006, 6:52:15 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 18 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Jamfile
r7 r14 51 51 } 52 52 53 if $(OS) = BEOS 54 { 55 BeOSBuild Transmission : libtransmission.a ; 56 } 57 53 58 SubInclude TOP libtransmission ; -
trunk/Jamrules
r7 r14 9 9 VERSION_MINOR = 4 ; 10 10 # VERSION_STRING = $(VERSION_MAJOR).$(VERSION_MINOR) ; 11 VERSION_STRING = CVS-20051 124;11 VERSION_STRING = CVS-20051213 ; 12 12 13 13 DEFINES += VERSION_MAJOR=$(VERSION_MAJOR) 14 14 VERSION_MINOR=$(VERSION_MINOR) 15 15 VERSION_STRING=\\\"$(VERSION_STRING)\\\" ; 16 OPTIM = -O 3;16 OPTIM = -O0 ; 17 17 RM = rm -Rf ; 18 18 … … 94 94 } 95 95 } 96 97 if $(OS) = BEOS 98 { 99 rule BeOSBuild 100 { 101 Depends exe : $(1) ; 102 Depends $(1) : $(2) ; 103 Clean clean : $(1) beos/obj.$(CPU) ; 104 } 105 actions BeOSBuild 106 { 107 $(RM) $(1) && ( cd beos && make ) && \ 108 mv beos/obj.$(CPU)/Transmission $(1) 109 } 110 } -
trunk/configure
r10 r14 125 125 DEFINES="$DEFINES SYS_BEOS" 126 126 127 CC="gcc" 128 MACHINE=`uname -m` 129 case $MACHINE in 130 BePC) # BeOS on x86 131 CPU="x86" 132 ;; 133 *) 134 CPU="ppc" 135 ;; 136 esac 137 SYSTEM="$SYSTEM / $CPU" 138 127 139 RELEASE=`uname -r` 128 140 case $RELEASE in … … 138 150 *) 139 151 echo "Unsupported BeOS version" 140 exit 1 ;; 152 exit 1 153 ;; 141 154 esac 142 155 ;; … … 206 219 EOF 207 220 fi 221 if [ -n "$CPU" ]; then 222 cat >> config.jam << EOF 223 CPU = $CPU ; 224 EOF 225 fi 208 226 209 227 echo -
trunk/libtransmission/Jamfile
r3 r14 4 4 transmission.c bencode.c net.c tracker.c peer.c inout.c 5 5 metainfo.c sha1.c utils.c upload.c fdlimit.c clients.c 6 completion.c ;6 completion.c platform.c ; 7 7 8 8 Library libtransmission.a : $(LIBTRANSMISSION_SRC) ; -
trunk/libtransmission/transmission.c
r7 r14 23 23 #include "transmission.h" 24 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 #include "platform.h" 30 25 31 /*********************************************************************** 26 32 * Local prototypes … … 68 74 h->bindPort = TR_DEFAULT_PORT; 69 75 70 snprintf( h->prefsDirectory, sizeof( h->prefsDirectory ), 71 "%s/.transmission", getenv( "HOME" ) ); 72 mkdir( h->prefsDirectory, 0755 ); 73 76 tr_init_platform( h ); 77 74 78 return h; 75 79 } … … 489 493 490 494 #ifdef SYS_BEOS 495 rename_thread(tor->thread, "torrent-tx"); 491 496 /* This is required because on BeOS, SIGINT is sent to each thread, 492 497 which kills them not nicely */ … … 576 581 return rateGeneric( tor->dates, tor->uploaded ); 577 582 } 583 584 #ifdef __cplusplus 585 } 586 #endif -
trunk/libtransmission/transmission.h
r7 r14 24 24 #define TR_TRANSMISSION_H 1 25 25 26 #ifdef __cplusplus 27 extern "C" { 28 #endif 29 26 30 #include <inttypes.h> 27 31 28 32 #define SHA_DIGEST_LENGTH 20 29 #define MAX_PATH_LENGTH 1024 33 #ifdef SYS_BEOS 34 # include <StorageDefs.h> 35 # define MAX_PATH_LENGTH B_FILE_NAME_LENGTH 36 #else 37 # define MAX_PATH_LENGTH 1024 38 #endif 30 39 #define TR_MAX_TORRENT_COUNT 50 31 40 … … 235 244 #endif 236 245 237 #endif 246 #ifdef __cplusplus 247 } 248 #endif 249 250 #endif
Note: See TracChangeset
for help on using the changeset viewer.