win updates for setup

This commit is contained in:
Marcos Pinto 2008-07-05 00:25:04 +00:00
parent cf54a107a4
commit e91943d72b
1 changed files with 14 additions and 12 deletions

View File

@ -94,12 +94,16 @@ _extra_compile_args = [
if windows_check(): if windows_check():
_extra_compile_args += [ _extra_compile_args += [
"-DBOOST_WINDOWS", "-DBOOST_WINDOWS",
"-DBOOST_WINDOWS_API",
"-DBOOST_STATIC_LINK",
"-DWIN32_LEAN_AND_MEAN", "-DWIN32_LEAN_AND_MEAN",
"-D_WIN32_WINNT=0x0500", "-D_WIN32_WINNT=0x0500",
"-D__USE_W32_SOCKETS", "-D__USE_W32_SOCKETS",
"-D_WIN32", "-D_WIN32",
"-DWIN32", "-DWIN32",
"-DUNICODE", "-DUNICODE",
"/Zc:wchar_t",
"/GR",
"-DBOOST_ALL_NO_LIB", "-DBOOST_ALL_NO_LIB",
"-DBOOST_THREAD_USE_LIB", "-DBOOST_THREAD_USE_LIB",
"-DTORRENT_BUILDING_SHARED", "-DTORRENT_BUILDING_SHARED",
@ -121,9 +125,6 @@ if not windows_check():
for removal in removals: for removal in removals:
cv_opt = cv_opt.replace(removal, " ") cv_opt = cv_opt.replace(removal, " ")
sysconfig.get_config_vars()["OPT"] = " ".join(cv_opt.split()) sysconfig.get_config_vars()["OPT"] = " ".join(cv_opt.split())
_extra_link_args = [
]
_library_dirs = [ _library_dirs = [
] ]
@ -135,16 +136,18 @@ _include_dirs = [
] ]
if windows_check(): if windows_check():
_extra_link_args += ['-L./win32/lib'] _include_dirs += ['./win32/include','./win32/include/openssl', './win32/include/zlib']
_include_dirs += ['./win32/include/zlib', 'C:/Program Files/boost/boost_1_34_1'] _library_dirs += ['./win32/lib']
_library_dirs += ['C:/Program Files/boost/boost_1_34_1/lib']
_libraries = [ _libraries = [
'boost_filesystem-vc71-mt-1_34_1', 'boost_filesystem-vc71-mt-1_35',
'boost_date_time-vc71-mt-1_34_1', 'boost_date_time-vc71-mt-1_35',
'boost_thread-vc71-mt-1_34_1', 'boost_thread-vc71-mt-1_35',
'boost_system-vc71-mt-1_35',
'boost_python-vc71-mt-1_35',
'boost_iostreams-vc71-mt-1_35',
'zlib', 'zlib',
'ssleay32MT', 'ssleay32',
'libeay32MT', 'libeay32',
'advapi32', 'advapi32',
'wsock32', 'wsock32',
'gdi32', 'gdi32',
@ -186,7 +189,6 @@ libtorrent = Extension(
library_dirs = _library_dirs, library_dirs = _library_dirs,
libraries = _libraries, libraries = _libraries,
extra_compile_args = _extra_compile_args, extra_compile_args = _extra_compile_args,
extra_link_args = _extra_link_args,
sources = _sources sources = _sources
) )