ngspice.dll only for 64bit and make fftw3 usage dependent from availability of external library

This commit is contained in:
dwarning 2025-03-04 14:37:00 +01:00
parent 53d560968c
commit 5425beb53d
2 changed files with 52 additions and 57 deletions

View File

@ -0,0 +1,52 @@
@echo off
REM copy ngspice.dll, codemodels *.cm to Spice64
REM arguments to make-install-vngspice:
REM %1: path to ngspice.dll, %2: release/debug %3: fftw, %4: omp
if "%2" == "release" (
set dst=c:\Spice64_dll
set cmsrc=.\codemodels\x64\Release
)
if "%2" == "debug" (
set dst=c:\Spice64d_dll
set cmsrc=.\codemodels\x64\Debug
copy .\spinitd64 .\spinit
)
mkdir %dst%\dll-vs
mkdir %dst%\lib\lib-vs
mkdir %dst%\lib\ngspice
mkdir %dst%\include\ngspice
if "%3" == "omp" (
copy "c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.42.34433\debug_nonredist\x64\Microsoft.VC143.OpenMP.LLVM\libomp140.x86_64.dll" %dst%\dll-vs\
)
if "%4" == "omp" (
copy "c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.42.34433\debug_nonredist\x64\Microsoft.VC143.OpenMP.LLVM\libomp140.x86_64.dll" %dst%\dll-vs\
)
copy %cmsrc%\analog64.cm %dst%\lib\ngspice\analog.cm
copy %cmsrc%\digital64.cm %dst%\lib\ngspice\digital.cm
copy %cmsrc%\table64.cm %dst%\lib\ngspice\table.cm
copy %cmsrc%\xtraevt64.cm %dst%\lib\ngspice\xtraevt.cm
copy %cmsrc%\xtradev64.cm %dst%\lib\ngspice\xtradev.cm
copy %cmsrc%\spice2poly64.cm %dst%\lib\ngspice\spice2poly.cm
copy xspice\verilog\ivlng.dll %dst%\lib\ngspice\ivlng.dll
copy xspice\verilog\shim.vpi %dst%\lib\ngspice\ivlng.vpi
if "%3" == "fftw" goto copy-fftw
copy %1\ngspice.dll %dst%\dll-vs\
goto end
:copy-fftw
copy %1\ngspice.dll %dst%\dll-vs\
copy ..\..\fftw-3.3-dll64\libfftw3-3.dll %dst%\dll-vs\
:end
copy %1\ngspice.lib %dst%\lib\lib-vs\
copy %1\ngspice.exp %dst%\lib\lib-vs\
copy %1\..\..\..\src\include\ngspice\sharedspice.h %dst%\include\ngspice\
mkdir %dst%\share\ngspice\scripts
copy .\spinit_all %dst%\share\ngspice\scripts\spinit

View File

@ -1,57 +0,0 @@
@echo off
REM copy ngspice.exe, codemodels *.cm to C:\Spiced or Spice64d
REM arguments to make-install-vngspiced:
REM %1: path to ngspice.exe, %2: fftw
set dst=c:\Spice64d
set cmsrc=.\codemodels\x64\Debug
mkdir %dst%\bin
mkdir %dst%\lib\ngspice
if "%2" == "omp" (
copy "c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.42.34433\debug_nonredist\x64\Microsoft.VC143.OpenMP.LLVM\libomp140.x86_64.dll" %dst%\bin\
)
if "%3" == "omp" (
copy "c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.42.34433\debug_nonredist\x64\Microsoft.VC143.OpenMP.LLVM\libomp140.x86_64.dll" %dst%\bin\
)
copy %cmsrc%\analog64.cm %dst%\lib\ngspice\analog.cm
copy %cmsrc%\digital64.cm %dst%\lib\ngspice\digital.cm
copy %cmsrc%\table64.cm %dst%\lib\ngspice\table.cm
copy %cmsrc%\xtraevt64.cm %dst%\lib\ngspice\xtraevt.cm
copy %cmsrc%\xtradev64.cm %dst%\lib\ngspice\xtradev.cm
copy %cmsrc%\spice2poly64.cm %dst%\lib\ngspice\spice2poly.cm
copy xspice\verilog\ivlng.dll %dst%\lib\ngspice\ivlng.dll
copy xspice\verilog\shim.vpi %dst%\lib\ngspice\ivlng.vpi
if "%2" == "fftw" goto copy2-64
copy %1\ngspice.exe %dst%\bin\
copy .\spinitd64 .\spinit
goto end
:copy2-64
copy %1\ngspice.exe %dst%\bin\
copy ..\..\fftw-3.3-dll64\libfftw3-3.dll %dst%\bin\
:end
mkdir %dst%\share\ngspice\scripts\src\ngspice
copy .\spinit_all %dst%\share\ngspice\scripts\spinit
cd ..\src
copy ciderinit %dst%\share\ngspice\scripts
copy devaxis %dst%\share\ngspice\scripts
copy devload %dst%\share\ngspice\scripts
copy setplot %dst%\share\ngspice\scripts
copy spectrum %dst%\share\ngspice\scripts
copy xspice\verilog\vlnggen %dst%\share\ngspice\scripts
copy xspice\verilog\MSVC.CMD %dst%\share\ngspice\scripts
copy xspice\verilog\*.cpp %dst%\share\ngspice\scripts\src
copy include\ngspice\cosim.h %dst%\share\ngspice\scripts\src\ngspice
copy include\ngspice\miftypes.h %dst%\share\ngspice\scripts\src\ngspice
copy include\ngspice\cmtypes.h %dst%\share\ngspice\scripts\src\ngspice
copy xspice\verilog\coroutine*.h %dst%\share\ngspice\scripts\src\ngspice
copy xspice\vhdl\ghnggen %dst%\share\ngspice\scripts
copy xspice\vhdl\ghdl_shim.* %dst%\share\ngspice\scripts\src
copy xspice\vhdl\ghdl_vpi.c %dst%\share\ngspice\scripts\src