Skip to content

Commit

Permalink
Merge pull request #39 from Itokoyamato/plugin-1.2.5
Browse files Browse the repository at this point in the history
Plugin 1.2.5
  • Loading branch information
Dylan Thuillier authored Jul 20, 2019
2 parents dbca8a3 + 75cb75a commit c38e398
Show file tree
Hide file tree
Showing 35 changed files with 84 additions and 2,862 deletions.
9 changes: 3 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
[submodule "ts3_plugin/deps/DSPFilters"]
path = ts3_plugin/deps/DSPFilters
url = https://github.com/vinniefalco/DSPFilters
[submodule "ts3_plugin/deps/teamspeak-plugin-qt-common"]
path = ts3_plugin/deps/teamspeak-plugin-qt-common
url = https://github.com/thorwe/teamspeak-plugin-qt-common
[submodule "ts3_plugin/deps/Simple-WebSocket-Server"]
path = ts3_plugin/deps/Simple-WebSocket-Server
url = https://gitlab.com/eidheim/Simple-WebSocket-Server
Expand All @@ -13,3 +7,6 @@
[submodule "ts3_plugin/deps/json"]
path = ts3_plugin/deps/json
url = https://github.com/nlohmann/json.git
[submodule "ts3_plugin/deps/teamspeak-plugin-radiofx"]
path = ts3_plugin/deps/teamspeak-plugin-radiofx
url = https://github.com/Itokoyamato/teamspeak-plugin-radiofx
68 changes: 14 additions & 54 deletions ts3_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,30 @@ cmake_minimum_required (VERSION 3.6)
project (TokoVoip LANGUAGES CXX)
add_definitions(-DASIO_STANDALONE -DUSE_STANDALONE_ASIO)

find_package(Qt5 COMPONENTS Gui Widgets REQUIRED)
link_libraries(Qt5::Gui Qt5::Widgets)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt5 COMPONENTS Core Sql REQUIRED)
link_libraries(Qt5::Core Qt5::Sql)

include_directories(
"src"
"deps/DSPFilters/shared/DSPFilters/include"
"deps/openssl/include"
"deps/asio/asio/include"
"deps/Simple-WebSocket-Server"
"deps/json/single_include/nlohmann"
"deps/curl/include/curl"
)

set (DSP_FILTERS
"deps/DSPFilters/shared/DSPFilters/source/Bessel.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Biquad.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Butterworth.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Cascade.cpp"
"deps/DSPFilters/shared/DSPFilters/source/ChebyshevI.cpp"
"deps/DSPFilters/shared/DSPFilters/source/ChebyshevII.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Custom.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Design.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Documentation.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Elliptic.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Filter.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Legendre.cpp"
"deps/DSPFilters/shared/DSPFilters/source/Param.cpp"
"deps/DSPFilters/shared/DSPFilters/source/PoleFilter.cpp"
"deps/DSPFilters/shared/DSPFilters/source/RBJ.cpp"
"deps/DSPFilters/shared/DSPFilters/source/RootFinder.cpp"
"deps/DSPFilters/shared/DSPFilters/source/State.cpp"
)
source_group("DSPFilters" FILES ${DSP_FILTERS})

