Skip to content

Commit 3380e33

Browse files
robUx4jbkempf
authored andcommitted
SpatialaudioConfig: add versioning
With a string value and a value that can be compared between versions.
1 parent c7b403c commit 3380e33

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

include/SpatialaudioConfig.h.in

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
#ifndef SPATIALAUDIO_CONFIG_H
1111
#define SPATIALAUDIO_CONFIG_H
1212

13+
#define SPATIALAUDIO_MAJOR @CMAKE_PROJECT_VERSION_MAJOR@
14+
#define SPATIALAUDIO_MINOR @CMAKE_PROJECT_VERSION_MINOR@
15+
#define SPATIALAUDIO_PATCH @CMAKE_PROJECT_VERSION_PATCH@
16+
#define SPATIALAUDIO_VERSION_STR "@CMAKE_PROJECT_VERSION@"
17+
18+
#define SPATIALAUDIO_VERSION ((@CMAKE_PROJECT_VERSION_MAJOR@ << 16) | (@CMAKE_PROJECT_VERSION_MINOR@ << 8) | @CMAKE_PROJECT_VERSION_PATCH@)
19+
1320
// True if libspatialaudio was built with libmysofa support
1421
#cmakedefine01 SPATIALAUDIO_SUPPORTS_SOFA
1522

0 commit comments

Comments
 (0)