You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/build-and-link/index.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,8 +69,32 @@ You'll need to include `git2.h`, and link to the binaries you built previously.
69
69
If you built libgit2 as a DLL (the default), you can bundle the produced DLL with your project, and use the `git2.dll` import library to have the linker load the DLL for you.
70
70
Or you can write your own calls to `LoadLibrary`.
71
71
72
+
***TODO: Screenshots (add include path, library path, .lib)***
73
+
72
74
If libgit2 is built as a static library, just link in the `git2.lib` file.
73
75
76
+
## XCode
77
+
78
+
Your search paths will need to be modified to include the location of the libgit2 headers and binaries.
79
+
In Xcode 5, open the project node, open the `Build Settings` tab, make sure all settings are shown, and look for `Header Search Paths`:
Browse to the location where the libgit2 binaries are located (if you're working from source, this is `/path/to/libgit2/build`), select the `libgit2.dylib` file, and click OK.
96
+
97
+
74
98
## Makefiles
75
99
76
100
The binaries that are output from the build are dependent on the build system you're using.
0 commit comments