refactor: Move chunkware to third_party

This commit is contained in:
Lars Toenning
2025-10-10 23:12:12 +02:00
parent 8c93f00179
commit e29818a5be
30 changed files with 43 additions and 24 deletions

View File

@@ -8,19 +8,6 @@ add_library(sound SHARED
codecs/opusdecoder.h
codecs/opusencoder.cpp
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.h
notificationplayer.cpp
@@ -76,6 +63,7 @@ target_link_libraries(sound
Qt::Multimedia
misc
Opus::opus
ChunkwareDsp
)
install(TARGETS sound

View File

@@ -9,7 +9,8 @@
#include <QObject>
#include <QTimer>
#include "sound/dsp/SimpleComp.h"
#include "chunkware_dsp/SimpleComp.h"
#include "sound/sampleprovider/sampleprovider.h"
#include "sound/swiftsoundexport.h"

View File

@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
# SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
add_subdirectory(chunkware_dsp)
add_subdirectory(simplecrypt)
add_subdirectory(qjsonwebtoken)
add_subdirectory(cmake/msgpack EXCLUDE_FROM_ALL SYSTEM)

View 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)

View File

@@ -30,9 +30,9 @@
#ifndef chunkware_simple_SIMPLE_COMP_H
#define chunkware_simple_SIMPLE_COMP_H
#include "SimpleHeader.h" // common header
#include "SimpleEnvelope.h" // for base class
#include "SimpleGain.h" // for gain functions
#include "chunkware_dsp/SimpleEnvelope.h"
#include "chunkware_dsp/SimpleGain.h"
#include "chunkware_dsp/SimpleHeader.h"
namespace chunkware_simple
{

View File

@@ -31,7 +31,7 @@
#ifndef __SIMPLE_ENVELOPE_H__
#define __SIMPLE_ENVELOPE_H__
#include "SimpleHeader.h" // common header
#include "SimpleHeader.h"
namespace chunkware_simple
{

View File

@@ -31,9 +31,9 @@
#ifndef chunkware__SIMPLE_GATE_H
#define chunkware__SIMPLE_GATE_H
#include "SimpleHeader.h" // common header
#include "SimpleEnvelope.h" // for base class
#include "SimpleGain.h" // for gain functions
#include "chunkware_dsp/SimpleEnvelope.h"
#include "chunkware_dsp/SimpleGain.h" // for gain functions
#include "chunkware_dsp/SimpleHeader.h" // common header
namespace chunkware_simple
{

View File

@@ -31,9 +31,9 @@
#ifndef chunkware_SIMPLE_LIMIT_H
#define chunkware_SIMPLE_LIMIT_H
#include "SimpleHeader.h" // common header
#include "SimpleEnvelope.h" // for base class of FastEnvelope
#include "SimpleGain.h" // for gain functions
#include "chunkware_dsp/SimpleHeader.h" // common header
#include "chunkware_dsp/SimpleEnvelope.h" // for base class of FastEnvelope
#include "chunkware_dsp/SimpleGain.h" // for gain functions
#include <vector>
namespace chunkware_simple