llgo/x/cjson:link cjson by pkg-config
This commit is contained in:
@@ -7,7 +7,11 @@ LLGo wrapper of DaveGamble/cJSON
|
|||||||
[](https://github.com/goplus/gop)
|
[](https://github.com/goplus/gop)
|
||||||
|
|
||||||
## How to install
|
## How to install
|
||||||
|
### on macOS (Homebrew)
|
||||||
|
```sh
|
||||||
|
brew install cjson
|
||||||
|
```
|
||||||
|
### from source code
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/goplus/cjson.git
|
git clone https://github.com/goplus/cjson.git
|
||||||
cd cjson
|
cd cjson
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LLGoPackage = "link: cjson"
|
LLGoPackage = "link: $(pkg-config --libs libcjson)"
|
||||||
)
|
)
|
||||||
|
|
||||||
// llgo:type C
|
// llgo:type C
|
||||||
|
|||||||
Reference in New Issue
Block a user