Skip to content

Commit b779ec8

Browse files
committed
cosmetic conf changes
1 parent ea14ac5 commit b779ec8

6 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/test_tonio.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
container: ubuntu:plucky
1313
strategy:
1414
matrix:
15-
media: [vlc, opus]
15+
media: [libvlc, opusfile]
1616
steps:
1717
- name: Install dependencies
1818
run: |

package/tonio/Config.in

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ menuconfig BR2_PACKAGE_TONIO
1313
if BR2_PACKAGE_TONIO
1414
choice
1515
prompt "Media backend"
16-
default BR2_PACKAGE_TONIO_MEDIA_OPUS
16+
default BR2_PACKAGE_TONIO_MEDIA_OPUSFILE
1717
help
1818
Select the media playback backend for Tonio.
1919

20-
config BR2_PACKAGE_TONIO_MEDIA_OPUS
21-
bool "opusfile (lightweight, no VLC)"
20+
config BR2_PACKAGE_TONIO_MEDIA_OPUSFILE
21+
bool "opusfile (lightweight, only opus decoding)"
2222
select BR2_PACKAGE_OPUSFILE
2323
help
2424
Use the opusfile library + ALSA PCM for Opus audio playback.
2525
This is a lightweight backend that does not require VLC.
2626

27-
config BR2_PACKAGE_TONIO_MEDIA_VLC
28-
bool "VLC (full libvlc)"
27+
config BR2_PACKAGE_TONIO_MEDIA_LIBVLC
28+
bool "libvlc (heavyweight, multiple formats supported)"
2929
select BR2_PACKAGE_VLC
3030
help
3131
Use the full VLC media backend via libvlc.

package/tonio/tonio-1.0/CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ project(tonio VERSION 1.0 LANGUAGES C)
33

44
include(GNUInstallDirs)
55

6-
# Media backend option: opus (default) or vlc
7-
set(MEDIA_BACKEND "opus" CACHE STRING "Media backend: opus or vlc")
6+
# Media backend option: opusfile (default) or libvlc
7+
set(MEDIA_BACKEND "opusfile" CACHE STRING "Media backend: opusfile or libvlc")
88

99
# Validate backend option
10-
if(NOT MEDIA_BACKEND STREQUAL "opus" AND NOT MEDIA_BACKEND STREQUAL "vlc")
10+
if(NOT MEDIA_BACKEND STREQUAL "opusfile" AND NOT MEDIA_BACKEND STREQUAL "libvlc")
1111
message(FATAL_ERROR "Unknown media backend '${MEDIA_BACKEND}'. "
12-
"Supported backends: opus, vlc")
12+
"Supported backends: opusfile, libvlc")
1313
endif()
1414

1515
# Required packages via pkg-config
@@ -32,14 +32,14 @@ if(NOT IW_LIBRARY)
3232
endif()
3333

3434
# Media-backend-specific dependencies
35-
if(MEDIA_BACKEND STREQUAL "vlc")
35+
if(MEDIA_BACKEND STREQUAL "libvlc")
3636
pkg_check_modules(VLC REQUIRED libvlc)
3737
set(MEDIA_SRC media_vlc.c)
38-
set(MEDIA_BACKEND_VLC 1)
38+
set(MEDIA_BACKEND_LIBVLC 1)
3939
else()
4040
pkg_check_modules(OPUSFILE REQUIRED opusfile)
4141
set(MEDIA_SRC media_opus.c)
42-
set(MEDIA_BACKEND_OPUS 1)
42+
set(MEDIA_BACKEND_OPUSFILE 1)
4343
endif()
4444

4545
# Optional: check library for tests

package/tonio/tonio-1.0/config.h.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/* config.h. Generated by cmake from config.h.in. */
22

33
/* Media backend defines (set via CMake compile definitions) */
4-
#cmakedefine MEDIA_BACKEND_OPUS
5-
#cmakedefine MEDIA_BACKEND_VLC
4+
#cmakedefine MEDIA_BACKEND_OPUSFILE
5+
#cmakedefine MEDIA_BACKEND_LIBVLC
66

77
/* Package metadata */
88
#define PACKAGE "@PROJECT_NAME@"

package/tonio/tonio-1.0/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ target_link_libraries(tonio PRIVATE
2727
)
2828

2929
# Media-backend-specific libraries
30-
if(MEDIA_BACKEND STREQUAL "vlc")
30+
if(MEDIA_BACKEND STREQUAL "libvlc")
3131
target_link_libraries(tonio PRIVATE ${VLC_LIBRARIES})
3232
target_include_directories(tonio PRIVATE ${VLC_INCLUDE_DIRS})
3333
else()

package/tonio/tonio.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ TONIO_SITE_METHOD = local
1010

1111
TONIO_DEPENDENCIES = host-pkgconf alsa-lib libgpiod2 libmicrohttpd libconfuse wireless_tools
1212

13-
ifeq ($(BR2_PACKAGE_TONIO_MEDIA_OPUS),y)
13+
ifeq ($(BR2_PACKAGE_TONIO_MEDIA_OPUSFILE),y)
1414
TONIO_DEPENDENCIES += opusfile
15-
TONIO_CONF_OPTS += -DMEDIA_BACKEND=opus
16-
else ifeq ($(BR2_PACKAGE_TONIO_MEDIA_VLC),y)
15+
TONIO_CONF_OPTS += -DMEDIA_BACKEND=opusfile
16+
else ifeq ($(BR2_PACKAGE_TONIO_MEDIA_LIBVLC),y)
1717
TONIO_DEPENDENCIES += vlc
18-
TONIO_CONF_OPTS += -DMEDIA_BACKEND=vlc
18+
TONIO_CONF_OPTS += -DMEDIA_BACKEND=libvlc
1919
endif
2020

2121
define TONIO_INSTALL_INIT_SYSV

0 commit comments

Comments
 (0)