Repository navigation
Expand file tree
/
Copy pathmcpp.toml
More file actions
56 lines (46 loc) · 2 KB
/
Copy pathmcpp.toml
File metadata and controls
56 lines (46 loc) · 2 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
# Module wrapper; upstream API preserved. Policy: mcpp-index/docs/mwrap.md.
[package]
namespace = "mcpplibs.mwrap"
name = "concurrentqueue"
version = "1.0.5"
description = "moodycamel::ConcurrentQueue 1.0.5 C++ modules for mcpp (import mcpplibs.mwrap.concurrentqueue;): the lock-free MPMC queue, its blocking variant and semaphore over compat.concurrentqueue, the C API behind the c-api feature"
license = "Apache-2.0"
authors = ["mcpp-community"]
repo = "https://github.com/mcpplibs/concurrentqueue-m"
platforms = ["linux", "macos", "windows"]
[targets.concurrentqueue]
kind = "lib"
[build]
sources = ["src/*.cppm", "src/*.cpp"]
# <mwrap/concurrentqueue/config.hpp> (the configuration the module is built
# with) and <mwrap/concurrentqueue/macros.hpp> (the headers with their macros).
include_dirs = ["include"]
[features]
default = []
# Upstream's C API (moodycamel_cq_*, moodycamel_bcq_*): its two sources in
# compat.concurrentqueue, and the module that exports it.
c-api = { sources = ["src/c_api/*.cppm"], forward = ["compat.concurrentqueue/c-api"] }
# Upstream's MOODYCAMEL_NO_THREAD_LOCAL: thread ids from std::this_thread and
# no thread_local, so implicit producers are not recycled at thread exit (as
# upstream always builds on ARM and with Clang in GNU mode). With GCC it lets a
# translation unit that includes <cxxabi.h> (gtest does) use the queue.
no-thread-local = { defines = ["MOODYCAMEL_NO_THREAD_LOCAL"] }
[dependencies]
compat.concurrentqueue = "1.0.5"
[test]
# tests/c_api is its own project (it needs the c-api feature).
discover = ["tests/*.cpp"]
[package.metadata.mwrap]
upstream-version = "1.0.5"
[[runtime.deploy]]
from = "LICENSE"
to = "licenses/concurrentqueue"
[[runtime.deploy]]
from = "NOTICE"
to = "licenses/concurrentqueue"
[[runtime.deploy]]
from = "upstream/concurrentqueue/README.md"
to = "licenses/concurrentqueue/upstream/concurrentqueue"
[[runtime.deploy]]
from = "upstream/concurrentqueue/LICENSE.md"
to = "licenses/concurrentqueue/upstream/concurrentqueue"