Rizin
unix-like reverse engineering framework and cli tools
|
Classes | |
class | custom_build |
Functions | |
def | clean_bins () |
def | copy_pysources () |
def | build_libraries () |
Variables | |
SYSTEM = sys.platform | |
string | VERSION = '4.0.0' |
int | IS_64BITS = sys.maxsize > 2**32 |
ROOT_DIR = os.path.dirname(os.path.realpath(__file__)) | |
LIBS_DIR = os.path.join(ROOT_DIR, 'pyx', 'lib') | |
HEADERS_DIR = os.path.join(ROOT_DIR, 'pyx', 'include') | |
SRC_DIR = os.path.join(ROOT_DIR, 'src') | |
BUILD_DIR = SRC_DIR if os.path.exists(SRC_DIR) else os.path.join(ROOT_DIR, '../..') | |
PYPACKAGE_DIR = os.path.join(ROOT_DIR, 'capstone') | |
CYPACKAGE_DIR = os.path.join(ROOT_DIR, 'pyx') | |
string | VERSIONED_LIBRARY_FILE = "libcapstone.4.dylib" |
string | LIBRARY_FILE = "libcapstone.dylib" |
string | STATIC_LIBRARY_FILE = 'libcapstone.a' |
list | compile_args = ['-O3', '-fomit-frame-pointer', '-I' + HEADERS_DIR] |
list | link_args = ['-L' + LIBS_DIR] |
list | ext_module_names = ['arm', 'arm_const', 'arm64', 'arm64_const', 'm68k', 'm68k_const', 'm680x', 'm680x_const', 'mips', 'mips_const', 'ppc', 'ppc_const', 'x86', 'x86_const', 'sparc', 'sparc_const', 'systemz', 'sysz_const', 'xcore', 'xcore_const', 'tms320c64x', 'tms320c64x_const', 'evm', 'evm_const' ] |
list | ext_modules |
extra_compile_args | |
extra_link_args | |
def setup_cython.build_libraries | ( | ) |
Prepare the capstone directory for a binary distribution or installation. Builds shared libraries and copies header files. Will use a src/ dir if one exists in the current directory, otherwise assumes it's in the repo
Definition at line 70 of file setup_cython.py.
References clean_bins().
Referenced by setup_cython.custom_build.run().
def setup_cython.clean_bins | ( | ) |
def setup_cython.copy_pysources | ( | ) |
Definition at line 23 of file setup_cython.py.
list setup_cython.compile_args = ['-O3', '-fomit-frame-pointer', '-I' + HEADERS_DIR] |
Definition at line 40 of file setup_cython.py.
setup_cython.CYPACKAGE_DIR = os.path.join(ROOT_DIR, 'pyx') |
Definition at line 25 of file setup_cython.py.
list setup_cython.ext_module_names = ['arm', 'arm_const', 'arm64', 'arm64_const', 'm68k', 'm68k_const', 'm680x', 'm680x_const', 'mips', 'mips_const', 'ppc', 'ppc_const', 'x86', 'x86_const', 'sparc', 'sparc_const', 'systemz', 'sysz_const', 'xcore', 'xcore_const', 'tms320c64x', 'tms320c64x_const', 'evm', 'evm_const' ] |
Definition at line 43 of file setup_cython.py.
list setup_cython.ext_modules |
Definition at line 45 of file setup_cython.py.
setup_cython.extra_compile_args |
Definition at line 52 of file setup_cython.py.
setup_cython.extra_link_args |
Definition at line 53 of file setup_cython.py.
setup_cython.HEADERS_DIR = os.path.join(ROOT_DIR, 'pyx', 'include') |
Definition at line 21 of file setup_cython.py.
int setup_cython.IS_64BITS = sys.maxsize > 2**32 |
Definition at line 16 of file setup_cython.py.
string setup_cython.LIBRARY_FILE = "libcapstone.dylib" |
Definition at line 29 of file setup_cython.py.
setup_cython.LIBS_DIR = os.path.join(ROOT_DIR, 'pyx', 'lib') |
Definition at line 20 of file setup_cython.py.
Definition at line 41 of file setup_cython.py.
setup_cython.PYPACKAGE_DIR = os.path.join(ROOT_DIR, 'capstone') |
Definition at line 24 of file setup_cython.py.
setup_cython.ROOT_DIR = os.path.dirname(os.path.realpath(__file__)) |
Definition at line 19 of file setup_cython.py.
Definition at line 22 of file setup_cython.py.
string setup_cython.STATIC_LIBRARY_FILE = 'libcapstone.a' |
Definition at line 30 of file setup_cython.py.
setup_cython.SYSTEM = sys.platform |
Definition at line 11 of file setup_cython.py.
string setup_cython.VERSION = '4.0.0' |
Definition at line 12 of file setup_cython.py.
string setup_cython.VERSIONED_LIBRARY_FILE = "libcapstone.4.dylib" |
Definition at line 28 of file setup_cython.py.