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