rem: var bGlobalEnvar = wizard.FindSymbol('LOCATION_ENVAR'); 
add: var bGlobalEnvar = wizard.FindSymbol('LOCATION_ENVVAR'); 
context: function AddConfig(proj, strProjectName){	try	{		var bSamplesFolder = wizard.FindSymbol('LOCATION_SAMPLES');		var bOgrenewLevelFolder = wizard.FindSymbol('LOCATION_OGRENEW');		var bOtherFolder = wizard.FindSymbol('LOCATION_OTHER');		var bGlobalEnvar = wizard.FindSymbol('LOCATION_ENVAR');		var bCommonFramework = wizard.FindSymbol('FRAMEWORK_YES');		var bPostbuildCopy = wizard.FindSymbol('POSTBUILD_COPY');		var sOgreFolder = wizard.FindSymbol('OGRE_FOLDER');		var bUseCEGUI = wizard.FindSymbol('CEGUI_YES');		var strCommonDir = '';		if(bSamplesFolder)			strCommonDir = '..\\..\\Common';		if(bOgrenewLevelFolder)			strCommonDir = '..\\..\\ogrenew\\samples\\common';		if(bOtherFolder)			strCommonDir = sOgreFolder + '\\samples\\common';		if(bGlobalEnvar)			strCommonDir = '$OGRE_HOME' + '\\samples\\common';					var strOgreMainDir = '';		if(bSamplesFolder)			strOgreMainDir = '..\\..\\..\\OgreMain';		if(bOgrenewLevelFolder)			strOgreMainDir = '..\\..\\ogrenew\\OgreMain';		if(bOtherFolder)			strOgreMainDir = sOgreFolder + '\\OgreMain';		if(bGlobalEnvar)			strOgreMainDir = '$OGRE_HOME' + '\\OgreMain';		var strDependenciesDir = '';		if(bSamplesFolder)			strDependenciesDir = '..\\..\\..\\Dependencies';		if(bOgrenewLevelFolder)			strDependenciesDir = '..\\..\\ogrenew\\Dependencies';		if(bOtherFolder)			strDependenciesDir = sOgreFolder + '\\Dependencies';		if(bGlobalEnvar)			strDependenciesDir = '$OGRE_HOME' + '\\Dependencies';		var strCEGUIRendererDir = '';		if(bSamplesFolder)			strCEGUIRendererDir = '..\\..\\Common\\CEGUIRenderer';		if(bOgrenewLevelFolder)			strCEGUIRendererDir = '..\\..\\ogrenew\\samples\\Common\\CEGUIRenderer';		if(bOtherFolder)			strCEGUIRendererDir = sOgreFolder + '\\samples\\Common\\CEGUIRenderer';		if(bGlobalEnvar)			strCEGUIRendererDir = '$OGRE_HOME' + '\\samples\\Common\\CEGUIRenderer';//DEBUG//////////////////////////////////////////////////////		var config = proj.Object.Configurations('Debug');		config.IntermediateDirectory = '..\\obj\\$(ConfigurationName)';		config.OutputDirectory = '..\\bin\\$(ConfigurationName)';		config.CharacterSet = charSet.charSetMBCS;		var debugSettings = config.DebugSettings;		debugSettings.WorkingDirectory = strCommonDir + "\\Bin\\$(ConfigurationName)";		debugSettings.Command = strCommonDir + "\\Bin\\$(ConfigurationName)\\$(ProjectName).exe";		var CLTool = config.Tools('VCCLCompilerTool');		CLTool.RuntimeLibrary = rtMultiThreadedDebugDLL;		CLTool.MinimalRebuild = true;		CLTool.DebugInformationFormat = debugEditAndContinue;		CLTool.BasicRuntimeChecks = runtimeBasicCheckAll;		CLTool.Optimization = optimizeDisabled;		CLTool.ExceptionHandling = true;		CLTool.Detect64BitPortabilityProblems = true;		CLTool.EnableFunctionLevelLinking = true;		CLTool.MinimalRebuild = true;		CLTool.ImproveFloatingPointConsistency = true;				CLTool.WarningLevel = warningLevelOption.warningLevel_3;		CLTool.PreprocessorDefinitions = "WIN32;_DEBUG;_WINDOWS";//		if(wizard.FindSymbol("PRE_COMPILED_HEADER"))//			CLTool.UsePrecompiledHeader = pchGenerateAuto;		if (wizard.FindSymbol("EMPTY_PROJECT"))			CLTool.UsePrecompiledHeader = pchNone;				var strAdditionalIncludeDirectories = '';		if(bCommonFramework)		{			strAdditionalIncludeDirectories = "..\\include;" + strCommonDir + "\\include;" + strOgreMainDir + "\\include";		}		else		{			strAdditionalIncludeDirectories = "..\\include;" + strOgreMainDir + "\\include";		}				if(bUseCEGUI)			strAdditionalIncludeDirectories = strAdditionalIncludeDirectories + ";" + strDependenciesDir + "\\include\\CEGUI" + ";" + strCEGUIRendererDir + "\\include;" + strDependenciesDir + "\\include";		CLTool.AdditionalIncludeDirectories = strAdditionalIncludeDirectories;				var LinkTool = config.Tools('VCLinkerTool');		LinkTool.GenerateDebugInformation = true;		LinkTool.ProgramDatabaseFile = "$(OutDir)/" + strProjectName + ".pdb";		LinkTool.LinkIncremental = linkIncrementalType.linkIncrementalYes;		LinkTool.OptimizeForWindows98 = optWin98Type.optWin98No;		LinkTool.SubSystem = subSystemOption.subSystemWindows;		LinkTool.TargetMachine = machineTypeOption.machineX86;		var strAdditionalLibraryDirectories = '';		var strAdditionalDependencies = '';				strAdditionalLibraryDirectories = strOgreMainDir + "\\lib\\$(ConfigurationName)";		strAdditionalDependencies = "OgreMain_d.lib";				if(bUseCEGUI)		{			strAdditionalLibraryDirectories = strAdditionalLibraryDirectories + ";" + strDependenciesDir + "\\lib\\$(ConfigurationName)";			strAdditionalLibraryDirectories = strAdditionalLibraryDirectories + ";" + strCEGUIRendererDir + "\\lib";			strAdditionalDependencies = strAdditionalDependencies + " CEGUIBase_d.lib OgreGUIRenderer_d.lib";		}						LinkTool.AdditionalLibraryDirectories = strAdditionalLibraryDirectories;		LinkTool.AdditionalDependencies = strAdditionalDependencies;				if(bPostbuildCopy)		{			var PostBuildTool = config.Tools("VCPostBuildEventTool");			PostBuildTool.Description = "Copying exe to samples bin directory ...";			PostBuildTool.CommandLine = "copy $(OutDir)\\$(TargetFileName) " + strCommonDir + "\\Bin\\$(ConfigurationName)";		}//RELEASE//////////////////////////////////////////////////////		config = proj.Object.Configurations('Release');		config.IntermediateDirectory = '..\\obj\\$(ConfigurationName)';		config.OutputDirectory = '..\\bin\\$(ConfigurationName)';		config.CharacterSet = charSet.charSetMBCS;		var CLTool = config.Tools('VCCLCompilerTool');		CLTool.RuntimeLibrary = rtMultiThreadedDLL;		CLTool.ExceptionHandling = true;		CLTool.DebugInformationFormat = debugEnabled;		CLTool.WarningLevel = warningLevelOption.warningLevel_3;		CLTool.ImproveFloatingPointConsistency = true;				CLTool.Detect64BitPortabilityProblems = true;		CLTool.PreprocessorDefinitions = "WIN32;NDEBUG;_WINDOWS";		CLTool.EnableFunctionLevelLinking = true;		CLTool.MinimalRebuild = true;		CLTool.FavorSizeOrSpeed = favorSizeOrSpeedOption.favorSpeed;		CLTool.GlobalOptimizations = true;		CLTool.InlineFunctionExpansion = inlineExpansionOption.expandOnlyInline;		CLTool.Optimization = optimizeOption.optimizeMaxSpeed;		CLTool.OmitFramePointers = true;		CLTool.OptimizeForProcessor = ProcessorOptimizeOption.procOptimizePentiumProAndAbove;		CLTool.OptimizeForWindowsApplication = true;		CLTool.StringPooling = true;//		if(wizard.FindSymbol("PRE_COMPILED_HEADER"))//			CLTool.UsePrecompiledHeader = pchGenerateAuto;		if (wizard.FindSymbol("EMPTY_PROJECT"))			CLTool.UsePrecompiledHeader = pchNone;		var strAdditionalIncludeDirectories = '';		if(bCommonFramework)		{			strAdditionalIncludeDirectories = "..\\include;" + strCommonDir + "\\include;" + strOgreMainDir +"\\include";		}		else		{			strAdditionalIncludeDirectories = "..\\include;" + strOgreMainDir + "\\include";		}				if(bUseCEGUI)			strAdditionalIncludeDirectories = strAdditionalIncludeDirectories + ";" + strDependenciesDir + "\\include\\CEGUI" + ";" + strCEGUIRendererDir + "\\include;" + strDependenciesDir + "\\include";				CLTool.AdditionalIncludeDirectories = strAdditionalIncludeDirectories;				var LinkTool = config.Tools('VCLinkerTool');		LinkTool.LinkIncremental = linkIncrementalType.linkIncrementalNo;		LinkTool.OptimizeForWindows98 = optWin98Type.optWin98No;		LinkTool.SubSystem = subSystemOption.subSystemWindows;		LinkTool.TargetMachine = machineTypeOption.machineX86;		LinkTool.EnableCOMDATFolding = optFoldingType.optFolding;		LinkTool.OptimizeReferences = optRefType.optReferences;		var strAdditionalLibraryDirectories = '';		strAdditionalLibraryDirectories = strOgreMainDir + "\\lib\\$(ConfigurationName)";				var strAdditionalDependencies = '';		strAdditionalDependencies = "OgreMain.lib";				if(bUseCEGUI)		{			strAdditionalLibraryDirectories = strAdditionalLibraryDirectories + ";" + strDependenciesDir + "\\lib\\$(ConfigurationName)";			strAdditionalLibraryDirectories = strAdditionalLibraryDirectories + ";" + strCEGUIRendererDir + "\\lib";			strAdditionalDependencies = strAdditionalDependencies + " CEGUIBase.lib OgreGUIRenderer.lib";		}				LinkTool.AdditionalLibraryDirectories = strAdditionalLibraryDirectories;		LinkTool.AdditionalDependencies = strAdditionalDependencies;				if(bPostbuildCopy)		{			var PostBuildTool = config.Tools("VCPostBuildEventTool");			PostBuildTool.Description = "Copying exe to samples bin directory ...";			PostBuildTool.CommandLine = "copy $(OutDir)\\$(TargetFileName) " + strCommonDir + "\\Bin\\$(ConfigurationName)";		}	}	catch(e)	{		throw e;	}}
meta: 10348	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10348/250cb854ad64766f21ea311ca96e3ba891fd712a/default.js/buggy/trunk/tools/ogrewizard71/Files/Scripts/1033/default.js