-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmbedtls.lua
More file actions
50 lines (47 loc) · 2.21 KB
/
mbedtls.lua
File metadata and controls
50 lines (47 loc) · 2.21 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
-- M6.x glob-aware Form B descriptor for mbedtls.
--
-- Pure-C library; relies on mcpp 0.0.2's C-language compile rule (`.c`
-- routed to `c_object` via the gcc/clang sibling driver). Produces a
-- single static archive `libmbedtls.a` that bundles all of mbedtls's
-- crypto + x509 + ssl translation units — the same arrangement xmake's
-- mbedtls package emits when used by `add_packages("mbedtls")`.
package = {
spec = "1",
name = "mbedtls",
description = "An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API",
licenses = {"Apache-2.0"},
repo = "https://github.com/Mbed-TLS/mbedtls",
type = "package",
xpm = {
linux = {
["3.6.1"] = {
url = "https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/mbedtls-3.6.1.tar.gz",
sha256 = "db75d2f7f35e29cf09f7bd6734d8ee3325f29c298ef071350c5e70a40dd4f0f9",
},
},
macosx = {
["3.6.1"] = {
url = "https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/mbedtls-3.6.1.tar.gz",
sha256 = "db75d2f7f35e29cf09f7bd6734d8ee3325f29c298ef071350c5e70a40dd4f0f9",
},
},
windows = {
["3.6.1"] = {
url = "https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/mbedtls-3.6.1.tar.gz",
sha256 = "db75d2f7f35e29cf09f7bd6734d8ee3325f29c298ef071350c5e70a40dd4f0f9",
},
},
},
-- Form B `mcpp` segment: paths are globs relative to the verdir
-- (~/.mcpp/registry/data/xpkgs/<idx>-x-mbedtls/<ver>/). The leading
-- `*/` absorbs the GitHub tarball's `mbedtls-mbedtls-3.6.1/` wrap.
mcpp = {
language = "c++23", -- the [package].standard knob; mcpp uses it for the C++23 toolchain.
import_std = false, -- pure C lib — no std module.
sources = { "*/library/*.c" }, -- 108 sources, all of crypto + x509 + ssl.
include_dirs = { "*/include", "*/library" },
c_standard = "c11",
targets = { ["mbedtls"] = { kind = "lib" } },
deps = { },
},
}