debug=env['nvdaHelperDebug']\r
\r
#Some defines and includes for the environment\r
-env.Append(CPPDEFINES=['UNICODE','_CRT_SECURE_NO_DEPRECATE',('LOGLEVEL','${logLevel}')])\r
+env.Append(CPPDEFINES=['UNICODE','_CRT_SECURE_NO_DEPRECATE',('LOGLEVEL','${nvdaHelperLogLevel}')])\r
env.Append(CXXFLAGS=['/EHsc'])\r
env.Append(CPPPATH=['#/include',Dir('.').abspath])\r
env.Append(LINKFLAGS='/incremental:no')\r
\r
vars = Variables()\r
vars.Add(BoolVariable("nvdaHelperDebug", "If true assertions are enabled, debug libraries are used, debug symbols are produced, and no optimization will occure", False))\r
+vars.Add(EnumVariable('nvdaHelperLogLevel','The level of logging you wish to see, lower is more verbose','15',allowed_values=[str(x) for x in xrange(60)]))\r
\r
#Build nvdaHelper for needed architectures\r
for arch in env['targetArchitectures']: \r
lambda key, val, env: not val or PathVariable.PathIsFile(key, val, env)))\r
vars.Add(PathVariable("outputDir", "The directory where the final built archives and such will be placed", "output",PathVariable.PathIsDirCreate))\r
vars.Add(ListVariable('targetArchitectures','Which architectures should NVDA support?','all',['x86','x86_64']))\r
-vars.Add(EnumVariable('logLevel','The level of logging you wish to see, lower is more verbose','15',allowed_values=[str(x) for x in xrange(60)]))\r
\r
#Check for any unknown variables\r
unknown=vars.UnknownVariables().keys()\r