mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-02 14:50:17 +01:00
Use version 2.1.0 of libsbsms
This is actually the exact code we already use, but Clayton has set up a github repo for the release to make it available to distros.
This commit is contained in:
48
cmake-proxies/libsbsms/CMakeLists.txt
Normal file
48
cmake-proxies/libsbsms/CMakeLists.txt
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
def_vars()
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/buffer.cpp
|
||||
${TARGET_ROOT}/src/dBTable.cpp
|
||||
${TARGET_ROOT}/src/fft.cpp
|
||||
${TARGET_ROOT}/src/grain.cpp
|
||||
${TARGET_ROOT}/src/resample.cpp
|
||||
${TARGET_ROOT}/src/sbsms.cpp
|
||||
${TARGET_ROOT}/src/slide.cpp
|
||||
${TARGET_ROOT}/src/sms.cpp
|
||||
${TARGET_ROOT}/src/subband.cpp
|
||||
${TARGET_ROOT}/src/track.cpp
|
||||
${TARGET_ROOT}/src/trackpoint.cpp
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${_PRVDIR}
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/include
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-enum-compare>
|
||||
${MMX_FLAG}
|
||||
${SSE_FLAG}
|
||||
)
|
||||
|
||||
find_package( Threads )
|
||||
if( Threads_FOUND AND CMAKE_USE_PTHREADS_INIT )
|
||||
set( MULTITHREADED 1 )
|
||||
endif()
|
||||
|
||||
set( ENABLE_SSE ${HAVE_SSE} )
|
||||
|
||||
configure_file( config.h.in private/config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
|
||||
75
cmake-proxies/libsbsms/config.h.in
Normal file
75
cmake-proxies/libsbsms/config.h.in
Normal file
@@ -0,0 +1,75 @@
|
||||
/* src/config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to enable sse */
|
||||
#cmakedefine ENABLE_SSE 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#cmakedefine HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#cmakedefine HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define if you have C99's lrint function. */
|
||||
#cmakedefine HAVE_LRINT 1
|
||||
|
||||
/* Define if you have C99's lrintf function. */
|
||||
#cmakedefine HAVE_LRINTF 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#cmakedefine HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#cmakedefine HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#cmakedefine HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#cmakedefine HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#cmakedefine HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#cmakedefine HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#cmakedefine HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#cmakedefine HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#cmakedefine LT_OBJDIR "@LT_OBJDIR@"
|
||||
|
||||
/* Define to compile multithreaded sbsms */
|
||||
#cmakedefine MULTITHREADED 1
|
||||
|
||||
/* Name of package */
|
||||
#cmakedefine PACKAGE "@PACKAGE@"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#cmakedefine PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#cmakedefine PACKAGE_NAME "@PACKAGE_NAME@"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#cmakedefine PACKAGE_STRING "@PACKAGE_STRING@"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#cmakedefine PACKAGE_TARNAME "@PACKAGE_TARNAME@"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#cmakedefine PACKAGE_URL "@PACKAGE_URL@"
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@"
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION "@VERSION@"
|
||||
|
||||
Reference in New Issue
Block a user