mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refactor: Move chunkware to third_party
This commit is contained in:
@@ -8,19 +8,6 @@ add_library(sound SHARED
|
|||||||
codecs/opusdecoder.h
|
codecs/opusdecoder.h
|
||||||
codecs/opusencoder.cpp
|
codecs/opusencoder.cpp
|
||||||
codecs/opusencoder.h
|
codecs/opusencoder.h
|
||||||
dsp/SimpleComp.cpp
|
|
||||||
dsp/SimpleComp.h
|
|
||||||
dsp/SimpleCompProcess.inl
|
|
||||||
dsp/SimpleEnvelope.cpp
|
|
||||||
dsp/SimpleEnvelope.h
|
|
||||||
dsp/SimpleGain.h
|
|
||||||
dsp/SimpleGate.cpp
|
|
||||||
dsp/SimpleGate.h
|
|
||||||
dsp/SimpleGateProcess.inl
|
|
||||||
dsp/SimpleHeader.h
|
|
||||||
dsp/SimpleLimit.cpp
|
|
||||||
dsp/SimpleLimit.h
|
|
||||||
dsp/SimpleLimitProcess.inl
|
|
||||||
dsp/biquadfilter.cpp
|
dsp/biquadfilter.cpp
|
||||||
dsp/biquadfilter.h
|
dsp/biquadfilter.h
|
||||||
notificationplayer.cpp
|
notificationplayer.cpp
|
||||||
@@ -76,6 +63,7 @@ target_link_libraries(sound
|
|||||||
Qt::Multimedia
|
Qt::Multimedia
|
||||||
misc
|
misc
|
||||||
Opus::opus
|
Opus::opus
|
||||||
|
ChunkwareDsp
|
||||||
)
|
)
|
||||||
|
|
||||||
install(TARGETS sound
|
install(TARGETS sound
|
||||||
|
|||||||
@@ -9,7 +9,8 @@
|
|||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include "sound/dsp/SimpleComp.h"
|
#include "chunkware_dsp/SimpleComp.h"
|
||||||
|
|
||||||
#include "sound/sampleprovider/sampleprovider.h"
|
#include "sound/sampleprovider/sampleprovider.h"
|
||||||
#include "sound/swiftsoundexport.h"
|
#include "sound/swiftsoundexport.h"
|
||||||
|
|
||||||
|
|||||||
1
third_party/CMakeLists.txt
vendored
1
third_party/CMakeLists.txt
vendored
@@ -1,6 +1,7 @@
|
|||||||
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
|
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||||
|
|
||||||
|
add_subdirectory(chunkware_dsp)
|
||||||
add_subdirectory(simplecrypt)
|
add_subdirectory(simplecrypt)
|
||||||
add_subdirectory(qjsonwebtoken)
|
add_subdirectory(qjsonwebtoken)
|
||||||
add_subdirectory(cmake/msgpack EXCLUDE_FROM_ALL SYSTEM)
|
add_subdirectory(cmake/msgpack EXCLUDE_FROM_ALL SYSTEM)
|
||||||
|
|||||||
29
third_party/chunkware_dsp/CMakeLists.txt
vendored
Normal file
29
third_party/chunkware_dsp/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
||||||
|
|
||||||
|
add_library(ChunkwareDsp STATIC)
|
||||||
|
target_sources(ChunkwareDsp
|
||||||
|
PRIVATE
|
||||||
|
SimpleComp.cpp
|
||||||
|
SimpleComp.h
|
||||||
|
SimpleCompProcess.inl
|
||||||
|
SimpleEnvelope.cpp
|
||||||
|
SimpleEnvelope.h
|
||||||
|
SimpleGain.h
|
||||||
|
SimpleGate.cpp
|
||||||
|
SimpleGate.h
|
||||||
|
SimpleGateProcess.inl
|
||||||
|
SimpleHeader.h
|
||||||
|
SimpleLimit.cpp
|
||||||
|
SimpleLimit.h
|
||||||
|
SimpleLimitProcess.inl
|
||||||
|
)
|
||||||
|
target_include_directories(ChunkwareDsp
|
||||||
|
PUBLIC
|
||||||
|
${PROJECT_SOURCE_DIR}/third_party
|
||||||
|
)
|
||||||
|
set_property(TARGET ChunkwareDsp PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
|
set_source_files_properties(SimpleComp.cpp PROPERTIES SKIP_LINTING ON)
|
||||||
|
set_source_files_properties(SimpleEnvelope.cpp PROPERTIES SKIP_LINTING ON)
|
||||||
|
set_source_files_properties(SimpleGate.cpp PROPERTIES SKIP_LINTING ON)
|
||||||
|
set_source_files_properties(SimpleLimit.cpp PROPERTIES SKIP_LINTING ON)
|
||||||
@@ -30,9 +30,9 @@
|
|||||||
#ifndef chunkware_simple_SIMPLE_COMP_H
|
#ifndef chunkware_simple_SIMPLE_COMP_H
|
||||||
#define chunkware_simple_SIMPLE_COMP_H
|
#define chunkware_simple_SIMPLE_COMP_H
|
||||||
|
|
||||||
#include "SimpleHeader.h" // common header
|
#include "chunkware_dsp/SimpleEnvelope.h"
|
||||||
#include "SimpleEnvelope.h" // for base class
|
#include "chunkware_dsp/SimpleGain.h"
|
||||||
#include "SimpleGain.h" // for gain functions
|
#include "chunkware_dsp/SimpleHeader.h"
|
||||||
|
|
||||||
namespace chunkware_simple
|
namespace chunkware_simple
|
||||||
{
|
{
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
#ifndef __SIMPLE_ENVELOPE_H__
|
#ifndef __SIMPLE_ENVELOPE_H__
|
||||||
#define __SIMPLE_ENVELOPE_H__
|
#define __SIMPLE_ENVELOPE_H__
|
||||||
|
|
||||||
#include "SimpleHeader.h" // common header
|
#include "SimpleHeader.h"
|
||||||
|
|
||||||
namespace chunkware_simple
|
namespace chunkware_simple
|
||||||
{
|
{
|
||||||
@@ -31,9 +31,9 @@
|
|||||||
#ifndef chunkware__SIMPLE_GATE_H
|
#ifndef chunkware__SIMPLE_GATE_H
|
||||||
#define chunkware__SIMPLE_GATE_H
|
#define chunkware__SIMPLE_GATE_H
|
||||||
|
|
||||||
#include "SimpleHeader.h" // common header
|
#include "chunkware_dsp/SimpleEnvelope.h"
|
||||||
#include "SimpleEnvelope.h" // for base class
|
#include "chunkware_dsp/SimpleGain.h" // for gain functions
|
||||||
#include "SimpleGain.h" // for gain functions
|
#include "chunkware_dsp/SimpleHeader.h" // common header
|
||||||
|
|
||||||
namespace chunkware_simple
|
namespace chunkware_simple
|
||||||
{
|
{
|
||||||
@@ -31,9 +31,9 @@
|
|||||||
#ifndef chunkware_SIMPLE_LIMIT_H
|
#ifndef chunkware_SIMPLE_LIMIT_H
|
||||||
#define chunkware_SIMPLE_LIMIT_H
|
#define chunkware_SIMPLE_LIMIT_H
|
||||||
|
|
||||||
#include "SimpleHeader.h" // common header
|
#include "chunkware_dsp/SimpleHeader.h" // common header
|
||||||
#include "SimpleEnvelope.h" // for base class of FastEnvelope
|
#include "chunkware_dsp/SimpleEnvelope.h" // for base class of FastEnvelope
|
||||||
#include "SimpleGain.h" // for gain functions
|
#include "chunkware_dsp/SimpleGain.h" // for gain functions
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace chunkware_simple
|
namespace chunkware_simple
|
||||||
Reference in New Issue
Block a user