Skip to content

Commit 013c278

Browse files
author
Clement Champetier
committed
SConstruct: fix win build by adding python to LIBPATH
1 parent 6a80603 commit 013c278

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SConstruct

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ if not config.has_section( 'PYTHON' ):
4444

4545

4646
javaInclude = config.get( 'JAVA', 'inc' ).split( splitChar )
47+
4748
pyInclude = config.get( 'PYTHON', 'inc' ).split( splitChar )
49+
pyLibrary = []
50+
if config.has_option( 'PYTHON', 'libdir' ):
51+
pyLibrary = config.get( 'PYTHON', 'libdir' ).split( splitChar )
52+
4853
libavInclude = config.get( 'LIBAV', 'inc' ).split( splitChar )
4954
libavLibDir = config.get( 'LIBAV', 'libdir' ).split( splitChar )
5055

@@ -124,6 +129,7 @@ envPy.Replace(
124129
)
125130
envPy.AppendUnique(
126131
CPPPATH = pyInclude,
132+
LIBPATH = pyLibrary,
127133
SWIGPATH = envPy['CPPPATH']
128134
)
129135

0 commit comments

Comments
 (0)