mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
Add instructions for building manually
This commit is contained in:
parent
c5eb8036d0
commit
afaa96ec57
19
README.md
19
README.md
@ -34,7 +34,17 @@ This vastly simplifies the design of long-lived applications, which are the most
|
||||
|
||||
All methods for reading from or writing to a repository are on SwiftGit’s only `class`: `Repository`. This highlights the failability and mutation of these methods, while freeing up all other instances to be immutable `struct`s and `enum`s.
|
||||
|
||||
## Importing SwiftGit2
|
||||
## Required Tools
|
||||
To build SwiftGit2, you'll need the following tools installed locally:
|
||||
|
||||
* cmake
|
||||
* libssh2
|
||||
* libtool
|
||||
* autoconf
|
||||
* automake
|
||||
* pkg-config
|
||||
|
||||
## Adding SwiftGit2 to your Project
|
||||
The easiest way to add SwiftGit2 to your project is to use [Carthage](https://github.com/Carthage/Carthage). Simply add `github "SwiftGit2/SwiftGit2"` to your `Cartfile` and run `carthage update`.
|
||||
|
||||
If you’d like, you can do things the ~~hard~~ old-fashioned way:
|
||||
@ -45,6 +55,13 @@ If you’d like, you can do things the ~~hard~~ old-fashioned way:
|
||||
4. On the “Build Phases” tab of your application target, add `SwiftGit2.framework` to the “Link Binary With Libraries” phase. SwiftGit2 must also be added to a “Copy Frameworks” build phase.
|
||||
5. **If you added SwiftGit2 to a project (not a workspace)**, you will also need to add the appropriate SwiftGit2 target to the “Target Dependencies” of your application.
|
||||
|
||||
## Building SwiftGit2 Manually
|
||||
If you want to build a copy of SwiftGit2 without Carthage, possibly for development:
|
||||
|
||||
1. Clone SwiftGit2
|
||||
2. Run `git submodule update --init --recursive` to clone the submodules
|
||||
3. Build in Xcode
|
||||
|
||||
## Contributions
|
||||
We :heart: to receive pull requests! GitHub makes it easy:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user