Add README for MSVC build
Based on original README patch from Frank Li, describe the steps to build git with VS2008 (aka MSVC). Signed-off-by: Marius Storm-Olsen <mstormo@gmail.com> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Marius Storm-Olsen committed
Sep 16, 2009 at 10:20 UTC
a2c6bf0e7661a4e6eafe7810cca1cd08187d311f
1 file changed
+39
compat/vcbuild/README
new
+39
@@ -0,0 +1,39 @@
1
+The Steps of Build Git with VS2008
2
+
3
+1. You need the build environment, which contains the Git dependencies
4
+ to be able to compile, link and run Git with MSVC.
5
+
6
+ You can either use the binary repository:
7
+
8
+ WWW: http://repo.or.cz/w/msvcgit.git
9
+ Git: git clone git://repo.or.cz/msvcgit.git
10
+ Zip: http://repo.or.cz/w/msvcgit.git?a=snapshot;h=master;sf=zip
11
+
12
+ and call the setup_32bit_env.cmd batch script before compiling Git,
13
+ (see repo/package README for details), or the source repository:
14
+
15
+ WWW: http://repo.or.cz/w/gitbuild.git
16
+ Git: git clone git://repo.or.cz/gitbuild.git
17
+ Zip: (None, as it's a project with submodules)
18
+
19
+ and build the support libs as instructed in that repo/package.
20
+
21
+2. Ensure you have the msysgit environment in your path, so you have
22
+ GNU Make, bash and perl available.
23
+
24
+ WWW: http://repo.or.cz/w/msysgit.git
25
+ Git: git clone git://repo.or.cz/msysgit.git
26
+ Zip: http://repo.or.cz/w/msysgit.git?a=snapshot;h=master;sf=zip
27
+
28
+ This environment is also needed when you use the resulting
29
+ executables, since Git might need to run scripts which are part of
30
+ the git operations.
31
+
32
+3. Inside Git's directory run the command:
33
+ make common-cmds.h
34
+ to generate the common-cmds.h file needed to compile git.
35
+
36
+4. Then build Git with the GNU Make Makefile in the Git projects root
37
+ make MSVC=1
38
+
39
+Done!