-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tweaks to make build_usd.py work with ninja #590
Tweaks to make build_usd.py work with ninja #590
Conversation
Paul is making pull requests while at Siggraph. Respect :)
…On Wed, Aug 15, 2018 at 9:51 AM Paul Molodowitch ***@***.***> wrote:
Description of Change(s)
Initially aimed to make it work on windows, but subsequently tested / got
it working on all 3 platforms: windows, linux (ubuntu), and MacOS
Fixes Issue(s)
- build_usd.py fails with --generator=Ninja
------------------------------
You can view, comment on, or merge this pull request online at:
#590
Commit Summary
- [build_usd] Allow building with Ninja build generator under windows
- [build_usd] store which dependency we're building on context
- [build_usd] fix for building OpenEXR-2.2 with Ninja
- [build_usd] Disable building OpenSubdiv with Ninja on windows
- [build_usd] use CMAKE_BUILD_TYPE for ninja, not --config
File Changes
- *M* build_scripts/build_usd.py
<https://github.com/PixarAnimationStudios/USD/pull/590/files#diff-0>
(81)
Patch Links:
- https://github.com/PixarAnimationStudios/USD/pull/590.patch
- https://github.com/PixarAnimationStudios/USD/pull/590.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#590>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAD3E7aADRv9AvpHlyvkH5GlXGPIX2MFks5uRFGEgaJpZM4V-cQD>
.
|
Filed as internal issue #164196. |
Should be fixed in OpenEXR 2.3. Maybe the 2.2 patches should be conditional on version. |
True - but build_usd is currently hardcoded to 2.2... and even if it were switched to 2.3, and we forget to remove this patch, it will just end up as a do-nothing patch in that case. |
Ah, that's true. Since OpenEXR is using CMake generator syntax now, the patch will never accidentally apply. And FWIW, for code review, the patches look correct from my perspective. |
+1 on the need for this one. Ninja builds are significantly faster on my local machine, and would really help dev process for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I didn't get a chance to review this during SIGGRAPH. :) Added some notes, thanks!
@@ -646,6 +677,34 @@ def InstallOpenEXR(context, force, buildArgs): | |||
|
|||
ilmbaseSrcDir = os.path.join(srcDir, "IlmBase") | |||
with CurrentWorkingDirectory(ilmbaseSrcDir): | |||
# openexr 2.2 has a bug with Ninja: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for documenting this!
apparently fixed in dev branch - see: AcademySoftwareFoundation/openexr#94 AcademySoftwareFoundation/openexr#142
Ninja seems to error - a bunch of warnings that are set as errors - so just use the Visual Studio builder for it for now
5ddada5
to
e91c1ad
Compare
Tweaks to make build_usd.py work with ninja (Internal change: 1941305)
…#590) * [HgiWebGPU] Update dawn and emscripten version - Update dawn version and remove section for getting a device - Replace all instances of the deprecated shaderModule.source to shaderModule.code - Update tint API and add option to preserve previous behavior * address comments * Fix Dawn windows build error * Fix build error that is caused by incorrect TF_API definition. * Modify dawn cmake file to include d3d12.h path. * Recover rmtree after testing is finished. * apply changes to google_depot_tools.py * handle additional case for tint structure * Add new static libs for higwebgpu * Make sure Dawn is built with static library for Windows and remove unnecessary path files. * Revert "OpenEXR and OpenImageIO change" that is a mistake to be merged into. * Revise new libraries for different platforms * Fix hgiwebgpu build and link errors that are caused by conflicts between 3rd parties shaderc and dawn because there are 2 times SPIRV tools built from shaderc and dawn. We need to replace shaderc with glslang in the future. * Clean up spirv folders and libs generated from shaderc. HgiWebGPU project needs to consume spirv libs generated from Dawn. * small cleanup * delete cache * set shared build to off Co-authored-by: wangfr <francis.wang@autodesk.com>
Description of Change(s)
Initially aimed to make it work on windows, but subsequently tested / got it working on all 3 platforms: windows, linux (ubuntu), and MacOS
Fixes Issue(s)