Add a template for device backends.

This commit is contained in:
David Reid
2026-02-27 17:42:28 +10:00
parent bcdb37ff66
commit d94b45d058
3 changed files with 174 additions and 0 deletions
+10
View File
@@ -678,6 +678,16 @@ if(NOT MINIAUDIO_NO_DEVICEIO)
target_link_libraries(miniaudio_sdl2 PRIVATE PkgConfig::SDL2)
endif()
endif()
# Template Backend (for build validation only, not installed)
add_library(miniaudio_backend_template STATIC
extras/backends/template/miniaudio_backend_template.c
extras/backends/template/miniaudio_backend_template.h
)
target_include_directories(miniaudio_backend_template PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/extras/backends/template)
target_compile_options (miniaudio_backend_template PRIVATE ${COMPILE_OPTIONS})
target_compile_definitions(miniaudio_backend_template PRIVATE ${COMPILE_DEFINES})
endif()