From baaa4cab42e023b9994369c5d0644bbfa0fbcb13 Mon Sep 17 00:00:00 2001 From: royjr Date: Mon, 9 Mar 2026 20:36:57 -0400 Subject: [PATCH] Update SConscript --- tools/replay/SConscript | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tools/replay/SConscript b/tools/replay/SConscript index 3efa970b37..dbb98f0d60 100644 --- a/tools/replay/SConscript +++ b/tools/replay/SConscript @@ -1,8 +1,25 @@ +import os +import subprocess + Import('env', 'arch', 'common', 'messaging', 'visionipc', 'cereal') replay_env = env.Clone() replay_env['CCFLAGS'] += ['-Wno-deprecated-declarations'] +if arch == "Darwin": + openssl_prefixes = [] + for formula in ("openssl@3", "openssl"): + try: + prefix = subprocess.check_output(['brew', '--prefix', formula], encoding='utf8').strip() + if os.path.isdir(prefix): + openssl_prefixes.append(prefix) + except (FileNotFoundError, subprocess.CalledProcessError): + continue + + for prefix in openssl_prefixes: + replay_env['CPPPATH'] += [f"{prefix}/include"] + replay_env['LIBPATH'] += [f"{prefix}/lib"] + base_frameworks = [] base_libs = [common, messaging, cereal, visionipc, 'm', 'ssl', 'crypto', 'pthread']