Initialized third party libraries

This commit is contained in:
WolverinDEV 2019-07-01 12:40:51 +02:00
parent fbe90b9518
commit ac0721f12e
42 changed files with 865 additions and 0 deletions

45
.gitmodules vendored
View File

@ -1,3 +1,48 @@
#The TeaClient itself
[submodule "client"]
path = client
url = https://git.did.science/WolverinDEV/TeaSpeak-Client.git
#All third party libraries used by TeaSpeak
[submodule "third_party/boringssl"]
path = third_party/boringssl
url = https://boringssl.googlesource.com/boringssl
[submodule "third_party/breakpad"]
path = third_party/breakpad
url = https://github.com/google/breakpad.git
[submodule "third_party/DataPipes"]
path = third_party/DataPipes
url = https://github.com/WolverinDEV/DataPipes.git
[submodule "third_party/ed25519"]
path = third_party/ed25519
url = https://github.com/WolverinDEV/ed25519.git
[submodule "third_party/libevent"]
path = third_party/libevent
url = https://github.com/libevent/libevent.git
[submodule "third_party/libfvad"]
path = third_party/libfvad
url = https://github.com/WolverinDEV/libfvad
[submodule "third_party/opus"]
path = third_party/opus
url = https://github.com/xiph/opus.git
[submodule "third_party/portaudio"]
path = third_party/portaudio
url = https://git.assembla.com/portaudio.git
[submodule "third_party/soxr"]
path = third_party/soxr
url = https://git.code.sf.net/p/soxr/code
[submodule "third_party/spdlog"]
path = third_party/spdlog
url = https://git.did.science/WolverinDEV/spdlog.git
[submodule "third_party/StringVariable"]
path = third_party/StringVariable
url = https://github.com/WolverinDEV/StringVariable.git
[submodule "third_party/Thread-Pool"]
path = third_party/Thread-Pool
url = https://git.did.science/WolverinDEV/Thread-Pool.git
[submodule "third_party/tomcrypt"]
path = third_party/tomcrypt
url = https://git.did.science/WolverinDEV/tomcrypt.git
[submodule "third_party/tommath"]
path = third_party/tommath
url = https://git.did.science/WolverinDEV/tommath.git

66
cmake/FindBreakpad.cmake Normal file
View File

@ -0,0 +1,66 @@
# - Try to find breakpad include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(breakpad)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# breakpad_ROOT_DIR Set this variable to the root installation of
# breakpad if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# breakpad_FOUND System has breakpad, include and library dirs found
# breakpad_INCLUDE_DIR The breakpad include directories.
# breakpad_SOURCE_FILES The source files which have to be included.
# breakpad_HEADER_FIOLES Header files which might be included.
find_path(breakpad_ROOT_DIR
NAMES src/client/minidump_file_writer.h src/common/language.h
HINTS ${breakpad_ROOT_DIR}
)
find_path(breakpad_INCLUDE_DIR
NAMES client/minidump_file_writer.h common/language.h
HINTS ${breakpad_ROOT_DIR}/src/
)
set(breakpad_SOURCE_FILES "")
set(breakpad_HEADER_FIOLES "")
#https://blog.inventic.eu/2012/08/qt-and-google-breakpad/
if(WIN32)
set(breakpad_SOURCE_FILES ${breakpad_SOURCE_FILES}
${breakpad_ROOT_DIR}/src/client/windows/handler/exception_handler.cc
${breakpad_ROOT_DIR}/src/common/windows/string_utils.cc
${breakpad_ROOT_DIR}/src/common/windows/guid_string.cc
${breakpad_ROOT_DIR}/src/client/windows/crash_generation/crash_generation_client.cc
)
set(breakpad_HEADER_FIOLES ${breakpad_HEADER_FIOLES}
${breakpad_ROOT_DIR}/src/common/windows/string_utils-inl.h
${breakpad_ROOT_DIR}/src/common/windows/guid_string.h
${breakpad_ROOT_DIR}/src/client/windows/handler/exception_handler.h
${breakpad_ROOT_DIR}/src/client/windows/common/ipc_protocol.h
${breakpad_ROOT_DIR}/src/google_breakpad/common/minidump_format.h
${breakpad_ROOT_DIR}/src/google_breakpad/common/breakpad_types.h
${breakpad_ROOT_DIR}/src/client/windows/crash_generation/crash_generation_client.h
${breakpad_ROOT_DIR}/src/processor/scoped_ptr.h
)
else()
message(FATAL_ERROR "Unknown system")
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(breakpad DEFAULT_MSG
breakpad_INCLUDE_DIR
)
mark_as_advanced(
breakpad_ROOT_DIR
breakpad_INCLUDE_DIR
breakpad_SOURCE_FILES
breakpad_HEADER_FIOLES
)

