forked from mirror/ledisdb
support godep
This commit is contained in:
parent
98912695a4
commit
bae86ca7dd
|
@ -4,3 +4,4 @@ build
|
|||
nohup.out
|
||||
build_config.mk
|
||||
var
|
||||
_workspace
|
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"ImportPath": "github.com/siddontang/ledisdb",
|
||||
"GoVersion": "go1.3.2",
|
||||
"Packages": [
|
||||
"./..."
|
||||
],
|
||||
"Deps": [
|
||||
{
|
||||
"ImportPath": "github.com/BurntSushi/toml",
|
||||
"Rev": "2ceedfee35ad3848e49308ab0c9a4f640cfb5fb2"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/boltdb/bolt",
|
||||
"Comment": "data/v1-228-g8fb50d5",
|
||||
"Rev": "8fb50d5ee57110936b904a7539d4c5f2bf2359db"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/siddontang/go/bson",
|
||||
"Rev": "466d5bc779ad45f5923d0f59efbc5d696bf2099c"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/siddontang/go/filelock",
|
||||
"Rev": "466d5bc779ad45f5923d0f59efbc5d696bf2099c"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/siddontang/go/hack",
|
||||
"Rev": "466d5bc779ad45f5923d0f59efbc5d696bf2099c"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/siddontang/go/log",
|
||||
"Rev": "466d5bc779ad45f5923d0f59efbc5d696bf2099c"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/siddontang/go/num",
|
||||
"Rev": "466d5bc779ad45f5923d0f59efbc5d696bf2099c"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/siddontang/go/snappy",
|
||||
"Rev": "466d5bc779ad45f5923d0f59efbc5d696bf2099c"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/siddontang/goleveldb/leveldb",
|
||||
"Rev": "c1f6d721561c48f467b26a277741e55fd224df1e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/szferi/gomdb",
|
||||
"Rev": "d8a6d8371e2409b0787a782bf9b0c5daca364a3d"
|
||||
},
|
||||
{
|
||||
"ImportPath": "github.com/ugorji/go/codec",
|
||||
"Rev": "71c2886f5a673a35f909803f38ece5810165097b"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
This directory tree is generated automatically by godep.
|
||||
|
||||
Please do not edit.
|
||||
|
||||
See https://github.com/tools/godep for more information.
|
6
Makefile
6
Makefile
|
@ -16,13 +16,13 @@ export GO_BUILD_TAGS
|
|||
all: build
|
||||
|
||||
build:
|
||||
go install -tags '$(GO_BUILD_TAGS)' ./...
|
||||
$(GO) install -tags '$(GO_BUILD_TAGS)' ./...
|
||||
|
||||
clean:
|
||||
go clean -i ./...
|
||||
$(GO) clean -i ./...
|
||||
|
||||
test:
|
||||
go test -tags '$(GO_BUILD_TAGS)' ./...
|
||||
$(GO) test -tags '$(GO_BUILD_TAGS)' ./...
|
||||
|
||||
pytest:
|
||||
sh client/ledis-py/tests/all.sh
|
||||
|
|
|
@ -35,6 +35,9 @@ Create a workspace and checkout ledisdb source
|
|||
make
|
||||
make test
|
||||
|
||||
## Godep support
|
||||
|
||||
LedisDB supports building with [godep](https://github.com/tools/godep) which can manage LedisDB go dependence automatically.
|
||||
|
||||
## LevelDB support
|
||||
|
||||
|
|
|
@ -2,6 +2,14 @@
|
|||
|
||||
. ./dev.sh
|
||||
|
||||
# Test godep install
|
||||
godep path > /dev/null 2>&1
|
||||
if [ "$?" = 0 ]; then
|
||||
GOPATH=`godep path`
|
||||
godep restore
|
||||
exit 0
|
||||
fi
|
||||
|
||||
go get github.com/siddontang/goleveldb/leveldb
|
||||
|
||||
go get github.com/szferi/gomdb
|
||||
|
|
|
@ -13,6 +13,14 @@ touch $OUTPUT
|
|||
|
||||
source ./dev.sh
|
||||
|
||||
# Test godep install
|
||||
godep path > /dev/null 2>&1
|
||||
if [ "$?" = 0 ]; then
|
||||
echo "GO=godep go" >> $OUTPUT
|
||||
else
|
||||
echo "GO=go" >> $OUTPUT
|
||||
fi
|
||||
|
||||
echo "CGO_CFLAGS=$CGO_CFLAGS" >> $OUTPUT
|
||||
echo "CGO_CXXFLAGS=$CGO_CXXFLAGS" >> $OUTPUT
|
||||
echo "CGO_LDFLAGS=$CGO_LDFLAGS" >> $OUTPUT
|
||||
|
|
Loading…
Reference in New Issue