Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
41 lines (36 loc) · 1.51 KB
/
Copy pathpyproject.toml
File metadata and controls
41 lines (36 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[build-system]
build-backend = "scikit_build_core.build"
requires = ["scikit-build-core>=0.10", "setuptools-scm[simple]>=8"]
[project]
authors = [{name = "momo5502"}]
classifiers = [
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: Python :: 3",
"Programming Language :: C++",
]
description = "Sogen Windows user-space emulator bindings"
dynamic = ["version"]
license = {text = "GPL-2.0-only"}
name = "sogen"
readme = "docs/python/README.md"
requires-python = ">=3.10"
[tool.scikit-build]
build-dir = "build/{wheel_tag}"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
minimum-version = "0.10"
sdist.include = ["deps/**"]
# LTO/IPO has been observed to break the api_hook intercept's RIP redirect
# inside the UC_HOOK_CODE callback (writes succeed, the readback shows the
# new value, but the unicorn JIT keeps executing the original instruction).
# Disable interprocedural optimization for the wheel build to keep the
# behavior consistent with the dev preset (which has LTO off).
[tool.scikit-build.cmake.define]
SOGEN_ENABLE_LTO = "OFF"
# Allow the bundled SDL3 to build without X11/Wayland development libraries.
# Source installs (sdist/wheel-from-source) should succeed on headless systems;
# when the libraries are present SDL still builds the X11/Wayland backends, so
# this only suppresses SDL's "no desktop video backend" hard error. Linux-only.
SDL_UNIX_CONSOLE_BUILD = "ON"
[tool.setuptools_scm]
fallback_version = "0.0.0"
local_scheme = "no-local-version"