From 06a136e8c34855473e4eec2ade92ec4480a2044d Mon Sep 17 00:00:00 2001 From: unvermuthet <40361609+unvermuthet@users.noreply.github.com> Date: Wed, 5 Mar 2025 10:45:51 +0100 Subject: [PATCH] Add an example for using a build profile --- SConstruct | 8 ++++++++ build_profile.json | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 build_profile.json diff --git a/SConstruct b/SConstruct index 07ce1c2..d106d27 100644 --- a/SConstruct +++ b/SConstruct @@ -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] diff --git a/build_profile.json b/build_profile.json new file mode 100644 index 0000000..d172f52 --- /dev/null +++ b/build_profile.json @@ -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" + ] +}