-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathSConstruct
26 lines (16 loc) · 879 Bytes
/
SConstruct
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
import os
env = Environment(ENV = os.environ)
File_list = ['./blockcipher/sm4.cpp', './hash/sm3.cpp', './hash/sha256.cpp', './bn/bn_boost.cpp', './pubkey/ecc.cpp', './pubkey/RSA.cpp', './prng/random.cpp', './tester.cpp']
#Lib_list = ['kernel32.lib', 'user32.lib', 'winmm.lib', 'wsock32.lib']
#env.Append( LIBS = Lib_list )
#Inc_list = ['./src/']
#env.Append( CPPPATH = Inc_list )
#Def_list = ['WIN32','_WINDOWS', '_CRT_SECURE_NO_WARNINGS', 'NDEBUG']
Def_list = ['DEBUG']
#ccflags_str = '/EHsc /nologo /W3 /O2 /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /FD /c'
ccflags_str = '-I /mingw32/include '
# lflags_str = 'kernel32.lib user32.lib wsock32.lib winmm.lib /nologo /subsystem:console /incremental:yes /machine:I386 /out:nc.exe'
env = Environment( ENV = os.environ )
env.Append( CPPDEFINES = Def_list )
env.Append( CCFLAGS = ccflags_str )
env.Program( 'crypt', File_list )