From 03aa6da74e138ed5b9df7bd2bcbf8e1c2111b4d0 Mon Sep 17 00:00:00 2001 From: Matthew Riley Date: Tue, 11 Nov 2025 19:32:30 +0000 Subject: [PATCH 1/7] Add OpenUSD module --- modules/openusd/25.11/MODULE.bazel | 12 +++ modules/openusd/25.11/overlay/BUILD | 88 +++++++++++++++++++++ modules/openusd/25.11/overlay/MODULE.bazel | 12 +++ modules/openusd/25.11/overlay/test_main.cpp | 31 ++++++++ modules/openusd/25.11/presubmit.yml | 20 +++++ modules/openusd/25.11/source.json | 11 +++ modules/openusd/README.md | 36 +++++++++ modules/openusd/metadata.json | 18 +++++ 8 files changed, 228 insertions(+) create mode 100644 modules/openusd/25.11/MODULE.bazel create mode 100644 modules/openusd/25.11/overlay/BUILD create mode 100644 modules/openusd/25.11/overlay/MODULE.bazel create mode 100644 modules/openusd/25.11/overlay/test_main.cpp create mode 100644 modules/openusd/25.11/presubmit.yml create mode 100644 modules/openusd/25.11/source.json create mode 100644 modules/openusd/README.md create mode 100644 modules/openusd/metadata.json diff --git a/modules/openusd/25.11/MODULE.bazel b/modules/openusd/25.11/MODULE.bazel new file mode 100644 index 00000000000..8811bd33541 --- /dev/null +++ b/modules/openusd/25.11/MODULE.bazel @@ -0,0 +1,12 @@ +module( + name = "openusd", + version = "25.11", + # Required to be able to use the 'overlay' files feature of BCR + bazel_compatibility = ['>=7.2.1'], +) +bazel_dep(name = "onetbb", version = "2022.1.0") + +bazel_dep(name = "rules_foreign_cc", version = "0.15.1") +bazel_dep(name = "rules_cc", version = "0.2.14") +bazel_dep(name = "rules_license", version = "1.0.0") +bazel_dep(name = "platforms", version = "1.0.0") diff --git a/modules/openusd/25.11/overlay/BUILD b/modules/openusd/25.11/overlay/BUILD new file mode 100644 index 00000000000..fcc81990324 --- /dev/null +++ b/modules/openusd/25.11/overlay/BUILD @@ -0,0 +1,88 @@ +load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") +load("@rules_cc//cc:defs.bzl", "cc_test") +load("@rules_license//rules:license.bzl", "license") + +package( + default_applicable_licenses = [":license"], + default_visibility = ["//visibility:public"], +) + +exports_files(["LICENSE.txt"]) + +# Note: OpenUSD uses a derivative of the Apache 2.0 license called the +# Tomorrow Open Source Technology License 1.0. +license( + name = "license", + package_name = "openusd", + license_kinds = [ + ], + license_text = ":LICENSE.txt", +) + +filegroup( + name = "all_srcs", + srcs = glob(["**"], exclude=["bazel*/**"]), + visibility = ["//visibility:public"], +) + +# Build OpenUSD as a monolithic static library. This is the simplest option for linking +# but note it does not allow USD plugins or Python modules. This is because it would result in duplicate +# symbol definitions for libusd symbols (statically linked into the main exec and also linked into the dynamic libs). +# +# Also note: We must specify the alwayslink=True so that dependents link in all symbols from the archive. This is +# a stated requirement in BUILDING.md. If not specified, OpenUSD will not initialize properly and you will encounter +# segfaults when using certain objects. +# +# See BUILDING.md in the OpenUSD repo for details. +# +cmake( + name = "openusd", + cache_entries = { + "BUILD_SHARED_LIBS": "OFF", + "PXR_BUILD_MONOLITHIC": "ON", + "PXR_PREFER_SAFETY_OVER_SPEED": "ON", + "PXR_FIND_TBB_IN_CONFIG": "OFF", + "TBB_USE_DEBUG_BUILD": "OFF", + "PXR_ENABLE_PYTHON_SUPPORT": "OFF", + "PXR_ENABLE_GL_SUPPORT": "OFF", + "PXR_ENABLE_METAL_SUPPORT": "OFF", + "PXR_BUILD_DOCUMENTATION": "OFF", + "PXR_BUILD_HTML_DOCUMENTATION": "OFF", + "PXR_BUILD_PYTHON_DOCUMENTATION": "OFF", + "PXR_BUILD_TESTS": "OFF", + "PXR_BUILD_EXAMPLES": "OFF", + "PXR_BUILD_TUTORIALS": "OFF", + "PXR_BUILD_USD_TOOLS": "OFF", + "PXR_BUILD_USD_VALIDATION": "OFF", + "PXR_BUILD_IMAGING": "OFF", + "PXR_BUILD_USD_IMAGING": "OFF", + "PXR_BUILD_USDVIEW": "OFF", + "PXR_BUILD_ALEMBIC_PLUGIN": "OFF", + "PXR_BUILD_DRACO_PLUGIN": "OFF", + "PXR_ENABLE_MATERIALX_SUPPORT": "OFF", + "PXR_BUILD_MAYAPY_TESTS": "OFF", + "PXR_BUILD_ANIMX_TESTS": "OFF", + "Boost_NO_SYSTEM_PATHS": "ON", + }, + env = { + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_BUILD_PARALLEL_LEVEL": "4", + }, + alwayslink = True, + out_static_libs = [ + # This is name of the monolithic static lib. + "libusd_m.a", + ], + lib_source = ":all_srcs", + deps = [ + "@onetbb//:tbb", + ], +) + +cc_test( + name = "test_main", + srcs = ["test_main.cpp"], + deps = [ + ":openusd" + ] +) \ No newline at end of file diff --git a/modules/openusd/25.11/overlay/MODULE.bazel b/modules/openusd/25.11/overlay/MODULE.bazel new file mode 100644 index 00000000000..8811bd33541 --- /dev/null +++ b/modules/openusd/25.11/overlay/MODULE.bazel @@ -0,0 +1,12 @@ +module( + name = "openusd", + version = "25.11", + # Required to be able to use the 'overlay' files feature of BCR + bazel_compatibility = ['>=7.2.1'], +) +bazel_dep(name = "onetbb", version = "2022.1.0") + +bazel_dep(name = "rules_foreign_cc", version = "0.15.1") +bazel_dep(name = "rules_cc", version = "0.2.14") +bazel_dep(name = "rules_license", version = "1.0.0") +bazel_dep(name = "platforms", version = "1.0.0") diff --git a/modules/openusd/25.11/overlay/test_main.cpp b/modules/openusd/25.11/overlay/test_main.cpp new file mode 100644 index 00000000000..841728d9647 --- /dev/null +++ b/modules/openusd/25.11/overlay/test_main.cpp @@ -0,0 +1,31 @@ +#include + +#include +#include +#include + +int main() { + std::cout << "--- USD Initialization Test ---\n"; + + // Create a USD Stage (the core container for a scene) + auto stage = pxr::UsdStage::CreateNew(std::string("HelloWorld.usda")); + + if (stage) { + // Create a primary root primitive (like a scene root) + pxr::SdfPath primPath("/World/MyFirstPrim"); + pxr::UsdGeomSphere sphere = + pxr::UsdGeomSphere::Define(stage, primPath); + std::cout << "Successfully created a primitive at path: " + << sphere.GetPath().GetString() << "\n"; + + // Print a tftoken + pxr::TfToken myToken("Success!"); + std::cout << "TfToken status: " << myToken.GetString() << "\n"; + } else { + std::cerr << "ERROR: Failed to create an in-memory USD stage!\n"; + return 1; + } + + std::cout << "--- USD Test Complete ---\n"; + return 0; +} \ No newline at end of file diff --git a/modules/openusd/25.11/presubmit.yml b/modules/openusd/25.11/presubmit.yml new file mode 100644 index 00000000000..487bd1dac77 --- /dev/null +++ b/modules/openusd/25.11/presubmit.yml @@ -0,0 +1,20 @@ +matrix: + platform: + - ubuntu2204 + - macos + - windows + bazel: + - 8.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@openusd//:openusd' + run_test_module: + name: Run tests + platform: ${{ platform }} + bazel: ${{ bazel }} + test_targets: + - "@openusd//:test_main" diff --git a/modules/openusd/25.11/source.json b/modules/openusd/25.11/source.json new file mode 100644 index 00000000000..414f299a55c --- /dev/null +++ b/modules/openusd/25.11/source.json @@ -0,0 +1,11 @@ +{ + "url": "https://github.com/PixarAnimationStudios/OpenUSD/archive/refs/tags/v25.11.tar.gz", + "integrity": "sha256-w3xjO1A3pFUvYVdGcOzKiDYim3gya9YmIvNCJnEYhmc=", + "strip_prefix": "OpenUSD-25.11", + "patch_strip": 0, + "overlay": { + "BUILD": "sha256-7NodOSfE6Kdt0/wIYMKs4J65Jvh9koXuaAaOZ/tliTY=", + "MODULE.bazel": "sha256-iiWrbC0DhF3vyAymaa4LinzPQpTEeCfA4adyCxgIPi8=", + "test_main.cpp": "sha256-LnwpJWggSpFUYmZA5YxrU7ziZ3m5+REiG3CL3RGjV2I=" + } +} diff --git a/modules/openusd/README.md b/modules/openusd/README.md new file mode 100644 index 00000000000..7c5b0a81e79 --- /dev/null +++ b/modules/openusd/README.md @@ -0,0 +1,36 @@ +# OpenUSD + +## Overview + +This module allows linking a minimal build of OpenUSD as a static monolithic library. OpenUSD supports many optional addons and plugins, including Python support, but +those are disabled here. Please refer to the README and BUILDING.md files of the OpenUSD repo on GitHub if you require a different build. + +As explained in the OpenUSD BUILDING.md, there are several different ways to build OpenUSD (static vs shared and monolithic vs split-up). This Bazel module builds it +as a monolithic static library, for ease of use. + + +## Working with this BCR module + +If you must modify or update this BCR module, first read these docs: +https://github.com/bazelbuild/bazel-central-registry/blob/main/docs/README.md +https://bazel.build/external/registry + +Commands cheat-sheet: + +Run this to create a new BCR version: +bazel run //tools:add_module + +Run this to update the integrity checksums in the source.json (for patches and overlay files): +bazel run -- //tools:update_integrity openusd + +Run the validations: +bazel run -- //tools:bcr_validation --check=openusd@25.11 + +### Testing Locally + +To test the module locally, run this: + +Run: +bazel shutdown && bazel build --enable_bzlmod --registry="file:///usr/local/google/home/mattriley/bazel-central-registry" --lockfile_mode=off //:main +Or just: +bazel test --enable_bzlmod --registry="file:///usr/local/google/home/mattriley/bazel-central-registry" --lockfile_mode=off //:test_main diff --git a/modules/openusd/metadata.json b/modules/openusd/metadata.json new file mode 100644 index 00000000000..8e671e3bde8 --- /dev/null +++ b/modules/openusd/metadata.json @@ -0,0 +1,18 @@ +{ + "homepage": "https://openusd.org/release/index.html", + "maintainers": [ + { + "email": "mattriley@intrinsic.ai", + "github": "mgriley", + "github_user_id": 13209161, + "name": "Matthew Riley" + } + ], + "repository": [ + "github:PixarAnimationStudios/OpenUSD" + ], + "versions": [ + "25.11" + ], + "yanked_versions": {} +} From 0c617bd9acafbd0d81c755ea3031fa9905a35854 Mon Sep 17 00:00:00 2001 From: Matthew Riley Date: Wed, 12 Nov 2025 21:02:10 +0000 Subject: [PATCH 2/7] Progress --- modules/openusd/25.11/overlay/BUILD | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/openusd/25.11/overlay/BUILD b/modules/openusd/25.11/overlay/BUILD index fcc81990324..7f12e3f50a9 100644 --- a/modules/openusd/25.11/overlay/BUILD +++ b/modules/openusd/25.11/overlay/BUILD @@ -73,6 +73,12 @@ cmake( # This is name of the monolithic static lib. "libusd_m.a", ], + # These out_data_dirs are required because the USD library + # will attempt to load plugin info files (plugInfo.json) on startup. + # It will throw an exception and exit if it cannot find these files. + out_data_dirs = [ + "lib/usd" + ] lib_source = ":all_srcs", deps = [ "@onetbb//:tbb", From a321181516abd9feaefe66236d10e4bac84732cf Mon Sep 17 00:00:00 2001 From: Matthew Riley Date: Thu, 13 Nov 2025 18:10:47 +0000 Subject: [PATCH 3/7] Updated to include test_main, with proper runfiles handling --- modules/openusd/25.11/MODULE.bazel | 1 + modules/openusd/25.11/overlay/BUILD | 51 +++++++++++++++++---- modules/openusd/25.11/overlay/MODULE.bazel | 1 + modules/openusd/25.11/overlay/test_main.cpp | 29 ++++++++++-- modules/openusd/25.11/source.json | 6 +-- modules/openusd/metadata.json | 6 +++ 6 files changed, 78 insertions(+), 16 deletions(-) diff --git a/modules/openusd/25.11/MODULE.bazel b/modules/openusd/25.11/MODULE.bazel index 8811bd33541..0059fe6023b 100644 --- a/modules/openusd/25.11/MODULE.bazel +++ b/modules/openusd/25.11/MODULE.bazel @@ -10,3 +10,4 @@ bazel_dep(name = "rules_foreign_cc", version = "0.15.1") bazel_dep(name = "rules_cc", version = "0.2.14") bazel_dep(name = "rules_license", version = "1.0.0") bazel_dep(name = "platforms", version = "1.0.0") +bazel_dep(name = "bazel_lib", version = "3.0.0") diff --git a/modules/openusd/25.11/overlay/BUILD b/modules/openusd/25.11/overlay/BUILD index 7f12e3f50a9..8365ded592e 100644 --- a/modules/openusd/25.11/overlay/BUILD +++ b/modules/openusd/25.11/overlay/BUILD @@ -1,6 +1,8 @@ load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") load("@rules_cc//cc:defs.bzl", "cc_test") +load("@rules_cc//cc:defs.bzl", "cc_binary") load("@rules_license//rules:license.bzl", "license") +load("@bazel_lib//lib:copy_to_directory.bzl", "copy_to_directory") package( default_applicable_licenses = [":license"], @@ -21,7 +23,19 @@ license( filegroup( name = "all_srcs", - srcs = glob(["**"], exclude=["bazel*/**"]), + srcs = glob([ + "CMakeLists.txt", + "pxr/**", + "cmake/**", + "extras/**", + "docs/**", + "third_party/**" + ], exclude=[ + "bazel*/**", + "BUILD", + "BUILD.bazel", + "MODULE.bazel" + ]), visibility = ["//visibility:public"], ) @@ -37,6 +51,9 @@ filegroup( # cmake( name = "openusd", + build_args = [ + "-j16", + ], cache_entries = { "BUILD_SHARED_LIBS": "OFF", "PXR_BUILD_MONOLITHIC": "ON", @@ -66,29 +83,45 @@ cmake( }, env = { "CMAKE_BUILD_TYPE": "Release", - "CMAKE_BUILD_PARALLEL_LEVEL": "4", + "CMAKE_BUILD_PARALLEL_LEVEL": "16", }, alwayslink = True, out_static_libs = [ # This is name of the monolithic static lib. "libusd_m.a", ], - # These out_data_dirs are required because the USD library - # will attempt to load plugin info files (plugInfo.json) on startup. - # It will throw an exception and exit if it cannot find these files. out_data_dirs = [ - "lib/usd" - ] + "lib/usd" + ], lib_source = ":all_srcs", deps = [ "@onetbb//:tbb", ], ) +# As part of the cmake build, OpenUSD installs a directory of plugin file resources (many plugInfo.json files) +# to openusd/lib/usd. On program startup, OpenUSD expects these plugin files to be in a usd/ dir directly next +# to the executable or .so library. It will throw an exception and crash if they are not found. +# We use the 'copy_to_directory' helper to copy them out of 'openusd/lib/usd' to just 'usd' so that they +# are at the right path. +copy_to_directory( + name = "plugin_files", + srcs = [":openusd"], + out = "usd", + replace_prefixes = { + "openusd/lib/usd": "", + } +) + cc_test( name = "test_main", srcs = ["test_main.cpp"], deps = [ - ":openusd" + ":openusd", + "@bazel_tools//tools/cpp/runfiles", + ], + data = [ + ":plugin_files", ] -) \ No newline at end of file +) + diff --git a/modules/openusd/25.11/overlay/MODULE.bazel b/modules/openusd/25.11/overlay/MODULE.bazel index 8811bd33541..0059fe6023b 100644 --- a/modules/openusd/25.11/overlay/MODULE.bazel +++ b/modules/openusd/25.11/overlay/MODULE.bazel @@ -10,3 +10,4 @@ bazel_dep(name = "rules_foreign_cc", version = "0.15.1") bazel_dep(name = "rules_cc", version = "0.2.14") bazel_dep(name = "rules_license", version = "1.0.0") bazel_dep(name = "platforms", version = "1.0.0") +bazel_dep(name = "bazel_lib", version = "3.0.0") diff --git a/modules/openusd/25.11/overlay/test_main.cpp b/modules/openusd/25.11/overlay/test_main.cpp index 841728d9647..13c7d4c693d 100644 --- a/modules/openusd/25.11/overlay/test_main.cpp +++ b/modules/openusd/25.11/overlay/test_main.cpp @@ -3,13 +3,34 @@ #include #include #include +#include -int main() { +#include "tools/cpp/runfiles/runfiles.h" + +using bazel::tools::cpp::runfiles::Runfiles; + +int main(int argc, char** argv) { std::cout << "--- USD Initialization Test ---\n"; + // Use the bazel runfiles lib to get the path to the openusd plugins that this + // executable depends on. Use Create() for regular binaries and CreateForTest() + // for tests. + std::string error; + //std::unique_ptr runfiles(Runfiles::Create(argv[0], &error)); + std::unique_ptr runfiles(Runfiles::CreateForTest(&error)); + if (runfiles == nullptr) { + std::cout << "NO RUNFILES FOUND" << std::endl; + return 1; + } + + // Register our custom plugins path with the plugin registry. + // If we do not do this, OpenUSD will throw when creating a stage. + std::string pluginsPath = runfiles->Rlocation("usd"); + std::cout << "PATH to openusd/usd => " << pluginsPath << std::endl; + pxr::PlugRegistry::GetInstance().RegisterPlugins(pluginsPath); + // Create a USD Stage (the core container for a scene) auto stage = pxr::UsdStage::CreateNew(std::string("HelloWorld.usda")); - if (stage) { // Create a primary root primitive (like a scene root) pxr::SdfPath primPath("/World/MyFirstPrim"); @@ -18,7 +39,7 @@ int main() { std::cout << "Successfully created a primitive at path: " << sphere.GetPath().GetString() << "\n"; - // Print a tftoken + // Print a tftoken pxr::TfToken myToken("Success!"); std::cout << "TfToken status: " << myToken.GetString() << "\n"; } else { @@ -28,4 +49,4 @@ int main() { std::cout << "--- USD Test Complete ---\n"; return 0; -} \ No newline at end of file +} diff --git a/modules/openusd/25.11/source.json b/modules/openusd/25.11/source.json index 414f299a55c..e9ece2bffbd 100644 --- a/modules/openusd/25.11/source.json +++ b/modules/openusd/25.11/source.json @@ -4,8 +4,8 @@ "strip_prefix": "OpenUSD-25.11", "patch_strip": 0, "overlay": { - "BUILD": "sha256-7NodOSfE6Kdt0/wIYMKs4J65Jvh9koXuaAaOZ/tliTY=", - "MODULE.bazel": "sha256-iiWrbC0DhF3vyAymaa4LinzPQpTEeCfA4adyCxgIPi8=", - "test_main.cpp": "sha256-LnwpJWggSpFUYmZA5YxrU7ziZ3m5+REiG3CL3RGjV2I=" + "BUILD": "sha256-OOA7K5IYAEi+6X/1h7/qiJn1Sb9MugFceP81dwYNbiM=", + "MODULE.bazel": "sha256-7BYW8wgXpTMSAH+vpWLi9HTwPlQ5iyKzsbbDZSYrmq4=", + "test_main.cpp": "sha256-5JjBuSSuKorLvDs2c1xkY/6UxUwuKoKmYCyRaU8HRg0=" } } diff --git a/modules/openusd/metadata.json b/modules/openusd/metadata.json index 8e671e3bde8..bf9a28c69c5 100644 --- a/modules/openusd/metadata.json +++ b/modules/openusd/metadata.json @@ -6,6 +6,12 @@ "github": "mgriley", "github_user_id": 13209161, "name": "Matthew Riley" + }, + { + "email": "dhirajgoel@intrinsic.ai", + "github": "dgoel", + "github_user_id": 834379, + "name": "Dhiraj Goel" } ], "repository": [ From 01d8b2a6f6a3b886cc6fe7ebde68b7177becc2f9 Mon Sep 17 00:00:00 2001 From: Matthew Riley Date: Thu, 13 Nov 2025 18:17:22 +0000 Subject: [PATCH 4/7] Update test integrity --- modules/openusd/25.11/source.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openusd/25.11/source.json b/modules/openusd/25.11/source.json index e9ece2bffbd..514f6dc60ec 100644 --- a/modules/openusd/25.11/source.json +++ b/modules/openusd/25.11/source.json @@ -6,6 +6,6 @@ "overlay": { "BUILD": "sha256-OOA7K5IYAEi+6X/1h7/qiJn1Sb9MugFceP81dwYNbiM=", "MODULE.bazel": "sha256-7BYW8wgXpTMSAH+vpWLi9HTwPlQ5iyKzsbbDZSYrmq4=", - "test_main.cpp": "sha256-5JjBuSSuKorLvDs2c1xkY/6UxUwuKoKmYCyRaU8HRg0=" + "test_main.cpp": "sha256-5hfksFp7KzvT01pbtvmOz432CBbb2fBOd3bhsy3oiSw=" } } From 2f44ce030538d08caf55396d3da192fc47eb36ae Mon Sep 17 00:00:00 2001 From: Matthew Riley Date: Thu, 13 Nov 2025 19:11:10 +0000 Subject: [PATCH 5/7] Removed mac and windows platforms from presubit. Not supported for now. --- modules/openusd/25.11/presubmit.yml | 2 -- modules/openusd/README.md | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/openusd/25.11/presubmit.yml b/modules/openusd/25.11/presubmit.yml index 487bd1dac77..cd09e18aed7 100644 --- a/modules/openusd/25.11/presubmit.yml +++ b/modules/openusd/25.11/presubmit.yml @@ -1,8 +1,6 @@ matrix: platform: - ubuntu2204 - - macos - - windows bazel: - 8.x tasks: diff --git a/modules/openusd/README.md b/modules/openusd/README.md index 7c5b0a81e79..dd01bfc7c0f 100644 --- a/modules/openusd/README.md +++ b/modules/openusd/README.md @@ -8,6 +8,7 @@ those are disabled here. Please refer to the README and BUILDING.md files of the As explained in the OpenUSD BUILDING.md, there are several different ways to build OpenUSD (static vs shared and monolithic vs split-up). This Bazel module builds it as a monolithic static library, for ease of use. +Note: We currently only support building for linux. ## Working with this BCR module From 88e35c47b3b4e903f428127438b46f912d281b3d Mon Sep 17 00:00:00 2001 From: Matthew Riley Date: Thu, 13 Nov 2025 20:39:08 +0000 Subject: [PATCH 6/7] Remove the parallelism related flags from the cmake rule --- modules/openusd/25.11/overlay/BUILD | 4 ---- modules/openusd/25.11/source.json | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/openusd/25.11/overlay/BUILD b/modules/openusd/25.11/overlay/BUILD index 8365ded592e..43763d6d9f3 100644 --- a/modules/openusd/25.11/overlay/BUILD +++ b/modules/openusd/25.11/overlay/BUILD @@ -51,9 +51,6 @@ filegroup( # cmake( name = "openusd", - build_args = [ - "-j16", - ], cache_entries = { "BUILD_SHARED_LIBS": "OFF", "PXR_BUILD_MONOLITHIC": "ON", @@ -83,7 +80,6 @@ cmake( }, env = { "CMAKE_BUILD_TYPE": "Release", - "CMAKE_BUILD_PARALLEL_LEVEL": "16", }, alwayslink = True, out_static_libs = [ diff --git a/modules/openusd/25.11/source.json b/modules/openusd/25.11/source.json index 514f6dc60ec..b82ebee6b8c 100644 --- a/modules/openusd/25.11/source.json +++ b/modules/openusd/25.11/source.json @@ -4,7 +4,7 @@ "strip_prefix": "OpenUSD-25.11", "patch_strip": 0, "overlay": { - "BUILD": "sha256-OOA7K5IYAEi+6X/1h7/qiJn1Sb9MugFceP81dwYNbiM=", + "BUILD": "sha256-PRBNyUyyZkMX1MMq42iwb9qIU8pfCPVmKR8+z5hDozY=", "MODULE.bazel": "sha256-7BYW8wgXpTMSAH+vpWLi9HTwPlQ5iyKzsbbDZSYrmq4=", "test_main.cpp": "sha256-5hfksFp7KzvT01pbtvmOz432CBbb2fBOd3bhsy3oiSw=" } From 3b8d4fbfb38d9bbac0d7e061621027832c0b2b20 Mon Sep 17 00:00:00 2001 From: Matthew Riley Date: Fri, 14 Nov 2025 16:53:32 +0000 Subject: [PATCH 7/7] Changed to use CMAKE_BUILD_PARALLEL_LEVEL 4 as a compromise --- modules/openusd/25.11/overlay/BUILD | 1 + modules/openusd/25.11/source.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/openusd/25.11/overlay/BUILD b/modules/openusd/25.11/overlay/BUILD index 43763d6d9f3..36629a700cc 100644 --- a/modules/openusd/25.11/overlay/BUILD +++ b/modules/openusd/25.11/overlay/BUILD @@ -80,6 +80,7 @@ cmake( }, env = { "CMAKE_BUILD_TYPE": "Release", + "CMAKE_BUILD_PARALLEL_LEVEL": "4", }, alwayslink = True, out_static_libs = [ diff --git a/modules/openusd/25.11/source.json b/modules/openusd/25.11/source.json index b82ebee6b8c..751d0fd8853 100644 --- a/modules/openusd/25.11/source.json +++ b/modules/openusd/25.11/source.json @@ -4,7 +4,7 @@ "strip_prefix": "OpenUSD-25.11", "patch_strip": 0, "overlay": { - "BUILD": "sha256-PRBNyUyyZkMX1MMq42iwb9qIU8pfCPVmKR8+z5hDozY=", + "BUILD": "sha256-3rvywJSRTrPiFJr7Slalx9mPdROBi0gxlewue6exVag=", "MODULE.bazel": "sha256-7BYW8wgXpTMSAH+vpWLi9HTwPlQ5iyKzsbbDZSYrmq4=", "test_main.cpp": "sha256-5hfksFp7KzvT01pbtvmOz432CBbb2fBOd3bhsy3oiSw=" }