summaryrefslogtreecommitdiff
path: root/Windows
diff options
context:
space:
mode:
Diffstat (limited to 'Windows')
-rw-r--r--Windows/MinGW+MSYS.md27
-rw-r--r--Windows/README.md5
-rw-r--r--Windows/sources/ngspice-nghdl.7zbin3725876 -> 0 bytes
3 files changed, 30 insertions, 2 deletions
diff --git a/Windows/MinGW+MSYS.md b/Windows/MinGW+MSYS.md
new file mode 100644
index 0000000..d2f682a
--- /dev/null
+++ b/Windows/MinGW+MSYS.md
@@ -0,0 +1,27 @@
+# MinGW + MSYS - Build environment for Ngspice on Windows
+> MSYS provides a Linux like shell and all the utilities required during the configure-make-make install process of Ngspice on Windows.
+
+> MinGW provides the GCC compiler required to build the Ngspice executable.
+
+[Download MinGW (unmodified)](https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z)\
+[Download MSYS (unmodified)](https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/MSYS-20111123.zip/download)
+
+**Reduced versions of MinGW and MSYS for NGHDL can be found in this repository under `sources/` folder.**
+
+## Usage of MinGW + MSYS
+1. Add `/mingw64/bin/` and `/mingw64/msys/bin` to the path so that all the utilities are able to find each other.
+2. Open Windows command prompt at the location you want to use `MinGW + MSYS`.
+3. Execute the command to launch `bash` provided by MSYS at this location.
+ ```sh
+ > pathtoMSYS/bin/bash.exe
+ ```
+ 4. This comand launches bash in the CMD window which can then be used as `BASH shell`, with commands similar to Linux.
+
+
+## Reduction of MinGW + MSYS
+> Originally MinGW and MSYS are provided for a large variety of development scenarios which are not required by NGHDL, causing size overheads in the final distribution.
+
+1. To remove unrequired parts of MSYS and MinGW, a trial and error based approach is to be followed.
+
+2. To start, both utilities should be reduced to the bare minimum required components which can be noted by studying the Ngspice configure file `(/ngspice/configure)`.
+The rest of the utilities are to added by accessing the errors in the logs provided during the configure-make-make install process.
diff --git a/Windows/README.md b/Windows/README.md
index 6f5aae9..f63e717 100644
--- a/Windows/README.md
+++ b/Windows/README.md
@@ -29,7 +29,7 @@ It contains all the documenation for making NGHDL executable (using PyInstaller)
6. Install all Python dependencies for NGHDL within the virtual environment as:
- - Install PyInstaller, tornado, SetupTools through pip :
+ - Install PyInstaller, SetupTools through pip :
$ pip install pyinstaller
$ pip install --upgrade 'setuptools<45.0.0'
@@ -98,9 +98,10 @@ It contains all the documenation for making NGHDL executable (using PyInstaller)
(these can be obtained under *sources/* folder in the repository )
- ghdl.7z
- MSYS.7z
-- ngspice-nghdl.7z
- mingw64.7z
+- ngspice-nghdl.7z ( this file can be obtained by decompressing `ngspice-nghdl.tar.xz` file present at `master branch` of this repository and recompressing using 7z tool)
+
8. Place the script `installnghdl.nsi` at the eSim installer location.
9. Follow the rest of the instructions for packging eSim [https://github.com/FOSSEE/eSim/tree/installers/Windows] and compile the NSI script (`esim-setup-script.nsi` file). Now only use the generated installer for distribution.
diff --git a/Windows/sources/ngspice-nghdl.7z b/Windows/sources/ngspice-nghdl.7z
deleted file mode 100644
index aaee3be..0000000
--- a/Windows/sources/ngspice-nghdl.7z
+++ /dev/null
Binary files differ