Changeset 11775
- Timestamp:
- Jan 27, 2011, 3:53:02 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r11772 r11775 407 407 esac 408 408 409 AC_ARG_ENABLE([lightweight], 410 AS_HELP_STRING([--enable-lightweight],[optimize libtransmission for low-resource systems: smaller cache size, prefer unencrypted peer connections, etc.]), 411 [enable_lightweight=${enableval}], 412 [enable_lightweight="no"]) 413 if test "x$enable_lightweight" = "xyes" ; then 414 AC_DEFINE([TR_LIGHTWEIGHT],[1],[optimize libtransmission for low-resource systems]) 415 fi 416 409 417 AC_ARG_ENABLE([cli], 410 418 [AS_HELP_STRING([--enable-cli],[build command-line client])], … … 486 494 Compiler: ${CXX} 487 495 496 Build libtransmission: yes 497 498 * optimized for low-resource systems: ${enable_lightweight} 499 488 500 Build Command-Line client: ${build_cli} 489 501 -
trunk/libtransmission/rpc-server.c
r11709 r11775 364 364 /* zlib's manual says: "Add 16 to windowBits to write a simple gzip header 365 365 * and trailer around the compressed data instead of a zlib wrapper." */ 366 #ifdef TR_ EMBEDDED366 #ifdef TR_LIGHTWEIGHT 367 367 compressionLevel = Z_DEFAULT_COMPRESSION; 368 368 #else -
trunk/libtransmission/session.c
r11756 r11775 56 56 SAVE_INTERVAL_SECS = 360, 57 57 58 #ifdef TR_LIGHTWEIGHT 59 DEFAULT_CACHE_SIZE_MB = 2 60 #else 58 61 DEFAULT_CACHE_SIZE_MB = 4 62 #endif 59 63 }; 60 64 … … 252 256 ***/ 253 257 254 #ifdef TR_ EMBEDDED258 #ifdef TR_LIGHTWEIGHT 255 259 #define TR_DEFAULT_ENCRYPTION TR_CLEAR_PREFERRED 256 260 #else -
trunk/libtransmission/utils.h
r11714 r11775 102 102 /* #define DISABLE_GETTEXT */ 103 103 #ifndef DISABLE_GETTEXT 104 #if defined(WIN32) || defined(TR_ EMBEDDED)104 #if defined(WIN32) || defined(TR_LIGHTWEIGHT) 105 105 #define DISABLE_GETTEXT 106 106 #endif
Note: See TracChangeset
for help on using the changeset viewer.