move audio_compressor from libutun_lite/ to lib/ — shared library
- audio_compressor.h/c moved to lib/ (alongside opus_codec, mem, debug_config) - lib/Makefile.am: added to libuasync_a_SOURCES - utun_sources.cmake: removed from _cfg_src (GLOB from lib/ picks it up) - tests/Makefile.am: test_audio_compressor added to check_PROGRAMS - test includes simplified (debug_config.h, mem.h — lib/ in include path)
This commit is contained in:
1 parent
d22eac55f7
commit
90de87b13d
6 files changed
+9
-4
No files matched your search
+3
-1
@@ -32,7 +32,9 @@ libuasync_a_SOURCES = \
|
||||
sqlite3.c \
|
||||
sqlite3.h \
|
||||
opus_codec.c \
|
||||
opus_codec.h
|
||||
opus_codec.h \
|
||||
audio_compressor.c \
|
||||
audio_compressor.h
|
||||
|
||||
libuasync_a_CFLAGS = \
|
||||
-D_ISOC99_SOURCE \
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -54,6 +54,7 @@ check_PROGRAMS = \
|
||||
test_chat_sync_stress \
|
||||
test_stcp_traffic \
|
||||
test_bbr_integration \
|
||||
test_audio_compressor \
|
||||
test_intensive_memory_pool \
|
||||
test_tcp_io \
|
||||
test_uasync_socket_race \
|
||||
@@ -311,6 +312,9 @@ test_opus_codec_SOURCES = test_opus_codec.c
|
||||
test_opus_codec_CFLAGS = -I$(top_srcdir)/lib -I$(top_srcdir)/lib/libopus/include
|
||||
test_opus_codec_LDADD = $(COMMON_LIBS) $(top_builddir)/lib/libopus/libopus_internal.a -lm
|
||||
|
||||
test_audio_compressor_SOURCES = test_audio_compressor.c
|
||||
test_audio_compressor_LDADD = $(COMMON_LIBS) -lm
|
||||
|
||||
# Copy test configs to build directory (tests run from build/tests/)
|
||||
all-local: copy-test-configs
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "audio_compressor.h"
|
||||
#include "../../../lib/debug_config.h"
|
||||
#include "../../../lib/mem.h"
|
||||
#include "debug_config.h"
|
||||
#include "mem.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -36,7 +36,6 @@ function(utun_setup_sources LIB_DIR SRC_DIR CONFIG_DIR TOOLS_DIR)
|
||||
"${CONFIG_DIR}/utun_config_api.c"
|
||||
"${CONFIG_DIR}/invite_link_c.c"
|
||||
"${CONFIG_DIR}/instance_lite.c"
|
||||
"${CONFIG_DIR}/audio_compressor.c"
|
||||
"${CONFIG_DIR}/voice_recorder.c"
|
||||
"${CONFIG_DIR}/attachment_sender.c"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user