forked from xbee/go-toxcore
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt toxencryptsave.go to the new toxencryptsave API.
Also, removed xtox, because I have no idea what gopp is. Google doesn't either. Someone can revive this HLAPI for Go someday, but for now it's gone.
- Loading branch information
Showing
25 changed files
with
177 additions
and
2,426 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 |
---|---|---|
@@ -1,71 +1,44 @@ | ||
language: go | ||
compiler: clang | ||
sudo: required | ||
|
||
go: | ||
- "1.4" | ||
- "1.5" | ||
- "1.6" | ||
- "1.7" | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: 'ppa:chris-lea/libsodium' | ||
packages: | ||
- libclang-dev | ||
- libopus-dev | ||
- libsodium-dev | ||
- libvpx-dev | ||
|
||
compiler: | ||
- gcc | ||
- clang | ||
go: | ||
#- 1.4.x | ||
#- 1.5.x | ||
#- 1.6.x | ||
#- 1.7.x | ||
#- 1.8.x | ||
#- 1.9.x | ||
- master | ||
|
||
install: | ||
- sudo apt-get update | ||
# installing libsodium, needed for toxcore | ||
- git clone https://github.com/jedisct1/libsodium.git | ||
- cd libsodium | ||
- git checkout tags/1.0.3 | ||
- ./autogen.sh | ||
- ./configure --prefix=/usr | ||
- make -j3 > /dev/null | ||
- sudo make install > /dev/null | ||
- cd .. | ||
# installing libopus, needed for audio encoding/decoding | ||
- wget http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz > /dev/null | ||
- tar xzf opus-1.1.tar.gz > /dev/null | ||
- cd opus-1.1 | ||
- ./configure | ||
- make -j3 > /dev/null | ||
- sudo make install > /dev/null | ||
- cd .. | ||
# installing vpx | ||
- sudo apt-get install yasm | ||
- git clone https://chromium.googlesource.com/webm/libvpx > /dev/null | ||
- cd libvpx | ||
- ./configure --enable-shared > /dev/null | ||
- make -j3 >/dev/null | ||
- sudo make install > /dev/null | ||
- cd .. | ||
# creating librarys' links and updating cache | ||
- sudo ldconfig | ||
- git clone https://github.com/irungentoo/toxcore.git toxcore | ||
- cd toxcore | ||
- autoreconf -i | ||
- ./configure --prefix=/usr --disable-tests --disable-ntox | ||
- make -j2 | ||
- sudo make install | ||
- cd .. | ||
- sudo ldconfig > /dev/null | ||
- apt-cache search tox | ||
- apt-cache search opus | ||
- apt-cache search libvpx | ||
|
||
script: | ||
- pwd | ||
- go get github.com/streamrail/concurrent-map | ||
# - go get -v -x github.com/kitech/go-toxcore | ||
# - go get -v -x github.com/kitech/go-toxcore/examples | ||
- go install -v -x | ||
- go build -v -x -o echobot ./examples/toxecho.go | ||
- go test -v -covermode count -timeout 60m | ||
|
||
|
||
notifications: | ||
email: false | ||
|
||
# irc: | ||
# channels: | ||
# - "chat.freenode.net#tox-dev" | ||
# on_success: always | ||
# on_failure: always | ||
# Add libclang's lib directory to search path for Go. | ||
- export CGO_LDFLAGS="-L`llvm-config --libdir`" | ||
# Install toxcore. | ||
- git clone https://github.com/TokTok/c-toxcore | ||
- cd c-toxcore | ||
- cmake . | ||
- make -j2 | ||
- sudo make install | ||
- cd .. | ||
- sudo ldconfig > /dev/null | ||
# Install Go packages. | ||
- go get github.com/bitly/go-simplejson | ||
- go get github.com/go-clang/v3.8/clang | ||
- go get github.com/kitech/godsts/maps/hashbidimap | ||
- go get github.com/kitech/godsts/maps/hashmap | ||
- go get github.com/kitech/godsts/sets/hashset | ||
- go get github.com/masatana/go-textdistance | ||
- go get github.com/sasha-s/go-deadlock | ||
- go get github.com/sysr-q/gopp/gopp | ||
- go get github.com/xrash/smetrics |
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,42 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = [ | ||
"c.go", | ||
"const.go", | ||
"const_auto.go", | ||
"group.go", | ||
"group_intern.c", | ||
"group_intern.go", | ||
"group_legacy.go", | ||
"hooks.go", | ||
"options.go", | ||
"tox.go", | ||
"toxav.go", | ||
"toxencryptsave.go", | ||
"userdata.go", | ||
"userdata_legacy.go", | ||
"utils.go", | ||
"yuv2rgb.c", | ||
], | ||
cdeps = ["//c-toxcore"], | ||
cgo = True, | ||
copts = ["-g -O2 -std=c99 -Wall"], | ||
importpath = "github.com/TokTok/go-toxcore-c", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"@com_github_sasha_s_go_deadlock//:go_default_library", | ||
"@com_github_streamrail_concurrent_map//:go_default_library", | ||
], | ||
) | ||
|
||
go_test( | ||
name = "go_default_test", | ||
srcs = [ | ||
"group_test.go", | ||
"tox_test.go", | ||
], | ||
embed = [":go_default_library"], | ||
importpath = "github.com/TokTok/go-toxcore-c", | ||
) |
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
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,16 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["tsdec.go"], | ||
importpath = "github.com/TokTok/go-toxcore-c/cmds/tsdec", | ||
visibility = ["//visibility:private"], | ||
deps = ["//go-toxcore-c:go_default_library"], | ||
) | ||
|
||
go_binary( | ||
name = "tsdec", | ||
embed = [":go_default_library"], | ||
importpath = "github.com/TokTok/go-toxcore-c/cmds/tsdec", | ||
visibility = ["//visibility:public"], | ||
) |
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
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,16 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["tsexp.go"], | ||
importpath = "github.com/TokTok/go-toxcore-c/cmds/tsexp", | ||
visibility = ["//visibility:private"], | ||
deps = ["//go-toxcore-c:go_default_library"], | ||
) | ||
|
||
go_binary( | ||
name = "tsexp", | ||
embed = [":go_default_library"], | ||
importpath = "github.com/TokTok/go-toxcore-c/cmds/tsexp", | ||
visibility = ["//visibility:public"], | ||
) |
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
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,16 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") | ||
|
||
go_library( | ||
name = "go_default_library", | ||
srcs = ["toxecho.go"], | ||
importpath = "github.com/TokTok/go-toxcore-c/examples", | ||
visibility = ["//visibility:private"], | ||
deps = ["//go-toxcore-c:go_default_library"], | ||
) | ||
|
||
go_binary( | ||
name = "examples", | ||
embed = [":go_default_library"], | ||
importpath = "github.com/TokTok/go-toxcore-c/examples", | ||
visibility = ["//visibility:public"], | ||
) |
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
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
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
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
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
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
Oops, something went wrong.