ext/libsamplerate: adjust config.h to be package exclusive

`config.h` being in `include` directory meant that it was included
globally. It may cause it being indluded into other package (as global
include)

Added prefixes to libsamplerate syscfg settings.
This commit is contained in:
Krzysztof Kopyściński
2024-03-06 14:29:32 +01:00
committed by Krzysztof Kopyściński
parent 75b35adb69
commit 65fcd4245e
2 changed files with 8 additions and 8 deletions
@@ -22,19 +22,19 @@
#include "syscfg/syscfg.h"
#if MYNEWT_VAL(ENABLE_SINC_BEST_CONVERTER)
#if MYNEWT_VAL(LIBSAMPLERATE_ENABLE_SINC_BEST_CONVERTER)
#define ENABLE_SINC_BEST_CONVERTER 1
#endif
#if MYNEWT_VAL(ENABLE_SINC_MEDIUM_CONVERTER)
#if MYNEWT_VAL(LIBSAMPLERATE_ENABLE_SINC_MEDIUM_CONVERTER)
#define ENABLE_SINC_MEDIUM_CONVERTER 1
#endif
#if MYNEWT_VAL(ENABLE_SINC_FAST_CONVERTER)
#if MYNEWT_VAL(LIBSAMPLERATE_ENABLE_SINC_FAST_CONVERTER)
#define ENABLE_SINC_FAST_CONVERTER 1
#endif
#if MYNEWT_VAL(LIBSAMPLER_NDEBUG)
#if MYNEWT_VAL(LIBSAMPLERATE_LIBSAMPLER_NDEBUG)
#define LIBSAMPLER_NDEBUG 1
#endif
+4 -4
View File
@@ -16,15 +16,15 @@
# under the License.
syscfg.defs:
ENABLE_SINC_BEST_CONVERTER:
LIBSAMPLERATE_ENABLE_SINC_BEST_CONVERTER:
description: Enable SINC best converter
value: 1
ENABLE_SINC_MEDIUM_CONVERTER:
LIBSAMPLERATE_ENABLE_SINC_MEDIUM_CONVERTER:
description: Enable SINC medium converter
value: 1
ENABLE_SINC_FAST_CONVERTER:
LIBSAMPLERATE_ENABLE_SINC_FAST_CONVERTER:
description: Enable SINC fastest converter
value: 1
LIBSAMPLER_NDEBUG:
LIBSAMPLERATE_LIBSAMPLER_NDEBUG:
description: Define NDEBUG for resampler code (turns off asserts)
value: 0