summaryrefslogtreecommitdiff
path: root/CodingReadme
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-18 15:17:33 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-18 15:17:33 +0200
commit85572b05e5359f28c1625b873dc14428f796a454 (patch)
tree95529c8015eebbc3ca5de66b923b534dcd063071 /CodingReadme
parentb5da3a60e101a26dbcbd6a8565343c281ba464f8 (diff)
Create vcxsrc in mxe build "make dist"
Diffstat (limited to 'CodingReadme')
-rw-r--r--CodingReadme46
1 files changed, 26 insertions, 20 deletions
diff --git a/CodingReadme b/CodingReadme
index 8bcbe612..0e3ff694 100644
--- a/CodingReadme
+++ b/CodingReadme
@@ -67,32 +67,27 @@ of "foobar.size()". (GetSize() is defined by kernel/yosys.h)
Use range-based for loops whenever applicable.
-Building in Visual Studio
-=========================
-1. Create an empty Visual C++ Win32 Console App project
- (recommended name: YosysVS)
-
-2. Close VS and launch "Git Bash" in the project directory
+Creating the Visual Studio Template Project
+===========================================
-3. Prepare sources
-
- git clone https://github.com/cliffordwolf/yosys.git yosys
- cd yosys
+1. Create an empty Visual C++ Win32 Console App project
- curl -O http://www.clifford.at/yosys/nogit/yosys-win32-<version>.zip
- unzip yosys-win32-<version>.zip
- unzip yosys-win32-<version>/genfiles.zip
+ Microsoft Visual Studio Express 2013 for Windows Desktop
+ Open New Project Wizard (File -> New Project..)
-4. Add files to VS project
+ Project Name: YosysVS
+ Solution Name: YosysVS
+ [X] Create directory for solution
+ [ ] Add to source control
- notepad vcxproj_files.txt
- notepad ../YosysVS/YosysVS.vcxproj
+ [X] Console applications
+ [X] Empty Projcect
+ [ ] SDL checks
- (replace the empty <ItemGroup> in YosysVS.vcxproj
- with the XML text from vcxproj_files.txt)
+2. Open YosysVS Project Properties
-5. Open project in VS and go to the project properties:
+ Select Configuration: All Configurations
C/C++ -> General -> Additional Include Directories
Add: ..\yosys
@@ -100,7 +95,18 @@ Building in Visual Studio
C/C++ -> Preprocessor -> Preprocessor Definitions
Add: _YOSYS_;_CRT_SECURE_NO_WARNINGS
-6. Build YosysVS
+3. Resulting file system tree:
+
+ YosysVS/
+ YosysVS/YosysVS
+ YosysVS/YosysVS/YosysVS.vcxproj
+ YosysVS/YosysVS/YosysVS.vcxproj.filters
+ YosysVS/YosysVS.sdf
+ YosysVS/YosysVS.sln
+ YosysVS/YosysVS.v12.suo
+
+4. Zip YosysVS as YosysVS-Tpl-v1.zip
+
Checklist for adding internal cell types