remove file.cpp in win

This commit is contained in:
Marcos Pinto 2008-02-03 05:37:10 +00:00
parent d40387ada9
commit f005a5d869
1 changed files with 6 additions and 1 deletions

View File

@ -163,7 +163,12 @@ _sources = glob.glob("./libtorrent/src/*.cpp") + \
glob.glob("./libtorrent/bindings/python/src/*.cpp")
# Remove file_win.cpp if not on windows
if not windows_check():
if windows_check():
for source in _sources:
if "file.cpp" in source:
_sources.remove(source)
break
else:
for source in _sources:
if "file_win.cpp" in source:
_sources.remove(source)