mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-31 16:41:07 +00:00
Remove version number from shared library filename packaged with python bindings
This commit is contained in:
parent
6c042410ae
commit
edd49cd21c
|
@ -36,13 +36,13 @@ SRC_DIR = os.path.join(ROOT_DIR, 'src')
|
||||||
BUILD_DIR = SRC_DIR if os.path.exists(SRC_DIR) else os.path.join(ROOT_DIR, '../..')
|
BUILD_DIR = SRC_DIR if os.path.exists(SRC_DIR) else os.path.join(ROOT_DIR, '../..')
|
||||||
|
|
||||||
if SYSTEM == 'darwin':
|
if SYSTEM == 'darwin':
|
||||||
LIBRARY_FILE = "libunicorn.1.dylib"
|
LIBRARY_FILE = "libunicorn.dylib"
|
||||||
STATIC_LIBRARY_FILE = 'libunicorn.a'
|
STATIC_LIBRARY_FILE = 'libunicorn.a'
|
||||||
elif SYSTEM in ('win32', 'cygwin'):
|
elif SYSTEM in ('win32', 'cygwin'):
|
||||||
LIBRARY_FILE = "unicorn.dll"
|
LIBRARY_FILE = "unicorn.dll"
|
||||||
STATIC_LIBRARY_FILE = None
|
STATIC_LIBRARY_FILE = None
|
||||||
else:
|
else:
|
||||||
LIBRARY_FILE = "libunicorn.so.1"
|
LIBRARY_FILE = "libunicorn.so"
|
||||||
STATIC_LIBRARY_FILE = 'libunicorn.a'
|
STATIC_LIBRARY_FILE = 'libunicorn.a'
|
||||||
|
|
||||||
def clean_bins():
|
def clean_bins():
|
||||||
|
@ -122,7 +122,6 @@ def build_libraries():
|
||||||
shutil.copy(LIBRARY_FILE, LIBS_DIR)
|
shutil.copy(LIBRARY_FILE, LIBS_DIR)
|
||||||
if STATIC_LIBRARY_FILE: shutil.copy(STATIC_LIBRARY_FILE, LIBS_DIR)
|
if STATIC_LIBRARY_FILE: shutil.copy(STATIC_LIBRARY_FILE, LIBS_DIR)
|
||||||
os.chdir(cwd)
|
os.chdir(cwd)
|
||||||
if SYSTEM == "linux2": os.symlink(LIBRARY_FILE, os.path.join(LIBS_DIR, 'libunicorn.so'))
|
|
||||||
|
|
||||||
|
|
||||||
class custom_sdist(sdist):
|
class custom_sdist(sdist):
|
||||||
|
|
|
@ -18,11 +18,11 @@ if _python2:
|
||||||
range = xrange
|
range = xrange
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
_lib = "libunicorn.1.dylib"
|
_lib = "libunicorn.dylib"
|
||||||
elif sys.platform in ('win32', 'cygwin'):
|
elif sys.platform in ('win32', 'cygwin'):
|
||||||
_lib = "unicorn.dll"
|
_lib = "unicorn.dll"
|
||||||
else:
|
else:
|
||||||
_lib = "libunicorn.so.1"
|
_lib = "libunicorn.so"
|
||||||
|
|
||||||
# Windows DLL in dependency order
|
# Windows DLL in dependency order
|
||||||
_all_windows_dlls = (
|
_all_windows_dlls = (
|
||||||
|
|
Loading…
Reference in a new issue