Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for conf-mbedtls on windows #27147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions packages/conf-mbedtls/conf-mbedtls.2/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
opam-version: "2.0"
authors: "Mbedtls contributors"
maintainer: "Andy Li <[email protected]>"
homepage: "https://www.trustedfirmware.org/projects/mbed-tls/"
bug-reports: "https://github.com/Mbed-TLS/mbedtls/issues"
license: "Apache-2.0"
build: [
["cc" {os != "win32"} "gcc" {os = "win32"} "-I/usr/local/include" "test.c"] { os != "macos" | os-distribution != "homebrew" }
["sh" "-c" "cc -I\"$(brew --prefix mbedtls)/include\" test.c"] {os = "macos" & os-distribution = "homebrew"}
]
depends: [
"host-arch-x86_64" {os = "win32" & (os-distribution = "cygwin" | os-distribution = "msys2")}
"conf-mingw-w64-mbedtls-x86_64" {os = "win32" & (os-distribution = "cygwin" | os-distribution = "msys2")}
]
depexts: [
["mbedtls-dev"] {os-distribution = "alpine"}
["libmbedtls-dev"] {os-family = "debian" | os-family = "ubuntu"}
["mbedtls-devel"] {os-distribution = "fedora"}
["mbedtls-devel"] {os-family = "suse" | os-family = "opensuse"}
["mbedtls-devel" "epel-release"] {os-distribution = "centos"}
["mbedtls"] {os-distribution = "nixos"}
["mbedtls"] {os-distribution = "homebrew" & os = "macos"}
["mbedtls"] {os-distribution = "arch"}
["mbedtls"] {os = "freebsd"}
]
x-ci-accept-failures: [
"oraclelinux-7"
"oraclelinux-8"
"oraclelinux-9"
]
synopsis: "Virtual package relying on an mbedtls system installation"
description:
"This package can only install if mbedtls is installed on the system."
flags: conf
extra-source "test.c" {
src:
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/conf-mbedtls/test.c"
checksum: [
"sha256=7bd6968f4a0264bc191462dffc813782abc06d2cdcd050111142521a6402a5a1"
"md5=1cbe1f446c204d636761cb3302fb232a"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
opam-version: "2.0"
synopsis: "Libmbedtls for x86_64 mingw-w64 (64-bit x86_64)"
description: "Ensures the x86_64 version of libmbedtls for the mingw-w64 project is available"
maintainer: "tobil4sk"
authors: "Mbedtls contributors"
homepage: "https://www.trustedfirmware.org/projects/mbed-tls/"
bug-reports: "https://github.com/Mbed-TLS/mbedtls/issues"
license: "Apache-2.0"
flags: conf
available: os = "win32"
build: [
["pkgconf" "--personality=x86_64-w64-mingw32" "mbedtls"]
]
depends: [
"conf-pkg-config" {build}
"conf-mingw-w64-gcc-x86_64" {build}
]
depexts: [
# ["mingw64-x86_64-mbedtls"] {os = "win32" & os-distribution = "cygwin"}
["mingw-w64-x86_64-mbedtls"] {os = "win32" & os-distribution = "msys2"}
]
Loading