rabbitizer/setup.py

37 lines
1.7 KiB
Python
Raw Normal View History

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-06 02:09:25 +00:00
"rabbitizer",
["rabbitizer/rabbitizer_module.c", "rabbitizer/rabbitizer_type_Instr.c", "rabbitizer/rabbitizer_global_instr_id.c", "rabbitizer/rabbitizer_global_config.c",
2022-06-05 16:25:57 +00:00
"src/instructions/RabbitizerInstr/RabbitizerInstr_Disassemble.c", "src/instructions/RabbitizerInstr/RabbitizerInstr_ProcessUniqueId.c", "src/instructions/RabbitizerInstr/RabbitizerInstr.c", "src/instructions/RabbitizerInstr/RabbitizerInstr_Examination.c",
2022-06-07 02:19:42 +00:00
"src/instructions/RabbitizerInstrRsp/RabbitizerInstrRsp.c", "src/instructions/RabbitizerInstrRsp/RabbitizerInstrRsp_ProcessUniqueId.c",
2022-06-04 15:19:03 +00:00
"src/instructions/RabbitizerInstrDescriptor.c", "src/instructions/RabbitizerInstrId.c", "src/instructions/RabbitizerRegister.c",
2022-06-05 04:45:20 +00:00
"src/common/Utils.c", "src/common/RabbitizerConfig.c"],
2022-06-05 17:19:45 +00:00
include_dirs=["include"],
extra_compile_args = [
2022-06-05 23:03:20 +00:00
"-std=c11",
"-Wall",
"-Wextra",
# "-Wpedantic", # variadic macros warning :s
2022-06-06 05:59:38 +00:00
"-Werror=implicit-function-declaration",
"-Werror=implicit-function-declaration",
"-Werror=incompatible-pointer-types",
"-Werror=vla",
"-Werror=switch",
"-Werror=implicit-fallthrough",
"-Werror=unused-function",
2022-06-07 04:49:37 +00:00
"-Werror=unused-parameter",
2022-06-06 05:59:38 +00:00
"-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
),
],
)