mirror of
https://github.com/angr/pyvex
synced 2026-06-21 13:47:01 +00:00
28 lines
1.1 KiB
Python
28 lines
1.1 KiB
Python
from distutils.core import setup, Extension
|
|
|
|
import os
|
|
vgprefix = os.environ["HOME"] + "/valgrind/inst"
|
|
|
|
common_files = ["pyvex/pyvex.c", "pyvex/pyvex_irsb.c", "pyvex/pyvex_irstmt.c", "pyvex/pyvex_irtypeenv.c", "pyvex/pyvex_irexpr.c", "pyvex/pyvex_enums.c", "pyvex/pyvex_irconst.c", "pyvex/pyvex_ircallee.c", "pyvex/pyvex_irregarray.c", "pyvex/pyvex_logging.c" ]
|
|
|
|
setup(name="pyvex", version="1.0",
|
|
ext_modules=[Extension(
|
|
"pyvex",
|
|
common_files + [ "pyvex/pyvex_static.c", "pyvex/pyvex_deepcopy.c"],
|
|
include_dirs=[vgprefix + "/include/valgrind"],
|
|
library_dirs=[vgprefix + "/lib/valgrind"],
|
|
libraries=["vex-amd64-linux"],
|
|
extra_objects=[], #, vgprefix + "/lib/valgrind/libvex-amd64-linux.a"],
|
|
define_macros=[('PYVEX_STATIC', '1')],
|
|
extra_compile_args=["--std=c99"]),
|
|
Extension(
|
|
"pyvex_dynamic",
|
|
common_files,
|
|
include_dirs=[vgprefix + "/include/valgrind"],
|
|
library_dirs=[vgprefix + "/lib/valgrind"],
|
|
libraries=["vex-amd64-linux"],
|
|
extra_objects=[], #, vgprefix + "/lib/valgrind/libvex-amd64-linux.a"],
|
|
extra_compile_args=["--std=c99"])
|
|
]
|
|
)
|