Merge "Implementation of connectivity abstraction feature Release v0.5" into connecti...
[platform/upstream/iotivity.git] / build_common / windows / SConscript
1 ##
2 # This script includes windows specific config (MSVS/MSVC)
3 ##
4 Import('env')
5
6 # Set common flags
7 env.AppendUnique(CXXFLAGS=['/wd4244', '/wd4267','/wd4345', '/wd4355', '/wd4800', '/wd4996'])
8 env.AppendUnique(CCFLAGS=['/EHsc'])
9
10 # Set release/debug flags
11 if env.get('RELEASE'):
12         env.AppendUnique(CCFLAGS = ['/MD', '/O2', '/GF'])
13         env.AppendUnique(CPPDEFINES = ['NDEBUG'])
14 else:
15         env.AppendUnique(CCFLAGS = ['/MDd', '/Od', '/ZI', '/GZ', '/Gm'])
16         env.AppendUnique(CPPDEFINES = ['_DEBUG'])
17         env.AppendUnique(LINKFLAGS = ['/debug'])