Repository navigation
Expand file tree
/
Copy pathmcpp.toml
More file actions
59 lines (49 loc) · 1.88 KB
/
Copy pathmcpp.toml
File metadata and controls
59 lines (49 loc) · 1.88 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Module wrapper; upstream API preserved. Policy: mcpp-index/docs/mwrap.md.
[package]
namespace = "mcpplibs.mwrap"
name = "godot_cpp"
version = "10.0.0"
description = "godot-cpp as a C++23 module (import mcpplibs.mwrap.godot_cpp;) on top of the compat.godot-cpp source build"
license = "Apache-2.0"
authors = ["mcpp-community"]
repo = "https://github.com/mcpplibs/godot-cpp-m"
platforms = ["linux", "macos", "windows"]
[targets.godot_cpp]
kind = "lib"
[lib]
path = "src/godot_cpp.cppm"
[build]
sources = ["src/**/*.cppm"]
include_dirs = ["include"]
# godot-cpp's headers reach the module through its global module fragment, and
# several of their helpers are `static` (make_property_info, the hash_* family,
# fastmod, ...). Inline/template definitions that call those are reachable from
# the module, which GCC 16 reports as -Wexpose-global-module-tu-local -- ~3300
# times, once per instantiation, while compiling this single interface unit.
# The exposure is upstream's shape, not something the wrapper can express its
# way out of, so silence the class rather than drown every build in it. Clang
# does not have the warning and merely notes the unknown -Wno- option.
cxxflags = ["-Wno-expose-global-module-tu-local"]
[dependencies]
# Upstream tree + pre-generated bindings + the whole source build recipe.
compat.godot-cpp = "10.0.0"
[package.metadata.mwrap]
wrapper-revision = 0
upstream-version = "10.0.0"
upstream-tag = "10.0.0-stable"
engine-api = "4.7"
[[runtime.deploy]]
from = "LICENSE"
to = "licenses/godot_cpp"
[[runtime.deploy]]
from = "NOTICE"
to = "licenses/godot_cpp"
[[runtime.deploy]]
from = "upstream/godot-cpp/README.md"
to = "licenses/godot_cpp/upstream/godot-cpp"
[[runtime.deploy]]
from = "upstream/godot-cpp/LICENSE.md"
to = "licenses/godot_cpp/upstream/godot-cpp"
[[runtime.deploy]]
from = "upstream/wrapper-legacy/LICENSE"
to = "licenses/godot_cpp/upstream/wrapper-legacy"