Skip to content

Commit

Permalink
Merge pull request #8 from Infactum/feature/libtgvoip-update
Browse files Browse the repository at this point in the history
Feature/libtgvoip update
  • Loading branch information
Infactum committed Feb 18, 2019
2 parents 2471b27 + 5233849 commit d891a41
Show file tree
Hide file tree
Showing 729 changed files with 98,823 additions and 13,295 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ target_include_directories(tg2sip PRIVATE

target_link_libraries(tg2sip PRIVATE
${PJSIP_LIBRARIES}
${OPUS_LIBRARIES}
libtgvoip
Threads::Threads
Td::TdStatic)
Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 1.0.0+{build}

image:
- Previous Ubuntu
- Ubuntu

services:
- docker
Expand All @@ -27,17 +27,17 @@ environment:
init:
- sh: |
docker login -u "$docker_login" -p "$docker_password"
docker pull "$docker_image":"$docker_tag"
docker pull "$docker_image":"$docker_tag"
install:
- sh: docker build buildenv/ -f buildenv/Dockerfile."$docker_tag" --cache-from "$docker_image":"$docker_tag" -t "$docker_image":"$docker_tag"

build_script:
- sh: >-
mkdir build;
docker run --rm -v "$(pwd)":/src "$docker_image" /bin/bash -c "
docker run --rm -v "$(pwd)":/src "$docker_image":"$docker_tag" /bin/bash -c "
mkdir build && cd build;
cmake -DCMAKE_BUILD_TYPE=Release /src;
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig && cmake -DCMAKE_BUILD_TYPE=Release /src
cmake --build .;
chmod +x tg2sip;
chmod +x gen_db;
Expand Down
6 changes: 5 additions & 1 deletion buildenv/Dockerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,8 @@ RUN source /opt/rh/devtoolset-7/enable \
&& cmake -DCMAKE_BUILD_TYPE=Release -DSPDLOG_BUILD_EXAMPLES=OFF -DSPDLOG_BUILD_TESTING=OFF .. \
&& cmake --build . --target install \
&& cd / \
&& rm -rf spdlog
&& rm -rf spdlog

COPY centos_entrypoint.sh /

ENTRYPOINT ["/centos_entrypoint.sh"]
6 changes: 6 additions & 0 deletions buildenv/centos_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

set -e
source /opt/rh/devtoolset-7/enable

exec "$@"
Empty file modified buildenv/config_site.h
100755 → 100644
Empty file.
385 changes: 338 additions & 47 deletions libtgvoip/Android.mk

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions libtgvoip/BlockingQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <stdlib.h>
#include <list>
#include "threading.h"
#include "utils.h"

using namespace std;

Expand All @@ -18,6 +19,7 @@ namespace tgvoip{
template<typename T>
class BlockingQueue{
public:
TGVOIP_DISALLOW_COPY_AND_ASSIGN(BlockingQueue);
BlockingQueue(size_t capacity) : semaphore(capacity, 0){
this->capacity=capacity;
overflowCallback=NULL;
Expand Down
113 changes: 0 additions & 113 deletions libtgvoip/BufferInputStream.cpp

This file was deleted.

39 changes: 0 additions & 39 deletions libtgvoip/BufferInputStream.h

This file was deleted.

104 changes: 0 additions & 104 deletions libtgvoip/BufferOutputStream.cpp

This file was deleted.

39 changes: 0 additions & 39 deletions libtgvoip/BufferOutputStream.h

This file was deleted.

Loading

0 comments on commit d891a41

Please sign in to comment.