Bump version
[yosys.git] / guidelines / Windows
1 Creating the Visual Studio Template Project
2 ===========================================
3
4 1. Create an empty Visual C++ Win32 Console App project
5
6 Microsoft Visual Studio Express 2013 for Windows Desktop
7 Open New Project Wizard (File -> New Project..)
8
9 Project Name: YosysVS
10 Solution Name: YosysVS
11 [X] Create directory for solution
12 [ ] Add to source control
13
14 [X] Console applications
15 [X] Empty Project
16 [ ] SDL checks
17
18 2. Open YosysVS Project Properties
19
20 Select Configuration: All Configurations
21
22 C/C++ -> General -> Additional Include Directories
23 Add: ..\yosys
24
25 C/C++ -> Preprocessor -> Preprocessor Definitions
26 Add: _YOSYS_;_CRT_SECURE_NO_WARNINGS
27
28 3. Resulting file system tree:
29
30 YosysVS/
31 YosysVS/YosysVS
32 YosysVS/YosysVS/YosysVS.vcxproj
33 YosysVS/YosysVS/YosysVS.vcxproj.filters
34 YosysVS/YosysVS.sdf
35 YosysVS/YosysVS.sln
36 YosysVS/YosysVS.v12.suo
37
38 4. Zip YosysVS as YosysVS-Tpl-v1.zip
39
40 Cross-Building for Windows with MXE
41 ===================================
42
43 Check http://mxe.cc/#requirements and install all missing requirements.
44
45 As root (or other user with write access to /usr/local/src):
46
47 cd /usr/local/src
48 git clone https://github.com/mxe/mxe.git
49 cd mxe
50
51 make -j$(nproc) MXE_PLUGIN_DIRS="plugins/tcl.tk" \
52 MXE_TARGETS="i686-w64-mingw32.static" \
53 gcc tcl readline
54
55 Then as regular user in some directory where you build stuff:
56
57 git clone https://github.com/YosysHQ/yosys.git yosys-win32
58 cd yosys-win32
59 make config-mxe
60 make -j$(nproc) mxebin