From d6b463450f7894eeeffb8ebf52eb88714ccbaaeb Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Mon, 21 Feb 2022 18:20:21 +0530 Subject: Updated MSYS and MinGW for Verilator support --- Windows/nghdl-setup-script.nsi | 38 +++++++++++++++++++++----------------- Windows/sources/MSYS.7z | Bin 8449807 -> 16957136 bytes Windows/sources/mingw64.7z | Bin 27332061 -> 63598866 bytes 3 files changed, 21 insertions(+), 17 deletions(-) (limited to 'Windows') diff --git a/Windows/nghdl-setup-script.nsi b/Windows/nghdl-setup-script.nsi index 53538bf..f9e4c57 100644 --- a/Windows/nghdl-setup-script.nsi +++ b/Windows/nghdl-setup-script.nsi @@ -95,33 +95,37 @@ Section "nghdl-src" Delete "$EXEDIR\nghdl-src.7z" SectionEnd -Section "nghdl-mingw" +Section "msys2" SetOutPath $INSTDIR - Nsis7z::ExtractWithDetails "$EXEDIR\mingw64.7z" "Extracting MinGW %s..." + Nsis7z::ExtractWithDetails "$EXEDIR\MSYS.7z" "Extracting MSYS2 %s..." EnVar::SetHKLM - EnVar::AddValue "Path" "$INSTDIR\mingw64\bin" + EnVar::AddValue "Path" "$INSTDIR\MSYS\usr\bin" Pop $0 DetailPrint "EnVar::AddValue returned=|$0|" - Delete "$EXEDIR\mingw64.7z" + Delete "$EXEDIR\MSYS.7z" SectionEnd -Section "nghdl-msys" - SetOutPath $INSTDIR\mingw64 - Nsis7z::ExtractWithDetails "$EXEDIR\MSYS.7z" "Extracting MSYS %s..." +Section "mingw64" + SetOutPath $INSTDIR\MSYS + Nsis7z::ExtractWithDetails "$EXEDIR\mingw64.7z" "Extracting MinGW %s..." EnVar::SetHKLM - EnVar::AddValue "Path" "$INSTDIR\mingw64\msys\bin" + EnVar::AddValue "Path" "$INSTDIR\MSYS\mingw64\bin" Pop $0 DetailPrint "EnVar::AddValue returned=|$0|" - Delete "$EXEDIR\MSYS.7z" + Delete "$EXEDIR\mingw64.7z" SectionEnd -Section "nghdl-GHDL" - SetOutPath $INSTDIR\mingw64 +Section "ghdl" + SetOutPath $INSTDIR Nsis7z::ExtractWithDetails "$EXEDIR\ghdl.7z" "Extracting GHDL %s..." - EnVar::SetHKLM - EnVar::AddValue "Path" "$INSTDIR\mingw64\GHDL\bin" - Pop $0 - DetailPrint "EnVar::AddValue returned=|$0|" + ;EnVar::SetHKLM + ;EnVar::AddValue "Path" "$INSTDIR\mingw64\GHDL\bin" + ;Pop $0 + ;DetailPrint "EnVar::AddValue returned=|$0|" + CopyFiles "$INSTDIR\GHDL\bin\*" "$INSTDIR\MSYS\mingw64\bin\" + CopyFiles "$INSTDIR\GHDL\include\*" "$INSTDIR\MSYS\mingw64\include\" + CopyFiles "$INSTDIR\GHDL\lib\*" "$INSTDIR\MSYS\mingw64\lib\" + RMDir /r "$INSTDIR\GHDL" Delete "$EXEDIR\ghdl.7z" SectionEnd @@ -141,7 +145,7 @@ 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;" + StrCpy $R0 "$R0;$INSTDIR\eSim\nghdl\src;$INSTDIR\MSYS\mingw64\bin;$INSTDIR\MSYS\usr\bin;" System::Call 'Kernel32::SetEnvironmentVariable(t, t) i("PATH", R0).r0' SectionEnd @@ -152,7 +156,7 @@ Section "nghdl-installNgspice" ;CopyFiles $INSTDIR\eSim\nghdl\src\outitf.c $INSTDIR\ngspice-nghdl\src\frontend - CopyFiles $INSTDIR\mingw64\x86_64-w64-mingw32\lib\libws2_32.a $INSTDIR\eSim\nghdl\src\ghdlserver + CopyFiles "$INSTDIR\MSYS\mingw64\x86_64-w64-mingw32\lib\libws2_32.a" "$INSTDIR\eSim\nghdl\src\ghdlserver" SetOutPath $INSTDIR\ngspice-nghdl CreateDirectory $INSTDIR\ngspice-nghdl\release diff --git a/Windows/sources/MSYS.7z b/Windows/sources/MSYS.7z index c113d5f..cdbe940 100644 Binary files a/Windows/sources/MSYS.7z and b/Windows/sources/MSYS.7z differ diff --git a/Windows/sources/mingw64.7z b/Windows/sources/mingw64.7z index 855f693..0ffca41 100644 Binary files a/Windows/sources/mingw64.7z and b/Windows/sources/mingw64.7z differ -- cgit