1 Creating the Visual Studio Template Project
2 ===========================================
4 1. Create an empty Visual C++ Win32 Console App project
6 Microsoft Visual Studio Express 2013 for Windows Desktop
7 Open New Project Wizard (File -> New Project..)
10 Solution Name: YosysVS
11 [X] Create directory for solution
12 [ ] Add to source control
14 [X] Console applications
18 2. Open YosysVS Project Properties
20 Select Configuration: All Configurations
22 C/C++ -> General -> Additional Include Directories
25 C/C++ -> Preprocessor -> Preprocessor Definitions
26 Add: _YOSYS_;_CRT_SECURE_NO_WARNINGS
28 3. Resulting file system tree:
32 YosysVS/YosysVS/YosysVS.vcxproj
33 YosysVS/YosysVS/YosysVS.vcxproj.filters
36 YosysVS/YosysVS.v12.suo
38 4. Zip YosysVS as YosysVS-Tpl-v1.zip
40 Cross-Building for Windows with MXE
41 ===================================
43 Check http://mxe.cc/#requirements and install all missing requirements.
45 As root (or other user with write access to /usr/local/src):
48 git clone https://github.com/mxe/mxe.git
51 make -j$(nproc) MXE_PLUGIN_DIRS="plugins/tcl.tk" \
52 MXE_TARGETS="i686-w64-mingw32.static" \
55 Then as regular user in some directory where you build stuff:
57 git clone https://github.com/YosysHQ/yosys.git yosys-win32
60 make -j$(nproc) mxebin