1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-10 06:36:24 +01:00

Adds lib-uuid

Adds a small library to generate UUID values. This library will be used in Sentry error reporting
Replace constructor cast with static_cast


Removes a noexcept sneaked in


Adds documentation and some code review fixes


Fixes doxygen
This commit is contained in:
Dmitry Vedenko
2021-06-02 17:11:52 +03:00
committed by Dmitry Vedenko
parent 9f1d5d5d1a
commit 37fba65d1b
5 changed files with 398 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
set( TARGET lib-uuid )
set( TARGET_ROOT ${CMAKE_CURRENT_SOURCE_DIR} )
def_vars()
set( SOURCES
Uuid.h
Uuid.cpp
)
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
set( DEFINES PRIVATE USE_UUID_CREATE )
set( LIBRARIES PRIVATE Rpcrt4 )
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
find_library(CORE_FOUNDATION CoreFoundation)
set( DEFINES PRIVATE USE_CFUUID )
set( LIBRARIES PRIVATE ${CORE_FOUNDATION})
else()
set( DEFINES PRIVATE USE_LIBUUID)
set( LIBRARIES PRIVATE libuuid::libuuid)
endif()
list( APPEND LIBRARIES PRIVATE lib-string-utils)
audacity_library( ${TARGET} "${SOURCES}" "${LIBRARIES}" "${DEFINES}" "" )