forked from skycoin/skycoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lib] refs skycoin#1028 - README file for libskycoin
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
# Skycoin C client library | ||
|
||
[![Build Status](https://travis-ci.org/skycoin/skycoin.svg)](https://travis-ci.org/skycoin/skycoin) | ||
[![GoDoc](https://godoc.org/github.com/skycoin/skycoin?status.svg)](https://godoc.org/github.com/skycoin/skycoin) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/skycoin/skycoin)](https://goreportcard.com/report/github.com/skycoin/skycoin) | ||
|
||
Skycoin C client library (a.k.a libskycoin) provides access to Skicoin Core | ||
internal and API functions for implementing third-party applications. | ||
|
||
## Building | ||
|
||
```sh | ||
|
||
$ make build-libc | ||
``` | ||
|
||
## Testing | ||
|
||
In order to test the C client libraries follow these steps | ||
|
||
- Install [Criterion](https://github.com/Snaipe/Criterion) | ||
* locally by executing `make instal-deps-libc` command | ||
* or by [installing Criterion system-wide](https://github.com/Snaipe/Criterion#packages) | ||
- Run `make test-libc` command | ||
|
||
## Binary distribution | ||
|
||
The following files will be generated | ||
|
||
- `build/libskycoin.h` - Header file for including libskycoin symbols in your app code | ||
- `build/libskycoin.a` - Static library. | ||
- `build/libskycoin.so` - Shared library object. | ||
|
||
In Mac OS X the linker will need extra `-framework CoreFoundation -framework Security` | ||
options. | ||
|
||
In GNU/Linux distributions it will be necessary to load symbols in `pthread` | ||
library e.g. by supplying extra `-lpthread` to the linker toolchain. | ||
|