mirror of
https://github.com/esphome/esphome.git
synced 2025-09-24 14:12:24 +01:00
preen
This commit is contained in:
@@ -13,12 +13,10 @@ CONFIG_SCHEMA = cv.Schema({})
|
|||||||
|
|
||||||
async def to_code(config: ConfigType) -> None:
|
async def to_code(config: ConfigType) -> None:
|
||||||
# Add OpenSSL library for host platform
|
# Add OpenSSL library for host platform
|
||||||
if CORE.is_host:
|
if not CORE.is_host:
|
||||||
|
return
|
||||||
if IS_MACOS:
|
if IS_MACOS:
|
||||||
# macOS needs special handling for Homebrew OpenSSL
|
# macOS needs special handling for Homebrew OpenSSL
|
||||||
cg.add_build_flag("-I/opt/homebrew/opt/openssl/include")
|
cg.add_build_flag("-I/opt/homebrew/opt/openssl/include")
|
||||||
cg.add_build_flag("-L/opt/homebrew/opt/openssl/lib")
|
cg.add_build_flag("-L/opt/homebrew/opt/openssl/lib")
|
||||||
cg.add_build_flag("-lcrypto")
|
cg.add_build_flag("-lcrypto")
|
||||||
else:
|
|
||||||
# Linux and other Unix systems usually have OpenSSL in standard paths
|
|
||||||
cg.add_build_flag("-lcrypto")
|
|
||||||
|
Reference in New Issue
Block a user