-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmcpp.toml
More file actions
37 lines (34 loc) · 1.64 KB
/
Copy pathmcpp.toml
File metadata and controls
37 lines (34 loc) · 1.64 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
# grpc test project: consumes the mcpplibs.grpc Form-A package (grpc-m) and
# asserts behavior under `mcpp test`.
#
# The `default` namespace redirect points the built-in mcpplibs namespace at
# this checkout, so the descriptor under test is pkgs/g/grpc.lua — not whatever
# the published index happens to hold. grpc's own compat.* dependencies still
# resolve from the published index, which is the point: this member proves the
# descriptor works against the real dependency set.
#
# NO protoc output anywhere: this member exercises the MODULE surface. Codegen
# is a separate member, tests/examples/grpc-codegen, which declares one
# dependency and lets the grpc package hand it the whole toolchain.
#
# (This used to read "gRPC's codegen needs host tools mcpp cannot hand a
# consumer". That stopped being true in mcpp 2026.8.6.2 — `reexport = true`
# is exactly the mechanism for handing them over.)
[package]
name = "grpc-module-tests"
version = "0.1.0"
# unix only: the package has no windows xpm entry (its compat.openssl
# dependency has none yet), so on windows this member carries no dependency at
# all and the test compiles to a no-op main() — the same shape
# tests/examples/openssl uses for the same underlying reason.
#
# One `cfg(unix)` rather than a linux block and an identical macos block: the
# condition is a single fact ("gRPC resolves everywhere except windows"), so it
# should be written once. mcpp evaluates `unix` as family == "unix"
# (src/build/prepare.cppm, alongside any()/all()/not()).
[target.'cfg(unix)'.dependencies.grpc]
grpc = "1.83.0"
[target.'cfg(unix)'.build]
cxxflags = ["-DHAVE_GRPC=1"]
[indices]
grpc = { path = "../../.." }