Skip to content

Commit a2c6bf0

Browse files
mstormogitster
authored andcommitted
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 <[email protected]> Acked-by: Johannes Sixt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 164a5e3 commit a2c6bf0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

compat/vcbuild/README

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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!

0 commit comments

Comments
 (0)