Skip to content

Commit 6baec2d

Browse files
committed
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.
1 parent c49955a commit 6baec2d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
10.6.x.x (relative to 10.6.2.0)
22
========
33

4+
Build
5+
-----
46

7+
- SConstruct :
8+
- Added `INCLUDE_PATHS` option.
59

610
10.6.2.0 (relative to 10.6.1.0)
711
========

SConstruct

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,11 @@ o.Add(
647647
BoolVariable( "INSTALL_CREATE_SYMLINKS", "Whether to create symlinks post install", True )
648648
)
649649

650+
o.Add(
651+
"INCLUDE_PATHS",
652+
"Additional locations on which to search for include files for the dependencies.",
653+
[],
654+
)
650655

651656
# Test options
652657

@@ -803,6 +808,9 @@ dependencyIncludes = [
803808
systemIncludeArgument, "$FREETYPE_INCLUDE_PATH",
804809
]
805810

811+
for path in env.get( "INCLUDE_PATHS" ) :
812+
dependencyIncludes.extend( [ systemIncludeArgument, path ] )
813+
806814
env.Prepend(
807815
LIBPATH = [
808816
"./lib",

0 commit comments

Comments
 (0)