Building on M1 (#20796)

* cereal builds

* UI builds

* libyuv
pull/20803/head
Adeeb Shihadeh 4 years ago committed by GitHub
parent 5f61cd0531
commit c65c6102a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .python-version
  2. 16
      SConstruct
  3. 2
      cereal
  4. BIN
      phonelibs/libyuv/mac_arm64/lib/libyuv.a

@ -105,17 +105,22 @@ else:
cpppath = []
if arch == "Darwin":
yuv_dir = "mac" if real_arch != "arm64" else "mac_arm64"
libpath = [
"#phonelibs/libyuv/mac/lib",
"#cereal",
"#selfdrive/common",
f"#phonelibs/libyuv/{yuv_dir}/lib",
"/usr/local/lib",
"/opt/homebrew/lib",
"/usr/local/opt/openssl/lib",
"/opt/homebrew/opt/openssl/lib",
"/System/Library/Frameworks/OpenGL.framework/Libraries",
]
cflags += ["-DGL_SILENCE_DEPRECATION"]
cxxflags += ["-DGL_SILENCE_DEPRECATION"]
cpppath += ["/usr/local/opt/openssl/include"]
cpppath += [
"/opt/homebrew/include",
"/usr/local/opt/openssl/include",
"/opt/homebrew/opt/openssl/include"
]
else:
libpath = [
"#phonelibs/snpe/x86_64-linux-clang",
@ -279,6 +284,9 @@ if arch != "aarch64":
qt_libs = []
if arch == "Darwin":
if real_arch == "arm64":
qt_env['QTDIR'] = "/opt/homebrew/opt/qt@5"
else:
qt_env['QTDIR'] = "/usr/local/opt/qt@5"
qt_dirs = [
os.path.join(qt_env['QTDIR'], "include"),

@ -1 +1 @@
Subproject commit 2b286090032f671a55eeb838ad815551eab033aa
Subproject commit 90ce0e954f2ea0681e07deb81167716ff0394f3b
Loading…
Cancel
Save