2017-08-25 06:46:16 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2018-04-15 23:30:54 +01:00
|
|
|
from drgn import __version__
|
2018-04-07 18:42:48 +01:00
|
|
|
from setuptools import setup, find_packages
|
2017-08-29 05:16:43 +01:00
|
|
|
from setuptools.extension import Extension
|
|
|
|
|
|
|
|
|
2018-03-26 09:51:20 +01:00
|
|
|
extensions = [
|
2018-07-15 16:08:42 +01:00
|
|
|
Extension(
|
|
|
|
name='drgn.internal.corereader',
|
|
|
|
sources=[
|
|
|
|
'drgn/internal/corereader.c',
|
|
|
|
],
|
|
|
|
),
|
2018-03-10 01:41:54 +00:00
|
|
|
Extension(
|
2018-07-14 18:20:17 +01:00
|
|
|
name='drgn.internal.dwarfindex',
|
2018-03-10 01:41:54 +00:00
|
|
|
sources=[
|
2018-07-14 18:20:17 +01:00
|
|
|
'drgn/internal/dwarfindex.c',
|
2018-03-10 01:41:54 +00:00
|
|
|
],
|
2018-04-02 08:33:23 +01:00
|
|
|
extra_compile_args=['-fopenmp'],
|
|
|
|
extra_link_args=['-fopenmp'],
|
2018-03-10 01:41:54 +00:00
|
|
|
),
|
2018-05-25 01:55:47 +01:00
|
|
|
Extension(
|
2018-07-15 16:08:42 +01:00
|
|
|
name='drgn.internal.thunk',
|
2018-05-25 01:55:47 +01:00
|
|
|
sources=[
|
2018-07-15 16:08:42 +01:00
|
|
|
'drgn/internal/thunk.c',
|
2018-05-25 01:55:47 +01:00
|
|
|
],
|
|
|
|
),
|
2017-08-29 05:16:43 +01:00
|
|
|
]
|
2017-08-25 06:46:16 +01:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name='drgn',
|
2018-04-15 23:30:54 +01:00
|
|
|
version=__version__,
|
2018-07-14 18:20:17 +01:00
|
|
|
packages=find_packages(exclude=['examples', 'scripts', 'tests']),
|
2018-03-25 10:10:15 +01:00
|
|
|
ext_modules=extensions,
|
2018-04-07 18:42:48 +01:00
|
|
|
entry_points={
|
2018-07-14 18:20:17 +01:00
|
|
|
'console_scripts': ['drgn=drgn.internal.cli:main'],
|
2018-04-07 18:42:48 +01:00
|
|
|
},
|
|
|
|
author='Omar Sandoval',
|
|
|
|
author_email='osandov@osandov.com',
|
2018-04-15 23:03:33 +01:00
|
|
|
license='GPL-3.0+',
|
2018-07-14 18:20:17 +01:00
|
|
|
description='Scriptable debugger library',
|
2017-08-25 06:46:16 +01:00
|
|
|
)
|