remove file.cpp in win
This commit is contained in:
parent
d40387ada9
commit
f005a5d869
7
setup.py
7
setup.py
|
@ -163,7 +163,12 @@ _sources = glob.glob("./libtorrent/src/*.cpp") + \
|
||||||
glob.glob("./libtorrent/bindings/python/src/*.cpp")
|
glob.glob("./libtorrent/bindings/python/src/*.cpp")
|
||||||
|
|
||||||
# Remove file_win.cpp if not on windows
|
# 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:
|
for source in _sources:
|
||||||
if "file_win.cpp" in source:
|
if "file_win.cpp" in source:
|
||||||
_sources.remove(source)
|
_sources.remove(source)
|
||||||
|
|
Loading…
Reference in New Issue