Marty
f513f462df
cmake: add public include directories for extra decoders
...
It seems that when linking, for example, `miniaudio_libvorbis`, it doesn't add the necessary include directories for use in the project. This is because the include directories were not being added to the target at all.
Here, I fix that by adding them with PUBLIC scope.
2025-12-12 19:12:13 +10:00
David Delassus
dbf8e114f9
CMake: make install directives optional
2025-11-29 14:42:38 +10:00
David Reid
6648ed005a
Initial commit of the documentation generation tool.
2025-09-10 13:47:00 +10:00
David Reid
b306c6a270
Use pkg-config for libvorbis and libopus detection.
2025-09-10 09:51:13 +10:00
David Reid
70eb06d3bd
CMake: Minor fix for pthread and m.
2025-08-23 09:54:32 +10:00
Marcin Serwin
959283f244
Ignore missing library dependencies in CMake
...
Signed-off-by: Marcin Serwin <marcin@serwin.dev >
2025-08-23 09:45:49 +10:00
David Reid
1d7d8dfba0
Fix some CMake errors with the Emscripten build.
2025-08-23 08:09:03 +10:00
David Reid
e75a053908
Update CMake script to extract the version from miniaudio.h.
2025-08-23 05:50:15 +10:00
Marcin Serwin
a2f92095dc
Expose compile defines in pkg-config file
...
Signed-off-by: Marcin Serwin <marcin@serwin.dev >
2025-08-23 05:41:27 +10:00
Marcin Serwin
badf36a378
Generate and install pkg-config file
...
Signed-off-by: Marcin Serwin <marcin@serwin.dev >
2025-08-23 05:41:27 +10:00
Marcin Serwin
c9d288c3dc
Link linux backends if NO_RUNTIME_LINKING is enabled
...
Signed-off-by: Marcin Serwin <marcin@serwin.dev >
2025-08-23 05:41:27 +10:00
David Reid
b7e5451ef4
Try fixing a compilation error when pthread does not exist.
2025-08-20 18:07:59 +10:00
David Reid
ba84e61a18
Try fixing a compilation error when libatomic does not exist.
2025-08-20 18:03:12 +10:00
David Reid
a7ab58259e
Don't try building C++ tests when forcing C89.
2025-08-20 17:36:07 +10:00
David Reid
c48975f4a9
Don't link against dl with NO_RUNTIME_LINKING.
2025-07-21 17:06:34 +10:00
David Reid
79b4ddc27d
Fix CMake script for NetBSD and OpenBSD.
2025-07-21 16:54:27 +10:00
Marcin Serwin
0b9f03a376
Respect CMAKE_INSTALL_INCLUDEDIR when installing headers
...
Signed-off-by: Marcin Serwin <marcin@serwin.dev >
2025-07-21 16:48:25 +10:00
Marcin Serwin
140b9c7f9f
Add compile define for specific backends only in CMake
...
Fixes https://github.com/mackron/miniaudio/pull/1010#issuecomment-3093830252
Signed-off-by: Marcin Serwin <marcin@serwin.dev >
2025-07-21 16:47:46 +10:00
Marcin Serwin
ac8c908283
Don't force static libraries
...
The default for creating libraries is static but can be overridden
by setting BUILD_SHARED_LIBS variable. Setting it explicitly makes it
impossible to override.
https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html
Signed-off-by: Marcin Serwin <marcin@serwin.dev >
2025-07-21 16:47:03 +10:00
David Reid
853f27ed56
Whitespace.
2025-05-08 08:01:12 +10:00
Keith
05d367eed5
CMake: remove macro and fix warnings
2025-05-08 07:11:27 +10:00
Keith
97493bdfcd
CMake: support install
...
All Miniaudio static libraries now install their headers such that they can
still use relative paths, but external code can #include "miniaudio/miniaudio.h"
Also adds a CMake macro to simplify adding static libraries
2025-05-08 07:11:27 +10:00
David Reid
ab80abf061
Fix typo.
2025-03-27 18:54:21 +10:00
David Reid
9f10bc7540
Improvements to the build system for extra nodes.
...
With this change, nodes in the extras folder can now be compiled as a
conventional library.
2025-02-22 14:25:45 +10:00
David Reid
3435aafb34
Use a simplified naming scheme for tests.
2025-02-22 12:29:56 +10:00
David Reid
deafb7e96f
Add debugging sandbox for the purpose of debugging miniaudio.
2025-02-22 09:44:03 +10:00
David Reid
4d971fe480
Update CMake script to detect Apple Clang.
2025-02-20 12:03:47 +10:00
David Reid
3889066fac
Update CMake build script.
...
These changes make it easier to integrate vorbisfile and opusfile from
source.
2025-02-19 18:09:00 +10:00
David Reid
8ad250ccf6
Updates to custom decoders.
2025-02-19 12:02:37 +10:00
David Reid
d3a4b9cf20
Minor changes to CMakeLists.
2025-02-19 08:23:11 +10:00
David Reid
a4d462e39e
Add initial CMake file.
2025-02-18 17:53:44 +10:00