Cleanup: Improve precompiled header for USD

Improve the selection of headers included in the precompiled header.

This reduces build time of the full `io/usd` directory by 12 to 19%.

Laptop i7-8750h: Average 30.3 sec --> 24.5 sec
Desktop i7-13700k: Average 12.1 sec --> 10.7 sec

Pull Request: https://projects.blender.org/blender/blender/pulls/140418
This commit is contained in:
Jesse Yurkovich
2025-06-16 22:51:58 +02:00
committed by Jesse Yurkovich
parent 8404228aeb
commit 9353fc280d

View File

@@ -3,8 +3,11 @@
* SPDX-License-Identifier: GPL-2.0-or-later */
#include <pxr/pxr.h>
#include <pxr/usd/sdf/layer.h>
#include <pxr/usd/usd/object.h>
#include <pxr/usd/usd/prim.h>
#include <pxr/usd/usd/primData.h>
#include <pxr/usd/usdGeom/xformable.h>
#include <pxr/usd/usdShade/material.h>
#include <pxr/imaging/hd/sceneDelegate.h>
#include <pxr/imaging/hd/tokens.h>