This repository has been archived by the owner on Feb 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
170 additions
and
96 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# PytgVoIP - Telegram VoIP Library for Python | ||
# Copyright (C) 2019 bakatrouble <https://github.com/bakatrouble> | ||
# | ||
# This file is part of PytgVoIP. | ||
# | ||
# PytgVoIP is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Lesser General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# PytgVoIP is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with PytgVoIP. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
cmake_minimum_required(VERSION 2.8.12) | ||
project(pylibtgvoip) | ||
set(CMAKE_CXX_STANDARD 14) | ||
|
||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/src") | ||
|
||
find_package(TGVoIP) | ||
|
||
add_definitions(-DTGVOIP_USE_CALLBACK_AUDIO_IO -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_NS_FLOAT -DTGVOIP_USE_DESKTOP_DSP) | ||
add_subdirectory(3rdparty/pybind11) | ||
include_directories(${TGVOIP_INCLUDE_DIR}) | ||
|
||
list(APPEND SOURCES | ||
src/_tgvoip.cpp | ||
src/_tgvoip_module.cpp | ||
) | ||
|
||
link_libraries(${TGVOIP_LIBRARY}) | ||
pybind11_add_module(_tgvoip ${SOURCES}) |
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,2 +1,3 @@ | ||
include COPYING COPYING.lesser NOTICE pyproject.toml | ||
recursive-include src *.py *.pyi *.cpp *.h *.hpp | ||
include COPYING COPYING.lesser NOTICE CMakeLists.txt | ||
recursive-include 3rdparty/pybind11 * | ||
recursive-include src *.py *.pyi *.cpp *.h *.hpp *.cmake |
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 was deleted.
Oops, something went wrong.
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,67 @@ | ||
# PytgVoIP - Telegram VoIP Library for Python | ||
# Copyright (C) 2019 bakatrouble <https://github.com/bakatrouble> | ||
# | ||
# This file is part of PytgVoIP. | ||
# | ||
# PytgVoIP is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Lesser General Public License as published | ||
# by the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# PytgVoIP is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with PytgVoIP. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
# - Find tgvoip | ||
# Find the native tgvoip includes and libraries | ||
# | ||
# TGVOIP_INCLUDE_DIR - where to find VoIPController.h, etc. | ||
# TGVOIP_LIBRARIES - List of libraries when using tgvoip. | ||
# TGVOIP_FOUND - True if tgvoip found. | ||
|
||
if(TGVOIP_INCLUDE_DIR) | ||
set(TGVOIP_FIND_QUIETLY TRUE) | ||
endif(TGVOIP_INCLUDE_DIR) | ||
|
||
set(FIND_TGVOIP_PATHS | ||
~/Library/Frameworks | ||
/Library/Frameworks | ||
/usr/local | ||
/usr | ||
/sw | ||
/opt/local | ||
/opt/csw | ||
/opt | ||
$ENV{TGVOIP_LIBRARY_ROOT} | ||
$ENV{TGVOIP_INCLUDE_ROOT} | ||
) | ||
|
||
find_path(TGVOIP_INCLUDE_DIR | ||
VoIPController.h | ||
PATH_SUFFIXES tgvoip libtgvoip | ||
PATHS ${FIND_TGVOIP_PATHS} | ||
) | ||
find_library(TGVOIP_LIBRARY | ||
NAMES tgvoip tgvoip_static libtgvoip libtgvoip_static libtgvoip.dll | ||
PATHS ${FIND_TGVOIP_PATHS} | ||
) | ||
|
||
message(STATUS ${TGVOIP_INCLUDE_DIR}) | ||
message(STATUS ${TGVOIP_LIBRARY}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(TGVOIP DEFAULT_MSG TGVOIP_INCLUDE_DIR TGVOIP_LIBRARY) | ||
|
||
if(TGVOIP_FOUND) | ||
set(TGVOIP_LIBRARIES ${TGVOIP_LIBRARY}) | ||
else(TGVOIP_FOUND) | ||
set(TGVOIP_LIBRARIES) | ||
endif(TGVOIP_FOUND) | ||
|
||
mark_as_advanced(TGVOIP_INCLUDE_DIR) | ||
mark_as_advanced(TGVOIP_LIBRARY) |
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 |
---|---|---|
|
@@ -20,4 +20,4 @@ | |
from tgvoip.tgvoip import * | ||
from tgvoip.tgvoip import __all__ | ||
|
||
__version__ = '0.0.3' | ||
__version__ = '0.0.2.1' |