Skip to content

APPLE: Streamline Framework build headers#3714

Open
dgovil wants to merge 5 commits intoPixarAnimationStudios:devfrom
dgovil:framework_build_headers
Open

APPLE: Streamline Framework build headers#3714
dgovil wants to merge 5 commits intoPixarAnimationStudios:devfrom
dgovil:framework_build_headers

Conversation

@dgovil
Copy link
Copy Markdown
Collaborator

@dgovil dgovil commented Jul 8, 2025

Description of Change(s)

This PR allows for Framework builds (requires #3713 to be merged first) to use modified headers such that the frameworks can easily be used in Xcode or via -framework OpenUSD without any extra configuration.

It does so by modifying headers in the framework by changing them to <OpenUSD/pxr/pxr.h> instead of <pxr/pxr.h>.
These headers then work without having to configure anything, but if a developer were to also add the header search path, then they could use either form interchangeably too.

Of course, any code that uses the prefixed header format could not be used portably with a codebase that doesn't prefix its headers, so the option is opt-in.

Checklist

@dgovil dgovil changed the title APPLE: Framework build headers APPLE: Streamline Framework build headers Jul 8, 2025
@jesschimein
Copy link
Copy Markdown
Collaborator

Filed as internal issue #USD-11202

(This is an automated message. See here for more information.)

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.

2 participants