Repository navigation
Expand file tree
/
Copy pathmcpp.toml
More file actions
48 lines (39 loc) · 1.41 KB
/
Copy pathmcpp.toml
File metadata and controls
48 lines (39 loc) · 1.41 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
# Module wrapper; upstream API preserved. Policy: mcpp-index/docs/mwrap.md.
[package]
namespace = "mcpplibs.mwrap"
name = "box2d"
version = "3.2.0"
description = "Box2D 3.2.0 C++ modules for mcpp (import mcpplibs.mwrap.box2d;): the 2D rigid-body physics engine of box2d.h over compat.box2d, its constants and id macros as constexpr, cross-platform deterministic"
license = "Apache-2.0"
authors = ["mcpp-community"]
repo = "https://github.com/mcpplibs/box2d-m"
platforms = ["linux", "macos", "windows"]
[targets.box2d]
kind = "lib"
[build]
sources = ["src/*.cppm"]
# <mwrap/box2d/macros.hpp>: the macros a C++ entity cannot be.
include_dirs = ["include"]
# Box2D's deterministic math (upstream CMakeLists.txt): no contraction of
# a*b+c into an FMA. The module's inline math (b2MakeRot, b2MulAdd,
# b2TransformPoint …) is compiled here and in this repository's tests with it,
# as upstream compiles its library and its tests.
cxxflags = ["-ffp-contract=off"]
[dependencies]
compat.box2d = "3.2.0"
[dev-dependencies]
compat.gtest = "1.15.2"
[package.metadata.mwrap]
upstream-version = "3.2.0"
[[runtime.deploy]]
from = "LICENSE"
to = "licenses/box2d"
[[runtime.deploy]]
from = "NOTICE"
to = "licenses/box2d"
[[runtime.deploy]]
from = "upstream/box2d/README.md"
to = "licenses/box2d/upstream/box2d"
[[runtime.deploy]]
from = "upstream/box2d/LICENSE"
to = "licenses/box2d/upstream/box2d"