rem: strAdditionalIncludeDirectories = "..\\include;" + strOgreMainDir + "\\include";  if(bUseCEGUI) strAdditionalIncludeDirectories = strAdditionalIncludeDirectories + ";" + strOgreMainDir + "\\include\\CEGUI" + ";" + strCEGUIRendererDir; 
add: if(bCommonFramework) { strAdditionalIncludeDirectories = "..\\include;" + strCommonDir + "\\include;" + strOgreMainDir + "\\include"; } else { strAdditionalIncludeDirectories = "..\\include;" + strOgreMainDir + "\\include"; }  if(bUseCEGUI) strAdditionalIncludeDirectories = strAdditionalIncludeDirectories + ";" + strDependenciesDir + "\\include\\CEGUI" + ";" + strCEGUIRendererDir + "\\include;" + strDependenciesDir + "\\include"; 
context: function AddConfig(proj, strProjectName){	try	{		var bCommonFramework = wizard.FindSymbol('FRAMEWORK_YES');		var bPostbuildCopy = wizard.FindSymbol('POSTBUILD_COPY');		var bUseCEGUI = wizard.FindSymbol('CEGUI_YES');		var strOgreMainDir = '';		strOgreMainDir = '$(OGRE_HOME)';		var strCEGUIRendererDir = '';		strCEGUIRendererDir = '$(OGRE_HOME)' + '\\samples\\include';//DEBUG//////////////////////////////////////////////////////		var config = proj.Object.Configurations('Debug');		config.IntermediateDirectory = '..\\obj\\$(ConfigurationName)';		config.OutputDirectory = '..\\bin\\$(ConfigurationName)';		config.CharacterSet = charSet.charSetMBCS;		var debugSettings = config.DebugSettings;		if(bPostbuildCopy)		{			debugSettings.WorkingDirectory = strOgreMainDir + "\\Bin\\$(ConfigurationName)";			debugSettings.Command = strOgreMainDir + "\\Bin\\$(ConfigurationName)\\$(ProjectName).exe";		}		else		{			debugSettings.WorkingDirectory = "..\\Bin\\$(ConfigurationName)";			debugSettings.Command = "..\\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 = '';		strAdditionalIncludeDirectories = "..\\include;" + strOgreMainDir + "\\include";				if(bUseCEGUI)			strAdditionalIncludeDirectories = strAdditionalIncludeDirectories + ";" + strOgreMainDir + "\\include\\CEGUI" + ";" + strCEGUIRendererDir;		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 = '';		//\\$(ConfigurationName)		strAdditionalLibraryDirectories = strOgreMainDir + "\\lib";		strAdditionalDependencies = "OgreMain_d.lib";				if(bUseCEGUI)		{			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)" "' + strOgreMainDir + '\\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 = '';		strAdditionalIncludeDirectories = "..\\include;" + strOgreMainDir + "\\include";				if(bUseCEGUI)			strAdditionalIncludeDirectories = strAdditionalIncludeDirectories + ";" + strOgreMainDir + "\\include\\CEGUI" + ";" + strCEGUIRendererDir;				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;		//\\$(ConfigurationName)		var strAdditionalLibraryDirectories = '';		strAdditionalLibraryDirectories = strOgreMainDir + "\\lib";				var strAdditionalDependencies = '';		strAdditionalDependencies = "OgreMain.lib";				if(bUseCEGUI)		{			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)" "' + strOgreMainDir + '\\Bin\\$(ConfigurationName)"';		}	}	catch(e)	{		throw e;	}}
meta: 10348	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10348/71d41577fdfb7b2aba589612e44b216d9941f5d1/default.js/clean/trunk/tools/ogrewizard71/Files/Scripts/1033/default.js