rem: LinkTool.AdditionalLibraryDirectories = "$(WXWIN)/lib/vc_dll;$(WXWIN)/additions/lib/vc_dll"; } else { LinkTool.AdditionalLibraryDirectories = "$(WXWIN)/lib/vc_lib;$(WXWIN)/additions/lib/vc_lib"; 
add: LinkTool.AdditionalLibraryDirectories = "$(WXWIN)/lib/vc_dll;$(WXADDITIONS)/lib/vc_dll"; } else { LinkTool.AdditionalLibraryDirectories = "$(WXWIN)/lib/vc_lib;$(WXADDITIONS)/lib/vc_lib"; 
context: function AddConfig(proj, strProjectName){	try	{		var useDLL = false;		if( wizard.FindSymbol('WX_USE_MONOLITHIC_DLL') || wizard.FindSymbol('WX_APPTYPE_DLL') || wizard.FindSymbol('WX_USE_DLL') )		{			useDLL = true;		}		var nCntr;		for(nCntr = 0; nCntr < 2; nCntr++)		{			// Check if it's Debug configuration			var bDebug = false;			if( nCntr == 0 )				bDebug = true;			// General settings			var config;			if(bDebug)			{ 				config = proj.Object.Configurations("Debug");				config.ATLMinimizesCRunTimeLibraryUsage = false;			}			else			{				config = proj.Object.Configurations("Release");				config.ATLMinimizesCRunTimeLibraryUsage = true;			}			config.IntermediateDirectory = "$(ConfigurationName)";			config.OutputDirectory = "$(ConfigurationName)";			if ( wizard.FindSymbol( 'WX_USE_UNICODE' ) )			{				config.CharacterSet = charSetUnicode;			}			else			{				config.CharacterSet = charSetMBCS;			}						if(wizard.FindSymbol('WX_APPTYPE_DLL'))			{				config.ConfigurationType  = typeDynamicLibrary;			}			// Compiler settings			var CLTool = config.Tools('VCCLCompilerTool');			CLTool.RuntimeTypeInfo = true;			CLTool.TreatWChar_tAsBuiltInType = false;			CLTool.Detect64BitPortabilityProblems = true;			CLTool.WarningLevel = warningLevel_3;			CLTool.AdditionalIncludeDirectories = "$(WXWIN)/include;$(WXWIN)/additions/include;$(WXWIN)/contrib/include"						var forcedIncludes = "$(WXWIN)/include/wx/wxprec.h;"			if(wizard.FindSymbol('WX_USE_MONOLITHIC_DLL'))			{				forcedIncludes += "$(WXWIN)/lib/vc_dll/msw/wx/setup.h";			}			else			{				forcedIncludes += " $(WXWIN)/include/msvc/wx/setup.h";			}			CLTool.ForcedIncludeFiles = forcedIncludes;						CLTool.PrecompiledHeaderThrough = "$(WXWIN)/include/wx/wxprec.h";			CLTool.PrecompiledHeaderFile = "$(IntDir)/$(TargetName).pch";			CLTool.UsePrecompiledHeader = pchCreateUsingSpecific;						//CLTool.ExceptionHandling = true;			if(bDebug)			{				if( useDLL )				{					CLTool.RuntimeLibrary = rtMultiThreadedDebugDLL;				}				else				{					CLTool.RuntimeLibrary = rtMultiThreadedDebug;				}				CLTool.MinimalRebuild = true;				CLTool.DebugInformationFormat = debugEditAndContinue;				CLTool.BasicRuntimeChecks = runtimeBasicCheckAll;				CLTool.Optimization = optimizeDisabled;			}			else			{				if( useDLL )				{					CLTool.RuntimeLibrary = rtMultiThreadedDLL;				}				else				{					CLTool.RuntimeLibrary = rtMultiThreaded;				}				CLTool.DebugInformationFormat = debugDisabled;			}			var strDefines = GetPlatformDefine(config);			strDefines += "STRICT;__WXMSW__;__WX__;";			if(bDebug)				strDefines += "_DEBUG;__WXDEBUG;";			else				strDefines += "NDEBUG;";							if(wizard.FindSymbol('WX_APPTYPE_CONSOLE'))			{				strDefines += "_CONSOLE;wxUSE_GUI=0;";			}			else			{				strDefines += "_WINDOWS;";			}			if( useDLL )			{				strDefines += "WXUSINGDLL;";			}			strDefines += "_CRT_SECURE_NO_DEPRECATE;"			CLTool.PreprocessorDefinitions = strDefines;				// Linker settings			var LinkTool = config.Tools('VCLinkerTool');			if(wizard.FindSymbol('WX_APPTYPE_CONSOLE'))			{				LinkTool.SubSystem = subSystemConsole;			}			else			{				LinkTool.SubSystem = subSystemWindows;			}			LinkTool.TargetMachine = machineX86;						var additionalDepends = "";			if(bDebug)			{				if(wizard.FindSymbol('WX_USE_MONOLITHIC_DLL'))				{				    if ( wizard.FindSymbol( 'WX_USE_UNICODE' ) )				    {						additionalDepends += "wxmsw27ud.lib ";					}					else					{					    additionalDepends += "wxmsw27d.lib ";					}				}				LinkTool.LinkIncremental = linkIncrementalYes;				LinkTool.GenerateDebugInformation = true;			}			else			{				if(wizard.FindSymbol('WX_USE_MONOLITHIC_DLL'))				{					if ( wizard.FindSymbol( 'WX_USE_UNICODE' ) )				    {						additionalDepends += "wxmsw27u.lib ";					}					else					{					    additionalDepends += "wxmsw27.lib ";					}				}				LinkTool.LinkIncremental = linkIncrementalNo;			}			additionalDepends += "comctl32.lib rpcrt4.lib winmm.lib wsock32.lib";						if(wizard.FindSymbol('WX_USE_VERSION_RC'))			{				additionalDepends += " version.lib"			}						LinkTool.AdditionalDependencies = additionalDepends;						if(useDLL)			{				LinkTool.AdditionalLibraryDirectories = "$(WXWIN)/lib/vc_dll;$(WXWIN)/additions/lib/vc_dll";			}			else			{				LinkTool.AdditionalLibraryDirectories = "$(WXWIN)/lib/vc_lib;$(WXWIN)/additions/lib/vc_lib";			}						// As of VC8, manifests are used with executables to inform the operating system of its DLL dependencies			// This covers ATL, MFC, Standard C++, and CRT libraries, see the MSDN topic "Visual C++ Libraries as Shared Side-by-Side Assemblies" for details			// But, this manifest is unnecessary for statically linked programs			if(!useDLL)			{				LinkTool.GenerateManifest = false;								var ManifestTool = config.Tools('VCManifestTool');				ManifestTool.EmbedManifest = false;						}						// Resource settings			var RCTool = config.Tools("VCResourceCompilerTool");			RCTool.Culture = rcEnglishUS;			RCTool.AdditionalIncludeDirectories = "$(IntDir); $(WXWIN)/include";			if(bDebug)				RCTool.PreprocessorDefinitions = "_DEBUG";			else				RCTool.PreprocessorDefinitions = "NDEBUG";						if(wizard.FindSymbol('WX_USE_AUTOBUILDNUMBER'))			{				if(!bDebug)				{					var PreBuildTool = config.Tools("VCPreBuildEventTool");					PreBuildTool.Description = "Incrementing Build Number . . .";					if ( wizard.FindSymbol('WX_USE_VERSION_RC'))					{						var name = wizard.FindSymbol('PROJECT_NAME');						PreBuildTool.CommandLine = "AutoBuildNumber.exe \"$(ProjectDir)/" + name + ".rc\""					}					else					{						PreBuildTool.CommandLine = "AutoBuildNumber.exe \"$(ProjectDir)/version.h\" \"#define APP_VERSION_NUMBER\""					}				}			}		}	}	catch(e)	{		throw e;	}}
meta: 5447	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5447/7009bcf709e0d2c696a4667d6f9c0611360ee4cf/default.js/clean/wxVC/files/vcWizard/vc8/VCWizards/AppWiz/wxWidgets/Scripts/1033/default.js