Skip to content

Commit 06a136e

Browse files
committed
Add an example for using a build profile
1 parent db25e65 commit 06a136e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

SConstruct

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ projectdir = "demo"
1010

1111
localEnv = Environment(tools=["default"], PLATFORM="")
1212

13+
# Build profiles can be used to decrease compile times.
14+
# You can either specify "disabled_classes", OR
15+
# explicitly specify "enabled_classes" which disables all other classes.
16+
# Modify the example file as needed and uncomment the line below or
17+
# manually specify the build_profile parameter when running SCons.
18+
19+
# localEnv["build_profile"] = "build_profile.json"
20+
1321
customs = ["custom.py"]
1422
customs = [os.path.abspath(path) for path in customs]
1523

build_profile.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"_": "This is an example build profile and not used by default. See the SConstruct file for more information.",
3+
"type": "feature_profile",
4+
"enabled_classes": [
5+
"Node3D",
6+
"ImageTexture",
7+
"OS"
8+
]
9+
}

0 commit comments

Comments
 (0)