summaryrefslogtreecommitdiff
path: root/Windows/nghdl-setup-script.nsi
diff options
context:
space:
mode:
authorrahulp132022-02-21 18:15:07 +0530
committerrahulp132022-02-21 18:15:07 +0530
commitbec95e08166a78cc1497ceabfdcb5bf85d0997d5 (patch)
tree96d8dae17155398f01ed526b84bb7fa51087f313 /Windows/nghdl-setup-script.nsi
parent80a8b40d2f1df52b2e1bf3b2b6c8c8c21f31e322 (diff)
downloadnghdl-bec95e08166a78cc1497ceabfdcb5bf85d0997d5.tar.gz
nghdl-bec95e08166a78cc1497ceabfdcb5bf85d0997d5.tar.bz2
nghdl-bec95e08166a78cc1497ceabfdcb5bf85d0997d5.zip
Added Verilator executable and updated install script
Diffstat (limited to 'Windows/nghdl-setup-script.nsi')
-rw-r--r--Windows/nghdl-setup-script.nsi15
1 files changed, 15 insertions, 0 deletions
diff --git a/Windows/nghdl-setup-script.nsi b/Windows/nghdl-setup-script.nsi
index a9807af..53538bf 100644
--- a/Windows/nghdl-setup-script.nsi
+++ b/Windows/nghdl-setup-script.nsi
@@ -77,6 +77,7 @@ Section "nghdl-loadsource"
SetOutPath $EXEDIR
File "ghdl.7z"
+ File "verilator.7z"
File "mingw64.7z"
File "MSYS.7z"
File "nghdl-src.7z"
@@ -124,6 +125,20 @@ Section "nghdl-GHDL"
Delete "$EXEDIR\ghdl.7z"
SectionEnd
+Section "verilator"
+ SetOutPath $INSTDIR
+ Nsis7z::ExtractWithDetails "$EXEDIR\verilator.7z" "Extracting Verilator %s..."
+ CopyFiles "$INSTDIR\verilator\bin\*" "$INSTDIR\MSYS\mingw64\bin\"
+ CopyFiles "$INSTDIR\verilator\share\verilator\bin\*" "$INSTDIR\MSYS\mingw64\bin\"
+ CopyFiles "$INSTDIR\verilator\share\verilator\include\*" "$INSTDIR\MSYS\mingw64\include\"
+ CopyFiles "$INSTDIR\verilator\share\verilator\examples\*" "$INSTDIR\MSYS\mingw64\examples\"
+ CopyFiles "$INSTDIR\verilator\share\verilator\verilator-config.cmake" "$INSTDIR\MSYS\mingw64\"
+ CopyFiles "$INSTDIR\verilator\share\verilator\verilator-config-version.cmake" "$INSTDIR\MSYS\mingw64\"
+ CopyFiles "$INSTDIR\verilator\share\pkgconfig" "$INSTDIR\MSYS\mingw64\"
+ RMDir /r "$INSTDIR\verilator"
+ Delete "$EXEDIR\verilator.7z"
+SectionEnd
+
Section "envar-refresh"
ReadEnvStr $R0 "PATH"
StrCpy $R0 "$R0;$INSTDIR\eSim\nghdl\src;$INSTDIR\mingw64\bin;$INSTDIR\mingw64\msys\bin;$INSTDIR\mingw64\GHDL\bin;"