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:
committed by
Dmitry Vedenko
parent
9f1d5d5d1a
commit
37fba65d1b
26
libraries/lib-uuid/CMakeLists.txt
Normal file
26
libraries/lib-uuid/CMakeLists.txt
Normal 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}" "" )
|
||||
Reference in New Issue
Block a user