Skip to content

Commit 4e98b43

Browse files
committed
fix build again
1 parent 726bc7f commit 4e98b43

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

third_party/ixwebsocket.AMBuilder

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ builder.SetBuildFolder('ixwebsocket')
66
rvalue = {}
77
for cxx in builder.targets:
88
binary = Extension.StaticLibrary(builder, cxx, 'ixwebsocket')
9-
binary.compiler.includes += [
10-
os.path.join(builder.sourcePath, 'third_party', 'openssl', 'include'),
11-
os.path.join(builder.sourcePath, 'third_party', 'ixwebsocket', 'ixwebsocket'),
12-
os.path.join(builder.sourcePath, 'third_party', 'zlib'),
13-
]
9+
if binary.compiler.target.platform == 'linux':
10+
binary.compiler.includes += [
11+
os.path.join(builder.sourcePath, 'third_party', 'ixwebsocket'),
12+
os.path.join(builder.sourcePath, 'third_party', 'zlib'),
13+
]
14+
elif binary.compiler.target.platform == 'windows':
15+
binary.compiler.includes += [
16+
os.path.join(builder.sourcePath, 'third_party', 'openssl', 'include'),
17+
os.path.join(builder.sourcePath, 'third_party', 'ixwebsocket'),
18+
os.path.join(builder.sourcePath, 'third_party', 'zlib'),
19+
]
1420

1521
binary.compiler.defines += [
1622
'IXWEBSOCKET_USE_TLS',

0 commit comments

Comments
 (0)