build-all: pass boost to ld library paths for tests

This commit is contained in:
Andrej730
2026-08-31 17:59:13 +05:00
parent 2d6e233bd0
commit 8332371ed3
+4
View File
@@ -527,6 +527,8 @@ else:
OFF_ON = ["OFF", "ON"] OFF_ON = ["OFF", "ON"]
BUILD_STATIC = not ARGS.shared BUILD_STATIC = not ARGS.shared
"""Whether dependencies are built static.""" """Whether dependencies are built static."""
BUILD_SHARED = not BUILD_STATIC
"""Whether dependencies are built shared."""
ENABLE_FLAG = "--enable-static" if BUILD_STATIC else "--enable-shared" ENABLE_FLAG = "--enable-static" if BUILD_STATIC else "--enable-shared"
DISABLE_FLAG = "--disable-shared" if BUILD_STATIC else "--disable-static" DISABLE_FLAG = "--disable-shared" if BUILD_STATIC else "--disable-static"
LINK_TYPE = "static" if BUILD_STATIC else "shared" LINK_TYPE = "static" if BUILD_STATIC else "shared"
@@ -1798,6 +1800,8 @@ ld_library_paths = [
] ]
if ARGS.occt_shared and "occ" in targets: if ARGS.occt_shared and "occ" in targets:
ld_library_paths.append(f"{OCCT_INSTALL_PATH}/lib") ld_library_paths.append(f"{OCCT_INSTALL_PATH}/lib")
if ARGS.shared and "boost" in targets:
ld_library_paths.append(f"{Dependencies.get_install_dir('boost')}/lib")
if not WASM and ( if not WASM and (
"BonsaiViewer" in targets "BonsaiViewer" in targets