53
cmake/FindDataPipes.cmake Normal file
View File

@ -0,0 +1,53 @@
# - Try to find DataPipes include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(DataPipes)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# DataPipes_ROOT_DIR Set this variable to the root installation of
# DataPipes if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# DataPipes_FOUND System has DataPipes, include and library dirs found
# DataPipes_INCLUDE_DIR The DataPipes include directories.
# DataPipes_LIBRARIES_STATIC The DataPipes libraries.
# DataPipes_LIBRARIES_SHARED The DataPipes libraries.
find_path(DataPipes_ROOT_DIR
NAMES include/buffer.h include/pipeline.h CMakeLists.txt
HINTS ${DataPipes_ROOT_DIR}
)
find_path(DataPipes_INCLUDE_DIR
NAMES pipes/pipeline.h pipes/buffer.h
HINTS ${DataPipes_ROOT_DIR}/out/win32/include/ ${DataPipes_ROOT_DIR}/out/win32_amd64/include/
)
find_library(DataPipes_LIBRARIES_STATIC
NAMES DataPipes.lib libDataPipes.a
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/build ${DataPipes_ROOT_DIR}/libs ${DataPipes_ROOT_DIR}/out/
)
find_library(DataPipes_LIBRARIES_SHARED
NAMES DataPipes.dll libDataPipes.so
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${DataPipes_ROOT_DIR} ${DataPipes_ROOT_DIR}/build ${DataPipes_ROOT_DIR}/libs ${DataPipes_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(DataPipes DEFAULT_MSG
DataPipes_INCLUDE_DIR
)
mark_as_advanced(
DataPipes_ROOT_DIR
DataPipes_INCLUDE_DIR
DataPipes_LIBRARIES_STATIC
DataPipes_LIBRARIES_SHARED
)

55
cmake/FindEd25519.cmake Normal file
View File

@ -0,0 +1,55 @@
# - Try to find ed25519 include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(ed25519)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# ed25519_ROOT_DIR Set this variable to the root installation of
# ed25519 if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# ed25519_FOUND System has ed25519, include and library dirs found
# ed25519_INCLUDE_DIR The ed25519 include directories.
# ed25519_LIBRARIES_STATIC The ed25519 libraries.
# ed25519_LIBRARIES_SHARED The ed25519 libraries.
find_path(ed25519_ROOT_DIR
NAMES include/ed25519.h CMakeLists.txt
HINTS ${ed25519_ROOT_DIR}
)
#This NEEDS a fix!
find_path(ed25519_INCLUDE_DIR
NAMES ed25519/ed25519.h
PATH_SUFFIXES include
HINTS ${ed25519_ROOT_DIR} ${ed25519_ROOT_DIR}/build ${ed25519_ROOT_DIR}/libs ${ed25519_ROOT_DIR}/out/win32_amd64
)
find_library(ed25519_LIBRARIES_STATIC
NAMES ed25519.lib ed25519.a
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${ed25519_ROOT_DIR} ${ed25519_ROOT_DIR}/build ${ed25519_ROOT_DIR}/libs ${ed25519_ROOT_DIR}/out/
)
find_library(ed25519_LIBRARIES_SHARED
NAMES ed25519.dll ed25519.so
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${ed25519_ROOT_DIR} ${ed25519_ROOT_DIR}/build ${ed25519_ROOT_DIR}/libs ${ed25519_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ed25519 DEFAULT_MSG
ed25519_INCLUDE_DIR
)
mark_as_advanced(
ed25519_ROOT_DIR
ed25519_INCLUDE_DIR
ed25519_LIBRARIES_STATIC
ed25519_LIBRARIES_SHARED
)

54
cmake/FindOpus.cmake Normal file
View File

@ -0,0 +1,54 @@
# - Try to find opus include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(opus)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# opus_ROOT_DIR Set this variable to the root installation of
# opus if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# opus_FOUND System has opus, include and library dirs found
# opus_INCLUDE_DIR The opus include directories.
# opus_LIBRARIES_STATIC The opus libraries.
# opus_LIBRARIES_SHARED The opus libraries.
find_path(opus_ROOT_DIR
NAMES include/opus/opus.h
HINTS ${opus_ROOT_DIR}
)
find_path(opus_INCLUDE_DIR
NAMES opus/opus.h opus/opus_defines.h
HINTS ${opus_ROOT_DIR}/include/
)
find_library(opus_LIBRARIES_STATIC
NAMES opus.a opus.lib
PATH_SUFFIXES lib/
HINTS
${opus_ROOT_DIR}/lib
)
find_library(opus_LIBRARIES_SHARED
NAMES opus.dll opus.so
PATH_SUFFIXES lib bin
HINTS ${opus_ROOT_DIR} ${opus_ROOT_DIR}/build ${opus_ROOT_DIR}/libs ${opus_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(opus DEFAULT_MSG
opus_INCLUDE_DIR
)
mark_as_advanced(
opus_ROOT_DIR
opus_INCLUDE_DIR
opus_LIBRARIES_STATIC
opus_LIBRARIES_SHARED
)

54
cmake/FindPortAudio.cmake Normal file
View File

@ -0,0 +1,54 @@
# - Try to find PortAudio include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(PortAudio)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# PortAudio_ROOT_DIR Set this variable to the root installation of
# PortAudio if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# PortAudio_FOUND System has PortAudio, include and library dirs found
# PortAudio_INCLUDE_DIR The PortAudio include directories.
# PortAudio_LIBRARIES_STATIC The PortAudio libraries.
# PortAudio_LIBRARIES_SHARED The PortAudio libraries.
find_path(PortAudio_ROOT_DIR
NAMES include/portaudio.h
HINTS ${PortAudio_ROOT_DIR}
)
find_path(PortAudio_INCLUDE_DIR
NAMES portaudio.h
HINTS ${PortAudio_ROOT_DIR}/include/
)
find_library(PortAudio_LIBRARIES_STATIC
NAMES portaudio_static_x64.a portaudio_static_x64.lib
PATH_SUFFIXES lib/
HINTS
${PortAudio_ROOT_DIR}/lib
)
find_library(PortAudio_LIBRARIES_SHARED
NAMES portaudio_shared_x64.dll portaudio_shared_x64.so
PATH_SUFFIXES lib bin
HINTS ${PortAudio_ROOT_DIR} ${PortAudio_ROOT_DIR}/build ${PortAudio_ROOT_DIR}/libs ${PortAudio_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PortAudio DEFAULT_MSG
PortAudio_INCLUDE_DIR
)
mark_as_advanced(
PortAudio_ROOT_DIR
PortAudio_INCLUDE_DIR
PortAudio_LIBRARIES_STATIC
PortAudio_LIBRARIES_SHARED
)

58
cmake/FindSoxr.cmake Normal file
View File

@ -0,0 +1,58 @@
# - Try to find soxr include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(soxr)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# soxr_ROOT_DIR Set this variable to the root installation of
# soxr if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# soxr_FOUND System has soxr, include and library dirs found
# soxr_INCLUDE_DIR The soxr include directories.
# soxr_LIBRARIES_STATIC The soxr libraries.
# soxr_LIBRARIES_SHARED The soxr libraries.
find_path(soxr_ROOT_DIR
NAMES src/Definitions.h CMakeLists.txt
HINTS ${soxr_ROOT_DIR}
)
find_path(soxr_INCLUDE_DIR
NAMES soxr.h
HINTS ${soxr_ROOT_DIR}/include/
)
find_library(soxr_LIBRARIES_STATIC
NAMES soxr.a soxr.lib
PATH_SUFFIXES lib/
HINTS
${soxr_ROOT_DIR}
${soxr_ROOT_DIR}/build
${soxr_ROOT_DIR}/libs
${soxr_ROOT_DIR}/out/
${soxr_ROOT_DIR}/cmake-build-release
)
find_library(soxr_LIBRARIES_SHARED
NAMES soxr.dll soxr.so
PATH_SUFFIXES lib bin
HINTS ${soxr_ROOT_DIR} ${soxr_ROOT_DIR}/build ${soxr_ROOT_DIR}/libs ${soxr_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(soxr DEFAULT_MSG
soxr_INCLUDE_DIR
)
mark_as_advanced(
soxr_ROOT_DIR
soxr_INCLUDE_DIR
soxr_LIBRARIES_STATIC
soxr_LIBRARIES_SHARED
)

View File

@ -0,0 +1,53 @@
# - Try to find StringVariable include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(StringVariable)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# StringVariable_ROOT_DIR Set this variable to the root installation of
# StringVariable if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# StringVariable_FOUND System has StringVariable, include and library dirs found
# StringVariable_INCLUDE_DIR The StringVariable include directories.
# StringVariable_LIBRARIES_STATIC The StringVariable libraries.
# StringVariable_LIBRARIES_SHARED The StringVariable libraries.
find_path(StringVariable_ROOT_DIR
NAMES include/StringVariable.h CMakeLists.txt
HINTS ${StringVariable_ROOT_DIR}
)
find_path(StringVariable_INCLUDE_DIR
NAMES StringVariable.h
HINTS ${StringVariable_ROOT_DIR}/include
)
find_library(StringVariable_LIBRARIES_STATIC
NAMES StringVariablesStatic.lib StringVariablesStatic.a
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${StringVariable_ROOT_DIR} ${StringVariable_ROOT_DIR}/build ${StringVariable_ROOT_DIR}/libs ${StringVariable_ROOT_DIR}/out/
)
find_library(StringVariable_LIBRARIES_SHARED
NAMES StringVariable.dll StringVariable.so
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${StringVariable_ROOT_DIR} ${StringVariable_ROOT_DIR}/build ${StringVariable_ROOT_DIR}/libs ${StringVariable_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(StringVariable DEFAULT_MSG
StringVariable_INCLUDE_DIR
)
mark_as_advanced(
StringVariable_ROOT_DIR
StringVariable_INCLUDE_DIR
StringVariable_LIBRARIES_STATIC
StringVariable_LIBRARIES_SHARED
)

View File

@ -0,0 +1,59 @@
# - Try to find TeaSpeak_SharedLib include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(TeaSpeak_SharedLib)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# TeaSpeak_SharedLib_ROOT_DIR Set this variable to the root installation of
# TeaSpeak_SharedLib if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# TeaSpeak_SharedLib_FOUND System has TeaSpeak_SharedLib, include and library dirs found
# TeaSpeak_SharedLib_INCLUDE_DIR The TeaSpeak_SharedLib include directories.
# TeaSpeak_SharedLib_LIBRARIES_STATIC The TeaSpeak_SharedLib libraries.
# TeaSpeak_SharedLib_LIBRARIES_SHARED The TeaSpeak_SharedLib libraries.
find_path(TeaSpeak_SharedLib_ROOT_DIR
NAMES src/Definitions.h CMakeLists.txt
HINTS ${TeaSpeak_SharedLib_ROOT_DIR}
)
#This NEEDS a fix!
find_path(TeaSpeak_SharedLib_INCLUDE_DIR
NAMES Definitions.h
HINTS ${TeaSpeak_SharedLib_ROOT_DIR}/src
)
find_library(TeaSpeak_SharedLib_LIBRARIES_STATIC
NAMES TeaSpeak.a TeaSpeak.lib
PATH_SUFFIXES out/win32_amd64/RelWithDebInfo out/win32/Release
HINTS
${TeaSpeak_SharedLib_ROOT_DIR}
${TeaSpeak_SharedLib_ROOT_DIR}/build
${TeaSpeak_SharedLib_ROOT_DIR}/libs
${TeaSpeak_SharedLib_ROOT_DIR}/out/
${TeaSpeak_SharedLib_ROOT_DIR}/cmake-build-relwithdebinfo
)
find_library(TeaSpeak_SharedLib_LIBRARIES_SHARED
NAMES TeaSpeak.dll TeaSpeak.so
PATH_SUFFIXES out/win32_amd64/RelWithDebInfo out/win32/Release
HINTS ${TeaSpeak_SharedLib_ROOT_DIR} ${TeaSpeak_SharedLib_ROOT_DIR}/build ${TeaSpeak_SharedLib_ROOT_DIR}/libs ${TeaSpeak_SharedLib_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TeaSpeak_SharedLib DEFAULT_MSG
TeaSpeak_SharedLib_INCLUDE_DIR
)
mark_as_advanced(
TeaSpeak_SharedLib_ROOT_DIR
TeaSpeak_SharedLib_INCLUDE_DIR
TeaSpeak_SharedLib_LIBRARIES_STATIC
TeaSpeak_SharedLib_LIBRARIES_SHARED
)

View File

@ -0,0 +1,55 @@
# - Try to find ThreadPool include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(ThreadPool)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# ThreadPool_ROOT_DIR Set this variable to the root installation of
# ThreadPool if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# ThreadPool_FOUND System has ThreadPool, include and library dirs found
# ThreadPool_INCLUDE_DIR The ThreadPool include directories.
# ThreadPool_LIBRARIES_STATIC The ThreadPool libraries.
# ThreadPool_LIBRARIES_SHARED The ThreadPool libraries.
find_path(ThreadPool_ROOT_DIR
NAMES include/ThreadPool.h CMakeLists.txt
HINTS ${ThreadPool_ROOT_DIR}
)
#This NEEDS a fix!
find_path(ThreadPool_INCLUDE_DIR
NAMES ThreadPool/ThreadPool.h
PATH_SUFFIXES include
HINTS ${ThreadPool_ROOT_DIR} ${ThreadPool_ROOT_DIR}/build ${ThreadPool_ROOT_DIR}/libs ${ThreadPool_ROOT_DIR}/out/win32_amd64
)
find_library(ThreadPool_LIBRARIES_STATIC
NAMES ThreadPoolStatic.lib ThreadPoolStatic.a
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${ThreadPool_ROOT_DIR} ${ThreadPool_ROOT_DIR}/build ${ThreadPool_ROOT_DIR}/libs ${ThreadPool_ROOT_DIR}/out/
)
find_library(ThreadPool_LIBRARIES_SHARED
NAMES ThreadPool.dll ThreadPool.so
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${ThreadPool_ROOT_DIR} ${ThreadPool_ROOT_DIR}/build ${ThreadPool_ROOT_DIR}/libs ${ThreadPool_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ThreadPool DEFAULT_MSG
ThreadPool_INCLUDE_DIR
)
mark_as_advanced(
ThreadPool_ROOT_DIR
ThreadPool_INCLUDE_DIR
ThreadPool_LIBRARIES_STATIC
ThreadPool_LIBRARIES_SHARED
)

53
cmake/FindTomCrypt.cmake Normal file
View File

@ -0,0 +1,53 @@
# - Try to find tomcrypt include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(TomCrypt)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# TomCrypt_ROOT_DIR Set this variable to the root installation of
# TomCrypt if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# TomCrypt_FOUND System has TomCrypt, include and library dirs found
# TomCrypt_INCLUDE_DIR The TomCrypt include directories.
# TomCrypt_LIBRARIES_STATIC The TomCrypt libraries.
# TomCrypt_LIBRARIES_SHARED The TomCrypt libraries.
find_path(TomCrypt_ROOT_DIR
NAMES src/headers/tomcrypt.h makefile LICENSE
HINTS ${TomCrypt_ROOT_DIR}
)
find_path(TomCrypt_INCLUDE_DIR
NAMES tomcrypt.h tomcrypt_cfg.h
HINTS ${TomCrypt_ROOT_DIR}/src/headers
)
find_library(TomCrypt_LIBRARIES_STATIC
NAMES libtomcrypt.lib libtomcrypt.a
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${TomCrypt_ROOT_DIR} ${TomCrypt_ROOT_DIR}/build ${TomCrypt_ROOT_DIR}/libs ${TomCrypt_ROOT_DIR}/out/
)
find_library(TomCrypt_LIBRARIES_SHARED
NAMES libtomcrypt.dll libtomcrypt.so
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${TomCrypt_ROOT_DIR} ${TomCrypt_ROOT_DIR}/build ${TomCrypt_ROOT_DIR}/libs ${TomCrypt_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TomCrypt DEFAULT_MSG
TomCrypt_INCLUDE_DIR
)
mark_as_advanced(
TomCrypt_ROOT_DIR
TomCrypt_INCLUDE_DIR
TomCrypt_LIBRARIES_STATIC
TomCrypt_LIBRARIES_SHARED
)

53
cmake/FindTomMath.cmake Normal file
View File

@ -0,0 +1,53 @@
# - Try to find tommath include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(TomMath)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# TomMath_ROOT_DIR Set this variable to the root installation of
# TomMath if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# TomMath_FOUND System has TomMath, include and library dirs found
# TomMath_INCLUDE_DIR The TomMath include directories.
# TomMath_LIBRARIES_STATIC The TomMath libraries.
# TomMath_LIBRARIES_SHARED The TomMath libraries.
find_path(TomMath_ROOT_DIR
NAMES include/tommath.h CMakeLists.txt LICENSE
HINTS ${TomMath_ROOT_DIR}
)
find_path(TomMath_INCLUDE_DIR
NAMES tommath.h tommath_private.h
HINTS ${TomMath_ROOT_DIR}/include
)
find_library(TomMath_LIBRARIES_STATIC
NAMES tommath.lib tommath.a
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${TomMath_ROOT_DIR} ${TomMath_ROOT_DIR}/build ${TomMath_ROOT_DIR}/libs ${TomMath_ROOT_DIR}/out/
)
find_library(TomMath_LIBRARIES_SHARED
NAMES tommath.dll tommath.so
PATH_SUFFIXES out/win32_amd64/Release out/win32/Release out/win32_x64/Release
HINTS ${TomMath_ROOT_DIR} ${TomMath_ROOT_DIR}/build ${TomMath_ROOT_DIR}/libs ${TomMath_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TomMath DEFAULT_MSG
TomMath_INCLUDE_DIR
)
mark_as_advanced(
TomMath_ROOT_DIR
TomMath_INCLUDE_DIR
TomMath_LIBRARIES_STATIC
TomMath_LIBRARIES_SHARED
)

54
cmake/Findfvad.cmake Normal file
View File

@ -0,0 +1,54 @@
# - Try to find fvad include dirs and libraries
#
# Usage of this module as follows:
#
# find_package(fvad)
#
# Variables used by this module, they can change the default behaviour and need
# to be set before calling find_package:
#
# fvad_ROOT_DIR Set this variable to the root installation of
# fvad if the module has problems finding the
# proper installation path.
#
# Variables defined by this module:
#
# fvad_FOUND System has fvad, include and library dirs found
# fvad_INCLUDE_DIR The fvad include directories.
# fvad_LIBRARIES_STATIC The fvad libraries.
# fvad_LIBRARIES_SHARED The fvad libraries.
find_path(fvad_ROOT_DIR
NAMES include/fvad.h
HINTS ${fvad_ROOT_DIR}
)
find_path(fvad_INCLUDE_DIR
NAMES fvad.h
HINTS ${fvad_ROOT_DIR}/include/
)
find_library(fvad_LIBRARIES_STATIC
NAMES libfvad.a libfvad.lib
PATH_SUFFIXES lib/
HINTS
${fvad_ROOT_DIR}/lib
)
find_library(fvad_LIBRARIES_SHARED
NAMES libfvad.dll libfvad.so
PATH_SUFFIXES lib bin
HINTS ${fvad_ROOT_DIR} ${fvad_ROOT_DIR}/build ${fvad_ROOT_DIR}/libs ${fvad_ROOT_DIR}/out/
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(fvad DEFAULT_MSG
fvad_INCLUDE_DIR
)
mark_as_advanced(
fvad_ROOT_DIR
fvad_INCLUDE_DIR
fvad_LIBRARIES_STATIC
fvad_LIBRARIES_SHARED
)

View File

@ -0,0 +1,16 @@
SET(TomMath_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/tommath")
SET(TomCrypt_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/tomcrypt")
SET(DataPipes_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/DataPipes")
SET(StringVariable_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/StringVariable")
SET(ThreadPool_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/Thread-Pool")
SET(ed25519_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/ed25519")
SET(LibEvent_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/libevent/out/win32_amd64/cmake")
SET(soxr_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/soxr/out/win32_amd64")
SET(PortAudio_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/portaudio/out/win32_amd64")
SET(fvad_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/libfvad/out/win32_amd64")
SET(opus_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/opus/out/win32_amd64")
SET(breakpad_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/third_party/breakpad")
SET(TeaSpeak_SharedLib_ROOT_DIR "C:/Users/WolverinDEV/TeaSpeak/TeaSpeak-SharedLib")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "C:/Users/WolverinDEV/TeaSpeak/third_party/spdlog/out/win32_amd64")

1
third_party/DataPipes vendored Submodule

@ -0,0 +1 @@
Subproject commit 5e273451558ecffff56e7bcc5db158b821d6b7bc

1
third_party/StringVariable vendored Submodule

@ -0,0 +1 @@
Subproject commit 4d6788cb3d42dde4c5e6064dc2b79e99db4446d9

1
third_party/Thread-Pool vendored Submodule

@ -0,0 +1 @@
Subproject commit 9ce59992ee8a538aad54911d0b5883333be95d7e

1
third_party/boringssl vendored Submodule

@ -0,0 +1 @@
Subproject commit d6f9c359d219055a89c676cb8886421b145a08da

1
third_party/breakpad vendored Submodule

@ -0,0 +1 @@
Subproject commit 9cafb376ebdf0d00a2fc2323e3eef26ccb27fa1d

9
third_party/build_boringssl.txt vendored Normal file
View File

@ -0,0 +1,9 @@
Windows AMD64:
cd DataPipes
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DOPENSSL_NO_ASM=ON
MSBuild.exe //p:Configuration=Release //p:Platform=x64 crypto/crypto.vcxproj
MSBuild.exe //p:Configuration=Release //p:Platform=x64 ssl/ssl.vcxproj

7
third_party/build_breakpad.txt vendored Normal file
View File

@ -0,0 +1,7 @@
Windows AMD64:
cd breakpad
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
#We dont build breakpad, we directly include that in out project

9
third_party/build_datapipes.txt vendored Normal file
View File

@ -0,0 +1,9 @@
Windows AMD64:
cd DataPipes
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DMSVC_RUNTIME=static -DBUILD_TESTS=OFF -DBUILD_WEBRTC=OFF -DCrypto_ROOT_DIR="C:\Users\WolverinDEV\TeaSpeak\third_party\boringssl" -DBUILD_SHARED=OFF -DBUILD_STATIC=ON -DCMAKE_INSTALL_PREFIX=.
MSBuild.exe //p:Configuration=Release //p:Platform=x64 DataPipes-Static.vcxproj
MSBuild.exe //p:Configuration=Release //p:Platform=x64 INSTALL.vcxproj

9
third_party/build_ed25519.txt vendored Normal file
View File

@ -0,0 +1,9 @@
Windows AMD64:
cd ed25519
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=. -DUSE_OPENSSL=OFF
MSBuild.exe //p:Configuration=Release //p:Platform=x64 ed25519.vcxproj
MSBuild.exe //p:Configuration=Release //p:Platform=x64 INSTALL.vcxproj

8
third_party/build_fvad.txt vendored Normal file
View File

@ -0,0 +1,8 @@
Windows AMD64:
cd libfvad
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DBUILD_TESTS=OFF -DBUILD_SHARED=OFF -DBUILD_STATIC=ON -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=.
MSBuild.exe //p:Configuration=Release //p:Platform=x64 INSTALL.vcxproj

11
third_party/build_libevent.txt vendored Normal file
View File

@ -0,0 +1,11 @@
Windows AMD64:
cd libevent
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DEVENT_INSTALL_CMAKE_DIR=cmake -DCMAKE_INSTALL_PREFIX=. -DEVENT__DISABLE_BENCHMARK=ON -DEVENT__LIBRARY_TYPE=BOTH -DEVENT__MSVC_STATIC_RUNTIME=ON -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_SAMPLES=ON -DEVENT__DISABLE_OPENSSL=ON
#MSBuild.exe //p:Configuration=Release //p:Platform=x64 event_shared.vcxproj
MSBuild.exe //p:Configuration=Release //p:Platform=x64 event_static.vcxproj
MSBuild.exe //p:Configuration=Release //p:Platform=x64 INSTALL.vcxproj

9
third_party/build_opus.txt vendored Normal file
View File

@ -0,0 +1,9 @@
Windows AMD64:
cd opus
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DCMAKE_C_FLAGS="/arch:SSE" -DCMAKE_INSTALL_PREFIX=. -DOPUS_X86_PRESUME_AVX=OFF -DOPUS_X86_PRESUME_SSE4_1=OFF
sed -i 's/AdvancedVectorExtensions/NoExtensions/g' *.vcxproj
MSBuild.exe //p:Configuration=RelWithDebInfo //p:Platform=x64 INSTALL.vcxproj

8
third_party/build_portaudio.txt vendored Normal file
View File

@ -0,0 +1,8 @@
Windows AMD64:
cd portaudio
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DPA_BUILD_SHARED=OFF -DPA_BUILD_STATIC=ON -DPA_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=.
MSBuild.exe //p:Configuration=Release //p:Platform=x64 INSTALL.vcxproj

8
third_party/build_soxr.txt vendored Normal file
View File

@ -0,0 +1,8 @@
Windows AMD64:
cd soxr
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DBUILD_SHARED_RUNTIME=OFF -DWITH_OPENMP=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=.
MSBuild.exe //p:Configuration=Release //p:Platform=x64 INSTALL.vcxproj

8
third_party/build_spdlog.txt vendored Normal file
View File

@ -0,0 +1,8 @@
Windows AMD64:
cd spdlog
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DSPDLOG_BUILD_EXAMPLES=OFF -DSPDLOG_BUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=.
MSBuild.exe //p:Configuration=Release //p:Platform=x64 INSTALL.vcxproj

8
third_party/build_stringvariable.txt vendored Normal file
View File

@ -0,0 +1,8 @@
Windows AMD64:
cd StringVariable
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DMSVC_RUNTIME=static -DCMAKE_INSTALL_PREFIX=.
MSBuild.exe //p:Configuration=Release //p:Platform=x64 INSTALL.vcxproj

9
third_party/build_threadpool.txt vendored Normal file
View File

@ -0,0 +1,9 @@
Windows AMD64:
cd ThreadPool
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DMSVC_RUNTIME=static -DCMAKE_INSTALL_PREFIX=.
MSBuild.exe //p:Configuration=Release //p:Platform=x64 ThreadPoolStatic.vcxproj
MSBuild.exe //p:Configuration=Release //p:Platform=x64 INSTALL.vcxproj

11
third_party/build_tomcrypt.txt vendored Normal file
View File

@ -0,0 +1,11 @@
Windows AMD64:
cd tomcrypt
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DMSVC_RUNTIME=static -DCMAKE_C_FLAGS="-DLTM_DESC -DUSE_LTM -I../../../tommath/include/"
MSBuild.exe //p:Configuration=Release //p:Platform=x64 libtomcrypt.vcxproj
Notice: THe MSBuild step has to been executed twice because it does no find the headers in the first step!

9
third_party/build_tommath.txt vendored Normal file
View File

@ -0,0 +1,9 @@
Windows AMD64:
cd tommath
if [[ ! -d out/win32_amd64 ]]; then
mkdir -p out/win32_amd64
fi
cd out/win32_amd64
cmake ../../ -G"Visual Studio 14 2015 Win64" -DMSVC_RUNTIME=static
MSBuild.exe //p:Configuration=Release //p:Platform=x64 TomMath_Static.vcxproj
MSBuild.exe //p:Configuration=Release //p:Platform=x64 TomMath_Shared.vcxproj

1
third_party/ed25519 vendored Submodule

@ -0,0 +1 @@
Subproject commit ad72bc7f729ebf046bc074eb4ec925e594926f82

1
third_party/libevent vendored Submodule

@ -0,0 +1 @@
Subproject commit 5388a002f5ad3bdfc756584dc58485fc3db135d0

1
third_party/libfvad vendored Submodule

@ -0,0 +1 @@
Subproject commit 1a47fef4b715323b32295e6ba234818ed408c8fe

1
third_party/opus vendored Submodule

@ -0,0 +1 @@
Subproject commit ad8fe90db79b7d2a135e3dfd2ed6631b0c5662ab

1
third_party/portaudio vendored Submodule

@ -0,0 +1 @@
Subproject commit c5d2c51bd6fe354d0ee1119ba932bfebd3ebfacc

1
third_party/soxr vendored Submodule

@ -0,0 +1 @@
Subproject commit 945b592b70470e29f917f4de89b4281fbbd540c0

1
third_party/spdlog vendored Submodule

@ -0,0 +1 @@
Subproject commit 96e840155393fce947c427aa2faf5ba0ef100a22

1
third_party/tomcrypt vendored Submodule

@ -0,0 +1 @@
Subproject commit 4dd53007569b454b9af44d64abbf54dc75cbfa41

1
third_party/tommath vendored Submodule

@ -0,0 +1 @@
Subproject commit fe6cc64884b2b408b607389f46266d44fd942a79