forked from irungentoo/toxcore
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Move
Tox_Options
to tox_options.h
.
For backwards compatibility, we also `#include "tox_options.h"` in `tox.h`, but in 0.3.0 we can break that so most toxcore client code doesn't need the options, only the part that creates the instance.
- Loading branch information
Showing
25 changed files
with
1,041 additions
and
859 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
!other/docker/modules/check | ||
!**/BUILD.bazel |
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,25 @@ | ||
# ===== common ===== | ||
# Ignore everything ... | ||
**/* | ||
# ... except sources | ||
!**/*.[ch] | ||
!**/*.cc | ||
!**/*.hh | ||
!CHANGELOG.md | ||
!LICENSE | ||
!README.md | ||
!auto_tests/data/* | ||
!other/bootstrap_daemon/bash-completion/** | ||
!other/bootstrap_daemon/tox-bootstrapd.* | ||
!other/proxy/*.mod | ||
!other/proxy/*.sum | ||
!other/proxy/*.go | ||
# ... and CMake build files (used by most builds). | ||
!**/CMakeLists.txt | ||
!.github/scripts/flags*.sh | ||
!cmake/*.cmake | ||
!other/pkgconfig/* | ||
!other/rpm/* | ||
!so.version | ||
!other/docker/modules/check | ||
!**/BUILD.bazel |
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,6 +1,3 @@ | ||
#!/bin/sh | ||
#!/usr/bin/env bash | ||
|
||
set -eux | ||
BUILD=modules | ||
other/docker/sources/build | ||
docker build -t "toxchat/c-toxcore:$BUILD" -f "other/docker/$BUILD/$BUILD.Dockerfile" . | ||
. "$(cd "$(dirname "${BASH_SOURCE[0]}")/../sources" && pwd)/run.sh" |
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 @@ | ||
!other/docker/pkgsrc/pkgsrc.patch |
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,11 +1,14 @@ | ||
FROM toxchat/pkgsrc:latest | ||
|
||
WORKDIR /work | ||
COPY . /work/c-toxcore-0.2.18 | ||
RUN ["tar", "zcf", "c-toxcore.tar.gz", "c-toxcore-0.2.18"] | ||
COPY . /work/c-toxcore-0.2.20 | ||
RUN ["tar", "zcf", "c-toxcore.tar.gz", "c-toxcore-0.2.20"] | ||
|
||
WORKDIR /work/pkgsrc | ||
COPY other/docker/pkgsrc/pkgsrc.patch /tmp/pkgsrc.patch | ||
RUN ["patch", "-p1", "-i", "/tmp/pkgsrc.patch"] | ||
|
||
WORKDIR /work/pkgsrc/chat/toxcore | ||
RUN ["sed", "-i", "-e", "s/libtoxcore.so.2.18.0/libtoxcore.so.2.20.0/g", "PLIST"] | ||
RUN ["bmake", "clean"] | ||
RUN ["bmake", "DISTFILES=c-toxcore.tar.gz", "DISTDIR=/work", "NO_CHECKSUM=yes"] | ||
RUN ["bmake", "install"] |
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 |
---|---|---|
|
@@ -21,3 +21,4 @@ | |
!other/pkgconfig/* | ||
!other/rpm/* | ||
!so.version | ||
!other/docker/pkgsrc/pkgsrc.patch |
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,31 @@ | ||
diff --git a/chat/toxcore/Makefile b/chat/toxcore/Makefile | ||
index 70466704d..53a08ad08 100644 | ||
--- a/chat/toxcore/Makefile | ||
+++ b/chat/toxcore/Makefile | ||
@@ -1,6 +1,6 @@ | ||
# $NetBSD: Makefile,v 1.6 2024/01/22 13:16:56 ryoon Exp $ | ||
|
||
-DISTNAME= toxcore-0.2.18 | ||
+DISTNAME= toxcore-0.2.20 | ||
PKGREVISION= 2 | ||
CATEGORIES= chat | ||
MASTER_SITES= ${MASTER_SITE_GITHUB:=TokTok/} | ||
diff --git a/chat/toxcore/PLIST b/chat/toxcore/PLIST | ||
index f0a5e4f04..4122b0867 100644 | ||
--- a/chat/toxcore/PLIST | ||
+++ b/chat/toxcore/PLIST | ||
@@ -4,11 +4,13 @@ bin/tox-bootstrapd | ||
include/tox/tox.h | ||
include/tox/tox_dispatch.h | ||
include/tox/tox_events.h | ||
+include/tox/tox_options.h | ||
+include/tox/tox_types.h | ||
include/tox/toxav.h | ||
include/tox/toxencryptsave.h | ||
lib/libtoxcore.a | ||
lib/libtoxcore.so | ||
lib/libtoxcore.so.2 | ||
-lib/libtoxcore.so.2.18.0 | ||
+lib/libtoxcore.so.2.20.0 | ||
lib/pkgconfig/toxcore.pc | ||
share/bash-completion/completions/tox-bootstrapd |
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.