David Reid
f9cb8a3e4d
Revert "Expose compile defines in pkg-config file"
...
This reverts commit a2f92095dc .
2025-08-23 06:09:33 +10:00
David Reid
74aa94d980
Merge branch 'dev' into dev-0.12
2025-08-23 05:50:33 +10:00
David Reid
e75a053908
Update CMake script to extract the version from miniaudio.h.
2025-08-23 05:50:15 +10:00
David Reid
dda0bd100b
Merge branch 'dev' into dev-0.12
2025-08-23 05:46:31 +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
733a3e3ec0
Another attempt at fixing the Emscripten build.
2025-08-22 12:29:51 +10:00
David Reid
c036a9ff86
Try fixing errors when SDL2 is not found.
2025-08-22 11:12:44 +10:00
David Reid
563f1820cb
Improvements to the CMake script for Emscripten.
2025-08-22 09:51:50 +10:00
David Reid
c366358ed6
Try fixing a possible Emscripten error with the deviceio test.
2025-08-21 18:16:46 +10:00
David Reid
ca3ba8c1a8
Update CMake script to relax build options for examples.
...
This makes it so examples don't throw annoying warnings, that in order
to fix, would require making the example code unnecessarily untidy.
2025-08-21 15:35:32 +10:00
David Reid
cb95cd6521
Force silence a warning in an example.
2025-08-21 14:47:11 +10:00
David Reid
7263de3b64
Delete the PipeWire test.
...
The PipeWire backend is now tested with the deviceio test.
2025-08-21 14:18:58 +10:00
David Reid
f86be65f19
Merge branch 'dev' into dev-0.12
2025-08-20 18:15:54 +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
384afa3a5f
Whitespace.
2025-07-21 17:09:09 +10:00
David Reid
397cadbd64
Merge branch 'dev' into dev-0.12
2025-07-21 17:07:08 +10:00
David Reid
c48975f4a9
Don't link against dl with NO_RUNTIME_LINKING.
2025-07-21 17:06:34 +10:00
David Reid
db9ad08bf0
Merge branch 'dev' into dev-0.12
2025-07-21 17:04:02 +10:00
David Reid
79b4ddc27d
Fix CMake script for NetBSD and OpenBSD.
2025-07-21 16:54:27 +10:00
David Reid
377f589a01
Merge branch 'dev' into dev-0.12
2025-07-21 16:51:09 +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
110ded6fc6
Include the SDL2 and PipeWire backends in the deviceio test.
2025-07-21 16:11:31 +10:00
David Reid
51715474d7
CMake: Improve handling of dl.
2025-07-15 08:12:36 +10:00
David Reid
1e6c01f31d
Fix CMake script for NetBSD.
2025-07-15 07:20:52 +10:00
David Reid
96eea50e7d
Remove references to the custom backend from the CMake script.
2025-07-15 06:59:55 +10:00
David Reid
2833ccf4e7
Whitespace.
2025-07-15 06:59:36 +10:00
David Reid
ebec10b068
Add early PipeWire backend.
...
This is incomplete.
2025-07-15 06:59:19 +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