From 83f25dbd10fe603897b4c12253855617a1c3c78c Mon Sep 17 00:00:00 2001 From: ivanimanishi Date: Thu, 20 Nov 2025 16:44:17 -0800 Subject: [PATCH] SConstruct : Added INCLUDE_PATHS option INCLUDE_PATHS is a list argument that can be used to add an arbitrary list of include paths to be added, with full control over their order from the options file. --- Changes | 5 +++++ SConstruct | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/Changes b/Changes index dd7b31f313..1124d3d3a2 100644 --- a/Changes +++ b/Changes @@ -6,6 +6,11 @@ Fixes - Boost : Fixed compatibility with Boost 1.85. +Build +----- + +- SConstruct : Added `INCLUDE_PATHS` option. + 10.6.2.0 (relative to 10.6.1.0) ======== diff --git a/SConstruct b/SConstruct index abc89545da..ddba6ab371 100644 --- a/SConstruct +++ b/SConstruct @@ -647,6 +647,11 @@ o.Add( BoolVariable( "INSTALL_CREATE_SYMLINKS", "Whether to create symlinks post install", True ) ) +o.Add( + "INCLUDE_PATHS", + "Additional locations on which to search for include files for the dependencies.", + [], +) # Test options @@ -803,6 +808,9 @@ dependencyIncludes = [ systemIncludeArgument, "$FREETYPE_INCLUDE_PATH", ] +for path in env.get( "INCLUDE_PATHS" ) : + dependencyIncludes.extend( [ systemIncludeArgument, path ] ) + env.Prepend( LIBPATH = [ "./lib",