Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioVilas authored and aquynh committed Mar 18, 2015
1 parent 85120cc commit 0950943
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions bindings/python/setup.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def finalize_options(self):
build_clib.finalize_options(self)

def build_libraries(self, libraries):
if SYSTEM == "win32":
if SYSTEM in ("win32", "cygwin"):
# if Windows prebuilt library is available, then include it
if is_64bits and os.path.exists(PATH_LIB64):
SETUP_DATA_FILES.append(PATH_LIB64)
Expand Down Expand Up @@ -133,10 +133,12 @@ def build_libraries(self, libraries):

if SYSTEM == "darwin":
SETUP_DATA_FILES.append("src/libcapstone.dylib")
elif SYSTEM != "win32":
SETUP_DATA_FILES.append("src/libcapstone.so")
else: # Windows
elif SYSTEM == "win32":
SETUP_DATA_FILES.append("src/build/capstone.dll")
elif SYSTEM == "cygwin":
SETUP_DATA_FILES.append("src/capstone.dll")
else: # Unix
SETUP_DATA_FILES.append("src/libcapstone.so")

os.chdir("..")
except:
Expand Down

0 comments on commit 0950943

Please sign in to comment.