rabbitizer/setup.py

40 lines
2.2 KiB
Python
Raw Normal View History

2022-06-04 12:28:51 -04:00
# SPDX-FileCopyrightText: © 2022 Decompollaborate
# SPDX-License-Identifier: MIT
2022-06-06 17:14:17 -04:00
from setuptools import setup, Extension
2022-06-04 11:19:03 -04:00
setup(
ext_modules=[
Extension(
name="rabbitizer",
sources=["rabbitizer/rabbitizer_module.c", "rabbitizer/rabbitizer_submodule_Utils.c", "rabbitizer/rabbitizer_type_Instruction.c", "rabbitizer/rabbitizer_global_config.c", "rabbitizer/rabbitizer_type_RegistersTracker.c",
2022-06-09 22:58:31 -04:00
"rabbitizer/enums/rabbitizer_type_Enum.c", "rabbitizer/enums/enums_utils.c", "rabbitizer/enums/rabbitizer_enum_InstrCategory.c", "rabbitizer/enums/rabbitizer_enum_InstrId.c", "rabbitizer/enums/rabbitizer_enum_Abi.c",
2022-07-05 09:49:12 -04:00
"rabbitizer/enums/registers/rabbitizer_enum_GprO32.c", "rabbitizer/enums/registers/rabbitizer_enum_GprN32.c",
"src/instructions/RabbitizerInstruction/RabbitizerInstruction_Disassemble.c", "src/instructions/RabbitizerInstruction/RabbitizerInstruction_ProcessUniqueId.c", "src/instructions/RabbitizerInstruction/RabbitizerInstruction.c", "src/instructions/RabbitizerInstruction/RabbitizerInstruction_Examination.c",
"src/instructions/RabbitizerInstructionRsp/RabbitizerInstructionRsp.c", "src/instructions/RabbitizerInstructionRsp/RabbitizerInstructionRsp_ProcessUniqueId.c",
2022-06-04 11:19:03 -04:00
"src/instructions/RabbitizerInstrDescriptor.c", "src/instructions/RabbitizerInstrId.c", "src/instructions/RabbitizerRegister.c",
2022-06-11 17:49:33 -04:00
"src/analysis/RabbitizerTrackedRegisterState.c", "src/analysis/RabbitizerRegistersTracker.c",
2022-06-05 00:45:20 -04:00
"src/common/Utils.c", "src/common/RabbitizerConfig.c"],
2022-06-09 12:06:49 -04:00
include_dirs=["include", "rabbitizer"],
2022-06-05 13:19:45 -04:00
extra_compile_args = [
2022-06-05 19:03:20 -04:00
"-std=c11",
"-Wall",
#"-Wextra",
2022-06-07 03:16:09 -04:00
# "-Wpedantic", # binary constants :s
#"-Wno-cast-function-type",
#"-Werror=implicit-function-declaration",
#"-Werror=incompatible-pointer-types",
#"-Werror=vla",
#"-Werror=switch",
#"-Werror=implicit-fallthrough",
#"-Werror=unused-function",
#"-Werror=unused-parameter",
#"-Werror=shadow",
2022-06-05 19:03:20 -04:00
# "-Werror",
2022-06-06 01:59:38 -04:00
"-g",
2022-06-05 13:19:45 -04:00
],
2022-06-04 11:19:03 -04:00
),
],
)