VC console app
This commit is contained in:
parent
7b1f733190
commit
06dd0263c0
|
|
@ -1,6 +1,9 @@
|
||||||
2009-11-15 Holger Vogt
|
2009-11-16 Holger Vogt
|
||||||
* com_sysinfo.c: line 355 changed, allow mingw console compilation
|
* com_sysinfo.c: line 355 changed, allow mingw console compilation
|
||||||
runcoms2.c: cosmetics
|
runcoms2.c: cosmetics
|
||||||
|
cpitf.c, how-to-ngspice-vstudio.txt, visualc/include/config.h,
|
||||||
|
vngspice.sln, vngspice.vcproj: add console app to configuration
|
||||||
|
manager of Visual Studio
|
||||||
|
|
||||||
2009-11-15 Holger Vogt
|
2009-11-15 Holger Vogt
|
||||||
* main.c, src/include/compatmode.h: compatibility mode flag for HSPICE and SPICE3
|
* main.c, src/include/compatmode.h: compatibility mode flag for HSPICE and SPICE3
|
||||||
|
|
|
||||||
|
|
@ -249,7 +249,7 @@ ft_cpinit(void)
|
||||||
cp_interactive = TRUE;
|
cp_interactive = TRUE;
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
break;
|
break;
|
||||||
#ifdef HAS_WINDOWS
|
#if defined (HAS_WINDOWS) || defined (__MINGW32__) || defined (_MSC_VER)
|
||||||
/* search in local directory where ngspice.exe resides */
|
/* search in local directory where ngspice.exe resides */
|
||||||
} else if ((fp = fopen("./spinit", "r"))) {
|
} else if ((fp = fopen("./spinit", "r"))) {
|
||||||
cp_interactive = FALSE;
|
cp_interactive = FALSE;
|
||||||
|
|
|
||||||
|
|
@ -82,4 +82,14 @@ C:\Spice\
|
||||||
spectrum
|
spectrum
|
||||||
spinit
|
spinit
|
||||||
|
|
||||||
|
If spinit is not found in the directory cited above,
|
||||||
|
vngspice.exe also searches for spinit in its own directory. If you give
|
||||||
|
a relative path for the codemodel directories in spinit, you may
|
||||||
|
determine your own directory tree.
|
||||||
|
|
||||||
|
If you want to generate a console ngspice (without GUI,
|
||||||
|
without graphics interface, but usable in batch mode (-b)),
|
||||||
|
then you have to do the following before compilation:
|
||||||
|
select console_debug or console_release from the configuration manager.
|
||||||
|
ngspice.exe will search for spinit in the directory tree shown above, or,
|
||||||
|
if not found, in its own directory.
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
/* config.h. Adoted from config which was generated by configure using MSYS and MINGW. */
|
/* config.h. Adoted from config which was generated by configure using MSYS and MINGW. */
|
||||||
/* Special consideration have been given to MS Visual Studio 2008 nrequirements. */
|
/* Special consideration have been given to MS Visual Studio 2008 requirements. */
|
||||||
/* HVo Dec. 2008*/
|
/* HVo Dec. 2008, Nov. 2009 */
|
||||||
|
|
||||||
/* Support for Verilog-A(MS) models */
|
/* Support for Verilog-A(MS) models */
|
||||||
/* #undef ADMS */
|
/* #undef ADMS */
|
||||||
|
|
@ -49,8 +49,11 @@
|
||||||
/* Define if you want to debug frontend */
|
/* Define if you want to debug frontend */
|
||||||
/* #undef FTEDEBUG */
|
/* #undef FTEDEBUG */
|
||||||
|
|
||||||
/* define to specify MS Windows executable */
|
/* CONSOLE flag set in configurations console_debug and console_release */
|
||||||
|
#ifndef CONSOLE
|
||||||
|
/* define to specify MS Windows GUI executable */
|
||||||
#define HAS_WINDOWS 1
|
#define HAS_WINDOWS 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Define to 1 if you have the `access' function. */
|
/* Define to 1 if you have the `access' function. */
|
||||||
#define HAVE_ACCESS 1
|
#define HAVE_ACCESS 1
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,16 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vngspice", "vngspice.vcproj
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
console_debug|Win32 = console_debug|Win32
|
||||||
|
console_release|Win32 = console_release|Win32
|
||||||
Debug|Win32 = Debug|Win32
|
Debug|Win32 = Debug|Win32
|
||||||
Release|Win32 = Release|Win32
|
Release|Win32 = Release|Win32
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
|
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.console_debug|Win32.ActiveCfg = console_debug|Win32
|
||||||
|
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.console_debug|Win32.Build.0 = console_debug|Win32
|
||||||
|
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.console_release|Win32.ActiveCfg = console_release|Win32
|
||||||
|
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.console_release|Win32.Build.0 = console_release|Win32
|
||||||
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.Debug|Win32.ActiveCfg = Debug|Win32
|
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.Debug|Win32.ActiveCfg = Debug|Win32
|
||||||
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.Debug|Win32.Build.0 = Debug|Win32
|
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.Debug|Win32.Build.0 = Debug|Win32
|
||||||
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.Release|Win32.ActiveCfg = Release|Win32
|
{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}.Release|Win32.ActiveCfg = Release|Win32
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,189 @@
|
||||||
Name="VCPostBuildEventTool"
|
Name="VCPostBuildEventTool"
|
||||||
/>
|
/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="console_debug|Win32"
|
||||||
|
OutputDirectory="$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
CommandLine=""
|
||||||
|
ExcludedFromBuild="false"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="Custom defined Build: Recompile conf.c with actual date"
|
||||||
|
CommandLine="del $(IntDir)\conf.obj
"
|
||||||
|
Outputs="$(IntDir)\conf.obj"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories=""$(ProjectDir)..\src\maths\poly";"$(ProjectDir)..\src\frontend";"$(ProjectDir)..\src\spicelib\devices";"$(ProjectDir)..\src\include";"$(ProjectDir)include""
|
||||||
|
PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;SIMULATOR;NGDEBUG;CONSOLE"
|
||||||
|
MinimalRebuild="true"
|
||||||
|
ExceptionHandling="0"
|
||||||
|
BasicRuntimeChecks="0"
|
||||||
|
RuntimeLibrary="1"
|
||||||
|
RuntimeTypeInfo="false"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="4"
|
||||||
|
Detect64BitPortabilityProblems="false"
|
||||||
|
DebugInformationFormat="4"
|
||||||
|
CompileAs="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies="psapi.lib"
|
||||||
|
OutputFile="$(OutDir)\bin\vngspice_dc.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
GenerateManifest="false"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
HeapReserveSize="0"
|
||||||
|
HeapCommitSize="0"
|
||||||
|
StackReserveSize="0"
|
||||||
|
StackCommitSize="0"
|
||||||
|
RandomizedBaseAddress="1"
|
||||||
|
DataExecutionPrevention="0"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="console_release|Win32"
|
||||||
|
OutputDirectory="$(ConfigurationName)"
|
||||||
|
IntermediateDirectory="$(ConfigurationName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
WholeProgramOptimization="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
Description="Custom defined Build: Recompile conf.c with actual date"
|
||||||
|
CommandLine="del $(IntDir)\conf.obj
"
|
||||||
|
Outputs="$(IntDir)\conf.obj"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
Optimization="2"
|
||||||
|
EnableIntrinsicFunctions="true"
|
||||||
|
FavorSizeOrSpeed="1"
|
||||||
|
WholeProgramOptimization="true"
|
||||||
|
AdditionalIncludeDirectories=""$(ProjectDir)..\src\maths\poly";"$(ProjectDir)..\src\frontend";"$(ProjectDir)..\src\spicelib\devices";"$(ProjectDir)..\src\include";"$(ProjectDir)include""
|
||||||
|
PreprocessorDefinitions="_CRT_SECURE_NO_DEPRECATE;SIMULATOR;CONSOLE"
|
||||||
|
MinimalRebuild="false"
|
||||||
|
ExceptionHandling="1"
|
||||||
|
BasicRuntimeChecks="0"
|
||||||
|
RuntimeLibrary="0"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
UsePrecompiledHeader="0"
|
||||||
|
WarningLevel="3"
|
||||||
|
Detect64BitPortabilityProblems="false"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
CompileAs="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
UseUnicodeResponseFiles="false"
|
||||||
|
AdditionalDependencies="psapi.lib"
|
||||||
|
OutputFile="$(OutDir)\bin\$(ProjectName)c.exe"
|
||||||
|
LinkIncremental="1"
|
||||||
|
GenerateDebugInformation="false"
|
||||||
|
SubSystem="1"
|
||||||
|
HeapReserveSize="0"
|
||||||
|
HeapCommitSize="0"
|
||||||
|
StackReserveSize="0"
|
||||||
|
StackCommitSize="0"
|
||||||
|
OptimizeReferences="2"
|
||||||
|
EnableCOMDATFolding="2"
|
||||||
|
LinkTimeCodeGeneration="1"
|
||||||
|
RandomizedBaseAddress="2"
|
||||||
|
DataExecutionPrevention="0"
|
||||||
|
TargetMachine="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
</Configurations>
|
</Configurations>
|
||||||
<References>
|
<References>
|
||||||
</References>
|
</References>
|
||||||
|
|
@ -1117,11 +1300,11 @@
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\frontend\plotting\grid.h"
|
RelativePath="..\src\include\grid.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\include\grid.h"
|
RelativePath="..\src\frontend\plotting\grid.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
|
|
@ -1229,11 +1412,11 @@
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\spicelib\parser\inp.h"
|
RelativePath="..\src\frontend\inp.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath="..\src\frontend\inp.h"
|
RelativePath="..\src\spicelib\parser\inp.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
<File
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue