Skip to content
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

Merged

Conversation

pmolodo
Copy link
Contributor

@pmolodo pmolodo commented Aug 15, 2018

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

@chadrik
Copy link
Contributor

chadrik commented Aug 15, 2018 via email

@jtran56
Copy link

jtran56 commented Aug 25, 2018

Filed as internal issue #164196.

@meshula
Copy link
Member

meshula commented Aug 26, 2018

Should be fixed in OpenEXR 2.3. Maybe the 2.2 patches should be conditional on version.

@pmolodo
Copy link
Contributor Author

pmolodo commented Aug 27, 2018

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.

@meshula
Copy link
Member

meshula commented Aug 27, 2018

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.

@superfunc
Copy link
Contributor

+1 on the need for this one. Ninja builds are significantly faster on my local machine, and would really help dev process for me.

Copy link
Contributor

@sunyab sunyab left a 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!

build_scripts/build_usd.py Outdated Show resolved Hide resolved
build_scripts/build_usd.py Outdated Show resolved Hide resolved
@@ -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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for documenting this!

@sunyab sunyab added the blocked Issue fix or pull request blocked until questions are answered or pending notes are addressed label Sep 8, 2018
@pmolodo pmolodo force-pushed the pr/build_usd_ninja_fixes branch from 5ddada5 to e91c1ad Compare October 19, 2018 23:00
@sunyab sunyab added pending push and removed blocked Issue fix or pull request blocked until questions are answered or pending notes are addressed labels Feb 20, 2019
@pixar-oss pixar-oss merged commit e91c1ad into PixarAnimationStudios:dev Feb 25, 2019
pixar-oss added a commit that referenced this pull request Feb 25, 2019
Tweaks to make build_usd.py work with ninja

(Internal change: 1941305)
francis-wangfr added a commit to autodesk-forks/USD that referenced this pull request Feb 8, 2024
…#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants