Add an example for using a build profile

This commit is contained in:
unvermuthet
2025-03-05 10:45:51 +01:00
parent db25e65728
commit 06a136e8c3
2 changed files with 17 additions and 0 deletions

View File

@@ -10,6 +10,14 @@ projectdir = "demo"
localEnv = Environment(tools=["default"], PLATFORM="")
# Build profiles can be used to decrease compile times.
# You can either specify "disabled_classes", OR
# explicitly specify "enabled_classes" which disables all other classes.
# Modify the example file as needed and uncomment the line below or
# manually specify the build_profile parameter when running SCons.
# localEnv["build_profile"] = "build_profile.json"
customs = ["custom.py"]
customs = [os.path.abspath(path) for path in customs]

9
build_profile.json Normal file
View File

@@ -0,0 +1,9 @@
{
"_": "This is an example build profile and not used by default. See the SConstruct file for more information.",
"type": "feature_profile",
"enabled_classes": [
"Node3D",
"ImageTexture",
"OS"
]
}