Commit b71bf91
committed
Boost: Use Headers instead of building when not required
When building USD without Python, OIIO or VDB, Boost libs aren't required.
In this scenario, it is preferable to just copy over the headers instead and save some time and complexity.
As requested, I have added an ignore list to bring down the size of the headers considerably.
Prior to this PR, boost would include ~170M-180M of headers. After this patch, boost only includes about 37M of headers. This could be further reduced in a future PR with better heuristics, but a 80% savings in size felt like a good win.
This also has a significant benefit that it allows the core USD build to be supported on platforms that Boost doesn't natively build on yet like iOS and visionOS. It means that the build_usd.py script doesn't need to carry as many patches to Boost itself if someone is just building the core USD library.
This is similar to [PR 2914](#2914) but can short circuit the entire bootstrap and b2 process, which may still error on platforms that b2 doesn't understand.1 parent 0244f25 commit b71bf91
1 file changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
| 318 | + | |
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| 759 | + | |
| 760 | + | |
759 | 761 | | |
760 | 762 | | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
761 | 791 | | |
762 | 792 | | |
763 | 793 | | |
| |||
0 commit comments