Add CURL_STATICLIB when compiling on windows, add possibly needed msvc libraries
This commit is contained in:
parent
ed2eac627b
commit
4734c6e419
@ -229,7 +229,7 @@ def findLibs(env, conf):
|
|||||||
#Windows specific libs
|
#Windows specific libs
|
||||||
if platform == "Windows":
|
if platform == "Windows":
|
||||||
if msvc:
|
if msvc:
|
||||||
libChecks = ['shell32', 'wsock32', 'user32', 'Advapi32', 'ws2_32']
|
libChecks = ['shell32', 'wsock32', 'user32', 'Advapi32', 'ws2_32', 'Wldap32', 'crypt32']
|
||||||
if GetOption('static'):
|
if GetOption('static'):
|
||||||
libChecks += ['imm32', 'version', 'Ole32', 'OleAut32']
|
libChecks += ['imm32', 'version', 'Ole32', 'OleAut32']
|
||||||
for i in libChecks:
|
for i in libChecks:
|
||||||
@ -484,6 +484,7 @@ elif GetOption('release'):
|
|||||||
|
|
||||||
if GetOption('static'):
|
if GetOption('static'):
|
||||||
if platform == "Windows":
|
if platform == "Windows":
|
||||||
|
env.Append(CPPDEFINES=['CURL_STATICLIB'])
|
||||||
if compilePlatform == "Windows" and not msvc:
|
if compilePlatform == "Windows" and not msvc:
|
||||||
env.Append(CPPDEFINES=['_PTW32_STATIC_LIB'])
|
env.Append(CPPDEFINES=['_PTW32_STATIC_LIB'])
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user