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
|
2022-06-04 15:19:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
ext_modules=[
|
|
|
|
Extension(
|
2022-06-10 18:50:23 +00:00
|
|
|
name="rabbitizer",
|
2022-09-14 17:31:13 +00:00
|
|
|
sources=["rabbitizer/rabbitizer_module.c", "rabbitizer/rabbitizer_submodule_Utils.c", "rabbitizer/rabbitizer_type_Instruction.c", "rabbitizer/rabbitizer_global_config.c", "rabbitizer/rabbitizer_type_TrackedRegisterState.c", "rabbitizer/rabbitizer_type_RegistersTracker.c", "rabbitizer/rabbitizer_type_LoPairingInfo.c",
|
2022-06-10 02:58:31 +00: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 13:49:12 +00:00
|
|
|
"rabbitizer/enums/registers/rabbitizer_enum_GprO32.c", "rabbitizer/enums/registers/rabbitizer_enum_GprN32.c",
|
2022-06-08 04:30:58 +00:00
|
|
|
"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-08-27 16:22:48 +00:00
|
|
|
"src/instructions/RabbitizerInstructionR5900/RabbitizerInstructionR5900.c", "src/instructions/RabbitizerInstructionR5900/RabbitizerInstructionR5900_ProcessUniqueId.c",
|
|
|
|
"src/instructions/RabbitizerInstrDescriptor.c", "src/instructions/RabbitizerInstrId.c", "src/instructions/RabbitizerRegister.c", "src/instructions/RabbitizerInstrSuffix.c",
|
2022-09-13 17:05:42 +00:00
|
|
|
"src/analysis/RabbitizerTrackedRegisterState.c", "src/analysis/RabbitizerRegistersTracker.c", "src/analysis/RabbitizerLoPairingInfo.c",
|
2022-06-05 04:45:20 +00:00
|
|
|
"src/common/Utils.c", "src/common/RabbitizerConfig.c"],
|
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-10 18:30:03 +00:00
|
|
|
#"-Wextra",
|
2022-06-07 07:16:09 +00:00
|
|
|
# "-Wpedantic", # binary constants :s
|
2022-06-10 18:30:03 +00:00
|
|
|
#"-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 23:03:20 +00:00
|
|
|
# "-Werror",
|
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
|
|
|
),
|
|
|
|
],
|
|
|
|
)
|