2022-06-04 16:28:51 +00:00
|
|
|
# SPDX-FileCopyrightText: © 2022 Decompollaborate
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2022-06-06 21:14:17 +00:00
|
|
|
from setuptools import setup, Extension
|
2023-04-18 02:40:07 +00:00
|
|
|
from pathlib import Path
|
2022-06-04 15:19:03 +00:00
|
|
|
|
2023-04-18 02:40:07 +00:00
|
|
|
bindingsPath = Path("rabbitizer")
|
|
|
|
srcPath = Path("src")
|
|
|
|
|
|
|
|
sourcesList = [str(x) for x in bindingsPath.glob("**/*.c")] + [str(x) for x in srcPath.glob("**/*.c")]
|
2022-06-04 15:19:03 +00:00
|
|
|
|
|
|
|
setup(
|
|
|
|
ext_modules=[
|
|
|
|
Extension(
|
2022-06-10 18:50:23 +00:00
|
|
|
name="rabbitizer",
|
2023-04-18 02:40:07 +00:00
|
|
|
sources=sourcesList,
|
2022-06-09 16:06:49 +00:00
|
|
|
include_dirs=["include", "rabbitizer"],
|
2022-06-05 17:19:45 +00:00
|
|
|
extra_compile_args = [
|
2022-06-05 23:03:20 +00:00
|
|
|
"-std=c11",
|
|
|
|
"-Wall",
|
2022-06-06 05:59:38 +00:00
|
|
|
"-g",
|
2022-06-05 17:19:45 +00:00
|
|
|
],
|
2022-06-04 15:19:03 +00:00
|
|
|
),
|
|
|
|
],
|
|
|
|
)
|