conan: apple full-featured support

This commit is contained in:
Yaroslav Gurov
2026-03-16 13:24:02 +01:00
parent e0af63ce1c
commit 37327e30d3
16 changed files with 966 additions and 108 deletions
+13 -5
View File
@@ -4,12 +4,18 @@ class AmneziaVPN(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "CMakeConfigDeps"
options = {
"macos_ne": [True, False]
}
default_options = {
"macos_ne": False
}
def requirements(self):
os = str(self.settings.os)
arch = str(self.settings.arch)
has_service = os == "Windows" or os == "Linux" or (os == "Macos" and arch == "x86_64")
has_network_extension = os == "iOS" or (os == "Macos" and not has_service)
has_ne = os == "iOS" or (os == "Macos" and self.options.macos_ne)
has_service = os == "Windows" or os == "Linux" or (os == "Macos" and not has_ne)
if has_service:
if os == "Windows":
@@ -21,13 +27,15 @@ class AmneziaVPN(ConanFile):
self.requires("tun2socks/2.6.0")
self.requires("openvpn/2.7.0")
if has_network_extension:
if has_ne:
self.requires("awg-apple/2.0.1")
self.requires("hev-socks5-tunnel/2.14.4", options={"as_framework": True})
self.requires("openvpnadapter/1.0.0")
if os == "Android":
self.requires("amnezia-libxray/1.0.0")
self.requires("awg-android/1.1.7")
self.requires("openvpn-pt-android/1.0.0")
self.requires("libssh-local/0.11.3")
self.requires("libssh/0.11.3@amnezia")
self.requires("openssl/3.5.5")