aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)Author
2020-09-16Fix error when building with -DTINYALSA_BUILD_UTILS=OFFRiff, Eric
2020-06-30Merge pull request #164 from E5ten/cmake-standardTaylor Holberton
cmake: specify c99
2020-06-06cmake: fix header install locationEthan Sommer
2020-06-05cmake: specify c99Ethan Sommer
Set standard to c99, require it, disable language extensions. Define _POSIX_C_SOURCE to 200809L so time.h declares struct timespec. Add -Wpedantic to find use of language extensions. snd_card_plugin.c: remove one unnecessary ';' to make -Wpedantic work
2020-06-04Various cmake improvementsEthan Sommer
Use scripts/version.sh, and set version in project() using its output. Instead of using a variable to store the definition of TINYALSA_USES_PLUGINS, and adding it as a compile option, use a generator expression to define it in target_compile_definitions when the option is enabled. Set BUILD_SHARED_LIBS to on by default. Add options to disable examples and utils. Instead of using SRCS and HDRS variables, set PUBLIC_HEADER property on tinyalsa to install the headers along with the target. Set library version, so the shared library will have version suffixes. Check that C warning flags are supported instead of adding them unconditionally. Use ${CMAKE_DL_LIBS} instead of hardcoding "dl", and add it to tinyalsa's link interface and link depends, instead of linking it in the examples and utils. Add the "include" directory as a PUBLIC include directory to tinyalsa, instead of making it PRIVATE and adding it to examples and utils as well, because anything linking the tinyalsa target will need to include "include". Instead of using macros for building examples and utils, use a for loop. Include cmake's GNUInstallDirs to automatically correctly populate installation dir variables, instead of doing it manually.
2020-06-03Added tinywavinfo to CMake buildTaylor Holberton
2020-02-11Merge pull request #137 from codeauroraforum/plugin-supportTaylor Holberton
Plugin support
2020-02-07tinyalsa: add support for mixer pluginsBhalchandra Gajare
Update the mixer framework to support plugins. Add ability for physical card to have either kernel registered mixer controls or plugin registered mixer control or both. Split mixer controls into two groups, one for kernel registered (hw_grp) and the other for plugin registered (virtual_grp). Signed-off-by: Rohit kumar <rohitkr@codeaurora.org> Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2020-02-07tinyalsa: add support for PCM pluginsBhalchandra Gajare
Update the pcm framework to support plugins. Resolve the pcm device node to be either kernel device or virtual device and setup function pointers accordingly. Implement framework functionality for pcm_plugin.c for ease of plugin development. Plugin itself is compiled as shared object (.so) and dynamically linked from pcm_plugin.c. Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org> Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2019-12-16Use CMAKE_INSTALL_<path> instead of hardcoding bin/lib/ install pathsKhem Raj
Helps fix build/packaging issues on machines where default libdir is not lib but say lib64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-01-13Added the 'attributes.h' headerTaylor Holberton
2017-10-12added CMake buildTaylor Holberton