mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-03 23:36:57 +00:00
136fb7a09a
* starting r5900 stuff * operands of pmaddh * expose R5900 to python * fix merge issues * move to subtables * mmi0 and mmi3 * the rest of mmi instructions * normal, special, regimm and cop0 * fpu_s * cop2 special1 * starting cop2 special2 * the rest of special2 * operands for normal, special, mmi and mmi0 * mmi1 and mmi2 * Fix mmi * sync.p * mmi3 and cop1 * add r5900 opcodes to InstrId.pyi * add invalid bits to unknown instruction comment * progress on cop2 special1 * kinda finish cop2 special1 * cop2 special2 progress * Special case for R5900 cvt.w.s -> trunc.w.s * R5900 c.olt.s and c.ole.s * Fix a bunch of VU0 instructions * I'm getting tired of this bullshit * vlqi, vsqi, vlqd, vsqd * fix some operands * fix div1 * lqc2 and sqc2 * sqrt.s and mult * fix mtsa and bc2 * Remove redundant .instrType=RABBITIZER_INSTR_TYPE_UNKNOWN * RabbitizerInstrSuffix * Impleme instr suffix type * add instr suffix to remaining instructions * ifdef out xyzw suffix from registers * format * fix warnings * uncomment stuff on InstrId.pyi * readme
41 lines
2.5 KiB
Python
41 lines
2.5 KiB
Python
# SPDX-FileCopyrightText: © 2022 Decompollaborate
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
from setuptools import setup, Extension
|
|
|
|
|
|
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",
|
|
"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",
|
|
"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",
|
|
"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",
|
|
"src/analysis/RabbitizerTrackedRegisterState.c", "src/analysis/RabbitizerRegistersTracker.c",
|
|
"src/common/Utils.c", "src/common/RabbitizerConfig.c"],
|
|
include_dirs=["include", "rabbitizer"],
|
|
extra_compile_args = [
|
|
"-std=c11",
|
|
"-Wall",
|
|
#"-Wextra",
|
|
# "-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",
|
|
# "-Werror",
|
|
"-g",
|
|
],
|
|
),
|
|
],
|
|
)
|