forked from TortoiseGit/TortoiseGit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.txt
63 lines (44 loc) · 2.53 KB
/
build.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Build instructions
==================
Compiling TortoiseGit is not very difficult, but it requires several steps
to finish, at least the first time.
Unlike other big open source projects, once you have built all the libraries
TortoiseGit depends on, you can use the familiar Visual Studio IDE to build
and debug the binaries. No need to run the build script for every little change.
So don't give up if you read through the next section and all the requirements.
You only have to do this once.
Requirements
------------
First, you need to install the compiler package:
* You need at least Visual Studio 2013 for
building the full TortoiseGit package.
The TortoiseGit teams uses VS2013 Professional Update 5.
Make sure the "Microsoft Foundation Classes for C++" are installed.
This is the recommended option, but it is not free :-(
If you do not have access to VS Professional you can download the free
Visual Studio Community 2013 Edition (https://www.visualstudio.com/en-us/news/vs2013-community-vs).
This version also allows to fully build the TortoiseGit package if
"Microsoft Foundation Classes for C++" are selected.
Next you might need to install some utilities/programs:
* If you want to build the MSI installer you need WiX3.9 (http://wix.codeplex.com/)
* For building the docs you need NAnt (http://nant.sourceforge.net/) and
https://sourceforge.net/projects/tortoisesvn/files/build%20tools/
See doc/readme.txt for more details on building the docs.
Get external source code
------------------------
TortoiseGit comes with all required code in its repository included or linked as submodules:
Run
git submodule update --init
to download all linked repositories (submodules) automatically.
Alternatively, you can download submodules when cloning the main project with single command.
git clone --recursive https://gitlab.com/tortoisegit/tortoisegit.git
Building the packages
---------------------
Open TortoiseGit.sln in Visual Studio.
Build all projects.
You can also build TortoiseGit via command line by calling MSBuild 4.0.
Open Developer Command Prompt for VS2013
MSBuild TortoiseGit.sln /p:Configuration=Release;Platform=Win32
MSBuild TortoiseGit.sln /p:Configuration=Release;Platform=x64
If you want to build the installer package, make sure you build the Win32 configuration before the x64 one
Also, build the docs before the installer packages (or copy existing TortoiseGit_en.chm and TortoiseMerge_en.chm files into the doc/output folder).