rabbitizer/setup.py
2022-06-07 03:16:09 -04:00

38 lines
1.7 KiB
Python

# SPDX-FileCopyrightText: © 2022 Decompollaborate
# SPDX-License-Identifier: MIT
from setuptools import setup, Extension
setup(
ext_modules=[
Extension(
"rabbitizer",
["rabbitizer/rabbitizer_module.c", "rabbitizer/rabbitizer_type_Instr.c", "rabbitizer/rabbitizer_global_instr_id.c", "rabbitizer/rabbitizer_global_config.c",
"src/instructions/RabbitizerInstr/RabbitizerInstr_Disassemble.c", "src/instructions/RabbitizerInstr/RabbitizerInstr_ProcessUniqueId.c", "src/instructions/RabbitizerInstr/RabbitizerInstr.c", "src/instructions/RabbitizerInstr/RabbitizerInstr_Examination.c",
"src/instructions/RabbitizerInstrRsp/RabbitizerInstrRsp.c", "src/instructions/RabbitizerInstrRsp/RabbitizerInstrRsp_ProcessUniqueId.c",
"src/instructions/RabbitizerInstrDescriptor.c", "src/instructions/RabbitizerInstrId.c", "src/instructions/RabbitizerRegister.c",
"src/common/Utils.c", "src/common/RabbitizerConfig.c"],
include_dirs=["include"],
extra_compile_args = [
"-std=c11",
"-Wall",
"-Wextra",
# "-Wpedantic", # binary constants :s
"-Wno-cast-function-type",
"-Werror=implicit-function-declaration",
"-Werror=implicit-function-declaration",
"-Werror=incompatible-pointer-types",
"-Werror=vla",
"-Werror=switch",
"-Werror=implicit-fallthrough",
"-Werror=unused-function",
"-Werror=unused-parameter",
"-Werror=shadow",
# "-Werror",
"-g",
],
),
],
)