set (PLUGIN_SRC
"src/config_radio.h"
"src/config_radio.cpp"
"src/config_radio.ui"
"src/config_radio_groupbox.h"
"src/config_radio_groupbox.cpp"
"src/config_radio_groupbox.ui"
"src/dsp_radio.h"
"src/dsp_radio.cpp"
"src/mod_radio.h"
"src/mod_radio.cpp"
"src/plugin.h"
"src/plugin.cpp"
"src/plugin_qt.h"
"src/plugin_qt.cpp"
"src/settings_radio.h"
"src/settings_radio.cpp"
set (TOKOVOIP_SRC
"src/tokovoip.cpp"
"src/tokovoip.h"

"radiofx.qrc"
)
source_group("plugin" FILES ${PLUGIN_SRC})
source_group("tokovoip" FILES ${TOKOVOIP_SRC})

# Create named folders for the sources within the .vcproj
# Empty name lists them directly under the .vcproj
#source_group("" FILES ${PLUGIN_SRC})
#source_group("" FILES ${TOKOVOIP_SRC})

# Turn on the ability to create folders to organize projects (.vcproj)
# It creates "CMakePredefinedTargets" folder by default and adds CMake
Expand All @@ -82,12 +42,9 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# message ("cxx Flags:" ${CMAKE_CXX_FLAGS})

# Sub-directories where more CMakeLists.txt exist
#add_subdirectory(app)
#add_subdirectory (math)
set(WITH_VOLUME true)
set(WITH_VOLUME_WIDGETS true)
#add_subdirectory(../teamspeak-plugin-qt-common common_out)
include(deps/teamspeak-plugin-qt-common/CMakeLists.txt)
include(deps/teamspeak-plugin-radiofx/CMakeLists.txt)

project (TokoVoip LANGUAGES CXX)

if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
link_directories(deps/curl/x86/lib)
Expand All @@ -98,12 +55,15 @@ ENDIF()
link_directories(deps/openssl/)

add_library(TokoVoip SHARED
${PLUGIN_SRC} ${TS_QT_CORE} ${TS_QT_VOLUME} ${DSP_FILTERS})
${TOKOVOIP_SRC} ${PLUGIN_SRC} ${TS_QT_CORE} ${TS_QT_VOLUME} ${DSP_FILTERS})

if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
target_link_libraries(TokoVoip libcurl_a wldap32.lib crypt32.lib normaliz.lib libcrypto32MD.lib)
set_target_properties(TokoVoip PROPERTIES OUTPUT_NAME "tokovoip_win32")
ELSE()
target_link_libraries(TokoVoip libcurl_a wldap32.lib crypt32.lib normaliz.lib libcrypto64MD.lib)
set_target_properties(TokoVoip PROPERTIES OUTPUT_NAME "tokovoip_win64")
ENDIF()
ENDIF()

set_property(TARGET TokoVoip PROPERTY CXX_STANDARD 17)
set_property(TARGET TokoVoip PROPERTY CXX_STANDARD_REQUIRED ON)
1 change: 0 additions & 1 deletion ts3_plugin/deps/DSPFilters
Submodule DSPFilters deleted from acc491
1 change: 0 additions & 1 deletion ts3_plugin/deps/teamspeak-plugin-qt-common
Submodule teamspeak-plugin-qt-common deleted from ff1159
1 change: 1 addition & 0 deletions ts3_plugin/deps/teamspeak-plugin-radiofx
Binary file removed ts3_plugin/misc/screenie.png
Binary file not shown.
Binary file removed ts3_plugin/misc/walkie_talkie.pdn
Binary file not shown.
8 changes: 0 additions & 8 deletions ts3_plugin/radiofx.qrc

This file was deleted.

Binary file removed ts3_plugin/res/16x16_delete.png
Binary file not shown.
Binary file removed ts3_plugin/res/ct_16x16.png
Binary file not shown.
Binary file removed ts3_plugin/res/ct_logo_60.png
Binary file not shown.
6 changes: 0 additions & 6 deletions ts3_plugin/res/package.ini

This file was deleted.

Binary file removed ts3_plugin/res/radar_16.png
Binary file not shown.
Binary file removed ts3_plugin/res/radiofx_de_DE.qm
Binary file not shown.
Binary file removed ts3_plugin/res/walkie_talkie_16.png
Binary file not shown.
137 changes: 0 additions & 137 deletions ts3_plugin/src/config_radio.cpp

This file was deleted.

47 changes: 0 additions & 47 deletions ts3_plugin/src/config_radio.h

This file was deleted.

54 changes: 0 additions & 54 deletions ts3_plugin/src/config_radio.ui

This file was deleted.

Loading

0 comments on commit c38e398

Please sign in to comment.