Lines Matching full:env

26 env = Environment(ENV = os.environ)
32 env.Append(**{var: val})
34 env.Replace(**{var: val})
36 env.SetDefault(BUILDDIR = "build")
37 env.SConsignFile(env['BUILDDIR'] + "/sconsign")
38 env.Replace(CONFIGUREDIR = env['BUILDDIR'] + "/config")
48 platform_func(env)
51 env.Tool("nanopb")
64 env.Replace(CC = "clang", CXX = "clang++")
67 add_nanopb_builders(env)
70 env.Append(CPPPATH = ["#../", "$COMMON"])
73 env.Append(PROTOCPATH = '#../generator')
76 if not env.GetOption('clean'):
80 oldflags = context.env['CCFLAGS']
81 oldlinkflags = context.env['LINKFLAGS']
82 context.env.Append(CCFLAGS = flags)
83 context.env.Append(LINKFLAGS = linkflags)
85 context.env.Replace(CCFLAGS = oldflags)
86 context.env.Replace(LINKFLAGS = oldlinkflags)
102 conf = Configure(env, custom_tests =
114 conf.env.Append(CPPDEFINES = {'PB_SYSTEM_HEADER': '\\"pb_syshdr.h\\"'})
115 conf.env.Append(CPPPATH = "#../extra")
116 conf.env.Append(SYSHDR = '\\"pb_syshdr.h\\"')
118 if stdbool: conf.env.Append(CPPDEFINES = {'HAVE_STDBOOL_H': 1})
119 if stdint: conf.env.Append(CPPDEFINES = {'HAVE_STDINT_H': 1})
120 if stddef: conf.env.Append(CPPDEFINES = {'HAVE_STDDEF_H': 1})
121 if string: conf.env.Append(CPPDEFINES = {'HAVE_STRING_H': 1})
122 if stdlib: conf.env.Append(CPPDEFINES = {'HAVE_STDLIB_H': 1})
123 if limits: conf.env.Append(CPPDEFINES = {'HAVE_LIMITS_H': 1})
126 conf.env['PROTOC_VERSION'] = conf.CheckProtocVersion()
130 if not env.get('NODEFARGS'):
132 if 'gcc' in env['CC']:
134 conf.env.Append(CCFLAGS = '-fmudflap')
135 conf.env.Append(LINKFLAGS = '-fmudflap')
142 if 'gcc' in env['CC']:
144 conf.env.Append(CORECFLAGS = extra)
150 if 'clang' in env['CC']:
152 conf.env.Append(CORECFLAGS = extra)
153 conf.env.Append(LINKFLAGS = extra)
156 env = conf.Finish()
158 if not env.get('NODEFARGS'):
160 if 'gcc' in env['CC']:
164 env.Append(CFLAGS = '-g -Wall -Werror ')
165 env.Append(CORECFLAGS = '-Wextra')
169 if env.get("EMBEDDED") != "AVR":
170 env.Append(CFLAGS = '-ansi -pedantic')
173 if not env.get("EMBEDDED"):
174 env.Append(CFLAGS = '-fprofile-arcs -ftest-coverage ')
175 env.Append(LINKFLAGS = '-g --coverage')
179 env.Append(CFLAGS = '-Wno-long-long')
180 elif 'clang' in env['CC']:
182 env.Append(CFLAGS = '-ansi -g -Wall -Werror')
183 env.Append(CORECFLAGS = ' -Wextra -Wcast-qual -Wconversion')
184 elif 'cl' in env['CC']:
188 env.Append(CFLAGS = '/Zi /W2 /WX')
189 env.Append(LINKFLAGS = '/DEBUG')
192 env.Append(CORECFLAGS = '/W4')
198 env.Append(CFLAGS = '/wd4116')
199 elif 'tcc' in env['CC']:
201 env.Append(CFLAGS = '-Wall -Werror -g')
203 if 'clang' in env['CXX']:
204 env.Append(CXXFLAGS = '-g -Wall -Werror -Wextra -Wno-missing-field-initializers')
205 elif 'g++' in env['CXX'] or 'gcc' in env['CXX']:
206 env.Append(CXXFLAGS = '-g -Wall -Werror -Wextra -Wno-missing-field-initializers')
207 elif 'cl' in env['CXX']:
208 env.Append(CXXFLAGS = '/Zi /W2 /WX /wd4116 /wd4127')
210 env.SetDefault(CORECFLAGS = '')
212 if not env.get("EMBEDDED") and not env.get("NOVALGRIND"):
213 valgrind = env.WhereIs('valgrind')
215 env.SetDefault(VALGRIND = valgrind)
218 env.SetDefault(LINKLIBS = '')
219 env.Replace(LINKCOM = env['LINKCOM'] + " $LINKLIBS")
223 env['VARIANT_DIR'] = env['BUILDDIR']
224 env['BUILD'] = '#' + env['VARIANT_DIR']
225 env['COMMON'] = '#' + env['VARIANT_DIR'] + '/common'
229 SConscript("common/SConscript", exports = 'env', variant_dir = env['VARIANT_DIR'] + '/common')
235 …SConscript(subdir, exports = 'env', variant_dir = env['VARIANT_DIR'] + '/' + os.path.dirname(str(s…