Skip to content

Commit 71d60fa

Browse files
committed
[WIP] Move tinyexr_export_templates option to the tinyexr module
1 parent 0739fb9 commit 71d60fa

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

SConstruct

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,6 @@ opts.Add(BoolVariable("modules_enabled_by_default", "If no, disable all modules
208208
opts.Add(BoolVariable("no_editor_splash", "Don't use the custom splash screen for the editor", True))
209209
opts.Add("system_certs_path", "Use this path as SSL certificates default for editor (for package maintainers)", "")
210210
opts.Add(BoolVariable("use_precise_math_checks", "Math checks use very precise epsilon (debug option)", False))
211-
opts.Add(
212-
BoolVariable(
213-
"tinyexr_export_templates",
214-
"Enable saving and loading OpenEXR images in export template builds (increases binary size)",
215-
False,
216-
)
217-
)
218211

219212
# Thirdparty libraries
220213
opts.Add(BoolVariable("builtin_certs", "Use the built-in SSL certificates bundles", True))

modules/tinyexr/config.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,15 @@ def can_build(env, platform):
33

44

55
def configure(env):
6-
pass
6+
from SCons.Script import BoolVariable, Variables, Help
7+
8+
envvars = Variables()
9+
envvars.Add(
10+
BoolVariable(
11+
"tinyexr_export_templates",
12+
"Enable saving and loading OpenEXR images in export template builds (increases binary size)",
13+
False,
14+
)
15+
)
16+
envvars.Update(env)
17+
Help(envvars.GenerateHelpText(env))

0 commit comments

Comments
 (0)