-
Notifications
You must be signed in to change notification settings - Fork 3
/
SConstruct
36 lines (29 loc) · 1.1 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
import os
USE_TOOL = 'msvc'
# mingw support is not working yet.
#USE_TOOL = 'mingw'
if USE_TOOL == 'msvc':
env = Environment(
ENV = os.environ,
CCFLAGS = '-Os -Og -Oy -Zl -Gy -DWIN32 -D_WINDOWS -DSTRICT -DNDEBUG',
CPPPATH = [r'p:\code\wtl70\include',r'p:\external\crypto521'],
LIBPATH = [r'p:\lib'],
LIBS = ['cryptlib','gdi32','comdlg32']
)
res = env.RES('locknote.rc', RCFLAGS= '-DNDEBUG -l1033 -v' )
env.Program('LockNote',['locknote.cpp','stdafx.cpp',res])
elif USE_TOOL == 'mingw':
rootpath = 'c:\mingw'
os.environ['PATH'] += ';' + os.path.join(rootpath, 'bin')
includepath = [os.path.join(rootpath,'include')]
includepath += [r'C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include']
env = Environment(
ENV = os.environ,
tools = ['mingw'],
CCFLAGS = '-DWIN32 -D_WINDOWS -DSTRICT -DNDEBUG',
CPPPATH = includepath + [r'p:\code\wtl70\include',r'p:\external\crypto521'],
LIBPATH = [r'p:\lib'],
LIBS = ['cryptlib','gdi32','comdlg32']
)
#res = env.RES('locknote.rc', RCFLAGS= '-DNDEBUG -l1033 -v' )
env.Program('LockNote',['locknote.cpp','stdafx.cpp'])