forked from negrutiu/nsis-nscurl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
63 lines (52 loc) · 1.3 KB
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
target = 'NScurl'
files = Split("""
crypto.c
curl.c
gui.c
main.c
queue.c
utils.c
""")
resources = Split("""
resource.rc
""")
# NOTE: Library order does matter!
libs = Split("""
curl
ssl
crypto
nghttp2_static
zlibstatic
advapi32
user32
version
ws2_32
crypt32
mingwex
msvcrt
gcc
kernel32
""")
examples = Split("""
Test/NScurl-Test.nsi
Test/NScurl-Test-build.bat
""")
docs = Split("""
NScurl.Readme.htm
""")
Import('BuildPlugin env plugin_env plugin_uenv')
unicodetarget = 'UNICODE' in env['CPPDEFINES']
plugin_envT = plugin_env
if unicodetarget:
plugin_envT = plugin_uenv
plugin_envT.Append(CPPPATH = ['libcurl-devel/include', 'libcurl-devel/include/openssl'])
if env['TARGET_ARCH'] == 'amd64':
plugin_envT.Append(LIBPATH = ['libcurl-devel/mingw-curl_openssl-Release-x64-Legacy/lib'])
else:
plugin_envT.Append(LIBPATH = ['libcurl-devel/mingw-curl_openssl-Release-Win32-Legacy/lib'])
# Disable benign warnings
plugin_envT.Append(CCFLAGS = ['-Wno-unused-function', '-Wno-unused-variable', '-Wno-unused-but-set-variable'])
# print( '----------------------------------------------------------------------' )
# print( plugin_envT.Dump() )
# print( '----------------------------------------------------------------------' )
BuildPlugin(target, files, libs, examples, docs, res = resources)