|
|
@ -119,27 +119,26 @@ else: |
|
|
|
cxxflags = [] |
|
|
|
cxxflags = [] |
|
|
|
cpppath = [] |
|
|
|
cpppath = [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# MacOS |
|
|
|
if arch == "Darwin": |
|
|
|
if arch == "Darwin": |
|
|
|
|
|
|
|
brew_prefix = subprocess.check_output(['brew', '--prefix'], encoding='utf8').strip() |
|
|
|
yuv_dir = "mac" if real_arch != "arm64" else "mac_arm64" |
|
|
|
yuv_dir = "mac" if real_arch != "arm64" else "mac_arm64" |
|
|
|
libpath = [ |
|
|
|
libpath = [ |
|
|
|
f"#third_party/libyuv/{yuv_dir}/lib", |
|
|
|
f"#third_party/libyuv/{yuv_dir}/lib", |
|
|
|
"/usr/local/lib", |
|
|
|
f"{brew_prefix}/lib", |
|
|
|
"/opt/homebrew/lib", |
|
|
|
f"{brew_prefix}/Library", |
|
|
|
"/usr/local/Homebrew/Library", |
|
|
|
f"{brew_prefix}/opt/openssl/lib", |
|
|
|
"/usr/local/opt/openssl/lib", |
|
|
|
f"{brew_prefix}/Cellar", |
|
|
|
"/opt/homebrew/opt/openssl/lib", |
|
|
|
|
|
|
|
"/usr/local/Cellar", |
|
|
|
|
|
|
|
f"#third_party/acados/{arch}/lib", |
|
|
|
f"#third_party/acados/{arch}/lib", |
|
|
|
"/System/Library/Frameworks/OpenGL.framework/Libraries", |
|
|
|
"/System/Library/Frameworks/OpenGL.framework/Libraries", |
|
|
|
] |
|
|
|
] |
|
|
|
cflags += ["-DGL_SILENCE_DEPRECATION"] |
|
|
|
cflags += ["-DGL_SILENCE_DEPRECATION"] |
|
|
|
cxxflags += ["-DGL_SILENCE_DEPRECATION"] |
|
|
|
cxxflags += ["-DGL_SILENCE_DEPRECATION"] |
|
|
|
cpppath += [ |
|
|
|
cpppath += [ |
|
|
|
"/opt/homebrew/include", |
|
|
|
f"{brew_prefix}/include", |
|
|
|
"/usr/local/include", |
|
|
|
f"{brew_prefix}/opt/openssl/include", |
|
|
|
"/usr/local/opt/openssl/include", |
|
|
|
|
|
|
|
"/opt/homebrew/opt/openssl/include" |
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
# Linux 86_64 |
|
|
|
else: |
|
|
|
else: |
|
|
|
libpath = [ |
|
|
|
libpath = [ |
|
|
|
"#third_party/acados/x86_64/lib", |
|
|
|
"#third_party/acados/x86_64/lib", |
|
|
|