Updates the cmake build system
It's still has some work, but it successfully builds on all 3 main platforms. Some of the outstanding items include: Install target testing (mostly important for Linux) CMakeList clean up and comments Debug and Release build verification Audit of compile/link options Need a Mac signed and notarized build (and probably more)
This commit is contained in:
parent
3b77af5dfc
commit
6217351a12
277
CMakeLists.txt
277
CMakeLists.txt
|
@ -1,35 +1,264 @@
|
|||
#directory audacity top level
|
||||
# 3.8 so we can use source_group
|
||||
# cotire only needs 2.8.12
|
||||
cmake_minimum_required (VERSION 3.8)
|
||||
cmake_policy(SET CMP0043 NEW) # just hide an annoying warning in 3.0.2
|
||||
# If you want built-in precompiled header support
|
||||
# then make sure you have cmake 3.16 or higher.
|
||||
cmake_minimum_required( VERSION 3.14 )
|
||||
|
||||
# Renaming. Could just use the official name throughout.
|
||||
set( top_dir ${CMAKE_SOURCE_DIR} )
|
||||
# Don't allow in-source builds...no real reason, just
|
||||
# keeping those source trees nice and tidy. :-)
|
||||
# (This can be removed if it becomes an issue.)
|
||||
if( EXISTS "lib-src" )
|
||||
message( FATAL_ERROR
|
||||
"In-source builds not allowed.\n"
|
||||
"Create a new directory and run cmake from there, i.e.:\n"
|
||||
" mkdir build\n"
|
||||
" cd build\n"
|
||||
" cmake ..\n"
|
||||
"You will need to delete CMakeCache.txt and CMakeFiles from this directory to clean up."
|
||||
)
|
||||
endif()
|
||||
|
||||
# Path for cotire.cmake, and later for our wxwidgets.cmake.
|
||||
# Ignore COMPILE_DEFINITIONS_<Config> properties
|
||||
cmake_policy( SET CMP0043 NEW )
|
||||
|
||||
# ``INTERPROCEDURAL_OPTIMIZATION`` is enforced when enabled.
|
||||
cmake_policy( SET CMP0069 NEW )
|
||||
|
||||
# ``FindOpenGL`` prefers GLVND by default when available.
|
||||
cmake_policy( SET CMP0072 NEW )
|
||||
|
||||
# Include file check macros honor ``CMAKE_REQUIRED_LIBRARIES``.
|
||||
cmake_policy( SET CMP0075 NEW )
|
||||
|
||||
if( WIN32 )
|
||||
|
||||
# The NuGet packages that the Windows build requires
|
||||
# (Only here for visibility)
|
||||
set( GETTEXT_NAME "Gettext.Tools" )
|
||||
set( GETTEXT_VERSION "0.20.1.1" )
|
||||
set( PYTHON_NAME "python2" )
|
||||
set( PYTHON_VERSION "2.7.17" )
|
||||
|
||||
# Define the SDK version we require
|
||||
set( CMAKE_SYSTEM_VERSION "10.0.17763.0" CACHE INTERNAL "" )
|
||||
|
||||
elseif( APPLE )
|
||||
|
||||
# Define the OSX compatibility parameters
|
||||
set( CMAKE_OSX_ARCHITECTURES x86_64 CACHE INTERNAL "" )
|
||||
set( CMAKE_OSX_DEPLOYMENT_TARGET 10.7 CACHE INTERNAL "" )
|
||||
set( CMAKE_OSX_SYSROOT macosx CACHE INTERNAL "" )
|
||||
|
||||
# A bit of a no-no, but couldn't figure out a better way to make it GLOBAL
|
||||
set( CMAKE_CXX_FLAGS "-stdlib=libc++ -std=gnu++11" )
|
||||
|
||||
endif()
|
||||
|
||||
# Add our module path
|
||||
set( CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake-proxies/cmake-modules)
|
||||
include(cotire)
|
||||
|
||||
# These stop the results being mixed in with our source tree.
|
||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
# This "is a good thing" but greatly increases link time on Linux
|
||||
#set( CMAKE_INTERPROCEDURAL_OPTIMIZATION ON )
|
||||
#set( CMAKE_INTERPROCEDURAL_OPTIMIZATION_DEBUG OFF )
|
||||
#set( CMAKE_INTERPROCEDURAL_OPTIMIZATION_Debug OFF )
|
||||
|
||||
# On Windows, WXWIN needs to be set to wxWidgets directory, for wxWidgets to
|
||||
# be found automatically OR you need to have wxWidgets installed in the
|
||||
# standard location on drive C: (or D:).
|
||||
# If you are using wxWidgets 3.1 or later, you will need to update
|
||||
# cmake's FindwxWidgets.cmake file, since 3.1.1 is not listed.
|
||||
# Our very own project
|
||||
project( Audacity )
|
||||
|
||||
# These aren't needed, provided you took heed of the above.
|
||||
#set( wxWidgets_ROOT_DIR "C:/wxWidgets-3.1.1" )
|
||||
#set( wxWidgets_LIB_DIR "C:/wxWidgets-3.1.1/lib/vc_lib" )
|
||||
#set( wxWidgets_CONFIGURATION "mswud" )
|
||||
# Pull all the modules we'll need
|
||||
include( CheckCXXCompilerFlag )
|
||||
include( CheckIncludeFile )
|
||||
include( CheckIncludeFiles )
|
||||
include( CheckLibraryExists )
|
||||
include( CheckSymbolExists )
|
||||
include( CheckTypeSize )
|
||||
include( CMakeDetermineASM_NASMCompiler )
|
||||
include( CMakePushCheckState )
|
||||
include( GNUInstallDirs )
|
||||
include( TestBigEndian )
|
||||
|
||||
# Organize subdirectories/targets into folders for the IDEs
|
||||
set_property( GLOBAL PROPERTY USE_FOLDERS ON )
|
||||
|
||||
#add_subdirectory( "lib-src" ) #All lib building happens via the proxies.
|
||||
# Make sure Audacity is the startup project on Windows
|
||||
if( CMAKE_GENERATOR MATCHES "Visual Studio" )
|
||||
set_directory_properties(
|
||||
PROPERTIES
|
||||
VS_STARTUP_PROJECT "${CMAKE_PROJECT_NAME}"
|
||||
)
|
||||
endif()
|
||||
|
||||
# Where the final product is stored
|
||||
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/audacity )
|
||||
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/audacity )
|
||||
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin )
|
||||
|
||||
# Set up RPATH handling
|
||||
set( CMAKE_SKIP_BUILD_RPATH FALSE )
|
||||
set( CMAKE_BUILD_WITH_INSTALL_RPATH FALSE )
|
||||
set( CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}/audacity" )
|
||||
set( CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
|
||||
set( CMAKE_MACOSX_RPATH FALSE )
|
||||
|
||||
# the RPATH to be used when installing, but only if it's not a system directory
|
||||
#list( FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_FULL_LIBDIR}" isSystemDir)
|
||||
#IF("${isSystemDir}" STREQUAL "-1")
|
||||
# SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
||||
#ENDIF("${isSystemDir}" STREQUAL "-1")
|
||||
|
||||
# Just a couple of convenience variables
|
||||
set( topdir "${CMAKE_SOURCE_DIR}" )
|
||||
set( libsrc "${topdir}/lib-src" )
|
||||
|
||||
# Add the math library (if found) to the list of required libraries
|
||||
check_library_exists( m pow "" HAVE_LIBM )
|
||||
if( HAVE_LIBM )
|
||||
list( APPEND CMAKE_REQUIRED_LIBRARIES -lm )
|
||||
endif()
|
||||
|
||||
# Add the dynamic linker library (if found) to the list of required libraries
|
||||
check_library_exists( dl dlopen "" HAVE_LIBDL )
|
||||
if( HAVE_LIBDL )
|
||||
list( APPEND CMAKE_REQUIRED_LIBRARIES -ldl )
|
||||
endif()
|
||||
|
||||
# Make sure they're used during the link steps
|
||||
set( CMAKE_LINK_INTERFACE_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} )
|
||||
|
||||
# Various common checks whose results are used by the various targets
|
||||
test_big_endian( WORDS_BIGENDIAN )
|
||||
|
||||
check_include_files( "float.h;stdarg.h;stdlib.h;string.h" STDC_HEADERS )
|
||||
|
||||
check_include_file( "byteswap.h" HAVE_BYTESWAP_H )
|
||||
check_include_file( "assert.h" HAVE_ASSERT_H )
|
||||
check_include_file( "errno.h" HAVE_ERRNO_H )
|
||||
check_include_file( "fcntl.h" HAVE_FCNTL_H )
|
||||
check_include_file( "fenv.h" HAVE_FENV_H )
|
||||
check_include_file( "inttypes.h" HAVE_INTTYPES_H )
|
||||
check_include_file( "limits.h" HAVE_LIMITS_H )
|
||||
check_include_file( "malloc.h" HAVE_MALLOC_H )
|
||||
check_include_file( "memory.h" HAVE_MEMORY_H )
|
||||
check_include_file( "stdbool.h" HAVE_STDBOOL_H )
|
||||
check_include_file( "stdint.h" HAVE_STDINT_H )
|
||||
check_include_file( "stdlib.h" HAVE_STDLIB_H )
|
||||
check_include_file( "string.h" HAVE_STRING_H )
|
||||
check_include_file( "strings.h" HAVE_STRINGS_H )
|
||||
check_include_file( "unistd.h" HAVE_UNISTD_H )
|
||||
check_include_file( "xmmintrin.h" HAVE_XMMINTRIN_H )
|
||||
check_include_file( "sys/param.h" HAVE_SYS_PARAM_H )
|
||||
check_include_file( "sys/stat.h" HAVE_SYS_STAT_H )
|
||||
check_include_file( "sys/types.h" HAVE_SYS_TYPES_H )
|
||||
|
||||
check_symbol_exists( fileno "stdio.h" HAVE_FILENO )
|
||||
check_symbol_exists( flock "sys/file.h" HAVE_FLOCK )
|
||||
check_symbol_exists( fork "unistd.h" HAVE_FORK )
|
||||
check_symbol_exists( fsync "unistd.h" HAVE_FSYNC )
|
||||
check_symbol_exists( ftruncate "unistd.h" HAVE_FTRUNCATE )
|
||||
check_symbol_exists( gettimeofday "sys/time.h" HAVE_GETTIMEOFDAY )
|
||||
check_symbol_exists( gmtime "time.h" HAVE_GMTIME )
|
||||
check_symbol_exists( gmtime_r "time.h" HAVE_GMTIME_R )
|
||||
check_symbol_exists( lrint "math.h" HAVE_LRINT )
|
||||
check_symbol_exists( lrintf "math.h" HAVE_LRINTF )
|
||||
check_symbol_exists( lround "math.h" HAVE_LROUND )
|
||||
check_symbol_exists( lstat "sys/stat.h" HAVE_LSTAT )
|
||||
check_symbol_exists( memcpy "string.h" HAVE_MEMCPY )
|
||||
check_symbol_exists( pipe "unistd.h" HAVE_PIPE )
|
||||
check_symbol_exists( posix_fadvise "fcntl.h" HAVE_POSIX_FADVISE )
|
||||
check_symbol_exists( posix_memalign "stdlib.h" HAVE_POSIX_MEMALIGN )
|
||||
check_symbol_exists( strchr "string.h" HAVE_STRCHR )
|
||||
check_symbol_exists( waitpid "sys/wait.h" HAVE_WAITPID )
|
||||
|
||||
check_type_size( "int8_t" SIZEOF_INT8 LANGUAGE C )
|
||||
check_type_size( "int16_t" SIZEOF_INT16 LANGUAGE C )
|
||||
check_type_size( "uint16_t" SIZEOF_UINT16 LANGUAGE C )
|
||||
check_type_size( "u_int16_t" SIZEOF_U_INT16 LANGUAGE C )
|
||||
check_type_size( "int32_t" SIZEOF_INT32 LANGUAGE C )
|
||||
check_type_size( "uint32_t" SIZEOF_UINT32 LANGUAGE C )
|
||||
check_type_size( "u_int32_t" SIZEOF_U_INT32 LANGUAGE C )
|
||||
check_type_size( "int64_t" SIZEOF_INT64 LANGUAGE C )
|
||||
check_type_size( "short" SIZEOF_SHORT LANGUAGE C )
|
||||
check_type_size( "unsigned short" SIZEOF_UNSIGNED_SHORT LANGUAGE C )
|
||||
check_type_size( "int" SIZEOF_INT LANGUAGE C )
|
||||
check_type_size( "unsigned int" SIZEOF_UNSIGNED_INT LANGUAGE C )
|
||||
check_type_size( "long" SIZEOF_LONG LANGUAGE C )
|
||||
check_type_size( "unsigned long" SIZEOF_UNSIGNED_LONG LANGUAGE C )
|
||||
check_type_size( "long long" SIZEOF_LONG_LONG LANGUAGE C )
|
||||
check_type_size( "unsigned long long" SIZEOF_UNSIGNED_LONG_LONG LANGUAGE C )
|
||||
check_type_size( "float" SIZEOF_FLOAT LANGUAGE C )
|
||||
check_type_size( "double" SIZEOF_DOUBLE LANGUAGE C )
|
||||
check_type_size( "long double" SIZEOF_LONG_DOUBLE LANGUAGE C )
|
||||
check_type_size( "loff_t" SIZEOF_LOFF LANGUAGE C )
|
||||
check_type_size( "off_t" SIZEOF_OFF LANGUAGE C )
|
||||
check_type_size( "off64_t" SIZEOF_OFF64 LANGUAGE C )
|
||||
check_type_size( "size_t" SIZEOF_SIZE LANGUAGE C )
|
||||
check_type_size( "wchar_t" SIZEOF_WCHAR LANGUAGE C )
|
||||
check_type_size( "void*" SIZEOF_POINTER LANGUAGE C )
|
||||
|
||||
find_package( PkgConfig )
|
||||
find_package( OpenGL )
|
||||
|
||||
# When called will define several useful directory paths for the
|
||||
# current context.
|
||||
macro( def_vars )
|
||||
set( _SRCDIR "${CMAKE_CURRENT_SOURCE_DIR}" )
|
||||
set( _INTDIR "${CMAKE_CURRENT_BINARY_DIR}" )
|
||||
set( _PRVDIR "${CMAKE_CURRENT_BINARY_DIR}/private" )
|
||||
set( _PUBDIR "${CMAKE_CURRENT_BINARY_DIR}/public" )
|
||||
endmacro()
|
||||
|
||||
# And define the non-context dependent paths
|
||||
set( _EXEDIR "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}" )
|
||||
# These aren't really context dependent, but...
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
||||
set( _EXEDIR "${_EXEDIR}/Audacity.app/Contents" )
|
||||
endif()
|
||||
set( _MODDIR "${_EXEDIR}/modules" )
|
||||
set( _RPATH "\$ORIGIN/../${CMAKE_INSTALL_LIBDIR}/audacity" )
|
||||
|
||||
# Helper to organize sources into folder for the IDEs
|
||||
macro( organize_source root prefix sources )
|
||||
set( cleaned )
|
||||
foreach(source ${sources})
|
||||
# Remove generator expressions
|
||||
string( REGEX REPLACE ".*>:(.*)>" "\\1" source "${source}" )
|
||||
|
||||
# Remove keywords
|
||||
string( REGEX REPLACE "^[A-Z]+$" "" source "${source}" )
|
||||
|
||||
# Add to cleaned
|
||||
list( APPEND cleaned "${source}" )
|
||||
endforeach()
|
||||
|
||||
# Define source groups
|
||||
if( "${prefix}" STREQUAL "" )
|
||||
source_group( TREE "${root}" FILES ${cleaned} )
|
||||
else()
|
||||
source_group( TREE "${root}" PREFIX ${prefix} FILES ${cleaned} )
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
# Given a directory, recurse to all defined subdirectories and assign
|
||||
# the given folder name to all of the targets found.
|
||||
function( set_dir_folder dir folder)
|
||||
get_property( subdirs DIRECTORY "${dir}" PROPERTY SUBDIRECTORIES )
|
||||
foreach( sub ${subdirs} )
|
||||
set_dir_folder( "${sub}" "${folder}" )
|
||||
endforeach()
|
||||
|
||||
get_property( targets DIRECTORY "${dir}" PROPERTY BUILDSYSTEM_TARGETS )
|
||||
foreach( target ${targets} )
|
||||
get_target_property( type "${target}" TYPE )
|
||||
if( NOT "${type}" STREQUAL "INTERFACE_LIBRARY" )
|
||||
set_target_properties( ${target} PROPERTIES FOLDER ${folder} )
|
||||
endif()
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
# Add our children
|
||||
add_subdirectory( "cmake-proxies" )
|
||||
add_subdirectory( "help" )
|
||||
add_subdirectory( "locale" )
|
||||
add_subdirectory( "nyquist" )
|
||||
add_subdirectory( "plug-ins" )
|
||||
add_subdirectory( "src" )
|
||||
|
||||
# Uncomment what follows for symbol values.
|
||||
|
@ -38,5 +267,5 @@ get_cmake_property(_variableNames VARIABLES)
|
|||
foreach (_variableName ${_variableNames})
|
||||
message(STATUS "${_variableName}=${${_variableName}}")
|
||||
endforeach()
|
||||
]]#
|
||||
#]]
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#directory cmake-proxies
|
||||
set( LIB_SRC_DIRECTORY ${top_dir}/lib-src/ )
|
||||
|
||||
#These are done in their actual directories, no need for a proxy.
|
||||
|
||||
|
@ -10,34 +8,93 @@ set( LIB_SRC_DIRECTORY ${top_dir}/lib-src/ )
|
|||
|
||||
#These are all headers, nothing to build.
|
||||
#add_subdirectory( "ffmpeg" )
|
||||
#add_subdirectory( "lame" )
|
||||
|
||||
function( addlib dir name symbol required version )
|
||||
message( STATUS "========== Configuring ${name} ==========" )
|
||||
|
||||
# libexpat
|
||||
set( BUILD_shared OFF CACHE INTERNAL "" FORCE )
|
||||
add_subdirectory( "${LIB_SRC_DIRECTORY}expat" "${CMAKE_CURRENT_BINARY_DIR}/expat" EXCLUDE_FROM_ALL )
|
||||
set_target_properties(expat PROPERTIES OSX_ARCHITECTURES "")
|
||||
set( TARGET ${dir} )
|
||||
|
||||
set( enable enable_${name} )
|
||||
if( NOT ${required} )
|
||||
option( ${enable} "Enable ${name} library" ON )
|
||||
else()
|
||||
set( ${enable} ON )
|
||||
endif()
|
||||
|
||||
set( use_system use_system_${name} )
|
||||
if( PkgConfig_FOUND AND version )
|
||||
option( ${use_system} "Prefer ${name} system library if available" OFF )
|
||||
else()
|
||||
set( ${use_system} OFF )
|
||||
endif()
|
||||
|
||||
if( NOT ${${enable}} )
|
||||
return()
|
||||
endif()
|
||||
|
||||
set( USE_${symbol} ON CACHE INTERNAL USE_${symbol} )
|
||||
|
||||
if( ${${use_system}} )
|
||||
pkg_check_modules( ${name} ${version} )
|
||||
if( ${${name}_FOUND} )
|
||||
message( STATUS "Using SYSTEM '${name}' package" )
|
||||
|
||||
add_library( ${TARGET} INTERFACE IMPORTED GLOBAL )
|
||||
|
||||
target_compile_options( ${TARGET} INTERFACE ${${name}_CFLAGS_OTHER} )
|
||||
target_include_directories( ${TARGET} INTERFACE ${${name}_INCLUDE_DIRS} )
|
||||
target_link_libraries( ${TARGET} INTERFACE ${${name}_LIBRARIES} )
|
||||
|
||||
return()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
message( STATUS "Using LOCAL '${name}' package" )
|
||||
set( TARGET_ROOT ${libsrc}/${dir} )
|
||||
add_subdirectory( ${dir} EXCLUDE_FROM_ALL )
|
||||
|
||||
get_property( targets DIRECTORY "${dir}" PROPERTY BUILDSYSTEM_TARGETS )
|
||||
foreach( target ${targets} )
|
||||
get_target_property( type "${target}" TYPE )
|
||||
if( NOT "${type}" STREQUAL "INTERFACE_LIBRARY" )
|
||||
# Add "global" defines
|
||||
set( DEFINES
|
||||
NDEBUG
|
||||
)
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
|
||||
set_target_properties( ${target} PROPERTIES FOLDER "lib-src" )
|
||||
endif()
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
# Required libraries
|
||||
#
|
||||
# directory option symbol req version
|
||||
addlib( wxwidgets wxWidgets WXWIDGETS YES "" )
|
||||
addlib( FileDialog FileDialog FILEDIALOG YES "" )
|
||||
addlib( expat expat EXPAT YES "" )
|
||||
addlib( lame lame LAME YES "lame >= 3.100" )
|
||||
addlib( lib-widget-extra libextra WIDGET YES "" )
|
||||
addlib( libsndfile sndfile SNDFILE YES "sndfile >= 1.0.24" )
|
||||
addlib( libsoxr soxr SOXR YES "soxr >= 0.1.1" )
|
||||
addlib( portaudio-v19 portaudio PORTAUDIO YES "" )
|
||||
|
||||
# Optional libraries
|
||||
#
|
||||
# directory option symbol req version
|
||||
addlib( lv2 lv2 LV2 NO "lilv-0 >= 0.24.6 lv2 >= 1.16.0 serd-0 >= 0.30.2 sord-0 >= 0.16.4 sratom-0 >= 0.6.4" )
|
||||
addlib( libid3tag id3tag LIBID3TAG NO "id3tag >= 0.15.1b" )
|
||||
addlib( libmad mad LIBMAD NO "mad >= 2.3" )
|
||||
addlib( libnyquist nyquist NYQUIST NO "" )
|
||||
addlib( libvamp vamp VAMP NO "vamp >= 2.5" )
|
||||
addlib( libogg ogg LIBOGG NO "ogg >= 1.3.1" )
|
||||
addlib( libvorbis vorbis LIBVORBIS NO "vorbis >= 1.3.3" )
|
||||
addlib( libflac flac LIBFLAC NO "flac >= 1.3.1" )
|
||||
addlib( portmidi midi PORTMIDI NO "portmidi >= 0.1" )
|
||||
addlib( portmixer portmixer PORTMIXER NO "" )
|
||||
addlib( portsmf portsmf PORTSMF NO "portsmf >= 0.1" )
|
||||
addlib( sbsms sbsms SBSMS NO "sbsms >= 2.0.2" )
|
||||
addlib( soundtouch soundtouch SOUNDTOUCH NO "soundtouch >= 1.7.1" )
|
||||
addlib( twolame twolame LIBTWOLAME NO "twolame >= 0.3.13" )
|
||||
|
||||
add_subdirectory( "FileDialog" )
|
||||
#add_subdirectory( "help" )
|
||||
add_subdirectory( "libogg" )
|
||||
add_subdirectory( "libflac" )
|
||||
add_subdirectory( "libid3tag" )
|
||||
add_subdirectory( "libmad" )
|
||||
add_subdirectory( "libnyquist" )
|
||||
add_subdirectory( "libscorealign" )
|
||||
add_subdirectory( "libsndfile" )
|
||||
add_subdirectory( "libsoxr" )
|
||||
add_subdirectory( "libvamp" )
|
||||
add_subdirectory( "libvorbis" )
|
||||
#add_subdirectory( "locale" )
|
||||
add_subdirectory( "lv2" )
|
||||
add_subdirectory( "mod-script-pipe" )
|
||||
add_subdirectory( "portaudio-v19" )
|
||||
add_subdirectory( "portmidi" )
|
||||
add_subdirectory( "portmixer" )
|
||||
#add_subdirectory( "portburn" ) # not built
|
||||
add_subdirectory( "portsmf" )
|
||||
add_subdirectory( "sbsms" )
|
||||
add_subdirectory( "soundtouch" )
|
||||
add_subdirectory( "twolame" )
|
||||
|
|
|
@ -1,49 +1,48 @@
|
|||
#directory lib-src/FileDialog
|
||||
set(TARGET FileDialog)
|
||||
set(TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET})
|
||||
project(${TARGET})
|
||||
|
||||
add_library(${TARGET} STATIC ${LIB_SRC_DIRECTORY}FileDialog/FileDialog.cpp)
|
||||
target_include_directories(${TARGET} PRIVATE ${TARGET_SOURCE})
|
||||
set_target_properties(${TARGET} PROPERTIES
|
||||
CXX_STANDARD 11
|
||||
OSX_ARCHITECTURES "")
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
find_package(wxWidgets REQUIRED COMPONENTS net core base)
|
||||
include(${wxWidgets_USE_FILE})
|
||||
target_compile_definitions(${TARGET} PRIVATE ${wxWidgets_DEFINITIONS})
|
||||
target_compile_options(${TARGET} PRIVATE ${wxWidgets_CXX_FLAGS})
|
||||
target_link_libraries(${TARGET} PRIVATE ${wxWidgets_LIBRARIES})
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/FileDialog.cpp
|
||||
$<$<PLATFORM_ID:Windows>:${TARGET_ROOT}/win/FileDialogPrivate.cpp>
|
||||
$<$<PLATFORM_ID:Darwin>:${TARGET_ROOT}/mac/FileDialogPrivate.mm>
|
||||
$<$<PLATFORM_ID:Linux>:${TARGET_ROOT}/gtk/FileDialogPrivate.cpp>
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
target_sources(${TARGET} PRIVATE ${LIB_SRC_DIRECTORY}FileDialog/win/FileDialogPrivate.cpp)
|
||||
target_compile_definitions(${TARGET} PRIVATE __WIN32__)
|
||||
target_include_directories(${TARGET} PRIVATE ${TARGET_SOURCE}/win)
|
||||
elseif(APPLE)
|
||||
target_sources(${TARGET} PRIVATE ${LIB_SRC_DIRECTORY}FileDialog/mac/FileDialogPrivate.mm)
|
||||
target_compile_options(${TARGET} PRIVATE -Wno-deprecated-declarations)
|
||||
target_include_directories(${TARGET} PRIVATE ${TARGET_SOURCE}/mac)
|
||||
else()
|
||||
target_sources(${TARGET} PRIVATE ${LIB_SRC_DIRECTORY}FileDialog/gtk/FileDialogPrivate.cpp)
|
||||
list( APPEND INCLUDES
|
||||
PUBLIC
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
find_program(wxWidgets_CONFIG_EXECUTABLE
|
||||
NAMES wx-config wx-config-3.1 wx-config-3.0 wx-config-2.9 wx-config-2.8
|
||||
ONLY_CMAKE_FIND_ROOT_PATH)
|
||||
execute_process(
|
||||
COMMAND sh "${wxWidgets_CONFIG_EXECUTABLE}" --query-toolkit
|
||||
OUTPUT_VARIABLE WXGTK
|
||||
RESULT_VARIABLE RET
|
||||
ERROR_QUIET)
|
||||
string(STRIP "${WXGTK}" WXGTK)
|
||||
if(RET EQUAL 0 AND WXGTK STREQUAL "gtk3")
|
||||
set(GTK_PACKAGE gtk+-3.0)
|
||||
else()
|
||||
set(GTK_PACKAGE gtk+-2.0)
|
||||
endif()
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
$<$<PLATFORM_ID:Windows>:__WIN32__>
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<PLATFORM_ID:Windows>:/permissive->
|
||||
$<$<PLATFORM_ID:Darwin>:-Wno-deprecated-declarations>
|
||||
$<$<PLATFORM_ID:Linux>:-Wno-deprecated-declarations>
|
||||
)
|
||||
|
||||
list( APPEND FEATURES
|
||||
PRIVATE
|
||||
cxx_std_11
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
PRIVATE
|
||||
wxwidgets
|
||||
PUBLIC
|
||||
$<$<PLATFORM_ID:Linux>:PkgConfig::GTK>
|
||||
)
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(GTK REQUIRED ${GTK_PACKAGE})
|
||||
target_compile_options(${TARGET} PRIVATE -Wno-deprecated-declarations ${GTK_CFLAGS})
|
||||
target_include_directories(${TARGET} PRIVATE ${TARGET_SOURCE}/gtk ${GTK_INCLUDE_DIRS})
|
||||
target_link_libraries(${TARGET} PUBLIC ${GTK_LIBRARIES})
|
||||
endif()
|
||||
|
|
|
@ -0,0 +1,240 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>aup</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>AudacityProject.icns</string>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>application/x-audacity-project</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Audacity Project</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>auDp</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>LSIsAppleDefaultForType</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>wav</string>
|
||||
<string>wave</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>AudacityWAV.icns</string>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>audio/wav</string>
|
||||
<string>audio/x-wav</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>WAV Audio File</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>WAV </string>
|
||||
<string>wav </string>
|
||||
<string>WAVE</string>
|
||||
<string>wave</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>aif</string>
|
||||
<string>aiff</string>
|
||||
<string>aifc</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>AudacityAIFF.icns</string>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>audio/aiff</string>
|
||||
<string>audio/x-aiff</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>AIFF Audio File</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>AIFF</string>
|
||||
<string>AIFC</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>au</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>AudacityAU.icns</string>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>audio/au</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>AU Audio File</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>AU </string>
|
||||
<string>au </string>
|
||||
<string>snd </string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>mp3</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>AudacityMP3.icns</string>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>audio/mpeg</string>
|
||||
<string>audio/x-mpeg</string>
|
||||
<string>audio/mpeg3</string>
|
||||
<string>audio/x-mpeg3</string>
|
||||
<string>audio/mpg</string>
|
||||
<string>audio/x-mpg</string>
|
||||
<string>audio/mp3</string>
|
||||
<string>audio/x-mp3</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>MP3 Audio File</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>mp3!</string>
|
||||
<string>MP3!</string>
|
||||
<string>MPG3</string>
|
||||
<string>mpg3</string>
|
||||
<string>Mp3 </string>
|
||||
<string>MP3 </string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>ogg</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>AudacityOGG.icns</string>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>audio/ogg</string>
|
||||
<string>audio/x-ogg</string>
|
||||
<string>audio/vorbis</string>
|
||||
<string>audio/x-vorbis</string>
|
||||
<string>audio/vorbisogg</string>
|
||||
<string>audio/x-vorbisogg</string>
|
||||
<string>audio/ogg-vorbis</string>
|
||||
<string>audio/x-ogg-vorbis</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>Ogg Vorbis Audio File</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>Ogg </string>
|
||||
<string>OGG </string>
|
||||
<string>OggS</string>
|
||||
<string>OGGS</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>flac</string>
|
||||
</array>
|
||||
<key>CFBundleTypeIconFile</key>
|
||||
<string>AudacityFLAC.icns</string>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>audio/flac</string>
|
||||
<string>audio/x-flac</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>FLAC Audio File</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>flac</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>m4a</string>
|
||||
</array>
|
||||
<key>CFBundleTypeMIMETypes</key>
|
||||
<array>
|
||||
<string>audio/m4a</string>
|
||||
<string>audio/x-m4a</string>
|
||||
</array>
|
||||
<key>CFBundleTypeName</key>
|
||||
<string>MPEG-4 Audio File</string>
|
||||
<key>CFBundleTypeOSTypes</key>
|
||||
<array>
|
||||
<string>M4A </string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>Audacity</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>Audacity version ${AUDACITY_INFO_VERSION}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>Audacity.icns</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.audacityteam.audacity</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleLongVersionString</key>
|
||||
<string>Version ${AUDACITY_INFO_VERSION}</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Audacity</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>${AUDACITY_INFO_VERSION}</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>auDy</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>${AUDACITY_INFO_VERSION}</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.music</string>
|
||||
<key>NSHighResolutionCapable</key>
|
||||
<true/>
|
||||
<key>NSRequiresAquaSystemAppearance</key>
|
||||
<true/>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>Audacity version ${AUDACITY_INFO_VERSION}</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>Audacity requires access to the microphone only if you intend to record from it.</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
</dict>
|
||||
</plist>
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,47 @@
|
|||
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/lib/xmlparse.c
|
||||
${TARGET_ROOT}/lib/xmlrole.c
|
||||
${TARGET_ROOT}/lib/xmltok.c
|
||||
${TARGET_ROOT}/lib/xmltok_impl.c
|
||||
${TARGET_ROOT}/lib/xmltok_ns.c
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/private
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/lib
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
HAVE_EXPAT_CONFIG_H
|
||||
)
|
||||
|
||||
check_symbol_exists( "getpagesize" "unistd.h" HAVE_GETPAGESIZE )
|
||||
check_symbol_exists( "bcopy" "strings.h" HAVE_BCOPY )
|
||||
check_symbol_exists( "memmove" "string.h" HAVE_MEMMOVE )
|
||||
|
||||
if( WORDS_BIGENDIAN )
|
||||
set( BYTEORDER 4321 )
|
||||
else( WORDS_BIGENDIAN )
|
||||
set( BYTEORDER 1234 )
|
||||
endif()
|
||||
|
||||
set( XML_DTD OFF )
|
||||
set( XML_NS OFF )
|
||||
|
||||
configure_file( ${TARGET_ROOT}/expat_config.h.cmake private/expat_config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
|
@ -1,20 +1,96 @@
|
|||
#directory cmake-proxies/lame
|
||||
#UNUSED
|
||||
set( TARGET lame )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
${TARGET_SOURCE}/lib/xmlparse.c
|
||||
#${LIB_SRC_DIRECTORY}FileDialog/gtk/FileDialogPrivate.cpp #not on windows.
|
||||
#${LIB_SRC_DIRECTORY}${TARGET}/win/FileDialogPrivate.cpp
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions( )
|
||||
add_library( ${TARGET} MODULE ${SOURCES})
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
# libmp3lame
|
||||
${TARGET_ROOT}/../libmp3lame/bitstream.c
|
||||
${TARGET_ROOT}/../libmp3lame/encoder.c
|
||||
${TARGET_ROOT}/../libmp3lame/fft.c
|
||||
${TARGET_ROOT}/../libmp3lame/gain_analysis.c
|
||||
${TARGET_ROOT}/../libmp3lame/id3tag.c
|
||||
${TARGET_ROOT}/../libmp3lame/lame.c
|
||||
${TARGET_ROOT}/../libmp3lame/mpglib_interface.c
|
||||
${TARGET_ROOT}/../libmp3lame/newmdct.c
|
||||
${TARGET_ROOT}/../libmp3lame/presets.c
|
||||
${TARGET_ROOT}/../libmp3lame/psymodel.c
|
||||
${TARGET_ROOT}/../libmp3lame/quantize.c
|
||||
${TARGET_ROOT}/../libmp3lame/quantize_pvt.c
|
||||
${TARGET_ROOT}/../libmp3lame/reservoir.c
|
||||
${TARGET_ROOT}/../libmp3lame/set_get.c
|
||||
${TARGET_ROOT}/../libmp3lame/tables.c
|
||||
${TARGET_ROOT}/../libmp3lame/takehiro.c
|
||||
${TARGET_ROOT}/../libmp3lame/util.c
|
||||
${TARGET_ROOT}/../libmp3lame/vbrquantize.c
|
||||
${TARGET_ROOT}/../libmp3lame/VbrTag.c
|
||||
${TARGET_ROOT}/../libmp3lame/version.c
|
||||
${TARGET_ROOT}/../libmp3lame/vector/xmm_quantize_sub.c
|
||||
|
||||
# mpglib
|
||||
${TARGET_ROOT}/../mpglib/common.c
|
||||
${TARGET_ROOT}/../mpglib/dct64_i386.c
|
||||
${TARGET_ROOT}/../mpglib/decode_i386.c
|
||||
${TARGET_ROOT}/../mpglib/interface.c
|
||||
${TARGET_ROOT}/../mpglib/layer1.c
|
||||
${TARGET_ROOT}/../mpglib/layer2.c
|
||||
${TARGET_ROOT}/../mpglib/layer3.c
|
||||
${TARGET_ROOT}/../mpglib/tabinit.c
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/private
|
||||
${TARGET_ROOT}/../libmp3lame
|
||||
${TARGET_ROOT}/../mpglib
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_BINARY_DIR}/public
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
HAVE_CONFIG_H
|
||||
)
|
||||
|
||||
set( HAVE_INT8_T SIZEOF_INT8_T )
|
||||
set( HAVE_INT16_T SIZEOF_INT16_T )
|
||||
set( HAVE_INT32_T SIZEOF_INT32_T )
|
||||
set( HAVE_INT64_T SIZEOF_INT64_T )
|
||||
set( HAVE_UINT16_T SIZEOF_UINT16_T )
|
||||
set( HAVE_UINT32_T SIZEOF_UINT32_T )
|
||||
set( HAVE_UINT64_T SIZEOF_UINT64_T )
|
||||
|
||||
if( SIZEOF_SHORT EQUAL 4 )
|
||||
set( A_INT32_T int )
|
||||
elseif( SIZEOF_INT EQUAL 4 )
|
||||
set( A_INT32_T int )
|
||||
elseif( SIZEOF_LONG EQUAL 4 )
|
||||
set( A_INT32_T long )
|
||||
endif()
|
||||
|
||||
if( SIZEOF_INT EQUAL 8 )
|
||||
set( A_INT64_T int )
|
||||
elseif( SIZEOF_LONG EQUAL 8 )
|
||||
set( A_INT64_T long )
|
||||
elseif( SIZEOF_LONG_LONG EQUAL 8 )
|
||||
set( A_INT64_T long long )
|
||||
endif()
|
||||
|
||||
set( DECODE_ON_THE_FLY 1 )
|
||||
set( HAVE_MPGLIB 1 )
|
||||
set( TAKEHIRO_IEEE754_HACK 1 )
|
||||
set( USE_FAST_LOG 1 )
|
||||
if( ${CMakeDetermineASM_NASMCompiler} )
|
||||
set( HAVE_NASM 1 )
|
||||
endif()
|
||||
|
||||
configure_file( config.h.in private/config.h )
|
||||
configure_file( lame.h.in public/lame/lame.h )
|
||||
|
||||
#organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -0,0 +1,371 @@
|
|||
/* config.h.in. Generated from configure.in by autoheader. */
|
||||
|
||||
|
||||
#ifndef LAME_CONFIG_H
|
||||
#define LAME_CONFIG_H 1
|
||||
|
||||
|
||||
/* debug define */
|
||||
#cmakedefine ABORTFP 1
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#cmakedefine AC_APPLE_UNIVERSAL_BUILD 1
|
||||
|
||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
||||
systems. This function is required for `alloca.c' support on those systems.
|
||||
*/
|
||||
#cmakedefine CRAY_STACKSEG_END @CRAY_STACKSEG_END@
|
||||
|
||||
/* Define to 1 if using `alloca.c'. */
|
||||
#cmakedefine C_ALLOCA 1
|
||||
|
||||
/* alot of debug output */
|
||||
#cmakedefine DEBUG 1
|
||||
|
||||
/* allow to compute a more accurate replaygain value */
|
||||
#cmakedefine DECODE_ON_THE_FLY 1
|
||||
|
||||
/* double is faster than float on Alpha */
|
||||
#cmakedefine FLOAT @FLOAT@
|
||||
|
||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
||||
#cmakedefine HAVE_ALLOCA 1
|
||||
|
||||
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
||||
*/
|
||||
#cmakedefine HAVE_ALLOCA_H 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#cmakedefine HAVE_DLFCN_H 1
|
||||
|
||||
/* we link against libefence */
|
||||
#cmakedefine HAVE_EFENCE 1
|
||||
|
||||
/* Define to 1 if you have the <errno.h> header file. */
|
||||
#cmakedefine HAVE_ERRNO_H 1
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#cmakedefine HAVE_FCNTL_H 1
|
||||
|
||||
/* Define to 1 if you have the `gettimeofday' function. */
|
||||
#cmakedefine HAVE_GETTIMEOFDAY 1
|
||||
|
||||
/* Define if you have the iconv() function and it works. */
|
||||
#cmakedefine HAVE_ICONV 1
|
||||
|
||||
/* add ieee754_float32_t type */
|
||||
#cmakedefine HAVE_IEEE754_FLOAT32_T 1
|
||||
#ifndef HAVE_IEEE754_FLOAT32_T
|
||||
typedef float ieee754_float32_t;
|
||||
#endif
|
||||
|
||||
/* add ieee754_float64_t type */
|
||||
#cmakedefine HAVE_IEEE754_FLOAT64_T 1
|
||||
#ifndef HAVE_IEEE754_FLOAT64_T
|
||||
typedef double ieee754_float64_t;
|
||||
#endif
|
||||
|
||||
/* system has 80 bit floats */
|
||||
#cmakedefine HAVE_IEEE854_FLOAT80 1
|
||||
|
||||
/* add ieee854_float80_t type */
|
||||
#cmakedefine HAVE_IEEE854_FLOAT80_T 1
|
||||
#ifndef HAVE_IEEE854_FLOAT80_T
|
||||
typedef long double ieee854_float80_t;
|
||||
#endif
|
||||
|
||||
/* add int16_t type */
|
||||
#cmakedefine HAVE_INT16_T 1
|
||||
#ifndef HAVE_INT16_T
|
||||
typedef short int16_t;
|
||||
#endif
|
||||
|
||||
/* add int32_t type */
|
||||
#cmakedefine HAVE_INT32_T 1
|
||||
#ifndef HAVE_INT32_T
|
||||
#define A_INT32_T @A_INT32_T@
|
||||
typedef A_INT32_T int32_t;
|
||||
#endif
|
||||
|
||||
/* add int64_t type */
|
||||
#cmakedefine HAVE_INT64_T 1
|
||||
#ifndef HAVE_INT64_T
|
||||
#define A_INT64_T @A_INT64_T@
|
||||
typedef A_INT64_T int64_t;
|
||||
#endif
|
||||
|
||||
/* add int8_t type */
|
||||
#cmakedefine HAVE_INT8_T 1
|
||||
#ifndef HAVE_INT8_T
|
||||
typedef char int8_t;
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#cmakedefine HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#cmakedefine HAVE_LIMITS_H 1
|
||||
|
||||
/* Define to 1 if you have the <linux/soundcard.h> header file. */
|
||||
#cmakedefine HAVE_LINUX_SOUNDCARD_H 1
|
||||
|
||||
/* Define to 1 if the type `long double' works and has more range or precision
|
||||
than `double'. */
|
||||
#cmakedefine HAVE_LONG_DOUBLE 1
|
||||
|
||||
/* Define to 1 if the type `long double' works and has more range or precision
|
||||
than `double'. */
|
||||
#cmakedefine HAVE_LONG_DOUBLE_WIDER 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#cmakedefine HAVE_MEMORY_H 1
|
||||
|
||||
/* build with mpglib support */
|
||||
#cmakedefine HAVE_MPGLIB 1
|
||||
|
||||
/* have nasm */
|
||||
#cmakedefine HAVE_NASM 1
|
||||
|
||||
/* Define to 1 if you have the <ncurses/termcap.h> header file. */
|
||||
#cmakedefine HAVE_NCURSES_TERMCAP_H 1
|
||||
|
||||
/* Define to 1 if you have the `socket' function. */
|
||||
#cmakedefine HAVE_SOCKET 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 `strtol' function. */
|
||||
#cmakedefine HAVE_STRTOL 1
|
||||
|
||||
/* Define to 1 if you have the <sys/soundcard.h> header file. */
|
||||
#cmakedefine HAVE_SYS_SOUNDCARD_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/time.h> header file. */
|
||||
#cmakedefine HAVE_SYS_TIME_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#cmakedefine HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* have termcap */
|
||||
#cmakedefine HAVE_TERMCAP 1
|
||||
|
||||
/* Define to 1 if you have the <termcap.h> header file. */
|
||||
#cmakedefine HAVE_TERMCAP_H 1
|
||||
|
||||
/* add uint16_t type */
|
||||
#cmakedefine HAVE_UINT16_T 1
|
||||
#ifndef HAVE_UINT16_T
|
||||
typedef unsigned short uint16_t;
|
||||
#endif
|
||||
|
||||
/* add uint32_t type */
|
||||
#cmakedefine HAVE_UINT32_T 1
|
||||
#ifndef HAVE_UINT32_T
|
||||
#define A_UINT32_T @A_UINT32_T@
|
||||
typedef A_UINT32_T uint32_t;
|
||||
#endif
|
||||
|
||||
/* add uint64_t type */
|
||||
#cmakedefine HAVE_UINT64_T 1
|
||||
#ifndef HAVE_UINT64_T
|
||||
#define A_UINT64_T @A_UINT64_T@
|
||||
typedef A_UINT64_T uint64_t;
|
||||
#endif
|
||||
|
||||
/* add uint8_t type */
|
||||
#cmakedefine HAVE_UINT8_T 1
|
||||
#ifndef HAVE_UINT8_T
|
||||
typedef unsigned char uint8_t;
|
||||
#endif
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#cmakedefine HAVE_UNISTD_H 1
|
||||
|
||||
/* Define if SSE intrinsics work. */
|
||||
#cmakedefine HAVE_XMMINTRIN_H 1
|
||||
|
||||
/* Define as const if the declaration of iconv() needs const. */
|
||||
#define ICONV_CONST @ICONV_CONST@
|
||||
|
||||
/* requested by Frank, seems to be temporary needed for a smooth transition */
|
||||
#cmakedefine LAME_LIBRARY_BUILD 1
|
||||
|
||||
/* set to 1 if you have libsndfile */
|
||||
#cmakedefine LIBSNDFILE 1
|
||||
|
||||
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
||||
#cmakedefine LT_OBJDIR @LT_OBJDIR@
|
||||
|
||||
/* use MMX version of choose_table */
|
||||
#cmakedefine MMX_choose_table 1
|
||||
|
||||
/* build without hooks for analyzer */
|
||||
#cmakedefine NOANALYSIS 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@"
|
||||
|
||||
/* The size of `double', as computed by sizeof. */
|
||||
#define SIZEOF_DOUBLE @SIZEOF_DOUBLE@
|
||||
|
||||
/* The size of `float', as computed by sizeof. */
|
||||
#define SIZEOF_FLOAT @SIZEOF_FLOAT@
|
||||
|
||||
/* The size of `int', as computed by sizeof. */
|
||||
#define SIZEOF_INT @SIZEOF_INT@
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
#define SIZEOF_LONG @SIZEOF_LONG@
|
||||
|
||||
/* The size of `long double', as computed by sizeof. */
|
||||
#define SIZEOF_LONG_DOUBLE @SIZEOF_LONG_DOUBLE@
|
||||
|
||||
/* The size of `long long', as computed by sizeof. */
|
||||
#define SIZEOF_LONG_LONG @SIZEOF_LONG_LONG@
|
||||
|
||||
/* The size of `short', as computed by sizeof. */
|
||||
#define SIZEOF_SHORT @SIZEOF_SHORT@
|
||||
|
||||
/* The size of `unsigned int', as computed by sizeof. */
|
||||
#define SIZEOF_UNSIGNED_INT @SIZEOF_UNSIGNED_INT@
|
||||
|
||||
/* The size of `unsigned long', as computed by sizeof. */
|
||||
#define SIZEOF_UNSIGNED_LONG @SIZEOF_UNSIGNED_LONG@
|
||||
|
||||
/* The size of `unsigned long long', as computed by sizeof. */
|
||||
#define SIZEOF_UNSIGNED_LONG_LONG @SIZEOF_UNSIGNED_LONG_LONG@
|
||||
|
||||
/* The size of `unsigned short', as computed by sizeof. */
|
||||
#define SIZEOF_UNSIGNED_SHORT @SIZEOF_UNSIGNED_SHORT@
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at runtime.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||
#cmakedefine STACK_DIRECTION @STACK_DIRECTION@
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* IEEE754 compatible machine */
|
||||
#cmakedefine TAKEHIRO_IEEE754_HACK 1
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#cmakedefine TIME_WITH_SYS_TIME 1
|
||||
|
||||
/* faster log implementation with less but enough precission */
|
||||
#cmakedefine USE_FAST_LOG 1
|
||||
|
||||
/* Enable extensions on AIX 3, Interix. */
|
||||
#ifndef _ALL_SOURCE
|
||||
#cmakedefine _ALL_SOURCE 1
|
||||
#endif
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
#cmakedefine _GNU_SOURCE 1
|
||||
#endif
|
||||
/* Enable threading extensions on Solaris. */
|
||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||
#cmakedefine _POSIX_PTHREAD_SEMANTICS 1
|
||||
#endif
|
||||
/* Enable extensions on HP NonStop. */
|
||||
#ifndef _TANDEM_SOURCE
|
||||
#cmakedefine _TANDEM_SOURCE 1
|
||||
#endif
|
||||
/* Enable general extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
#cmakedefine __EXTENSIONS__ 1
|
||||
#endif
|
||||
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION "@VERSION@"
|
||||
|
||||
/* Define if using the dmalloc debugging malloc package */
|
||||
#cmakedefine WITH_DMALLOC 1
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
# if defined __BIG_ENDIAN__
|
||||
# define WORDS_BIGENDIAN 1
|
||||
# endif
|
||||
#else
|
||||
# ifndef WORDS_BIGENDIAN
|
||||
#cmakedefine WORDS_BIGENDIAN 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Enable large inode numbers on Mac OS X 10.5. */
|
||||
#ifndef _DARWIN_USE_64_BIT_INODE
|
||||
# define _DARWIN_USE_64_BIT_INODE 1
|
||||
#endif
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
#cmakedefine _LARGE_FILES @_LARGE_FILES@
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#cmakedefine _MINIX 1
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
#cmakedefine _POSIX_1_SOURCE @_POSIX_1_SOURCE@
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#cmakedefine _POSIX_SOURCE 1
|
||||
|
||||
/* we're on DEC Alpha */
|
||||
#cmakedefine __DECALPHA__ 1
|
||||
|
||||
/* work around a glibc bug */
|
||||
#cmakedefine __NO_MATH_INLINES 1
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#cmakedefine const @const@
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#cmakedefine inline @inline@
|
||||
#endif
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
#cmakedefine size_t @size_t@
|
||||
|
||||
#endif /* LAME_CONFIG_H */
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,26 @@
|
|||
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/NonGuiThread.cpp
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PUBLIC
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
PRIVATE
|
||||
wxwidgets
|
||||
)
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
|
@ -0,0 +1,96 @@
|
|||
/* libtwolame/config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#cmakedefine AC_APPLE_UNIVERSAL_BUILD 1
|
||||
|
||||
/* Define to 1 if you have the <assert.h> header file. */
|
||||
#cmakedefine HAVE_ASSERT_H 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 to 1 if you have the `m' library (-lm). */
|
||||
#cmakedefine HAVE_LIBM 1
|
||||
|
||||
/* Define to 1 if you have the `mx' library (-lmx). */
|
||||
#cmakedefine HAVE_LIBMX 1
|
||||
|
||||
/* Define to 1 if you have the <malloc.h> header file. */
|
||||
#cmakedefine HAVE_MALLOC_H 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@"
|
||||
|
||||
/* 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@"
|
||||
|
||||
/* The size of `float', as computed by sizeof. */
|
||||
#define SIZEOF_FLOAT @SIZEOF_FLOAT@
|
||||
|
||||
/* The size of `short', as computed by sizeof. */
|
||||
#define SIZEOF_SHORT @SIZEOF_SHORT@
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION "@VERSION@"
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#cmakedefine const @const@
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#cmakedefine inline @inline@
|
||||
#endif
|
|
@ -1,222 +1,98 @@
|
|||
#directory cmake-proxies/libflac
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
|
||||
set(TARGET libflac)
|
||||
set(TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET})
|
||||
project(${TARGET} VERSION 1.3.1)
|
||||
add_library( ${TARGET} STATIC )
|
||||
add_library( ${TARGET}++ STATIC )
|
||||
|
||||
option(FLAC_ENABLE_64_BIT_WORDS "Set FLAC__BYTES_PER_WORD to 8 (4 is the default)" OFF)
|
||||
option(FLAC_WITH_ASM "Use any assembly optimization routines" ON)
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
|
||||
if(CMAKE_BULD_TYPE STREQUAL Release)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -funroll-loops")
|
||||
endif()
|
||||
# libflac
|
||||
${TARGET_ROOT}/src/libFLAC/bitmath.c
|
||||
${TARGET_ROOT}/src/libFLAC/bitreader.c
|
||||
${TARGET_ROOT}/src/libFLAC/bitwriter.c
|
||||
${TARGET_ROOT}/src/libFLAC/cpu.c
|
||||
${TARGET_ROOT}/src/libFLAC/crc.c
|
||||
${TARGET_ROOT}/src/libFLAC/fixed.c
|
||||
${TARGET_ROOT}/src/libFLAC/fixed_intrin_sse2.c
|
||||
${TARGET_ROOT}/src/libFLAC/fixed_intrin_ssse3.c
|
||||
${TARGET_ROOT}/src/libFLAC/float.c
|
||||
${TARGET_ROOT}/src/libFLAC/format.c
|
||||
${TARGET_ROOT}/src/libFLAC/lpc.c
|
||||
${TARGET_ROOT}/src/libFLAC/lpc_intrin_sse.c
|
||||
${TARGET_ROOT}/src/libFLAC/lpc_intrin_sse2.c
|
||||
${TARGET_ROOT}/src/libFLAC/lpc_intrin_sse41.c
|
||||
${TARGET_ROOT}/src/libFLAC/lpc_intrin_avx2.c
|
||||
${TARGET_ROOT}/src/libFLAC/md5.c
|
||||
${TARGET_ROOT}/src/libFLAC/memory.c
|
||||
${TARGET_ROOT}/src/libFLAC/metadata_iterators.c
|
||||
${TARGET_ROOT}/src/libFLAC/metadata_object.c
|
||||
${TARGET_ROOT}/src/libFLAC/stream_decoder.c
|
||||
${TARGET_ROOT}/src/libFLAC/stream_encoder.c
|
||||
${TARGET_ROOT}/src/libFLAC/stream_encoder_intrin_sse2.c
|
||||
${TARGET_ROOT}/src/libFLAC/stream_encoder_intrin_ssse3.c
|
||||
${TARGET_ROOT}/src/libFLAC/stream_encoder_intrin_avx2.c
|
||||
${TARGET_ROOT}/src/libFLAC/stream_encoder_framing.c
|
||||
${TARGET_ROOT}/src/libFLAC/window.c
|
||||
${TARGET_ROOT}/src/libFLAC/ogg_decoder_aspect.c
|
||||
${TARGET_ROOT}/src/libFLAC/ogg_encoder_aspect.c
|
||||
${TARGET_ROOT}/src/libFLAC/ogg_helper.c
|
||||
${TARGET_ROOT}/src/libFLAC/ogg_mapping.c
|
||||
$<$<BOOL:${WIN32}>:${TARGET_ROOT}/src/share/win_utf8_io/win_utf8_io.c>
|
||||
)
|
||||
|
||||
option(FLAC_ENABLE_SSP "Enable GNU GCC stack smash protection" OFF)
|
||||
endif()
|
||||
list( APPEND SOURCES++
|
||||
# libflac++
|
||||
${TARGET_ROOT}/src/libFLAC++/metadata.cpp
|
||||
${TARGET_ROOT}/src/libFLAC++/stream_decoder.cpp
|
||||
${TARGET_ROOT}/src/libFLAC++/stream_encoder.cpp
|
||||
)
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]86(_64)?|(AMD|amd)64|i[346]86")
|
||||
option(FLAC_WITH_AVX "Enable AVX, AVX2 optimizations" ON)
|
||||
option(FLAC_WITH_SSE "Enable AVX, AVX2 optimizations" ON)
|
||||
endif()
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/private
|
||||
${TARGET_ROOT}/src/libFLAC/include
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/include
|
||||
)
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
include(CheckCXXCompilerFlag)
|
||||
include(CheckSymbolExists)
|
||||
include(CheckFunctionExists)
|
||||
include(CheckIncludeFile)
|
||||
include(CheckCSourceCompiles)
|
||||
include(CheckCXXSourceCompiles)
|
||||
include(TestBigEndian)
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
HAVE_CONFIG_H
|
||||
PUBLIC
|
||||
FLAC__NO_DLL
|
||||
)
|
||||
|
||||
check_include_file("byteswap.h" HAVE_BYTESWAP_H)
|
||||
check_include_file("inttypes.h" HAVE_INTTYPES_H)
|
||||
check_include_file("stdint.h" HAVE_STDINT_H)
|
||||
check_include_file("x86intrin.h" HAVE_X86INTRIN_H)
|
||||
check_include_file("cpuid.h" HAVE_CPUID_H)
|
||||
check_include_file("sys/param.h" HAVE_SYS_PARAM_H)
|
||||
list( APPEND LIBRARIES
|
||||
PRIVATE
|
||||
libogg
|
||||
)
|
||||
|
||||
function(check_lround)
|
||||
set(CMAKE_REQUIRED_LIBRARIES m)
|
||||
check_function_exists(lround HAVE_LROUND)
|
||||
endfunction()
|
||||
list( APPEND LIBRARIES++
|
||||
PRIVATE
|
||||
libflac
|
||||
)
|
||||
|
||||
check_lround()
|
||||
set( CPU_IS_BIG_ENDIAN ${WORDS_BIGENDIAN} )
|
||||
set( CPU_IS_LITTLE_ENDIAN NOT ${WORDS_BIGENDIAN} )
|
||||
|
||||
check_c_source_compiles("int main() { return __builtin_bswap16 (0) ; }" HAVE_BSWAP16)
|
||||
check_c_source_compiles("int main() { return __builtin_bswap32 (0) ; }" HAVE_BSWAP32)
|
||||
check_c_source_compiles("
|
||||
int main()
|
||||
{
|
||||
#ifndef _FORTIFY_SOURCE
|
||||
return 0;
|
||||
#else
|
||||
this_is_an_error;
|
||||
#endif
|
||||
}"
|
||||
HAVENOT_FORTIFY_SOURCE)
|
||||
set( FLAC__HAS_OGG 1 )
|
||||
|
||||
test_big_endian(CPU_IS_BIG_ENDIAN)
|
||||
set( VERSION "1.3.1" )
|
||||
|
||||
check_c_compiler_flag(-Werror HAVE_WERROR_FLAG)
|
||||
check_c_compiler_flag(-Wdeclaration-after-statement HAVE_DECL_AFTER_STMT_FLAG)
|
||||
check_c_compiler_flag("-fstack-protector --param ssp-buffer-size=4" HAVE_SSP_FLAG)
|
||||
check_c_compiler_flag("-mstackrealign" HAVE_STACKREALIGN_FLAG)
|
||||
check_c_compiler_flag(-msse2 HAVE_MSSE2_FLAG)
|
||||
check_cxx_compiler_flag(-Weffc++ HAVE_WEFFCXX_FLAG)
|
||||
configure_file( config.h.in private/config.h )
|
||||
|
||||
add_compile_definitions(
|
||||
VERSION="${PROJECT_VERSION}"
|
||||
$<$<BOOL:${HAVE_BYTESWAP_H}>:HAVE_BYTESWAP_H>
|
||||
$<$<BOOL:${HAVE_INTTYPES_H}>:HAVE_INTTYPES_H>
|
||||
$<$<BOOL:${HAVE_STDINT_H}>:HAVE_STDINT_H>
|
||||
$<$<BOOL:${MSVC}>:_CRT_SECURE_NO_WARNINGS>
|
||||
$<$<BOOL:${MSVC}>:_USE_MATH_DEFINES>
|
||||
$<$<BOOL:${HAVE_ICONV}>:HAVE_ICONV>
|
||||
$<$<BOOL:${HAVE_LROUND}>:HAVE_LROUND>
|
||||
$<$<BOOL:${HAVE_CPUID_H}>:HAVE_CPUID_H>
|
||||
$<$<BOOL:${HAVE_SYS_PARAM_H}>:HAVE_SYS_PARAM_H>
|
||||
$<$<BOOL:${ENABLE_64_BIT_WORDS}>:ENABLE_64_BIT_WORDS>
|
||||
HAVE_BSWAP16=$<BOOL:${HAVE_BSWAP16}>
|
||||
HAVE_BSWAP32=$<BOOL:${HAVE_BSWAP32}>
|
||||
ENABLE_64_BIT_WORDS=$<BOOL:${ENABLE_64_BIT_WORDS}>
|
||||
WORDS_BIGENDIAN=$<BOOL:${CPU_IS_BIG_ENDIAN}>
|
||||
CPU_IS_BIG_ENDIAN=$<BOOL:${CPU_IS_BIG_ENDIAN}>
|
||||
CPU_IS_LITTLE_ENDIAN=$<NOT:${CPU_IS_BIG_ENDIAN}>
|
||||
FLAC__HAS_X86INTRIN=$<BOOL:${HAVE_X86INTRIN_H}>
|
||||
FLAC__USE_AVX=$<BOOL:${WITH_AVX}>
|
||||
$<$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:FLAC__OVERFLOW_DETECT>
|
||||
_ALL_SOURCE
|
||||
_DARWIN_C_SOURCE
|
||||
_GNU_SOURCE
|
||||
_POSIX_PTHREAD_SEMANTICS
|
||||
__STDC_WANT_IEC_60559_ATTRIBS_EXT__
|
||||
__STDC_WANT_IEC_60559_BFP_EXT__
|
||||
__STDC_WANT_IEC_60559_DFP_EXT__
|
||||
__STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
__STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
__STDC_WANT_LIB_EXT2__
|
||||
__STDC_WANT_MATH_SPEC_FUNCS__
|
||||
_TANDEM_SOURCE
|
||||
$<$<AND:$<BOOL:${HAVENOT_FORTIFY_SOURCE}>,$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>>:_FORTIFY_SOURCE=2>)
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
add_compile_options(
|
||||
$<$<BOOL:${MSVC}>:/wd4267>
|
||||
$<$<BOOL:${MSVC}>:/wd4996>
|
||||
$<$<BOOL:${ENABLE_WERROR}>:-Werror>
|
||||
$<$<AND:$<BOOL:${HAVE_SSP_FLAG}>,$<BOOL:${ENABLE_SSP}>>:"-fstack-protector --param ssp-buffer-size=4">
|
||||
$<$<AND:$<BOOL:${HAVE_MSSE2_FLAG}>,$<BOOL:FLAC_WITH_SSE>>:-msse2>)
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES++}" )
|
||||
target_sources( ${TARGET}++ PRIVATE ${SOURCES++} )
|
||||
target_compile_definitions( ${TARGET}++ PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET}++ PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET}++ PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET}++ PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET}++ PRIVATE ${LIBRARIES++} )
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "i686" AND HAVE_STACKREALIGN_FLAG)
|
||||
add_compile_options(-mstackrealign)
|
||||
endif()
|
||||
if(HAVE_WEFFCXX_FLAG)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Weffc++")
|
||||
endif()
|
||||
if(HAVE_DECL_AFTER_STMT_FLAG)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wdeclaration-after-statement")
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_PROCESSOR MATCHES "[xX]86_64|(AMD|amd)64")
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
||||
set(IA32 TRUE)
|
||||
endif()
|
||||
add_compile_definitions(
|
||||
FLAC__CPU_X86_64
|
||||
FLAC__ALIGN_MALLOC_DATA)
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "([xX]|i[346])86")
|
||||
set(IA32 TRUE)
|
||||
add_compile_definitions(
|
||||
FLAC__CPU_IA32
|
||||
FLAC__ALIGN_MALLOC_DATA)
|
||||
endif()
|
||||
|
||||
include(CheckLanguage)
|
||||
check_language(ASM_NASM)
|
||||
if(CMAKE_ASM_NASM_COMPILER)
|
||||
enable_language(ASM_NASM)
|
||||
add_compile_definitions(FLAC__HAS_NASM)
|
||||
endif()
|
||||
|
||||
if(NOT WITH_ASM)
|
||||
add_compile_definitions(FLAC__NO_ASM)
|
||||
endif()
|
||||
|
||||
if(WITH_ASM AND IA32 AND CMAKE_ASM_NASM_COMPILER)
|
||||
if(APPLE)
|
||||
set(CMAKE_ASM_NASM_FLAGS -dOBJ_FORMAT_macho)
|
||||
elseif(WIN32)
|
||||
set(CMAKE_ASM_NASM_FLAGS -dOBJ_FORMAT_win32)
|
||||
else()
|
||||
set(CMAKE_ASM_NASM_FLAGS -dOBJ_FORMAT_elf)
|
||||
endif()
|
||||
|
||||
add_library(FLAC-asm STATIC
|
||||
"${TARGET_SOURCE}/src/libFLAC/ia32/cpu_asm.nasm"
|
||||
"${TARGET_SOURCE}/src/libFLAC/ia32/fixed_asm.nasm"
|
||||
"${TARGET_SOURCE}/src/libFLAC/ia32/lpc_asm.nasm")
|
||||
set_target_properties(FLAC-asm PROPERTIES COMPILE_OPTIONS "")
|
||||
target_include_directories(FLAC-asm PRIVATE "${TARGET_SOURCE}/src/libFLAC/ia32/")
|
||||
endif()
|
||||
|
||||
add_library(FLAC-static STATIC
|
||||
"${TARGET_SOURCE}/src/libFLAC/bitmath.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/bitreader.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/bitwriter.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/cpu.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/crc.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/fixed.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/fixed_intrin_sse2.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/fixed_intrin_ssse3.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/float.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/format.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/lpc.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/lpc_intrin_sse.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/lpc_intrin_sse2.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/lpc_intrin_sse41.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/lpc_intrin_avx2.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/md5.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/memory.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/metadata_iterators.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/metadata_object.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/stream_decoder.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/stream_encoder.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/stream_encoder_intrin_sse2.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/stream_encoder_intrin_ssse3.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/stream_encoder_intrin_avx2.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/stream_encoder_framing.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/window.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/ogg_decoder_aspect.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/ogg_encoder_aspect.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/ogg_helper.c"
|
||||
"${TARGET_SOURCE}/src/libFLAC/ogg_mapping.c"
|
||||
"$<$<BOOL:${WIN32}>:${TARGET_SOURCE}/src/share/win_utf8_io/win_utf8_io.c>")
|
||||
|
||||
include_directories(
|
||||
"${TARGET_SOURCE}/include"
|
||||
"${TARGET_SOURCE}/src/libFLAC/include")
|
||||
|
||||
target_compile_definitions(FLAC-static PUBLIC FLAC__NO_DLL FLAC__HAS_OGG)
|
||||
target_include_directories(FLAC-static INTERFACE
|
||||
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
|
||||
target_link_libraries(FLAC-static PUBLIC
|
||||
libogg
|
||||
$<TARGET_NAME_IF_EXISTS:FLAC-asm>
|
||||
$<$<BOOL:${HAVE_LROUND}>:m>
|
||||
$<TARGET_NAME_IF_EXISTS:win_utf8_io>)
|
||||
set_target_properties(FLAC-static PROPERTIES
|
||||
OSX_ARCHITECTURES ""
|
||||
OUTPUT_NAME libflac)
|
||||
|
||||
add_library(FLACXX-static STATIC
|
||||
"${TARGET_SOURCE}/src/libFLAC++/metadata.cpp"
|
||||
"${TARGET_SOURCE}/src/libFLAC++/stream_decoder.cpp"
|
||||
"${TARGET_SOURCE}/src/libFLAC++/stream_encoder.cpp")
|
||||
target_compile_definitions(FLACXX-static PUBLIC FLAC__NO_DLL)
|
||||
target_include_directories(FLACXX-static INTERFACE
|
||||
"$<BUILD_INTERFACE:${TARGET_SOURCE}/include>")
|
||||
target_link_libraries(FLACXX-static PUBLIC FLAC-static)
|
||||
set_target_properties(FLACXX-static PROPERTIES
|
||||
OSX_ARCHITECTURES ""
|
||||
OUTPUT_NAME libflac++)
|
||||
|
|
|
@ -0,0 +1,234 @@
|
|||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#cmakedefine AC_APPLE_UNIVERSAL_BUILD 1
|
||||
|
||||
/* Target processor is big endian. */
|
||||
#cmakedefine01 CPU_IS_BIG_ENDIAN
|
||||
|
||||
/* Target processor is little endian. */
|
||||
#cmakedefine01 CPU_IS_LITTLE_ENDIAN
|
||||
|
||||
/* define to align allocated memory on 32-byte boundaries */
|
||||
#cmakedefine FLAC__ALIGN_MALLOC_DATA 1
|
||||
|
||||
/* define if building for ia32/i386 */
|
||||
#cmakedefine FLAC__CPU_IA32 1
|
||||
|
||||
/* define if building for PowerPC */
|
||||
#cmakedefine FLAC__CPU_PPC 1
|
||||
|
||||
/* define if building for PowerPC with SPE ABI */
|
||||
#cmakedefine FLAC__CPU_PPC_SPE 1
|
||||
|
||||
/* define if building for SPARC */
|
||||
#cmakedefine FLAC__CPU_SPARC 1
|
||||
|
||||
/* define if building for x86_64 */
|
||||
#cmakedefine FLAC__CPU_X86_64 1
|
||||
|
||||
/* define if you have docbook-to-man or docbook2man */
|
||||
#cmakedefine FLAC__HAS_DOCBOOK_TO_MAN 1
|
||||
|
||||
/* define if you are compiling for x86 and have the NASM assembler */
|
||||
#cmakedefine FLAC__HAS_NASM 1
|
||||
|
||||
/* define if you have the ogg library */
|
||||
#cmakedefine FLAC__HAS_OGG 1
|
||||
|
||||
/* Set to 1 if <x86intrin.h> is available. */
|
||||
#cmakedefine FLAC__HAS_X86INTRIN 1
|
||||
|
||||
/* define to disable use of assembly code */
|
||||
#cmakedefine FLAC__NO_ASM 1
|
||||
|
||||
/* define if your operating system supports SSE instructions */
|
||||
#cmakedefine FLAC__SSE_OS 1
|
||||
|
||||
/* define if building for Darwin / MacOS X */
|
||||
#cmakedefine FLAC__SYS_DARWIN 1
|
||||
|
||||
/* define if building for Linux */
|
||||
#cmakedefine FLAC__SYS_LINUX 1
|
||||
|
||||
/* define to enable use of Altivec instructions */
|
||||
#cmakedefine FLAC__USE_ALTIVEC 1
|
||||
|
||||
/* Define to 1 if `TIOCGWINSZ' requires <sys/ioctl.h>. */
|
||||
#cmakedefine GWINSZ_IN_SYS_IOCTL 1
|
||||
|
||||
/* Compiler has the __builtin_bswap16 intrinsic */
|
||||
#cmakedefine HAVE_BSWAP16 1
|
||||
|
||||
/* Compiler has the __builtin_bswap32 intrinsic */
|
||||
#cmakedefine HAVE_BSWAP32 1
|
||||
|
||||
/* Define to 1 if you have the <byteswap.h> header file. */
|
||||
#cmakedefine HAVE_BYTESWAP_H 1
|
||||
|
||||
/* Define to 1 if you have the <cpuid.h> header file. */
|
||||
#cmakedefine HAVE_CPUID_H 1
|
||||
|
||||
/* Define to 1 if C++ supports variable-length arrays. */
|
||||
#cmakedefine HAVE_CXX_VARARRAYS 1
|
||||
|
||||
/* Define to 1 if C supports variable-length arrays. */
|
||||
#cmakedefine HAVE_C_VARARRAYS 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#cmakedefine HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
|
||||
#cmakedefine HAVE_FSEEKO 1
|
||||
|
||||
/* Define to 1 if you have the `getopt_long' function. */
|
||||
#cmakedefine HAVE_GETOPT_LONG 1
|
||||
|
||||
/* Define if you have the iconv() function and it works. */
|
||||
#cmakedefine HAVE_ICONV 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#cmakedefine HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
|
||||
#cmakedefine HAVE_LANGINFO_CODESET 1
|
||||
|
||||
/* lround support */
|
||||
#cmakedefine HAVE_LROUND 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#cmakedefine HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if the system has the type `socklen_t'. */
|
||||
#cmakedefine HAVE_SOCKLEN_T 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/param.h> header file. */
|
||||
#cmakedefine HAVE_SYS_PARAM_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 <termios.h> header file. */
|
||||
#cmakedefine HAVE_TERMIOS_H 1
|
||||
|
||||
/* Define to 1 if typeof works with your compiler. */
|
||||
#cmakedefine HAVE_TYPEOF 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#cmakedefine HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the <x86intrin.h> header file. */
|
||||
#cmakedefine HAVE_X86INTRIN_H 1
|
||||
|
||||
/* Define as const if the declaration of iconv() needs const. */
|
||||
#cmakedefine ICONV_CONST @ICONV_CONST@
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#cmakedefine LT_OBJDIR "@LT_OBJDIR@"
|
||||
|
||||
/* 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"
|
||||
|
||||
/* The size of `off_t', as computed by sizeof. */
|
||||
#define SIZEOF_OFF_T @SIZEOF_OFF_T
|
||||
|
||||
/* The size of `void*', as computed by sizeof. */
|
||||
#define SIZEOF_VOIDP @SIZEOF_VOIDP@
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* Enable extensions on AIX 3, Interix. */
|
||||
#ifndef _ALL_SOURCE
|
||||
# cmakedefine _ALL_SOURCE 1
|
||||
#endif
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
# cmakedefine _GNU_SOURCE 1
|
||||
#endif
|
||||
/* Enable threading extensions on Solaris. */
|
||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||
# cmakedefine _POSIX_PTHREAD_SEMANTICS 1
|
||||
#endif
|
||||
/* Enable extensions on HP NonStop. */
|
||||
#ifndef _TANDEM_SOURCE
|
||||
# cmakedefine _TANDEM_SOURCE 1
|
||||
#endif
|
||||
/* Enable general extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
# cmakedefine __EXTENSIONS__ 1
|
||||
#endif
|
||||
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION "@VERSION@"
|
||||
|
||||
/* Target processor is big endian. */
|
||||
#cmakedefine WORDS_BIGENDIAN 1
|
||||
|
||||
/* Enable large inode numbers on Mac OS X 10.5. */
|
||||
#ifndef _DARWIN_USE_64_BIT_INODE
|
||||
# define _DARWIN_USE_64_BIT_INODE 1
|
||||
#endif
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
|
||||
|
||||
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
|
||||
#cmakedefine _LARGEFILE_SOURCE 1
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
#cmakedefine _LARGE_FILES 1
|
||||
|
||||
/* Define to 1 if on MINIX. */
|
||||
#cmakedefine _MINIX 1
|
||||
|
||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
||||
this defined. */
|
||||
#cmakedefine _POSIX_1_SOURCE 1
|
||||
|
||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#cmakedefine _POSIX_SOURCE 1
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#cmakedefine inline @inline@
|
||||
#endif
|
||||
|
||||
/* Define to __typeof__ if your compiler spells it that way. */
|
||||
#cmakedefine typeof @typeof@
|
|
@ -1,38 +1,50 @@
|
|||
#directory cmake-proxies/libid3tag
|
||||
set( TARGET libid3tag )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
${LIB_SRC_DIRECTORY}libid3tag/compat.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/crc.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/debug.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/field.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/file.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/frame.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/frametype.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/genre.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/latin1.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/parse.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/render.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/tag.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/ucs4.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/utf16.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/utf8.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/util.c
|
||||
${LIB_SRC_DIRECTORY}libid3tag/version.c
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
find_package(wxWidgets REQUIRED COMPONENTS net core base)
|
||||
#include( ${wxWidgets_USE_FILE} )
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${wxWidgets_ROOT_DIR}/src/zlib
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/compat.c
|
||||
${TARGET_ROOT}/crc.c
|
||||
$<$<STREQUAL:${CMAKE_BUILD_TYPE},Debug>:${TARGET_ROOT}/debug.c>
|
||||
${TARGET_ROOT}/field.c
|
||||
${TARGET_ROOT}/file.c
|
||||
${TARGET_ROOT}/frame.c
|
||||
${TARGET_ROOT}/frametype.c
|
||||
${TARGET_ROOT}/genre.c
|
||||
${TARGET_ROOT}/latin1.c
|
||||
${TARGET_ROOT}/parse.c
|
||||
${TARGET_ROOT}/render.c
|
||||
${TARGET_ROOT}/tag.c
|
||||
${TARGET_ROOT}/ucs4.c
|
||||
${TARGET_ROOT}/utf16.c
|
||||
${TARGET_ROOT}/utf8.c
|
||||
${TARGET_ROOT}/util.c
|
||||
${TARGET_ROOT}/version.c
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/private
|
||||
PUBLIC
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<C_COMPILER_ID:GNU>:-Wno-implicit-function-declaration>
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
PRIVATE
|
||||
wxwidgets
|
||||
)
|
||||
configure_file( config.h.in private/config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "src" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -0,0 +1,86 @@
|
|||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to enable diagnostic debugging support. */
|
||||
#cmakedefine DEBUG 1
|
||||
|
||||
/* Define to 1 if you have the <assert.h> header file. */
|
||||
#cmakedefine HAVE_ASSERT_H 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#cmakedefine HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the `ftruncate' function. */
|
||||
#cmakedefine HAVE_FTRUNCATE 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#cmakedefine HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the `z' library (-lz). */
|
||||
#cmakedefine HAVE_LIBZ 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 disable debugging assertions. */
|
||||
#cmakedefine NDEBUG 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@"
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#cmakedefine const @const@
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#cmakedefine inline @inline@
|
||||
#endif
|
|
@ -1,39 +1,53 @@
|
|||
#directory cmake-proxies/libmad
|
||||
set( TARGET libmad )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
${LIB_SRC_DIRECTORY}libmad/bit.c
|
||||
${LIB_SRC_DIRECTORY}libmad/decoder.c
|
||||
${LIB_SRC_DIRECTORY}libmad/fixed.c
|
||||
${LIB_SRC_DIRECTORY}libmad/frame.c
|
||||
${LIB_SRC_DIRECTORY}libmad/huffman.c
|
||||
${LIB_SRC_DIRECTORY}libmad/layer12.c
|
||||
${LIB_SRC_DIRECTORY}libmad/layer3.c
|
||||
#${LIB_SRC_DIRECTORY}libmad/minimad.c
|
||||
${LIB_SRC_DIRECTORY}libmad/stream.c
|
||||
${LIB_SRC_DIRECTORY}libmad/synth.c
|
||||
${LIB_SRC_DIRECTORY}libmad/timer.c
|
||||
${LIB_SRC_DIRECTORY}libmad/version.c
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D__WX__
|
||||
-DWIN32
|
||||
-D_WINDOWS
|
||||
-D__WINDOWS__
|
||||
-D__WXMSW__
|
||||
-D__WIN95__
|
||||
-D__WIN32__
|
||||
-D_LIB
|
||||
-DHAVE_CONFIG_H
|
||||
-DFPM_INTEL
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${TARGET_SOURCE}/msvc++
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/bit.c
|
||||
${TARGET_ROOT}/decoder.c
|
||||
${TARGET_ROOT}/fixed.c
|
||||
${TARGET_ROOT}/frame.c
|
||||
${TARGET_ROOT}/huffman.c
|
||||
${TARGET_ROOT}/layer12.c
|
||||
${TARGET_ROOT}/layer3.c
|
||||
${TARGET_ROOT}/stream.c
|
||||
${TARGET_ROOT}/synth.c
|
||||
${TARGET_ROOT}/timer.c
|
||||
${TARGET_ROOT}/version.c
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/private
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_BINARY_DIR}/public
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
HAVE_CONFIG_H
|
||||
OPT_ACCURACY
|
||||
$<$<IN_LIST:${CMAKE_HOST_SYSTEM_PROCESSOR},X86;AMD64;i386;i686;x86_64>:FPM_INTEL>
|
||||
$<$<NOT:$<IN_LIST:${CMAKE_HOST_SYSTEM_PROCESSOR},X86;AMD64;i386;i686;x86_64>>:FPM_DEFAULT>
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<IN_LIST:${CMAKE_C_COMPILER_ID},GNU;Clang;AppleClang>:-Wall>
|
||||
)
|
||||
|
||||
configure_file( config.h.in private/config.h )
|
||||
|
||||
set( FPM FPM_DEFAULT )
|
||||
|
||||
configure_file( mad.h.in public/mad.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -0,0 +1,215 @@
|
|||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
/*
|
||||
* libmad - MPEG audio decoder library
|
||||
* Copyright (C) 2000-2001 Robert Leslie
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
* $Id: acconfig.h,v 1.2 2001-10-21 22:26:32 dmazzoni Exp $
|
||||
*/
|
||||
|
||||
# ifndef LIBMAD_CONFIG_H 1
|
||||
# define LIBMAD_CONFIG_H 1
|
||||
|
||||
/*****************************************************************************
|
||||
* Definitions selected automatically by `configure' *
|
||||
*****************************************************************************/
|
||||
|
||||
/* Define to optimize for speed over accuracy. */
|
||||
#cmakedefine OPT_SPEED 1
|
||||
|
||||
/* Define to optimize for accuracy over speed. */
|
||||
#cmakedefine OPT_ACCURACY 1
|
||||
|
||||
/* Define to enable a fast subband synthesis approximation optimization. */
|
||||
#cmakedefine OPT_SSO 1
|
||||
|
||||
/* Define to influence a strict interpretation of the ISO/IEC standards,
|
||||
even if this is in opposition with best accepted practices. */
|
||||
#cmakedefine OPT_STRICT 1
|
||||
|
||||
/* Define if your MIPS CPU supports a 2-operand MADD instruction. */
|
||||
#cmakedefine HAVE_MADD_ASM 1
|
||||
|
||||
/* Define if your MIPS CPU supports a 2-operand MADD16 instruction. */
|
||||
#cmakedefine HAVE_MADD16_ASM 1
|
||||
|
||||
/* Define to enable diagnostic debugging support. */
|
||||
#cmakedefine DEBUG 1
|
||||
|
||||
/* Define to disable debugging assertions. */
|
||||
#cmakedefine NDEBUG 1
|
||||
|
||||
/* Define to enable experimental code. */
|
||||
#cmakedefine EXPERIMENTAL 1
|
||||
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#cmakedefine AC_APPLE_UNIVERSAL_BUILD 1
|
||||
|
||||
/* Define to enable diagnostic debugging support. */
|
||||
#cmakedefine DEBUG 1
|
||||
|
||||
/* Define to enable experimental code. */
|
||||
#cmakedefine EXPERIMENTAL 1
|
||||
|
||||
/* Define to 1 if you have the <assert.h> header file. */
|
||||
#cmakedefine HAVE_ASSERT_H 1
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#cmakedefine HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the <errno.h> header file. */
|
||||
#cmakedefine HAVE_ERRNO_H 1
|
||||
|
||||
/* Define to 1 if you have the `fcntl' function. */
|
||||
#cmakedefine HAVE_FCNTL 1
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#cmakedefine HAVE_FCNTL_H 1
|
||||
|
||||
/* Define to 1 if you have the `fork' function. */
|
||||
#cmakedefine HAVE_FORK 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#cmakedefine HAVE_INTTYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#cmakedefine HAVE_LIMITS_H 1
|
||||
|
||||
/* Define if your MIPS CPU supports a 2-operand MADD16 instruction. */
|
||||
#cmakedefine HAVE_MADD16_ASM 1
|
||||
|
||||
/* Define if your MIPS CPU supports a 2-operand MADD instruction. */
|
||||
#cmakedefine HAVE_MADD_ASM 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#cmakedefine HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `pipe' function. */
|
||||
#cmakedefine HAVE_PIPE 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 <sys/wait.h> that is POSIX.1 compatible. */
|
||||
#cmakedefine HAVE_SYS_WAIT_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#cmakedefine HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to 1 if you have the `waitpid' function. */
|
||||
#cmakedefine HAVE_WAITPID 1
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#cmakedefine LT_OBJDIR "@LT_OBJDIR@"
|
||||
|
||||
/* Define to disable debugging assertions. */
|
||||
#cmakedefine NDEBUG 1
|
||||
|
||||
/* Define to optimize for accuracy over speed. */
|
||||
#cmakedefine OPT_ACCURACY 1
|
||||
|
||||
/* Define to optimize for speed over accuracy. */
|
||||
#cmakedefine OPT_SPEED 1
|
||||
|
||||
/* Define to enable a fast subband synthesis approximation optimization. */
|
||||
#cmakedefine OPT_SSO 1
|
||||
|
||||
/* Define to influence a strict interpretation of the ISO/IEC standards, even
|
||||
if this is in opposition with best accepted practices. */
|
||||
#cmakedefine OPT_STRICT 1
|
||||
|
||||
/* Name of package */
|
||||
#cmakedefine PACKAGE "@PACKAGES"
|
||||
|
||||
/* 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@"
|
||||
|
||||
/* The size of `int', as computed by sizeof. */
|
||||
#define SIZEOF_INT @SIZEOF_INT@
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
#define SIZEOF_LONG @SIZEOF_LONG@
|
||||
|
||||
/* The size of `long long', as computed by sizeof. */
|
||||
#define SIZEOF_LONG_LONG @SIZEOF_LONG_LONG@
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION "@VERSION@"
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#if defined AC_APPLE_UNIVERSAL_BUILD
|
||||
# if defined __BIG_ENDIAN__
|
||||
# define WORDS_BIGENDIAN 1
|
||||
# endif
|
||||
#else
|
||||
# ifndef WORDS_BIGENDIAN
|
||||
# cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#cmakedefine const @const@
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#cmakedefine inline @const@
|
||||
#endif
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
#cmakedefine pid_t @pid_t@
|
||||
|
||||
/*****************************************************************************
|
||||
* End of automatically configured definitions *
|
||||
*****************************************************************************/
|
||||
|
||||
# endif
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef _MAD_H_
|
||||
#define _MAD_H_
|
||||
|
||||
#define @FPM@
|
||||
|
||||
#include "version.h"
|
||||
#include "fixed.h"
|
||||
#include "bit.h"
|
||||
#include "timer.h"
|
||||
#include "stream.h"
|
||||
#include "frame.h"
|
||||
#include "synth.h"
|
||||
#include "decoder.h"
|
||||
|
||||
#endif
|
|
@ -1,288 +1,307 @@
|
|||
#directory cmake-proxies/libnyquist
|
||||
set( TARGET libnyquist )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/f0.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/instr.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/stkinit.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/stkint.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/ADSR.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/BandedWG.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/BiQuad.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Bowed.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/BowTable.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Chorus.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Clarinet.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Delay.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/DelayA.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/DelayL.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Effect.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Envelope.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/FileRead.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/FileWvIn.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Filter.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Flute.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Function.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Generator.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Instrmnt.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/JCRev.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/JetTable.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Mandolin.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Modal.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/ModalBar.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Noise.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/NRev.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/OnePole.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/OneZero.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/PitShift.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/PluckTwo.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/PoleZero.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/PRCRev.cpp
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/ReedTabl.cpp #Junk??
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/ReedTable.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Saxofony.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/SineWave.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Sitar.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/Stk.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/WaveLoop.cpp
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqstk/src/WvIn.cpp
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/win/wingui/longque.cpp
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/win/wingui/textio.cpp
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/win/wingui/winmain.cpp
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyx.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/xlextstart.c
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
# libnyquist
|
||||
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyx.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/xlextstart.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/cext.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/cleanup.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/cmdline.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/cmtcmd.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/cmtio.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/mem.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/midifile.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/midifns.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/midimgr.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/moxc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/record.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/seq.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/seqmread.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/seqmwrite.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/seqread.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/seqwrite.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/tempomap.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/timebase.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/cmt/userio.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Matlab-testing/conv2dTest.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Matlab-testing/convTest.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Matlab-testing/rfft2dTestML.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Numerical-Recipes-testing/fftTest.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Numerical-Recipes-testing/fftTest2d.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Numerical-Recipes-testing/fftTest3d.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Numerical-Recipes-testing/rfftTest.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Numerical-Recipes-testing/rfftTest2d.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/src/dxpose.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/src/fft2d.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/src/fftext.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/src/fftlib.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/src/matlib.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Timing-code/fftTiming.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/ffts/Timing-code/rfftTiming.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/add.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/avg.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/compose.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/convolve.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/debug.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/downsample.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/falloc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/ffilterkit.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/fft-rbd.c #?? using official fft.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/fft.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/fftr4.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/handlers.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/inverse.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/local.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/lpanal.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/multiread.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/multiseq.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/nfilterkit.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/nyq-osc-server.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/nyx.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/oldyin.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/phasevocoder.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/probe.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/pvshell.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/resamp.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/resampv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/samples.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/seqext.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/seqfnint.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/seqinterf.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sliderdata.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sndfail.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sndfnint.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sndmax.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sndread.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sndseq.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sndsliders.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sndwrite.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sndwritepa.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/sound.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/stats.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/trigger.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/nyqsrc/yin.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/macaboutbox.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/MacAE.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/MacCommandWin.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/macdrag.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/MacFileUtils.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/macfun.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/MacHandleEv.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/macint.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/macstuff.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/mac/xlextstart.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/unix/io.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/unix/osstuff.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/unix/term.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/unix/termtest.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/win/msvc/winfun.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/win/msvc/winstuff.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/win/wingui/winguistuff.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/win/wingui/xlextstart.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/sys/win/wingui/xlispfns.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/abs.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/allpoles.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/alpass.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/alpasscv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/alpassvc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/alpassvv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/amosc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/areson.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/aresoncv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/aresonvc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/aresonvv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/atone.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/atonev.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/biquadfilt.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/buzz.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/chase.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/clip.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/congen.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/const.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/coterm.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/delaycc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/delaycv.c
|
||||
#${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/downproto.c #?? Used downsample.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/eqbandvvv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/exp.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/fmfb.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/fmfbv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/fmosc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/follow.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/fromarraystream.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/fromobject.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/gate.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/ifft.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrbanded.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrbow.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrbowedfreq.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrclar.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrclarall.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrclarfreq.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrflute.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrfluteall.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrflutefreq.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrmandolin.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrmodalbar.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrsax.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrsaxall.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrsaxfreq.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/instrsitar.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/integrate.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/log.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/lpreson.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/maxv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/offset.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/oneshot.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/osc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/partial.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/pluck.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/prod.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/pwl.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/quantize.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/recip.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/reson.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/resoncv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/resonvc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/resonvv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/sampler.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/scale.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/shape.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/sine.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/siosc.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/slope.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/sqrt.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/stkchorus.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/stkpitshift.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/stkrev.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/tapf.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/tapv.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/tone.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/tonev.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/upsample.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/tran/white.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/extern.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/path.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/security.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlbfun.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlcont.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xldbug.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xldmem.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xleval.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlfio.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlftab.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlglob.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlimage.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlinit.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlio.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlisp.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xljump.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xllist.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlmath.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlobj.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlpp.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlprin.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlread.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlstr.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlsubr.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlsym.c
|
||||
${LIB_SRC_DIRECTORY}libnyquist/nyquist/xlisp/xlsys.c
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions( -DWIN32 -D_LIB )
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
${TARGET_ROOT}/nyx.c
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${TARGET_SOURCE}
|
||||
${TARGET_SOURCE}/nyquist
|
||||
${TARGET_SOURCE}/nyquist/cmt
|
||||
${TARGET_SOURCE}/nyquist/ffts/src
|
||||
${TARGET_SOURCE}/nyquist/nyqsrc
|
||||
${TARGET_SOURCE}/nyquist/nyqstk
|
||||
${TARGET_SOURCE}/nyquist/nyqstk/include
|
||||
${TARGET_SOURCE}/nyquist/snd
|
||||
${TARGET_SOURCE}/nyquist/tran
|
||||
${TARGET_SOURCE}/nyquist/sys/win/msvc
|
||||
${TARGET_SOURCE}/nyquist/xlisp
|
||||
${TARGET_SOURCE}/nyquist/win
|
||||
${top_dir}/win/Projects/libsndfile # This is terrible place for sndfile.h!
|
||||
${LIB_SRC_DIRECTORY}portaudio-v19/include
|
||||
# libnyquist/nyquist/cmt
|
||||
|
||||
${TARGET_ROOT}/nyquist/cmt/cext.c
|
||||
${TARGET_ROOT}/nyquist/cmt/cleanup.c
|
||||
${TARGET_ROOT}/nyquist/cmt/cmdline.c
|
||||
${TARGET_ROOT}/nyquist/cmt/cmtcmd.c
|
||||
${TARGET_ROOT}/nyquist/cmt/mem.c
|
||||
${TARGET_ROOT}/nyquist/cmt/midifile.c
|
||||
${TARGET_ROOT}/nyquist/cmt/midifns.c
|
||||
${TARGET_ROOT}/nyquist/cmt/moxc.c
|
||||
${TARGET_ROOT}/nyquist/cmt/record.c
|
||||
${TARGET_ROOT}/nyquist/cmt/seq.c
|
||||
${TARGET_ROOT}/nyquist/cmt/seqmread.c
|
||||
${TARGET_ROOT}/nyquist/cmt/seqmwrite.c
|
||||
${TARGET_ROOT}/nyquist/cmt/seqread.c
|
||||
${TARGET_ROOT}/nyquist/cmt/seqwrite.c
|
||||
${TARGET_ROOT}/nyquist/cmt/tempomap.c
|
||||
${TARGET_ROOT}/nyquist/cmt/timebase.c
|
||||
${TARGET_ROOT}/nyquist/cmt/userio.c
|
||||
|
||||
# libnyquist/nyquist/cmupv
|
||||
|
||||
${TARGET_ROOT}/nyquist/cmupv/src/cmupv.c
|
||||
${TARGET_ROOT}/nyquist/cmupv/src/cmupvdbg.c
|
||||
${TARGET_ROOT}/nyquist/cmupv/src/internal.c
|
||||
|
||||
# libnyquist/nyquist/ffts
|
||||
|
||||
${TARGET_ROOT}/nyquist/ffts/src/fftext.c
|
||||
${TARGET_ROOT}/nyquist/ffts/src/fftlib.c
|
||||
${TARGET_ROOT}/nyquist/ffts/src/matlib.c
|
||||
|
||||
# libnyquist/nyquist/nyqsrc
|
||||
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/add.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/avg.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/compose.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/convolve.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/debug.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/downsample.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/f0.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/falloc.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/ffilterkit.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/fft.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/handlers.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/inverse.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/local.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/lpanal.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/multiread.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/multiseq.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/phasevocoder.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/probe.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/pvshell.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/resamp.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/resampv.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/samples.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/seqext.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/seqfnint.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/seqinterf.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/sliderdata.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/sndfnint.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/sndmax.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/sndread.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/sndseq.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/sndsliders.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/sndwritepa.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/sound.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/stats.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/stoponzero.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/trigger.c
|
||||
${TARGET_ROOT}/nyquist/nyqsrc/yin.c
|
||||
|
||||
# libnyquist/nyquist/nyqstk
|
||||
|
||||
${TARGET_ROOT}/nyquist/nyqstk/instr.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/stkinit.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/stkint.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/ADSR.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/BandedWG.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/BiQuad.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Bowed.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/BowTable.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Chorus.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Clarinet.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Delay.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/DelayA.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/DelayL.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Effect.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Envelope.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/FileRead.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/FileWvIn.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Filter.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Flute.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Function.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Generator.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Instrmnt.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/JCRev.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/JetTable.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Mandolin.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Modal.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/ModalBar.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Noise.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/NRev.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/OnePole.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/OneZero.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/PitShift.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/PluckTwo.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/PoleZero.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/PRCRev.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/ReedTable.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Saxofony.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/SineWave.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Sitar.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/Stk.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/WaveLoop.cpp
|
||||
${TARGET_ROOT}/nyquist/nyqstk/src/WvIn.cpp
|
||||
|
||||
|
||||
# libnyquist/nyquist/sys
|
||||
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/macaboutbox.c
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/MacAE.c
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/MacCommandWin.c
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/macdrag.c
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/MacFileUtils.c
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/macfun.c
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/MacHandleEv.c
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/macint.c
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/macstuff.c
|
||||
#${TARGET_ROOT}/nyquist/sys/mac/xlextstart.c
|
||||
#${TARGET_ROOT}/nyquist/sys/unix/io.c
|
||||
#${TARGET_ROOT}/nyquist/sys/unix/osstuff.c
|
||||
#${TARGET_ROOT}/nyquist/sys/unix/term.c
|
||||
#${TARGET_ROOT}/nyquist/sys/unix/termtest.c
|
||||
#${TARGET_ROOT}/nyquist/sys/win/msvc/winfun.c
|
||||
#${TARGET_ROOT}/nyquist/sys/win/msvc/winstuff.c
|
||||
#${TARGET_ROOT}/nyquist/sys/win/wingui/winguistuff.c
|
||||
#${TARGET_ROOT}/nyquist/sys/win/wingui/xlextstart.c
|
||||
#${TARGET_ROOT}/nyquist/sys/win/wingui/xlispfns.c
|
||||
|
||||
# libnyquist/nyquist/tran
|
||||
|
||||
${TARGET_ROOT}/nyquist/tran/abs.c
|
||||
${TARGET_ROOT}/nyquist/tran/allpoles.c
|
||||
${TARGET_ROOT}/nyquist/tran/alpass.c
|
||||
${TARGET_ROOT}/nyquist/tran/alpasscv.c
|
||||
${TARGET_ROOT}/nyquist/tran/alpassvc.c
|
||||
${TARGET_ROOT}/nyquist/tran/alpassvv.c
|
||||
${TARGET_ROOT}/nyquist/tran/amosc.c
|
||||
${TARGET_ROOT}/nyquist/tran/areson.c
|
||||
${TARGET_ROOT}/nyquist/tran/aresoncv.c
|
||||
${TARGET_ROOT}/nyquist/tran/aresonvc.c
|
||||
${TARGET_ROOT}/nyquist/tran/aresonvv.c
|
||||
${TARGET_ROOT}/nyquist/tran/atone.c
|
||||
${TARGET_ROOT}/nyquist/tran/atonev.c
|
||||
${TARGET_ROOT}/nyquist/tran/biquadfilt.c
|
||||
${TARGET_ROOT}/nyquist/tran/buzz.c
|
||||
${TARGET_ROOT}/nyquist/tran/chase.c
|
||||
${TARGET_ROOT}/nyquist/tran/clip.c
|
||||
${TARGET_ROOT}/nyquist/tran/congen.c
|
||||
${TARGET_ROOT}/nyquist/tran/const.c
|
||||
${TARGET_ROOT}/nyquist/tran/coterm.c
|
||||
${TARGET_ROOT}/nyquist/tran/delaycc.c
|
||||
${TARGET_ROOT}/nyquist/tran/delaycv.c
|
||||
${TARGET_ROOT}/nyquist/tran/eqbandvvv.c
|
||||
${TARGET_ROOT}/nyquist/tran/exp.c
|
||||
${TARGET_ROOT}/nyquist/tran/fmfb.c
|
||||
${TARGET_ROOT}/nyquist/tran/fmfbv.c
|
||||
${TARGET_ROOT}/nyquist/tran/fmosc.c
|
||||
${TARGET_ROOT}/nyquist/tran/follow.c
|
||||
${TARGET_ROOT}/nyquist/tran/fromarraystream.c
|
||||
${TARGET_ROOT}/nyquist/tran/fromobject.c
|
||||
${TARGET_ROOT}/nyquist/tran/gate.c
|
||||
${TARGET_ROOT}/nyquist/tran/ifft.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrbanded.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrbow.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrbowedfreq.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrclar.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrclarall.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrclarfreq.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrflute.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrfluteall.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrflutefreq.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrmandolin.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrmodalbar.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrsax.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrsaxall.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrsaxfreq.c
|
||||
${TARGET_ROOT}/nyquist/tran/instrsitar.c
|
||||
${TARGET_ROOT}/nyquist/tran/integrate.c
|
||||
${TARGET_ROOT}/nyquist/tran/log.c
|
||||
${TARGET_ROOT}/nyquist/tran/lpreson.c
|
||||
${TARGET_ROOT}/nyquist/tran/maxv.c
|
||||
${TARGET_ROOT}/nyquist/tran/offset.c
|
||||
${TARGET_ROOT}/nyquist/tran/oneshot.c
|
||||
${TARGET_ROOT}/nyquist/tran/osc.c
|
||||
${TARGET_ROOT}/nyquist/tran/partial.c
|
||||
${TARGET_ROOT}/nyquist/tran/pluck.c
|
||||
${TARGET_ROOT}/nyquist/tran/prod.c
|
||||
${TARGET_ROOT}/nyquist/tran/pwl.c
|
||||
${TARGET_ROOT}/nyquist/tran/quantize.c
|
||||
${TARGET_ROOT}/nyquist/tran/recip.c
|
||||
${TARGET_ROOT}/nyquist/tran/reson.c
|
||||
${TARGET_ROOT}/nyquist/tran/resoncv.c
|
||||
${TARGET_ROOT}/nyquist/tran/resonvc.c
|
||||
${TARGET_ROOT}/nyquist/tran/resonvv.c
|
||||
${TARGET_ROOT}/nyquist/tran/sampler.c
|
||||
${TARGET_ROOT}/nyquist/tran/scale.c
|
||||
${TARGET_ROOT}/nyquist/tran/shape.c
|
||||
${TARGET_ROOT}/nyquist/tran/sine.c
|
||||
${TARGET_ROOT}/nyquist/tran/siosc.c
|
||||
${TARGET_ROOT}/nyquist/tran/slope.c
|
||||
${TARGET_ROOT}/nyquist/tran/sqrt.c
|
||||
${TARGET_ROOT}/nyquist/tran/stkchorus.c
|
||||
${TARGET_ROOT}/nyquist/tran/stkpitshift.c
|
||||
${TARGET_ROOT}/nyquist/tran/stkrev.c
|
||||
${TARGET_ROOT}/nyquist/tran/tapf.c
|
||||
${TARGET_ROOT}/nyquist/tran/tapv.c
|
||||
${TARGET_ROOT}/nyquist/tran/tone.c
|
||||
${TARGET_ROOT}/nyquist/tran/tonev.c
|
||||
${TARGET_ROOT}/nyquist/tran/upsample.c
|
||||
${TARGET_ROOT}/nyquist/tran/white.c
|
||||
|
||||
# libnyquist/nyquist/xlisp
|
||||
|
||||
${TARGET_ROOT}/nyquist/xlisp/extern.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/path.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/security.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlbfun.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlcont.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xldbug.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xldmem.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xleval.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlfio.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlftab.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlglob.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlimage.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlinit.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlio.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlisp.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xljump.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xllist.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlmath.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlobj.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlpp.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlprin.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlread.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlstr.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlsubr.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlsym.c
|
||||
${TARGET_ROOT}/nyquist/xlisp/xlsys.c
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/nyquist/cmt
|
||||
${TARGET_ROOT}/nyquist/cmupv/src
|
||||
${TARGET_ROOT}/nyquist/ffts/src
|
||||
${TARGET_ROOT}/nyquist/nyqsrc
|
||||
${TARGET_ROOT}/nyquist/nyqstk
|
||||
${TARGET_ROOT}/nyquist/nyqstk/include
|
||||
${TARGET_ROOT}/nyquist/tran
|
||||
${TARGET_ROOT}/nyquist/xlisp
|
||||
|
||||
$<$<PLATFORM_ID:Darwin>:${TARGET_ROOT}/nyquist/sys/unix>
|
||||
$<$<PLATFORM_ID:Linux>:${TARGET_ROOT}/nyquist/sys/unix>
|
||||
$<$<PLATFORM_ID:Windows>:${TARGET_ROOT}/nyquist/sys/win/msvc>
|
||||
|
||||
PUBLIC
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
CMTSTUFF
|
||||
EXT
|
||||
$<$<PLATFORM_ID:Windows>:_LIB WIN32 D_LIB>
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<PLATFORM_ID:Darwin>:-fno-common>
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
PRIVATE
|
||||
portaudio-v19
|
||||
libsndfile
|
||||
)
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -1,96 +1,89 @@
|
|||
#directory cmake-proxies/libogg
|
||||
set(TARGET libogg)
|
||||
set(TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET})
|
||||
|
||||
project(${TARGET})
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
include(CheckIncludeFile)
|
||||
include(CheckTypeSize)
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/bitwise.c
|
||||
${TARGET_ROOT}/src/framing.c
|
||||
)
|
||||
|
||||
check_include_file("inttypes.h" INCLUDE_INTTYPES_H)
|
||||
check_include_file("stdint.h" INCLUDE_STDINT_H)
|
||||
check_include_file("sys/types.h" INCLUDE_SYS_TYPES_H)
|
||||
list( APPEND INCLUDES
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_BINARY_DIR}/public
|
||||
${TARGET_ROOT}/include
|
||||
)
|
||||
|
||||
check_type_size("int16_t" INT16_SIZE LANGUAGE C)
|
||||
check_type_size("uint16_t" UINT16_SIZE LANGUAGE C)
|
||||
check_type_size("u_int16_t" U_INT16_SIZE LANGUAGE C)
|
||||
check_type_size("int32_t" INT32_SIZE LANGUAGE C)
|
||||
check_type_size("uint32_t" UINT32_SIZE LANGUAGE C)
|
||||
check_type_size("u_int32_t" U_INT32_SIZE LANGUAGE C)
|
||||
check_type_size("int64_t" INT64_SIZE LANGUAGE C)
|
||||
check_type_size("short" SHORT_SIZE LANGUAGE C)
|
||||
check_type_size("int" INT_SIZE LANGUAGE C)
|
||||
check_type_size("long" LONG_SIZE LANGUAGE C)
|
||||
check_type_size("long long" LONG_LONG_SIZE LANGUAGE C)
|
||||
|
||||
if(INT16_SIZE EQUAL 2)
|
||||
set(SIZE16 "int16_t")
|
||||
elseif(SHORT_SIZE EQUAL 2)
|
||||
set(SIZE16 "short")
|
||||
elseif(INT_SIZE EQUAL 2)
|
||||
set(SIZE16 "int")
|
||||
if( SIZEOF_INT16 EQUAL 2 )
|
||||
set( SIZE16 "int16_t" )
|
||||
elseif( SIZEOF_SHORT EQUAL 2 )
|
||||
set( SIZE16 "short" )
|
||||
elseif( SIZEOF_INT EQUAL 2 )
|
||||
set( SIZE16 "int" )
|
||||
else()
|
||||
message(FATAL_ERROR "No 16 bit type found on this platform!")
|
||||
message( FATAL_ERROR "No 16 bit type found on this platform!" )
|
||||
endif()
|
||||
|
||||
if(UINT16_SIZE EQUAL 2)
|
||||
set(USIZE16 "uint16_t")
|
||||
elseif(SHORT_SIZE EQUAL 2)
|
||||
set(USIZE16 "unsigned short")
|
||||
elseif(INT_SIZE EQUAL 2)
|
||||
set(USIZE16 "unsigned int")
|
||||
elseif(U_INT_SIZE EQUAL 2)
|
||||
set(USIZE16 "u_int16_t")
|
||||
if( SIZEOF_UINT16 EQUAL 2 )
|
||||
set( USIZE16 "uint16_t" )
|
||||
elseif( SIZEOF_SHORT EQUAL 2 )
|
||||
set( USIZE16 "unsigned short" )
|
||||
elseif( SIZEOF_INT EQUAL 2 )
|
||||
set( USIZE16 "unsigned int" )
|
||||
elseif( SIZEOF_U_INT EQUAL 2 )
|
||||
set( USIZE16 "u_int16_t" )
|
||||
else()
|
||||
message(FATAL_ERROR "No unsigned 16 bit type found on this platform!")
|
||||
message( FATAL_ERROR "No unsigned 16 bit type found on this platform!" )
|
||||
endif()
|
||||
|
||||
if(INT32_SIZE EQUAL 4)
|
||||
set(SIZE32 "int32_t")
|
||||
elseif(SHORT_SIZE EQUAL 4)
|
||||
set(SIZE32 "short")
|
||||
elseif(INT_SIZE EQUAL 4)
|
||||
set(SIZE32 "int")
|
||||
elseif(LONG_SIZE EQUAL 4)
|
||||
set(SIZE16 "long")
|
||||
if( SIZEOF_INT32 EQUAL 4 )
|
||||
set( SIZE32 "int32_t" )
|
||||
elseif( SIZEOF_SHORT EQUAL 4 )
|
||||
set( SIZE32 "short" )
|
||||
elseif( SIZEOF_INT EQUAL 4 )
|
||||
set( SIZE32 "int" )
|
||||
elseif( SIZEOF_LONG EQUAL 4 )
|
||||
set( SIZE16 "long" )
|
||||
else()
|
||||
message(FATAL_ERROR "No 32 bit type found on this platform!")
|
||||
message( FATAL_ERROR "No 32 bit type found on this platform!" )
|
||||
endif()
|
||||
|
||||
if(UINT32_SIZE EQUAL 4)
|
||||
set(USIZE32 "uint32_t")
|
||||
elseif(SHORT_SIZE EQUAL 4)
|
||||
set(USIZE32 "unsigned short")
|
||||
elseif(INT_SIZE EQUAL 4)
|
||||
set(USIZE32 "unsigned int")
|
||||
elseif(LONG_SIZE EQUAL 4)
|
||||
set(USIZE32 "unsigned long")
|
||||
elseif(U_INT_SIZE EQUAL 4)
|
||||
set(USIZE32 "u_int32_t")
|
||||
if( SIZEOF_UINT32 EQUAL 4 )
|
||||
set( USIZE32 "uint32_t" )
|
||||
elseif( SIZEOF_SHORT EQUAL 4 )
|
||||
set( USIZE32 "unsigned short" )
|
||||
elseif( SIZEOF_INT EQUAL 4 )
|
||||
set( USIZE32 "unsigned int" )
|
||||
elseif( SIZEOF_LONG EQUAL 4 )
|
||||
set( USIZE32 "unsigned long" )
|
||||
elseif( SIZEOF_U_INT EQUAL 4 )
|
||||
set( USIZE32 "u_int32_t" )
|
||||
else()
|
||||
message(FATAL_ERROR "No unsigned 32 bit type found on this platform!")
|
||||
message( FATAL_ERROR "No unsigned 32 bit type found on this platform!" )
|
||||
endif()
|
||||
|
||||
if(INT64_SIZE EQUAL 8)
|
||||
set(SIZE64 "int64_t")
|
||||
elseif(INT_SIZE EQUAL 8)
|
||||
set(SIZE64 "int")
|
||||
elseif(LONG_SIZE EQUAL 8)
|
||||
set(SIZE64 "long")
|
||||
elseif(LONG_LONG_SIZE EQUAL 8)
|
||||
set(SIZE64 "long long")
|
||||
if( SIZEOF_INT64 EQUAL 8 )
|
||||
set( SIZE64 "int64_t" )
|
||||
elseif( SIZEOF_INT EQUAL 8 )
|
||||
set( SIZE64 "int" )
|
||||
elseif( SIZEOF_LONG EQUAL 8 )
|
||||
set( SIZE64 "long" )
|
||||
elseif( SIZEOF_LONG_LONG EQUAL 8 )
|
||||
set( SIZE64 "long long" )
|
||||
else()
|
||||
message(FATAL_ERROR "No 64 bit type found on this platform!")
|
||||
message( FATAL_ERROR "No 64 bit type found on this platform!" )
|
||||
endif()
|
||||
|
||||
configure_file(
|
||||
"${LIB_SRC_DIRECTORY}libogg/include/ogg/config_types.h.in"
|
||||
"ogg/config_types.h")
|
||||
set( INCLUDE_INTTYPES_H ${HAVE_INTTYPES_H} )
|
||||
set( INCLUDE_STDINT_H ${HAVE_STDINT_H} )
|
||||
set( INCLUDE_SYS_TYPES_H ${HAVE_SYS_TYPES_H} )
|
||||
|
||||
add_library(${TARGET}
|
||||
"${LIB_SRC_DIRECTORY}libogg/src/bitwise.c"
|
||||
"${LIB_SRC_DIRECTORY}libogg/src/framing.c")
|
||||
configure_file( config_types.h.in public/ogg/config_types.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
target_include_directories(${TARGET} PUBLIC
|
||||
"${TARGET_SOURCE}/include"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef __CONFIG_TYPES_H__
|
||||
#define __CONFIG_TYPES_H__
|
||||
|
||||
/* these are filled in by configure */
|
||||
#define INCLUDE_INTTYPES_H @INCLUDE_INTTYPES_H@
|
||||
#define INCLUDE_STDINT_H @INCLUDE_STDINT_H@
|
||||
#define INCLUDE_SYS_TYPES_H @INCLUDE_SYS_TYPES_H@
|
||||
|
||||
#if INCLUDE_INTTYPES_H
|
||||
# include <inttypes.h>
|
||||
#endif
|
||||
#if INCLUDE_STDINT_H
|
||||
# include <stdint.h>
|
||||
#endif
|
||||
#if INCLUDE_SYS_TYPES_H
|
||||
# include <sys/types.h>
|
||||
#endif
|
||||
|
||||
typedef @SIZE16@ ogg_int16_t;
|
||||
typedef @USIZE16@ ogg_uint16_t;
|
||||
typedef @SIZE32@ ogg_int32_t;
|
||||
typedef @USIZE32@ ogg_uint32_t;
|
||||
typedef @SIZE64@ ogg_int64_t;
|
||||
|
||||
#endif
|
|
@ -1,34 +1,29 @@
|
|||
#directory cmake-proxies/libscorealign
|
||||
set( TARGET libscorealign )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
#${LIB_SRC_DIRECTORY}libscorealign/alignfiles.cpp
|
||||
#${LIB_SRC_DIRECTORY}libscorealign/audiofilereader-snd.cpp
|
||||
#${LIB_SRC_DIRECTORY}libscorealign/audiofilereader.cpp
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
${LIB_SRC_DIRECTORY}libscorealign/audioreader.cpp
|
||||
${LIB_SRC_DIRECTORY}libscorealign/comp_chroma.cpp
|
||||
${LIB_SRC_DIRECTORY}libscorealign/curvefit.cpp
|
||||
${LIB_SRC_DIRECTORY}libscorealign/gen_chroma.cpp
|
||||
${LIB_SRC_DIRECTORY}libscorealign/hillclimb.cpp
|
||||
#${LIB_SRC_DIRECTORY}libscorealign/main.cpp
|
||||
${LIB_SRC_DIRECTORY}libscorealign/regression.cpp
|
||||
${LIB_SRC_DIRECTORY}libscorealign/sautils.cpp
|
||||
${LIB_SRC_DIRECTORY}libscorealign/scorealign.cpp
|
||||
#${LIB_SRC_DIRECTORY}libscorealign/trace.cpp
|
||||
#${LIB_SRC_DIRECTORY}libscorealign/compare_transcripts/compare.cpp
|
||||
${LIB_SRC_DIRECTORY}libscorealign/fft3/FFT3.cpp
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${LIB_SRC_DIRECTORY}/portsmf
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/audioreader.cpp
|
||||
${TARGET_ROOT}/comp_chroma.cpp
|
||||
${TARGET_ROOT}/curvefit.cpp
|
||||
${TARGET_ROOT}/gen_chroma.cpp
|
||||
${TARGET_ROOT}/hillclimb.cpp
|
||||
${TARGET_ROOT}/regression.cpp
|
||||
${TARGET_ROOT}/sautils.cpp
|
||||
${TARGET_ROOT}/scorealign.cpp
|
||||
${TARGET_ROOT}/fft3/FFT3.cpp
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PUBLIC
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -1,171 +1,183 @@
|
|||
#directory cmake-proxies/libsndfile
|
||||
set( TARGET libsndfile )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/examples/generate.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/examples/list_formats.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/examples/make_sine.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/examples/sfprocess.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/examples/sndfile-to-text.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/common.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-cmp.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-concat.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-convert.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-deinterleave.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-info.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-interleave.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-metadata-get.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-metadata-set.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-play.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-salvage.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/regtest/checksum.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/regtest/database.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/regtest/sndfile-regtest.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/aiff.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/alaw.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/au.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/audio_detect.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/avr.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/broadcast.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/caf.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/chanmap.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/chunk.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/command.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/common.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/dither.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/double64.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/dwd.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/dwvw.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/file_io.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/flac.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/float32.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/g72x.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/gsm610.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/htk.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/id3.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/ima_adpcm.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/ima_oki_adpcm.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/interleave.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/ircam.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/macbinary3.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/macos.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/mat4.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/mat5.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/mpc2k.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/ms_adpcm.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/nist.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/ogg.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/paf.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/pcm.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/pvf.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/raw.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/rf64.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/rx2.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/sd2.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/sds.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/sndfile.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/strings.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/svx.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_audio_detect.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_broadcast_var.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_conversions.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_endswap.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_file_io.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_float.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_ima_oki_adpcm.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_log_printf.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_main.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/test_strncpy_crlf.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/txw.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/ulaw.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/voc.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/vox_adpcm.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/w64.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/wav.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/wav_w64.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/windows.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/wve.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/xi.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/G72x/g721.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/G72x/g723_16.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/G72x/g723_24.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/G72x/g723_40.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/G72x/g72x.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/src/G72x/g72x_test.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/add.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/code.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/decode.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/gsm_create.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/gsm_decode.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/gsm_destroy.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/gsm_encode.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/gsm_option.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/long_term.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/lpc.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/preprocess.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/rpe.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/short_term.c
|
||||
${LIB_SRC_DIRECTORY}libsndfile/src/GSM610/table.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/aiff_rw_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/alaw_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/benchmark.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/checksum_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/command_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/dft_cmp.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/dither_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/dwvw_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/error_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/external_libs_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/fix_this.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/floating_point_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/generate.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/headerless_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/header_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/largefile_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/locale_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/lossy_comp_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/misc_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/multi_file_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/ogg_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/pcm_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/peak_chunk_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/pipe_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/raw_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/rdwr_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/scale_clip_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/sfversion.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/stdin_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/stdio_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/stdout_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/string_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/ulaw_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/utils.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/virtual_io_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/vorbis_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/win32_ordinal_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/win32_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/tests/write_read_test.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/Win32/testprog.c
|
||||
#${LIB_SRC_DIRECTORY}libsndfile/programs/sndfile-play-beos.cpp
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
-Dinline=__inline
|
||||
-DLIBSNDFILE_PRIVATE_CONFIG
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
def_vars()
|
||||
|
||||
add_compile_options(/wd4996)
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${TARGET_SOURCE}/include
|
||||
${TARGET_SOURCE}/src
|
||||
${LIB_SRC_DIRECTORY}/ffmpeg/win32
|
||||
${top_dir}/win/Projects/libsndfile #to get config.h
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/aiff.c
|
||||
${TARGET_ROOT}/src/alaw.c
|
||||
${TARGET_ROOT}/src/au.c
|
||||
${TARGET_ROOT}/src/audio_detect.c
|
||||
${TARGET_ROOT}/src/avr.c
|
||||
${TARGET_ROOT}/src/broadcast.c
|
||||
${TARGET_ROOT}/src/caf.c
|
||||
${TARGET_ROOT}/src/chanmap.c
|
||||
${TARGET_ROOT}/src/chunk.c
|
||||
${TARGET_ROOT}/src/command.c
|
||||
${TARGET_ROOT}/src/common.c
|
||||
${TARGET_ROOT}/src/dither.c
|
||||
${TARGET_ROOT}/src/double64.c
|
||||
${TARGET_ROOT}/src/dwd.c
|
||||
${TARGET_ROOT}/src/dwvw.c
|
||||
${TARGET_ROOT}/src/file_io.c
|
||||
${TARGET_ROOT}/src/flac.c
|
||||
${TARGET_ROOT}/src/float32.c
|
||||
${TARGET_ROOT}/src/g72x.c
|
||||
${TARGET_ROOT}/src/gsm610.c
|
||||
${TARGET_ROOT}/src/htk.c
|
||||
${TARGET_ROOT}/src/id3.c
|
||||
${TARGET_ROOT}/src/ima_adpcm.c
|
||||
${TARGET_ROOT}/src/ima_oki_adpcm.c
|
||||
${TARGET_ROOT}/src/interleave.c
|
||||
${TARGET_ROOT}/src/ircam.c
|
||||
${TARGET_ROOT}/src/macbinary3.c
|
||||
${TARGET_ROOT}/src/macos.c
|
||||
${TARGET_ROOT}/src/mat4.c
|
||||
${TARGET_ROOT}/src/mat5.c
|
||||
${TARGET_ROOT}/src/mpc2k.c
|
||||
${TARGET_ROOT}/src/ms_adpcm.c
|
||||
${TARGET_ROOT}/src/nist.c
|
||||
${TARGET_ROOT}/src/ogg.c
|
||||
${TARGET_ROOT}/src/paf.c
|
||||
${TARGET_ROOT}/src/pcm.c
|
||||
${TARGET_ROOT}/src/pvf.c
|
||||
${TARGET_ROOT}/src/raw.c
|
||||
${TARGET_ROOT}/src/rf64.c
|
||||
${TARGET_ROOT}/src/rx2.c
|
||||
${TARGET_ROOT}/src/sd2.c
|
||||
${TARGET_ROOT}/src/sds.c
|
||||
${TARGET_ROOT}/src/sndfile.c
|
||||
${TARGET_ROOT}/src/strings.c
|
||||
${TARGET_ROOT}/src/svx.c
|
||||
${TARGET_ROOT}/src/txw.c
|
||||
${TARGET_ROOT}/src/ulaw.c
|
||||
${TARGET_ROOT}/src/voc.c
|
||||
${TARGET_ROOT}/src/vox_adpcm.c
|
||||
${TARGET_ROOT}/src/w64.c
|
||||
${TARGET_ROOT}/src/wav.c
|
||||
${TARGET_ROOT}/src/wav_w64.c
|
||||
${TARGET_ROOT}/src/windows.c
|
||||
${TARGET_ROOT}/src/wve.c
|
||||
${TARGET_ROOT}/src/xi.c
|
||||
${TARGET_ROOT}/src/G72x/g721.c
|
||||
${TARGET_ROOT}/src/G72x/g723_16.c
|
||||
${TARGET_ROOT}/src/G72x/g723_24.c
|
||||
${TARGET_ROOT}/src/G72x/g723_40.c
|
||||
${TARGET_ROOT}/src/G72x/g72x.c
|
||||
${TARGET_ROOT}/src/GSM610/add.c
|
||||
${TARGET_ROOT}/src/GSM610/code.c
|
||||
${TARGET_ROOT}/src/GSM610/decode.c
|
||||
${TARGET_ROOT}/src/GSM610/gsm_create.c
|
||||
${TARGET_ROOT}/src/GSM610/gsm_decode.c
|
||||
${TARGET_ROOT}/src/GSM610/gsm_destroy.c
|
||||
${TARGET_ROOT}/src/GSM610/gsm_encode.c
|
||||
${TARGET_ROOT}/src/GSM610/gsm_option.c
|
||||
${TARGET_ROOT}/src/GSM610/long_term.c
|
||||
${TARGET_ROOT}/src/GSM610/lpc.c
|
||||
${TARGET_ROOT}/src/GSM610/preprocess.c
|
||||
${TARGET_ROOT}/src/GSM610/rpe.c
|
||||
${TARGET_ROOT}/src/GSM610/short_term.c
|
||||
${TARGET_ROOT}/src/GSM610/table.c
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${_PRVDIR}
|
||||
${TARGET_ROOT}/src
|
||||
PUBLIC
|
||||
${_PUBDIR}
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
inline=__inline
|
||||
LIBSNDFILE_PRIVATE_CONFIG
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<C_COMPILER_ID:MSVC>:/wd4996>
|
||||
)
|
||||
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||
cmake_push_check_state(RESET)
|
||||
set( CMAKE_EXTRA_INCLUDE_FILES "BaseTsd.h" )
|
||||
check_type_size( "SSIZE_T" SIZEOF_SSIZE LANGUAGE C )
|
||||
list( APPEND DEFINES
|
||||
ssize_t=SSIZE_T
|
||||
)
|
||||
cmake_pop_check_state()
|
||||
else()
|
||||
check_type_size( "ssize_t" SIZEOF_SSIZE LANGUAGE C )
|
||||
endif()
|
||||
|
||||
set( TYPEOF_SF_COUNT_T "int64_t" )
|
||||
set( SIZEOF_SF_COUNT_T ${SIZEOF_INT64} )
|
||||
set( SF_COUNT_MAX "0x7FFFFFFFFFFFFFFFLL" )
|
||||
|
||||
configure_file( sndfile.h.in ${_PUBDIR}/sndfile.h )
|
||||
|
||||
check_symbol_exists( S_IRGRP "sys/stat.h" HAVE_DECL_S_IRGRP )
|
||||
|
||||
set( COMPILER_IS_GCC OFF )
|
||||
if( CMAKE_C_COMPILER_ID MATCHES "GNU|.*Clang" )
|
||||
set( COMPILER_IS_GCC ON )
|
||||
endif()
|
||||
|
||||
set( OS_IS_MACOSX OFF)
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
||||
set( OS_IS_MACOSX ON )
|
||||
endif()
|
||||
|
||||
set( OS_IS_WIN32 OFF )
|
||||
set( USE_WINDOWS_API OFF )
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||
set( OS_IS_MACOSX ON )
|
||||
set( USE_WINDOWS_API ON )
|
||||
endif()
|
||||
|
||||
set( CPU_IS_BIG_ENDIAN ${WORDS_BIGENDIAN} )
|
||||
set( CPU_IS_LITTLE_ENDIAN NOT ${WORDS_BIGENDIAN} )
|
||||
set( HAVE_EXTERNAL_LIBS 0 )
|
||||
|
||||
set( VERSION "1.0.24" )
|
||||
set( PACKAGE "libsndfile" )
|
||||
set( PACKAGE_NAME ${PACKAGE} )
|
||||
set( PACKAGE_VERSION ${VERSION} )
|
||||
|
||||
# Does compiler support "flexible array members"
|
||||
try_compile( HAVE_FLEXIBLE_ARRAY
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/famcheck.c
|
||||
LINK_OPTIONS ${CMAKE_REQUIRED_LIBRARIES}
|
||||
OUTPUT_VARIABLE c_out
|
||||
)
|
||||
|
||||
# Determine how the CPU clips when doing float to int conversions
|
||||
try_run( r_rc c_rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/clipcheck.c
|
||||
LINK_OPTIONS ${CMAKE_REQUIRED_LIBRARIES}
|
||||
RUN_OUTPUT_VARIABLE r_out
|
||||
COMPILE_OUTPUT_VARIABLE c_out
|
||||
)
|
||||
|
||||
if( NOT c_rc )
|
||||
message( STATUS c_out )
|
||||
message( FATAL_ERROR "${CMAKE_CURRENT_SOURCE_DIR}/clipcheck.c compile failed:" )
|
||||
endif()
|
||||
|
||||
list( GET r_out 0 CPU_CLIPS_POSITIVE )
|
||||
list( GET r_out 1 CPU_CLIPS_NEGATIVE )
|
||||
|
||||
configure_file( config.h.in ${_PRVDIR}/config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
#define _ISOC9X_SOURCE 1
|
||||
#define _ISOC99_SOURCE 1
|
||||
#define __USE_ISOC99 1
|
||||
#define __USE_ISOC9X 1
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
int main (void)
|
||||
{
|
||||
double fval ;
|
||||
int k, ival ;
|
||||
int pos = 0 ;
|
||||
int neg = 0 ;
|
||||
|
||||
fval = 1.0 * 0x7FFFFFFF ;
|
||||
for (k = 0 ; k < 100 ; k++)
|
||||
{
|
||||
ival = (lrint (fval)) >> 24 ;
|
||||
if (ival != 127)
|
||||
{
|
||||
pos = 1 ;
|
||||
break ;
|
||||
}
|
||||
|
||||
fval *= 1.2499999 ;
|
||||
}
|
||||
|
||||
fval = -8.0 * 0x10000000 ;
|
||||
for (k = 0 ; k < 100 ; k++)
|
||||
{
|
||||
ival = (lrint (fval)) >> 24 ;
|
||||
if (ival != -128)
|
||||
{
|
||||
neg = 1 ;
|
||||
break ;
|
||||
}
|
||||
|
||||
fval *= 1.2499999 ;
|
||||
}
|
||||
|
||||
printf("%d;%d", pos, neg) ;
|
||||
|
||||
return 0 ;
|
||||
}
|
||||
|
|
@ -0,0 +1,287 @@
|
|||
/* src/config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Set to 1 if the compile is GNU GCC. */
|
||||
#cmakedefine01 COMPILER_IS_GCC
|
||||
|
||||
/* Target processor clips on negative float to int conversion. */
|
||||
#cmakedefine01 CPU_CLIPS_NEGATIVE
|
||||
|
||||
/* Target processor clips on positive float to int conversion. */
|
||||
#cmakedefine01 CPU_CLIPS_POSITIVE
|
||||
|
||||
/* Target processor is big endian. */
|
||||
#cmakedefine01 CPU_IS_BIG_ENDIAN
|
||||
|
||||
/* Target processor is little endian. */
|
||||
#cmakedefine01 CPU_IS_LITTLE_ENDIAN
|
||||
|
||||
/* Set to 1 to enable experimental code. */
|
||||
#cmakedefine01 ENABLE_EXPERIMENTAL_CODE
|
||||
|
||||
/* Define to 1 if you have the <alsa/asoundlib.h> header file. */
|
||||
#cmakedefine HAVE_ALSA_ASOUNDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the <byteswap.h> header file. */
|
||||
#cmakedefine01 HAVE_YTESWAP_H
|
||||
|
||||
/* Define to 1 if you have the `calloc' function. */
|
||||
#cmakedefine HAVE_CALLOC 1
|
||||
|
||||
/* Define to 1 if you have the `ceil' function. */
|
||||
#cmakedefine HAVE_CEIL 1
|
||||
|
||||
/* Set to 1 if S_IRGRP is defined. */
|
||||
#cmakedefine01 HAVE_DECL_S_IRGRP
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#cmakedefine HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the <endian.h> header file. */
|
||||
#cmakedefine HAVE_ENDIAN_H 1
|
||||
|
||||
/* Will be set to 1 if flac, ogg and vorbis are available. */
|
||||
#cmakedefine01 HAVE_EXTERNAL_LIBS
|
||||
|
||||
/* Set to 1 if the compile supports the struct hack. */
|
||||
#cmakedefine01 HAVE_FLEXIBLE_ARRAY
|
||||
|
||||
/* Define to 1 if you have the `floor' function. */
|
||||
#cmakedefine HAVE_FLOOR 1
|
||||
|
||||
/* Define to 1 if you have the `fmod' function. */
|
||||
#cmakedefine HAVE_FMOD 1
|
||||
|
||||
/* Define to 1 if you have the `free' function. */
|
||||
#cmakedefine HAVE_FREE 1
|
||||
|
||||
/* Define to 1 if you have the `fstat' function. */
|
||||
#cmakedefine HAVE_FSTAT 1
|
||||
|
||||
/* Define to 1 if you have the `fsync' function. */
|
||||
#cmakedefine01 HAVE_FSYNC
|
||||
|
||||
/* Define to 1 if you have the `ftruncate' function. */
|
||||
#cmakedefine HAVE_FTRUNCATE 1
|
||||
|
||||
/* Define to 1 if you have the `getpagesize' function. */
|
||||
#cmakedefine HAVE_GETPAGESIZE 1
|
||||
|
||||
/* Define to 1 if you have the `gettimeofday' function. */
|
||||
#cmakedefine01 HAVE_GETTIMEOFDAY
|
||||
|
||||
/* Define to 1 if you have the `gmtime' function. */
|
||||
#cmakedefine HAVE_GMTIME 1
|
||||
|
||||
/* Define to 1 if you have the `gmtime_r' function. */
|
||||
#cmakedefine HAVE_GMTIME_R 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#cmakedefine01 HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the `m' library (-lm). */
|
||||
#cmakedefine HAVE_LIBM 1
|
||||
|
||||
/* Define to 1 if you have the <locale.h> header file. */
|
||||
#cmakedefine HAVE_LOCALE_H 1
|
||||
|
||||
/* Define to 1 if you have the `localtime' function. */
|
||||
#cmakedefine HAVE_LOCALTIME 1
|
||||
|
||||
/* Define to 1 if you have the `localtime_r' function. */
|
||||
#cmakedefine HAVE_LOCALTIME_R 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 `lseek' function. */
|
||||
#cmakedefine HAVE_LSEEK 1
|
||||
|
||||
/* Define to 1 if you have the `malloc' function. */
|
||||
#cmakedefine HAVE_MALLOC 1
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#cmakedefine HAVE_MEMORY_H 1
|
||||
|
||||
/* Define to 1 if you have the `mmap' function. */
|
||||
#cmakedefine HAVE_MMAP 1
|
||||
|
||||
/* Define to 1 if you have the `open' function. */
|
||||
#cmakedefine HAVE_OPEN 1
|
||||
|
||||
/* Define to 1 if you have the `pipe' function. */
|
||||
#cmakedefine HAVE_PIPE 1
|
||||
|
||||
/* Define to 1 if you have the `pread' function. */
|
||||
#cmakedefine HAVE_PREAD 1
|
||||
|
||||
/* Define to 1 if you have the `pwrite' function. */
|
||||
#cmakedefine HAVE_PWRITE 1
|
||||
|
||||
/* Define to 1 if you have the `read' function. */
|
||||
#cmakedefine HAVE_READ 1
|
||||
|
||||
/* Define to 1 if you have the `realloc' function. */
|
||||
#cmakedefine HAVE_REALLOC 1
|
||||
|
||||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#cmakedefine HAVE_SETLOCALE 1
|
||||
|
||||
/* Define to 1 if you have the <sndio.h> header file. */
|
||||
#cmakedefine HAVE_SNDIO_H 1
|
||||
|
||||
/* Define to 1 if you have the `snprintf' function. */
|
||||
#cmakedefine HAVE_SNPRINTF 1
|
||||
|
||||
/* Set to 1 if you have libsqlite3. */
|
||||
#cmakedefine HAVE_SQLITE3 1
|
||||
|
||||
/* Define to 1 if the system has the type `ssize_t'. */
|
||||
#cmakedefine HAVE_SSIZE_T 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#cmakedefine01 HAVE_STDINT_H
|
||||
|
||||
/* 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/time.h> header file. */
|
||||
#cmakedefine HAVE_SYS_TIME_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 <sys/wait.h> that is POSIX.1 compatible. */
|
||||
#cmakedefine HAVE_SYS_WAIT_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#cmakedefine01 HAVE_UNISTD_H
|
||||
|
||||
/* Define to 1 if you have the `vsnprintf' function. */
|
||||
#cmakedefine HAVE_VSNPRINTF 1
|
||||
|
||||
/* Define to 1 if you have the `waitpid' function. */
|
||||
#cmakedefine HAVE_WAITPID 1
|
||||
|
||||
/* Define to 1 if you have the `write' function. */
|
||||
#cmakedefine HAVE_WRITE 1
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#cmakedefine LT_OBJDIR "@LT_OBJDIR@"
|
||||
|
||||
/* Set to 1 if compiling for MacOSX */
|
||||
#cmakedefine01 OS_IS_MACOSX
|
||||
|
||||
/* Set to 1 if compiling for Win32 */
|
||||
#cmakedefine01 OS_IS_WIN32
|
||||
|
||||
/* 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@"
|
||||
|
||||
/* Set to maximum allowed value of sf_count_t type. */
|
||||
#cmakedefine SF_COUNT_MAX @SF_COUNT_MAX@
|
||||
|
||||
/* The size of `double', as computed by sizeof. */
|
||||
#define SIZEOF_DOUBLE @SIZEOF_DOUBLE@
|
||||
|
||||
/* The size of `float', as computed by sizeof. */
|
||||
#define SIZEOF_FLOAT @SIZEOF_FLOAT@
|
||||
|
||||
/* The size of `int', as computed by sizeof. */
|
||||
#define SIZEOF_INT @SIZEOF_INT@
|
||||
|
||||
/* The size of `int64_t', as computed by sizeof. */
|
||||
#define SIZEOF_INT64_T @SIZEOF_INT64@
|
||||
|
||||
/* The size of `loff_t', as computed by sizeof. */
|
||||
#define SIZEOF_LOFF_T @SIZEOF_LOFF@
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
#define SIZEOF_LONG @SIZEOF_LONG@
|
||||
|
||||
/* The size of `long long', as computed by sizeof. */
|
||||
#define SIZEOF_LONG_LONG @SIZEOF_LONG_LONG@
|
||||
|
||||
/* The size of `off64_t', as computed by sizeof. */
|
||||
#define SIZEOF_OFF64_T @SIZEOF_OFF64@
|
||||
|
||||
/* The size of `off_t', as computed by sizeof. */
|
||||
#define SIZEOF_OFF_T @SIZEOF_OFF@
|
||||
|
||||
/* Set to sizeof (long) if unknown. */
|
||||
#define SIZEOF_SF_COUNT_T @SIZEOF_SF_COUNT_T@
|
||||
|
||||
/* The size of `short', as computed by sizeof. */
|
||||
#define SIZEOF_SHORT @SIZEOF_SHORT@
|
||||
|
||||
/* The size of `size_t', as computed by sizeof. */
|
||||
#define SIZEOF_SIZE_T @SIZEOF_SIZE@
|
||||
|
||||
/* The size of `ssize_t', as computed by sizeof. */
|
||||
#define SIZEOF_SSIZE_T @SIZEOF_SSIZE@
|
||||
|
||||
/* The size of `void*', as computed by sizeof. */
|
||||
#define SIZEOF_VOIDP @SIZEOF_POINTER@
|
||||
|
||||
/* The size of `wchar_t', as computed by sizeof. */
|
||||
#define SIZEOF_WCHAR_T @SIZEOF_WCHAR@
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* Set to long if unknown. */
|
||||
#define TYPEOF_SF_COUNT_T @TYPEOF_SF_COUNT_T@
|
||||
|
||||
/* Set to 1 to use the native windows API */
|
||||
#cmakedefine01 USE_WINDOWS_API
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "@VERSION@"
|
||||
|
||||
/* Set to 1 if windows DLL is being built. */
|
||||
#cmakedefine WIN32_TARGET_DLL 1
|
||||
|
||||
/* Target processor is big endian. */
|
||||
#define WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
|
||||
|
||||
/* Define to make fseeko etc. visible, on some hosts. */
|
||||
#cmakedefine _LARGEFILE_SOURCE 1
|
||||
|
||||
/* Define for large files, on AIX-style hosts. */
|
||||
#cmakedefine _LARGE_FILES 1
|
||||
|
||||
/* Set to 1 to use C99 printf/snprintf in MinGW. */
|
||||
#cmakedefine __USE_MINGW_ANSI_STDIO 1
|
|
@ -0,0 +1,12 @@
|
|||
#include <stdlib.h>
|
||||
typedef struct
|
||||
{
|
||||
int k;
|
||||
char buffer [];
|
||||
} MY_STRUCT;
|
||||
int main(void)
|
||||
{
|
||||
MY_STRUCT *p = calloc (1, sizeof (MY_STRUCT) + 42);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -0,0 +1,666 @@
|
|||
/*
|
||||
** Copyright (C) 1999-2011Erik de Castro Lopo <erikd@mega-nerd.com>
|
||||
**
|
||||
** This program is free software; you can redistribute it and/or modify
|
||||
** it under the terms of the GNU Lesser General Public License as published by
|
||||
** the Free Software Foundation; either version 2.1 of the License, or
|
||||
** (at your option) any later version.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful,
|
||||
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
** GNU Lesser General Public License for more details.
|
||||
**
|
||||
** You should have received a copy of the GNU Lesser General Public License
|
||||
** along with this program; if not, write to the Free Software
|
||||
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
** sndfile.h -- system-wide definitions
|
||||
**
|
||||
** API documentation is in the doc/ directory of the source code tarball
|
||||
** and at http://www.mega-nerd.com/libsndfile/api.html.
|
||||
*/
|
||||
|
||||
#ifndef SNDFILE_H
|
||||
#define SNDFILE_H
|
||||
|
||||
/* This is the version 1.0.X header file. */
|
||||
#define SNDFILE_1
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* The following file types can be read and written.
|
||||
** A file type would consist of a major type (ie SF_FORMAT_WAV) bitwise
|
||||
** ORed with a minor type (ie SF_FORMAT_PCM). SF_FORMAT_TYPEMASK and
|
||||
** SF_FORMAT_SUBMASK can be used to separate the major and minor file
|
||||
** types.
|
||||
*/
|
||||
|
||||
enum
|
||||
{ /* Major formats. */
|
||||
SF_FORMAT_WAV = 0x010000, /* Microsoft WAV format (little endian default). */
|
||||
SF_FORMAT_AIFF = 0x020000, /* Apple/SGI AIFF format (big endian). */
|
||||
SF_FORMAT_AU = 0x030000, /* Sun/NeXT AU format (big endian). */
|
||||
SF_FORMAT_RAW = 0x040000, /* RAW PCM data. */
|
||||
SF_FORMAT_PAF = 0x050000, /* Ensoniq PARIS file format. */
|
||||
SF_FORMAT_SVX = 0x060000, /* Amiga IFF / SVX8 / SV16 format. */
|
||||
SF_FORMAT_NIST = 0x070000, /* Sphere NIST format. */
|
||||
SF_FORMAT_VOC = 0x080000, /* VOC files. */
|
||||
SF_FORMAT_IRCAM = 0x0A0000, /* Berkeley/IRCAM/CARL */
|
||||
SF_FORMAT_W64 = 0x0B0000, /* Sonic Foundry's 64 bit RIFF/WAV */
|
||||
SF_FORMAT_MAT4 = 0x0C0000, /* Matlab (tm) V4.2 / GNU Octave 2.0 */
|
||||
SF_FORMAT_MAT5 = 0x0D0000, /* Matlab (tm) V5.0 / GNU Octave 2.1 */
|
||||
SF_FORMAT_PVF = 0x0E0000, /* Portable Voice Format */
|
||||
SF_FORMAT_XI = 0x0F0000, /* Fasttracker 2 Extended Instrument */
|
||||
SF_FORMAT_HTK = 0x100000, /* HMM Tool Kit format */
|
||||
SF_FORMAT_SDS = 0x110000, /* Midi Sample Dump Standard */
|
||||
SF_FORMAT_AVR = 0x120000, /* Audio Visual Research */
|
||||
SF_FORMAT_WAVEX = 0x130000, /* MS WAVE with WAVEFORMATEX */
|
||||
SF_FORMAT_SD2 = 0x160000, /* Sound Designer 2 */
|
||||
SF_FORMAT_FLAC = 0x170000, /* FLAC lossless file format */
|
||||
SF_FORMAT_CAF = 0x180000, /* Core Audio File format */
|
||||
SF_FORMAT_WVE = 0x190000, /* Psion WVE format */
|
||||
SF_FORMAT_OGG = 0x200000, /* Xiph OGG container */
|
||||
SF_FORMAT_MPC2K = 0x210000, /* Akai MPC 2000 sampler */
|
||||
SF_FORMAT_RF64 = 0x220000, /* RF64 WAV file */
|
||||
|
||||
/* Subtypes from here on. */
|
||||
|
||||
SF_FORMAT_PCM_S8 = 0x0001, /* Signed 8 bit data */
|
||||
SF_FORMAT_PCM_16 = 0x0002, /* Signed 16 bit data */
|
||||
SF_FORMAT_PCM_24 = 0x0003, /* Signed 24 bit data */
|
||||
SF_FORMAT_PCM_32 = 0x0004, /* Signed 32 bit data */
|
||||
|
||||
SF_FORMAT_PCM_U8 = 0x0005, /* Unsigned 8 bit data (WAV and RAW only) */
|
||||
|
||||
SF_FORMAT_FLOAT = 0x0006, /* 32 bit float data */
|
||||
SF_FORMAT_DOUBLE = 0x0007, /* 64 bit float data */
|
||||
|
||||
SF_FORMAT_ULAW = 0x0010, /* U-Law encoded. */
|
||||
SF_FORMAT_ALAW = 0x0011, /* A-Law encoded. */
|
||||
SF_FORMAT_IMA_ADPCM = 0x0012, /* IMA ADPCM. */
|
||||
SF_FORMAT_MS_ADPCM = 0x0013, /* Microsoft ADPCM. */
|
||||
|
||||
SF_FORMAT_GSM610 = 0x0020, /* GSM 6.10 encoding. */
|
||||
SF_FORMAT_VOX_ADPCM = 0x0021, /* OKI / Dialogix ADPCM */
|
||||
|
||||
SF_FORMAT_G721_32 = 0x0030, /* 32kbs G721 ADPCM encoding. */
|
||||
SF_FORMAT_G723_24 = 0x0031, /* 24kbs G723 ADPCM encoding. */
|
||||
SF_FORMAT_G723_40 = 0x0032, /* 40kbs G723 ADPCM encoding. */
|
||||
|
||||
SF_FORMAT_DWVW_12 = 0x0040, /* 12 bit Delta Width Variable Word encoding. */
|
||||
SF_FORMAT_DWVW_16 = 0x0041, /* 16 bit Delta Width Variable Word encoding. */
|
||||
SF_FORMAT_DWVW_24 = 0x0042, /* 24 bit Delta Width Variable Word encoding. */
|
||||
SF_FORMAT_DWVW_N = 0x0043, /* N bit Delta Width Variable Word encoding. */
|
||||
|
||||
SF_FORMAT_DPCM_8 = 0x0050, /* 8 bit differential PCM (XI only) */
|
||||
SF_FORMAT_DPCM_16 = 0x0051, /* 16 bit differential PCM (XI only) */
|
||||
|
||||
SF_FORMAT_VORBIS = 0x0060, /* Xiph Vorbis encoding. */
|
||||
|
||||
/* Endian-ness options. */
|
||||
|
||||
SF_ENDIAN_FILE = 0x00000000, /* Default file endian-ness. */
|
||||
SF_ENDIAN_LITTLE = 0x10000000, /* Force little endian-ness. */
|
||||
SF_ENDIAN_BIG = 0x20000000, /* Force big endian-ness. */
|
||||
SF_ENDIAN_CPU = 0x30000000, /* Force CPU endian-ness. */
|
||||
|
||||
SF_FORMAT_SUBMASK = 0x0000FFFF,
|
||||
SF_FORMAT_TYPEMASK = 0x0FFF0000,
|
||||
SF_FORMAT_ENDMASK = 0x30000000
|
||||
} ;
|
||||
|
||||
/*
|
||||
** The following are the valid command numbers for the sf_command()
|
||||
** interface. The use of these commands is documented in the file
|
||||
** command.html in the doc directory of the source code distribution.
|
||||
*/
|
||||
|
||||
enum
|
||||
{ SFC_GET_LIB_VERSION = 0x1000,
|
||||
SFC_GET_LOG_INFO = 0x1001,
|
||||
SFC_GET_CURRENT_SF_INFO = 0x1002,
|
||||
|
||||
|
||||
SFC_GET_NORM_DOUBLE = 0x1010,
|
||||
SFC_GET_NORM_FLOAT = 0x1011,
|
||||
SFC_SET_NORM_DOUBLE = 0x1012,
|
||||
SFC_SET_NORM_FLOAT = 0x1013,
|
||||
SFC_SET_SCALE_FLOAT_INT_READ = 0x1014,
|
||||
SFC_SET_SCALE_INT_FLOAT_WRITE = 0x1015,
|
||||
|
||||
SFC_GET_SIMPLE_FORMAT_COUNT = 0x1020,
|
||||
SFC_GET_SIMPLE_FORMAT = 0x1021,
|
||||
|
||||
SFC_GET_FORMAT_INFO = 0x1028,
|
||||
|
||||
SFC_GET_FORMAT_MAJOR_COUNT = 0x1030,
|
||||
SFC_GET_FORMAT_MAJOR = 0x1031,
|
||||
SFC_GET_FORMAT_SUBTYPE_COUNT = 0x1032,
|
||||
SFC_GET_FORMAT_SUBTYPE = 0x1033,
|
||||
|
||||
SFC_CALC_SIGNAL_MAX = 0x1040,
|
||||
SFC_CALC_NORM_SIGNAL_MAX = 0x1041,
|
||||
SFC_CALC_MAX_ALL_CHANNELS = 0x1042,
|
||||
SFC_CALC_NORM_MAX_ALL_CHANNELS = 0x1043,
|
||||
SFC_GET_SIGNAL_MAX = 0x1044,
|
||||
SFC_GET_MAX_ALL_CHANNELS = 0x1045,
|
||||
|
||||
SFC_SET_ADD_PEAK_CHUNK = 0x1050,
|
||||
SFC_SET_ADD_HEADER_PAD_CHUNK = 0x1051,
|
||||
|
||||
SFC_UPDATE_HEADER_NOW = 0x1060,
|
||||
SFC_SET_UPDATE_HEADER_AUTO = 0x1061,
|
||||
|
||||
SFC_FILE_TRUNCATE = 0x1080,
|
||||
|
||||
SFC_SET_RAW_START_OFFSET = 0x1090,
|
||||
|
||||
SFC_SET_DITHER_ON_WRITE = 0x10A0,
|
||||
SFC_SET_DITHER_ON_READ = 0x10A1,
|
||||
|
||||
SFC_GET_DITHER_INFO_COUNT = 0x10A2,
|
||||
SFC_GET_DITHER_INFO = 0x10A3,
|
||||
|
||||
SFC_GET_EMBED_FILE_INFO = 0x10B0,
|
||||
|
||||
SFC_SET_CLIPPING = 0x10C0,
|
||||
SFC_GET_CLIPPING = 0x10C1,
|
||||
|
||||
SFC_GET_INSTRUMENT = 0x10D0,
|
||||
SFC_SET_INSTRUMENT = 0x10D1,
|
||||
|
||||
SFC_GET_LOOP_INFO = 0x10E0,
|
||||
|
||||
SFC_GET_BROADCAST_INFO = 0x10F0,
|
||||
SFC_SET_BROADCAST_INFO = 0x10F1,
|
||||
|
||||
SFC_GET_CHANNEL_MAP_INFO = 0x1100,
|
||||
SFC_SET_CHANNEL_MAP_INFO = 0x1101,
|
||||
|
||||
SFC_RAW_DATA_NEEDS_ENDSWAP = 0x1110,
|
||||
|
||||
/* Support for Wavex Ambisonics Format */
|
||||
SFC_WAVEX_SET_AMBISONIC = 0x1200,
|
||||
SFC_WAVEX_GET_AMBISONIC = 0x1201,
|
||||
|
||||
SFC_SET_VBR_ENCODING_QUALITY = 0x1300,
|
||||
|
||||
/* Following commands for testing only. */
|
||||
SFC_TEST_IEEE_FLOAT_REPLACE = 0x6001,
|
||||
|
||||
/*
|
||||
** SFC_SET_ADD_* values are deprecated and will disappear at some
|
||||
** time in the future. They are guaranteed to be here up to and
|
||||
** including version 1.0.8 to avoid breakage of existng software.
|
||||
** They currently do nothing and will continue to do nothing.
|
||||
*/
|
||||
SFC_SET_ADD_DITHER_ON_WRITE = 0x1070,
|
||||
SFC_SET_ADD_DITHER_ON_READ = 0x1071
|
||||
} ;
|
||||
|
||||
|
||||
/*
|
||||
** String types that can be set and read from files. Not all file types
|
||||
** support this and even the file types which support one, may not support
|
||||
** all string types.
|
||||
*/
|
||||
|
||||
enum
|
||||
{ SF_STR_TITLE = 0x01,
|
||||
SF_STR_COPYRIGHT = 0x02,
|
||||
SF_STR_SOFTWARE = 0x03,
|
||||
SF_STR_ARTIST = 0x04,
|
||||
SF_STR_COMMENT = 0x05,
|
||||
SF_STR_DATE = 0x06,
|
||||
SF_STR_ALBUM = 0x07,
|
||||
SF_STR_LICENSE = 0x08,
|
||||
SF_STR_TRACKNUMBER = 0x09,
|
||||
SF_STR_GENRE = 0x10
|
||||
} ;
|
||||
|
||||
/*
|
||||
** Use the following as the start and end index when doing metadata
|
||||
** transcoding.
|
||||
*/
|
||||
|
||||
#define SF_STR_FIRST SF_STR_TITLE
|
||||
#define SF_STR_LAST SF_STR_LICENSE
|
||||
|
||||
enum
|
||||
{ /* True and false */
|
||||
SF_FALSE = 0,
|
||||
SF_TRUE = 1,
|
||||
|
||||
/* Modes for opening files. */
|
||||
SFM_READ = 0x10,
|
||||
SFM_WRITE = 0x20,
|
||||
SFM_RDWR = 0x30,
|
||||
|
||||
SF_AMBISONIC_NONE = 0x40,
|
||||
SF_AMBISONIC_B_FORMAT = 0x41
|
||||
} ;
|
||||
|
||||
/* Public error values. These are guaranteed to remain unchanged for the duration
|
||||
** of the library major version number.
|
||||
** There are also a large number of private error numbers which are internal to
|
||||
** the library which can change at any time.
|
||||
*/
|
||||
|
||||
enum
|
||||
{ SF_ERR_NO_ERROR = 0,
|
||||
SF_ERR_UNRECOGNISED_FORMAT = 1,
|
||||
SF_ERR_SYSTEM = 2,
|
||||
SF_ERR_MALFORMED_FILE = 3,
|
||||
SF_ERR_UNSUPPORTED_ENCODING = 4
|
||||
} ;
|
||||
|
||||
|
||||
/* Channel map values (used with SFC_SET/GET_CHANNEL_MAP).
|
||||
*/
|
||||
|
||||
enum
|
||||
{ SF_CHANNEL_MAP_INVALID = 0,
|
||||
SF_CHANNEL_MAP_MONO = 1,
|
||||
SF_CHANNEL_MAP_LEFT, /* Apple calls this 'Left' */
|
||||
SF_CHANNEL_MAP_RIGHT, /* Apple calls this 'Right' */
|
||||
SF_CHANNEL_MAP_CENTER, /* Apple calls this 'Center' */
|
||||
SF_CHANNEL_MAP_FRONT_LEFT,
|
||||
SF_CHANNEL_MAP_FRONT_RIGHT,
|
||||
SF_CHANNEL_MAP_FRONT_CENTER,
|
||||
SF_CHANNEL_MAP_REAR_CENTER, /* Apple calls this 'Center Surround', Msft calls this 'Back Center' */
|
||||
SF_CHANNEL_MAP_REAR_LEFT, /* Apple calls this 'Left Surround', Msft calls this 'Back Left' */
|
||||
SF_CHANNEL_MAP_REAR_RIGHT, /* Apple calls this 'Right Surround', Msft calls this 'Back Right' */
|
||||
SF_CHANNEL_MAP_LFE, /* Apple calls this 'LFEScreen', Msft calls this 'Low Frequency' */
|
||||
SF_CHANNEL_MAP_FRONT_LEFT_OF_CENTER, /* Apple calls this 'Left Center' */
|
||||
SF_CHANNEL_MAP_FRONT_RIGHT_OF_CENTER, /* Apple calls this 'Right Center */
|
||||
SF_CHANNEL_MAP_SIDE_LEFT, /* Apple calls this 'Left Surround Direct' */
|
||||
SF_CHANNEL_MAP_SIDE_RIGHT, /* Apple calls this 'Right Surround Direct' */
|
||||
SF_CHANNEL_MAP_TOP_CENTER, /* Apple calls this 'Top Center Surround' */
|
||||
SF_CHANNEL_MAP_TOP_FRONT_LEFT, /* Apple calls this 'Vertical Height Left' */
|
||||
SF_CHANNEL_MAP_TOP_FRONT_RIGHT, /* Apple calls this 'Vertical Height Right' */
|
||||
SF_CHANNEL_MAP_TOP_FRONT_CENTER, /* Apple calls this 'Vertical Height Center' */
|
||||
SF_CHANNEL_MAP_TOP_REAR_LEFT, /* Apple and MS call this 'Top Back Left' */
|
||||
SF_CHANNEL_MAP_TOP_REAR_RIGHT, /* Apple and MS call this 'Top Back Right' */
|
||||
SF_CHANNEL_MAP_TOP_REAR_CENTER, /* Apple and MS call this 'Top Back Center' */
|
||||
|
||||
SF_CHANNEL_MAP_AMBISONIC_B_W,
|
||||
SF_CHANNEL_MAP_AMBISONIC_B_X,
|
||||
SF_CHANNEL_MAP_AMBISONIC_B_Y,
|
||||
SF_CHANNEL_MAP_AMBISONIC_B_Z,
|
||||
|
||||
SF_CHANNEL_MAP_MAX
|
||||
} ;
|
||||
|
||||
|
||||
/* A SNDFILE* pointer can be passed around much like stdio.h's FILE* pointer. */
|
||||
|
||||
typedef struct SNDFILE_tag SNDFILE ;
|
||||
|
||||
/* The following typedef is system specific and is defined when libsndfile is
|
||||
** compiled. sf_count_t will be a 64 bit value when the underlying OS allows
|
||||
** 64 bit file offsets.
|
||||
** On windows, we need to allow the same header file to be compiler by both GCC
|
||||
** and the Microsoft compiler.
|
||||
*/
|
||||
|
||||
#if (defined (_MSCVER) || defined (_MSC_VER))
|
||||
typedef __int64 sf_count_t ;
|
||||
#define SF_COUNT_MAX 0x7fffffffffffffffi64
|
||||
#else
|
||||
typedef @TYPEOF_SF_COUNT_T@ sf_count_t ;
|
||||
#define SF_COUNT_MAX @SF_COUNT_MAX@
|
||||
#endif
|
||||
|
||||
|
||||
/* A pointer to a SF_INFO structure is passed to sf_open () and filled in.
|
||||
** On write, the SF_INFO structure is filled in by the user and passed into
|
||||
** sf_open ().
|
||||
*/
|
||||
|
||||
struct SF_INFO
|
||||
{ sf_count_t frames ; /* Used to be called samples. Changed to avoid confusion. */
|
||||
int samplerate ;
|
||||
int channels ;
|
||||
int format ;
|
||||
int sections ;
|
||||
int seekable ;
|
||||
} ;
|
||||
|
||||
typedef struct SF_INFO SF_INFO ;
|
||||
|
||||
/* The SF_FORMAT_INFO struct is used to retrieve information about the sound
|
||||
** file formats libsndfile supports using the sf_command () interface.
|
||||
**
|
||||
** Using this interface will allow applications to support new file formats
|
||||
** and encoding types when libsndfile is upgraded, without requiring
|
||||
** re-compilation of the application.
|
||||
**
|
||||
** Please consult the libsndfile documentation (particularly the information
|
||||
** on the sf_command () interface) for examples of its use.
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{ int format ;
|
||||
const char *name ;
|
||||
const char *extension ;
|
||||
} SF_FORMAT_INFO ;
|
||||
|
||||
/*
|
||||
** Enums and typedefs for adding dither on read and write.
|
||||
** See the html documentation for sf_command(), SFC_SET_DITHER_ON_WRITE
|
||||
** and SFC_SET_DITHER_ON_READ.
|
||||
*/
|
||||
|
||||
enum
|
||||
{ SFD_DEFAULT_LEVEL = 0,
|
||||
SFD_CUSTOM_LEVEL = 0x40000000,
|
||||
|
||||
SFD_NO_DITHER = 500,
|
||||
SFD_WHITE = 501,
|
||||
SFD_TRIANGULAR_PDF = 502
|
||||
} ;
|
||||
|
||||
typedef struct
|
||||
{ int type ;
|
||||
double level ;
|
||||
const char *name ;
|
||||
} SF_DITHER_INFO ;
|
||||
|
||||
/* Struct used to retrieve information about a file embedded within a
|
||||
** larger file. See SFC_GET_EMBED_FILE_INFO.
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{ sf_count_t offset ;
|
||||
sf_count_t length ;
|
||||
} SF_EMBED_FILE_INFO ;
|
||||
|
||||
/*
|
||||
** Structs used to retrieve music sample information from a file.
|
||||
*/
|
||||
|
||||
enum
|
||||
{ /*
|
||||
** The loop mode field in SF_INSTRUMENT will be one of the following.
|
||||
*/
|
||||
SF_LOOP_NONE = 800,
|
||||
SF_LOOP_FORWARD,
|
||||
SF_LOOP_BACKWARD,
|
||||
SF_LOOP_ALTERNATING
|
||||
} ;
|
||||
|
||||
typedef struct
|
||||
{ int gain ;
|
||||
char basenote, detune ;
|
||||
char velocity_lo, velocity_hi ;
|
||||
char key_lo, key_hi ;
|
||||
int loop_count ;
|
||||
|
||||
struct
|
||||
{ int mode ;
|
||||
unsigned int start ;
|
||||
unsigned int end ;
|
||||
unsigned int count ;
|
||||
} loops [16] ; /* make variable in a sensible way */
|
||||
} SF_INSTRUMENT ;
|
||||
|
||||
|
||||
|
||||
/* Struct used to retrieve loop information from a file.*/
|
||||
typedef struct
|
||||
{
|
||||
short time_sig_num ; /* any positive integer > 0 */
|
||||
short time_sig_den ; /* any positive power of 2 > 0 */
|
||||
int loop_mode ; /* see SF_LOOP enum */
|
||||
|
||||
int num_beats ; /* this is NOT the amount of quarter notes !!!*/
|
||||
/* a full bar of 4/4 is 4 beats */
|
||||
/* a full bar of 7/8 is 7 beats */
|
||||
|
||||
float bpm ; /* suggestion, as it can be calculated using other fields:*/
|
||||
/* file's lenght, file's sampleRate and our time_sig_den*/
|
||||
/* -> bpms are always the amount of _quarter notes_ per minute */
|
||||
|
||||
int root_key ; /* MIDI note, or -1 for None */
|
||||
int future [6] ;
|
||||
} SF_LOOP_INFO ;
|
||||
|
||||
|
||||
/* Struct used to retrieve broadcast (EBU) information from a file.
|
||||
** Strongly (!) based on EBU "bext" chunk format used in Broadcast WAVE.
|
||||
*/
|
||||
#define SF_BROADCAST_INFO_VAR(coding_hist_size) \
|
||||
struct \
|
||||
{ char description [256] ; \
|
||||
char originator [32] ; \
|
||||
char originator_reference [32] ; \
|
||||
char origination_date [10] ; \
|
||||
char origination_time [8] ; \
|
||||
unsigned int time_reference_low ; \
|
||||
unsigned int time_reference_high ; \
|
||||
short version ; \
|
||||
char umid [64] ; \
|
||||
char reserved [190] ; \
|
||||
unsigned int coding_history_size ; \
|
||||
char coding_history [coding_hist_size] ; \
|
||||
}
|
||||
|
||||
/* SF_BROADCAST_INFO is the above struct with coding_history field of 256 bytes. */
|
||||
typedef SF_BROADCAST_INFO_VAR (256) SF_BROADCAST_INFO ;
|
||||
|
||||
|
||||
/* Virtual I/O functionality. */
|
||||
|
||||
typedef sf_count_t (*sf_vio_get_filelen) (void *user_data) ;
|
||||
typedef sf_count_t (*sf_vio_seek) (sf_count_t offset, int whence, void *user_data) ;
|
||||
typedef sf_count_t (*sf_vio_read) (void *ptr, sf_count_t count, void *user_data) ;
|
||||
typedef sf_count_t (*sf_vio_write) (const void *ptr, sf_count_t count, void *user_data) ;
|
||||
typedef sf_count_t (*sf_vio_tell) (void *user_data) ;
|
||||
|
||||
struct SF_VIRTUAL_IO
|
||||
{ sf_vio_get_filelen get_filelen ;
|
||||
sf_vio_seek seek ;
|
||||
sf_vio_read read ;
|
||||
sf_vio_write write ;
|
||||
sf_vio_tell tell ;
|
||||
} ;
|
||||
|
||||
typedef struct SF_VIRTUAL_IO SF_VIRTUAL_IO ;
|
||||
|
||||
|
||||
/* Open the specified file for read, write or both. On error, this will
|
||||
** return a NULL pointer. To find the error number, pass a NULL SNDFILE
|
||||
** to sf_strerror ().
|
||||
** All calls to sf_open() should be matched with a call to sf_close().
|
||||
*/
|
||||
|
||||
SNDFILE* sf_open (const char *path, int mode, SF_INFO *sfinfo) ;
|
||||
|
||||
|
||||
/* Use the existing file descriptor to create a SNDFILE object. If close_desc
|
||||
** is TRUE, the file descriptor will be closed when sf_close() is called. If
|
||||
** it is FALSE, the descritor will not be closed.
|
||||
** When passed a descriptor like this, the library will assume that the start
|
||||
** of file header is at the current file offset. This allows sound files within
|
||||
** larger container files to be read and/or written.
|
||||
** On error, this will return a NULL pointer. To find the error number, pass a
|
||||
** NULL SNDFILE to sf_strerror ().
|
||||
** All calls to sf_open_fd() should be matched with a call to sf_close().
|
||||
|
||||
*/
|
||||
|
||||
SNDFILE* sf_open_fd (int fd, int mode, SF_INFO *sfinfo, int close_desc) ;
|
||||
|
||||
SNDFILE* sf_open_virtual (SF_VIRTUAL_IO *sfvirtual, int mode, SF_INFO *sfinfo, void *user_data) ;
|
||||
|
||||
|
||||
/* sf_error () returns a error number which can be translated to a text
|
||||
** string using sf_error_number().
|
||||
*/
|
||||
|
||||
int sf_error (SNDFILE *sndfile) ;
|
||||
|
||||
|
||||
/* sf_strerror () returns to the caller a pointer to the current error message for
|
||||
** the given SNDFILE.
|
||||
*/
|
||||
|
||||
const char* sf_strerror (SNDFILE *sndfile) ;
|
||||
|
||||
|
||||
/* sf_error_number () allows the retrieval of the error string for each internal
|
||||
** error number.
|
||||
**
|
||||
*/
|
||||
|
||||
const char* sf_error_number (int errnum) ;
|
||||
|
||||
|
||||
/* The following two error functions are deprecated but they will remain in the
|
||||
** library for the forseeable future. The function sf_strerror() should be used
|
||||
** in their place.
|
||||
*/
|
||||
|
||||
int sf_perror (SNDFILE *sndfile) ;
|
||||
int sf_error_str (SNDFILE *sndfile, char* str, size_t len) ;
|
||||
|
||||
|
||||
/* Return TRUE if fields of the SF_INFO struct are a valid combination of values. */
|
||||
|
||||
int sf_command (SNDFILE *sndfile, int command, void *data, int datasize) ;
|
||||
|
||||
|
||||
/* Return TRUE if fields of the SF_INFO struct are a valid combination of values. */
|
||||
|
||||
int sf_format_check (const SF_INFO *info) ;
|
||||
|
||||
|
||||
/* Seek within the waveform data chunk of the SNDFILE. sf_seek () uses
|
||||
** the same values for whence (SEEK_SET, SEEK_CUR and SEEK_END) as
|
||||
** stdio.h function fseek ().
|
||||
** An offset of zero with whence set to SEEK_SET will position the
|
||||
** read / write pointer to the first data sample.
|
||||
** On success sf_seek returns the current position in (multi-channel)
|
||||
** samples from the start of the file.
|
||||
** Please see the libsndfile documentation for moving the read pointer
|
||||
** separately from the write pointer on files open in mode SFM_RDWR.
|
||||
** On error all of these functions return -1.
|
||||
*/
|
||||
|
||||
sf_count_t sf_seek (SNDFILE *sndfile, sf_count_t frames, int whence) ;
|
||||
|
||||
|
||||
/* Functions for retrieving and setting string data within sound files.
|
||||
** Not all file types support this features; AIFF and WAV do. For both
|
||||
** functions, the str_type parameter must be one of the SF_STR_* values
|
||||
** defined above.
|
||||
** On error, sf_set_string() returns non-zero while sf_get_string()
|
||||
** returns NULL.
|
||||
*/
|
||||
|
||||
int sf_set_string (SNDFILE *sndfile, int str_type, const char* str) ;
|
||||
|
||||
const char* sf_get_string (SNDFILE *sndfile, int str_type) ;
|
||||
|
||||
|
||||
/* Return the library version string. */
|
||||
|
||||
const char * sf_version_string (void) ;
|
||||
|
||||
|
||||
/* Functions for reading/writing the waveform data of a sound file.
|
||||
*/
|
||||
|
||||
sf_count_t sf_read_raw (SNDFILE *sndfile, void *ptr, sf_count_t bytes) ;
|
||||
sf_count_t sf_write_raw (SNDFILE *sndfile, const void *ptr, sf_count_t bytes) ;
|
||||
|
||||
|
||||
/* Functions for reading and writing the data chunk in terms of frames.
|
||||
** The number of items actually read/written = frames * number of channels.
|
||||
** sf_xxxx_raw read/writes the raw data bytes from/to the file
|
||||
** sf_xxxx_short passes data in the native short format
|
||||
** sf_xxxx_int passes data in the native int format
|
||||
** sf_xxxx_float passes data in the native float format
|
||||
** sf_xxxx_double passes data in the native double format
|
||||
** All of these read/write function return number of frames read/written.
|
||||
*/
|
||||
|
||||
sf_count_t sf_readf_short (SNDFILE *sndfile, short *ptr, sf_count_t frames) ;
|
||||
sf_count_t sf_writef_short (SNDFILE *sndfile, const short *ptr, sf_count_t frames) ;
|
||||
|
||||
sf_count_t sf_readf_int (SNDFILE *sndfile, int *ptr, sf_count_t frames) ;
|
||||
sf_count_t sf_writef_int (SNDFILE *sndfile, const int *ptr, sf_count_t frames) ;
|
||||
|
||||
sf_count_t sf_readf_float (SNDFILE *sndfile, float *ptr, sf_count_t frames) ;
|
||||
sf_count_t sf_writef_float (SNDFILE *sndfile, const float *ptr, sf_count_t frames) ;
|
||||
|
||||
sf_count_t sf_readf_double (SNDFILE *sndfile, double *ptr, sf_count_t frames) ;
|
||||
sf_count_t sf_writef_double (SNDFILE *sndfile, const double *ptr, sf_count_t frames) ;
|
||||
|
||||
|
||||
/* Functions for reading and writing the data chunk in terms of items.
|
||||
** Otherwise similar to above.
|
||||
** All of these read/write function return number of items read/written.
|
||||
*/
|
||||
|
||||
sf_count_t sf_read_short (SNDFILE *sndfile, short *ptr, sf_count_t items) ;
|
||||
sf_count_t sf_write_short (SNDFILE *sndfile, const short *ptr, sf_count_t items) ;
|
||||
|
||||
sf_count_t sf_read_int (SNDFILE *sndfile, int *ptr, sf_count_t items) ;
|
||||
sf_count_t sf_write_int (SNDFILE *sndfile, const int *ptr, sf_count_t items) ;
|
||||
|
||||
sf_count_t sf_read_float (SNDFILE *sndfile, float *ptr, sf_count_t items) ;
|
||||
sf_count_t sf_write_float (SNDFILE *sndfile, const float *ptr, sf_count_t items) ;
|
||||
|
||||
sf_count_t sf_read_double (SNDFILE *sndfile, double *ptr, sf_count_t items) ;
|
||||
sf_count_t sf_write_double (SNDFILE *sndfile, const double *ptr, sf_count_t items) ;
|
||||
|
||||
|
||||
/* Close the SNDFILE and clean up all memory allocations associated with this
|
||||
** file.
|
||||
** Returns 0 on success, or an error number.
|
||||
*/
|
||||
|
||||
int sf_close (SNDFILE *sndfile) ;
|
||||
|
||||
|
||||
/* If the file is opened SFM_WRITE or SFM_RDWR, call fsync() on the file
|
||||
** to force the writing of data to disk. If the file is opened SFM_READ
|
||||
** no action is taken.
|
||||
*/
|
||||
|
||||
void sf_write_sync (SNDFILE *sndfile) ;
|
||||
|
||||
|
||||
|
||||
/* The function sf_wchar_open() is Windows Only!
|
||||
** Open a file passing in a Windows Unicode filename. Otherwise, this is
|
||||
** the same as sf_open().
|
||||
**
|
||||
** In order for this to work, you need to do the following:
|
||||
**
|
||||
** #include <windows.h>
|
||||
** #define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1
|
||||
** #including <sndfile.h>
|
||||
*/
|
||||
|
||||
#if ENABLE_SNDFILE_WINDOWS_PROTOTYPES
|
||||
SNDFILE* sf_wchar_open (LPCWSTR wpath, int mode, SF_INFO *sfinfo) ;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* extern "C" */
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* SNDFILE_H */
|
||||
|
|
@ -1,57 +1,95 @@
|
|||
#directory cmake-proxies/libsoxr
|
||||
set( TARGET libsoxr )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/examples/1-single-block.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/examples/1a-lsr.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/examples/2-stream.C
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/examples/3-options-input-fn.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/examples/4-split-channels.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/examples/5-variable-rate.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/avfft32.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/avfft32s.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/cr-core.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/cr.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/cr32.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/cr32s.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/cr64.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/cr64s.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/data-io.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/dbesi0.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/fft4g.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/fft4g32.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/fft4g32s.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/fft4g64.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/filter.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/pffft-wrap.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/pffft.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/pffft32.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/pffft32s.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/pffft64s.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/soxr-lsr.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/soxr.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/util-simd.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/util32s.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/util64s.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/src/vr-coefs.c
|
||||
${LIB_SRC_DIRECTORY}libsoxr/src/vr32.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/tests/1-delay-clear.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/tests/throughput.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/tests/vector-cmp.c
|
||||
#${LIB_SRC_DIRECTORY}libsoxr/tests/vector-gen.c
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_USE_MATH_DEFINES
|
||||
-D_CRT_SECURE_NO_WARNINGS
|
||||
-DSOXR_LIB
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${TARGET_SOURCE}/msvc
|
||||
set(CMAKE_MODULE_PATH ${TARGET_ROOT}/cmake/Modules )
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/cr.c
|
||||
${TARGET_ROOT}/src/cr32.c
|
||||
${TARGET_ROOT}/src/cr32s.c
|
||||
${TARGET_ROOT}/src/cr64.c
|
||||
${TARGET_ROOT}/src/cr64s.c
|
||||
${TARGET_ROOT}/src/data-io.c
|
||||
${TARGET_ROOT}/src/dbesi0.c
|
||||
${TARGET_ROOT}/src/fft4g.c
|
||||
${TARGET_ROOT}/src/fft4g32.c
|
||||
${TARGET_ROOT}/src/fft4g64.c
|
||||
${TARGET_ROOT}/src/filter.c
|
||||
${TARGET_ROOT}/src/pffft32s.c
|
||||
${TARGET_ROOT}/src/pffft64s.c
|
||||
${TARGET_ROOT}/src/soxr.c
|
||||
${TARGET_ROOT}/src/util32s.c
|
||||
${TARGET_ROOT}/src/util64s.c
|
||||
${TARGET_ROOT}/src/vr32.c
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/private
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/src
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
_USE_MATH_DEFINES
|
||||
_CRT_SECURE_NO_WARNINGS
|
||||
SOXR_LIB
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<IN_LIST:${CMAKE_C_COMPILER_ID},GNU;Clang;AppleClang>:-Wall>
|
||||
)
|
||||
|
||||
if( CMAKE_C_COMPILER_ID MATCHES "GNU|.*Clang" )
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
-Wconversion -Wall -Wextra -pedantic -Wundef -Wpointer-arith -Wno-long-long
|
||||
$<$<C_COMPILER_ID:Clang>:-Wno-keyword-macro>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:
|
||||
-std=gnu89 -Wnested-externs -Wmissing-prototypes -Wstrict-prototypes
|
||||
>
|
||||
)
|
||||
endif()
|
||||
|
||||
set( HAVE_BIGENDIAN ${WORDS_BIGENDIAN} )
|
||||
|
||||
set( AVCODEC_FOUND NO )
|
||||
set( AVUTIL_FOUND NO )
|
||||
set( WITH_PFFFT YES )
|
||||
|
||||
set( WITH_CR32 YES )
|
||||
set( WITH_CR32S YES )
|
||||
set( WITH_CR64 YES )
|
||||
set( WITH_CR64S YES )
|
||||
set( WITH_VR32 YES )
|
||||
|
||||
# Copied from libsoxr CMakeLists.txt
|
||||
if( WITH_CR32S )
|
||||
find_package( SIMD32 )
|
||||
set( WITH_CR32S ${SIMD32_FOUND} )
|
||||
# list( APPEND OPTIONS ${SIMD32_C_FLAGS} )
|
||||
endif()
|
||||
|
||||
if( WITH_CR64S )
|
||||
find_package( SIMD64 )
|
||||
set( WITH_CR64S ${SIMD64_FOUND} )
|
||||
list( APPEND OPTIONS ${SIMD64_C_FLAGS} )
|
||||
endif()
|
||||
|
||||
set( WITH_HI_PREC_CLOCK YES )
|
||||
set( WITH_FLOAT_STD_PREC_CLOCK NO )
|
||||
set( WITH_DEV_TRACE NO )
|
||||
|
||||
configure_file( soxr-config.h.in private/soxr-config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
/* SoX Resampler Library Copyright (c) 2007-16 robs@users.sourceforge.net
|
||||
* Licence for this file: LGPL v2.1 See LICENCE for details. */
|
||||
|
||||
#if !defined soxr_config_included
|
||||
#define soxr_config_included
|
||||
|
||||
#cmakedefine01 AVCODEC_FOUND
|
||||
#cmakedefine01 AVUTIL_FOUND
|
||||
#cmakedefine01 WITH_PFFFT
|
||||
|
||||
#cmakedefine01 HAVE_FENV_H
|
||||
#cmakedefine01 HAVE_STDBOOL_H
|
||||
#cmakedefine01 HAVE_STDINT_H
|
||||
#cmakedefine01 HAVE_LRINT
|
||||
#cmakedefine01 HAVE_BIGENDIAN
|
||||
|
||||
#cmakedefine01 WITH_CR32
|
||||
#cmakedefine01 WITH_CR32S
|
||||
#cmakedefine01 WITH_CR64
|
||||
#cmakedefine01 WITH_CR64S
|
||||
#cmakedefine01 WITH_VR32
|
||||
|
||||
#cmakedefine01 WITH_HI_PREC_CLOCK
|
||||
#cmakedefine01 WITH_FLOAT_STD_PREC_CLOCK
|
||||
#cmakedefine01 WITH_DEV_TRACE
|
||||
|
||||
#endif
|
|
@ -1,47 +1,33 @@
|
|||
#directory cmake-proxies/libvamp
|
||||
#UNUSED
|
||||
set( TARGET libvamp )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
#${LIB_SRC_DIRECTORY}libvamp/examples/AmplitudeFollower.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/examples/FixedTempoEstimator.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/examples/PercussionOnsetDetector.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/examples/plugins.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/examples/PowerSpectrum.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/examples/SpectralCentroid.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/examples/ZeroCrossing.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/host/vamp-simple-host.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/rdf/generator/vamp-rdf-template-generator.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/skeleton/MyPlugin.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/skeleton/plugins.cpp
|
||||
${LIB_SRC_DIRECTORY}libvamp/src/vamp-hostsdk/PluginBufferingAdapter.cpp
|
||||
${LIB_SRC_DIRECTORY}libvamp/src/vamp-hostsdk/PluginChannelAdapter.cpp
|
||||
${LIB_SRC_DIRECTORY}libvamp/src/vamp-hostsdk/PluginHostAdapter.cpp
|
||||
${LIB_SRC_DIRECTORY}libvamp/src/vamp-hostsdk/PluginInputDomainAdapter.cpp
|
||||
${LIB_SRC_DIRECTORY}libvamp/src/vamp-hostsdk/PluginLoader.cpp
|
||||
${LIB_SRC_DIRECTORY}libvamp/src/vamp-hostsdk/PluginSummarisingAdapter.cpp
|
||||
${LIB_SRC_DIRECTORY}libvamp/src/vamp-hostsdk/PluginWrapper.cpp
|
||||
${LIB_SRC_DIRECTORY}libvamp/src/vamp-hostsdk/RealTime.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/src/vamp-sdk/FFT.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/src/vamp-sdk/FFTimpl.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/src/vamp-sdk/PluginAdapter.cpp
|
||||
#${LIB_SRC_DIRECTORY}libvamp/src/vamp-sdk/RealTime.cpp
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
#${LIB_SRC_DIRECTORY}libvamp/src/vamp-hostsdk/acsymbols.c
|
||||
#${LIB_SRC_DIRECTORY}libvamp/src/vamp-sdk/acsymbols.c
|
||||
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
-D_USE_MATH_DEFINES
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${TARGET_SOURCE}
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/vamp-hostsdk/PluginBufferingAdapter.cpp
|
||||
${TARGET_ROOT}/src/vamp-hostsdk/PluginChannelAdapter.cpp
|
||||
${TARGET_ROOT}/src/vamp-hostsdk/PluginHostAdapter.cpp
|
||||
${TARGET_ROOT}/src/vamp-hostsdk/PluginInputDomainAdapter.cpp
|
||||
${TARGET_ROOT}/src/vamp-hostsdk/PluginLoader.cpp
|
||||
${TARGET_ROOT}/src/vamp-hostsdk/PluginSummarisingAdapter.cpp
|
||||
${TARGET_ROOT}/src/vamp-hostsdk/PluginWrapper.cpp
|
||||
${TARGET_ROOT}/src/vamp-hostsdk/RealTime.cpp
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PUBLIC
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
_USE_MATH_DEFINES
|
||||
)
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -1,71 +1,58 @@
|
|||
#directory cmake-proxies/libvorbis
|
||||
set( TARGET libvorbis )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/examples/chaining_example.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/examples/decoder_example.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/examples/encoder_example.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/examples/seeking_example.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/examples/vorbisfile_example.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/analysis.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/lib/barkmel.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/bitrate.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/block.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/codebook.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/envelope.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/floor0.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/floor1.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/info.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/lookup.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/lpc.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/lsp.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/mapping0.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/mdct.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/psy.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/lib/psytune.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/registry.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/res0.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/sharedbook.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/smallft.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/synthesis.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/lib/tone.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/vorbisenc.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/vorbisfile.c
|
||||
${LIB_SRC_DIRECTORY}libvorbis/lib/window.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/macos/compat/strdup.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/test/test.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/test/util.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/test/write_read.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/bookutil.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/build.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/cascade.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/distribution.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/genericdata.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/huffbuild.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/latticebuild.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/latticehint.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/latticepare.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/latticetune.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/lspdata.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/metrics.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/residuedata.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/residuesplit.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/run.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/train.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/vqgen.c
|
||||
#${LIB_SRC_DIRECTORY}libvorbis/vq/vqsplit.c
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${TARGET_SOURCE}/include
|
||||
${LIB_SRC_DIRECTORY}/libogg/include
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/lib/analysis.c
|
||||
${TARGET_ROOT}/lib/bitrate.c
|
||||
${TARGET_ROOT}/lib/block.c
|
||||
${TARGET_ROOT}/lib/codebook.c
|
||||
${TARGET_ROOT}/lib/envelope.c
|
||||
${TARGET_ROOT}/lib/floor0.c
|
||||
${TARGET_ROOT}/lib/floor1.c
|
||||
${TARGET_ROOT}/lib/info.c
|
||||
${TARGET_ROOT}/lib/lookup.c
|
||||
${TARGET_ROOT}/lib/lpc.c
|
||||
${TARGET_ROOT}/lib/lsp.c
|
||||
${TARGET_ROOT}/lib/mapping0.c
|
||||
${TARGET_ROOT}/lib/mdct.c
|
||||
${TARGET_ROOT}/lib/psy.c
|
||||
${TARGET_ROOT}/lib/registry.c
|
||||
${TARGET_ROOT}/lib/res0.c
|
||||
${TARGET_ROOT}/lib/sharedbook.c
|
||||
${TARGET_ROOT}/lib/smallft.c
|
||||
${TARGET_ROOT}/lib/synthesis.c
|
||||
${TARGET_ROOT}/lib/vorbisenc.c
|
||||
${TARGET_ROOT}/lib/vorbisfile.c
|
||||
${TARGET_ROOT}/lib/window.c
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/private
|
||||
${TARGET_ROOT}/lib
|
||||
${LIBOGG_INCLUDES}
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/include
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
HAVE_CONFIG_H
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
PRIVATE
|
||||
libogg
|
||||
)
|
||||
|
||||
configure_file( config.h.in private/config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -0,0 +1,94 @@
|
|||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
|
||||
systems. This function is required for `alloca.c' support on those systems.
|
||||
*/
|
||||
#cmakedefine CRAY_STACKSEG_END 1
|
||||
|
||||
/* Define to 1 if using `alloca.c'. */
|
||||
#cmakedefine C_ALLOCA 1
|
||||
|
||||
/* Define to 1 if you have `alloca', as a function or macro. */
|
||||
#cmakedefine HAVE_ALLOCA 1
|
||||
|
||||
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
|
||||
*/
|
||||
#cmakedefine HAVE_ALLOCA_H 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 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_OBDIR@"
|
||||
|
||||
/* 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@"
|
||||
|
||||
/* If using the C implementation of alloca, define if you know the
|
||||
direction of stack growth for your system; otherwise it will be
|
||||
automatically deduced at runtime.
|
||||
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||
STACK_DIRECTION = 0 => direction of growth unknown */
|
||||
#cmakedefine STACK_DIRECTION 1
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION "@VERSION@"
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#cmakedefine inline @inline@
|
||||
#endif
|
||||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
#cmakedefine size_t @size_t@
|
|
@ -1,93 +1,273 @@
|
|||
#directory cmake-proxies/lv2
|
||||
set( TARGET lv2 )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
#${LIB_SRC_DIRECTORY}lv2/sord/src/sordmm_test.cpp
|
||||
#${LIB_SRC_DIRECTORY}lv2/suil/src/gtk2_in_qt4.cpp
|
||||
#${LIB_SRC_DIRECTORY}lv2/suil/src/qt4_in_gtk2.cpp
|
||||
#${LIB_SRC_DIRECTORY}lv2/suil/src/win_in_gtk2.cpp
|
||||
#${LIB_SRC_DIRECTORY}lv2/suil/src/x11_in_qt4.cpp
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
#${LIB_SRC_DIRECTORY}lv2/lilv/bindings/test/bindings_test_plugin.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/collections.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/instance.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/lib.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/node.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/plugin.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/pluginclass.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/port.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/query.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/scalepoint.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/state.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/ui.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/util.c
|
||||
${LIB_SRC_DIRECTORY}lv2/lilv/src/world.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lilv/src/zix/tree.c #see sord source.
|
||||
def_vars()
|
||||
|
||||
#${LIB_SRC_DIRECTORY}lv2/lilv/test/lilv_test.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lilv/test/test_plugin.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lilv/utils/lilv-bench.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lilv/utils/lv2bench.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lilv/utils/lv2info.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lilv/utils/lv2ls.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lv2/lv2/lv2plug.in/ns/ext/atom/atom-test.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lv2/plugins/eg-amp.lv2/amp.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lv2/plugins/eg-fifths.lv2/fifths.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lv2/plugins/eg-metro.lv2/metro.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lv2/plugins/eg-midigate.lv2/midigate.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lv2/plugins/eg-sampler.lv2/sampler.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lv2/plugins/eg-sampler.lv2/sampler_ui.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lv2/plugins/eg-scope.lv2/examploscope.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/lv2/plugins/eg-scope.lv2/examploscope_ui.c
|
||||
${LIB_SRC_DIRECTORY}lv2/serd/src/env.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/serd/src/node.c
|
||||
${LIB_SRC_DIRECTORY}lv2/serd/src/reader.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/serd/src/serdi.c
|
||||
${LIB_SRC_DIRECTORY}lv2/serd/src/serdnode.c
|
||||
${LIB_SRC_DIRECTORY}lv2/serd/src/string.c
|
||||
${LIB_SRC_DIRECTORY}lv2/serd/src/uri.c
|
||||
${LIB_SRC_DIRECTORY}lv2/serd/src/writer.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/serd/tests/serd_test.c
|
||||
${LIB_SRC_DIRECTORY}lv2/sord/src/sord.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/sord/src/sordi.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/sord/src/sord_test.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/sord/src/sord_validate.c
|
||||
${LIB_SRC_DIRECTORY}lv2/sord/src/syntax.c
|
||||
${LIB_SRC_DIRECTORY}lv2/sord/src/zix/digest.c
|
||||
${LIB_SRC_DIRECTORY}lv2/sord/src/zix/hash.c
|
||||
${LIB_SRC_DIRECTORY}lv2/sord/src/zix/tree.c
|
||||
${LIB_SRC_DIRECTORY}lv2/sratom/src/sratom.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/sratom/tests/sratom_test.c
|
||||
${LIB_SRC_DIRECTORY}lv2/suil/src/host.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/suil/src/instance.c
|
||||
${LIB_SRC_DIRECTORY}lv2/suil/src/suil_instance.c
|
||||
#${LIB_SRC_DIRECTORY}lv2/suil/src/x11_in_gtk2.c
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
|
||||
# lilv
|
||||
|
||||
${TARGET_ROOT}/lilv/src/collections.c
|
||||
${TARGET_ROOT}/lilv/src/instance.c
|
||||
${TARGET_ROOT}/lilv/src/lib.c
|
||||
${TARGET_ROOT}/lilv/src/node.c
|
||||
${TARGET_ROOT}/lilv/src/plugin.c
|
||||
${TARGET_ROOT}/lilv/src/pluginclass.c
|
||||
${TARGET_ROOT}/lilv/src/port.c
|
||||
${TARGET_ROOT}/lilv/src/query.c
|
||||
${TARGET_ROOT}/lilv/src/scalepoint.c
|
||||
${TARGET_ROOT}/lilv/src/state.c
|
||||
${TARGET_ROOT}/lilv/src/ui.c
|
||||
${TARGET_ROOT}/lilv/src/util.c
|
||||
${TARGET_ROOT}/lilv/src/world.c
|
||||
${TARGET_ROOT}/lilv/src/zix/tree.c
|
||||
|
||||
# serd
|
||||
|
||||
${TARGET_ROOT}/serd/src/byte_source.c
|
||||
${TARGET_ROOT}/serd/src/env.c
|
||||
${TARGET_ROOT}/serd/src/n3.c
|
||||
${TARGET_ROOT}/serd/src/node.c
|
||||
${TARGET_ROOT}/serd/src/reader.c
|
||||
${TARGET_ROOT}/serd/src/serdi.c
|
||||
${TARGET_ROOT}/serd/src/string.c
|
||||
${TARGET_ROOT}/serd/src/uri.c
|
||||
${TARGET_ROOT}/serd/src/writer.c
|
||||
|
||||
# sord
|
||||
|
||||
${TARGET_ROOT}/sord/src/sord.c
|
||||
${TARGET_ROOT}/sord/src/sord_validate.c
|
||||
${TARGET_ROOT}/sord/src/sordi.c
|
||||
${TARGET_ROOT}/sord/src/syntax.c
|
||||
${TARGET_ROOT}/sord/src/zix/btree.c
|
||||
${TARGET_ROOT}/sord/src/zix/digest.c
|
||||
${TARGET_ROOT}/sord/src/zix/hash.c
|
||||
|
||||
# sratom
|
||||
|
||||
${TARGET_ROOT}/sratom/src/sratom.c
|
||||
|
||||
# suil
|
||||
|
||||
${TARGET_ROOT}/suil/src/host.c
|
||||
${TARGET_ROOT}/suil/src/instance.c
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
-Dinline=__inline # Not needed in non CMake version.
|
||||
-DHAVE_FMAX
|
||||
-DLILV_INTERNAL
|
||||
-D_DEBUG
|
||||
)
|
||||
if( NOT MSVC OR MSVC_VERSION LESS 1900 )
|
||||
add_definitions(-Dsnprintf=_snprintf)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${_PRVDIR}
|
||||
${TARGET_ROOT}/lilv/src
|
||||
${TARGET_ROOT}/lilv/src/zix
|
||||
${TARGET_ROOT}/serd/src
|
||||
${TARGET_ROOT}/sord/src
|
||||
${TARGET_ROOT}/sord/src/zix
|
||||
${TARGET_ROOT}/sratom/src
|
||||
${TARGET_ROOT}/suil/src
|
||||
PUBLIC
|
||||
${_PUBDIR}
|
||||
${TARGET_ROOT}/lv2
|
||||
${TARGET_ROOT}/lilv
|
||||
${TARGET_ROOT}/serd
|
||||
${TARGET_ROOT}/sord
|
||||
${TARGET_ROOT}/sratom
|
||||
${TARGET_ROOT}/suil
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
SUIL_INTERNAL
|
||||
)
|
||||
|
||||
list( APPEND HEADERS
|
||||
|
||||
# lv2
|
||||
|
||||
${TARGET_ROOT}/lv2/lv2/atom/atom.h
|
||||
${TARGET_ROOT}/lv2/lv2/atom/forge.h
|
||||
${TARGET_ROOT}/lv2/lv2/atom/util.h
|
||||
${TARGET_ROOT}/lv2/lv2/buf-size/buf-size.h
|
||||
${TARGET_ROOT}/lv2/lv2/core/attributes.h
|
||||
${TARGET_ROOT}/lv2/lv2/core/lv2.h
|
||||
${TARGET_ROOT}/lv2/lv2/core/lv2_util.h
|
||||
${TARGET_ROOT}/lv2/lv2/data-access/data-access.h
|
||||
${TARGET_ROOT}/lv2/lv2/dynmanifest/dynmanifest.h
|
||||
${TARGET_ROOT}/lv2/lv2/event/event-helpers.h
|
||||
${TARGET_ROOT}/lv2/lv2/event/event.h
|
||||
${TARGET_ROOT}/lv2/lv2/instance-access/instance-access.h
|
||||
${TARGET_ROOT}/lv2/lv2/log/log.h
|
||||
${TARGET_ROOT}/lv2/lv2/log/logger.h
|
||||
${TARGET_ROOT}/lv2/lv2/midi/midi.h
|
||||
${TARGET_ROOT}/lv2/lv2/morph/morph.h
|
||||
${TARGET_ROOT}/lv2/lv2/options/options.h
|
||||
${TARGET_ROOT}/lv2/lv2/parameters/parameters.h
|
||||
${TARGET_ROOT}/lv2/lv2/patch/patch.h
|
||||
${TARGET_ROOT}/lv2/lv2/port-groups/port-groups.h
|
||||
${TARGET_ROOT}/lv2/lv2/port-props/port-props.h
|
||||
${TARGET_ROOT}/lv2/lv2/presets/presets.h
|
||||
${TARGET_ROOT}/lv2/lv2/resize-port/resize-port.h
|
||||
${TARGET_ROOT}/lv2/lv2/state/state.h
|
||||
${TARGET_ROOT}/lv2/lv2/time/time.h
|
||||
${TARGET_ROOT}/lv2/lv2/ui/ui.h
|
||||
${TARGET_ROOT}/lv2/lv2/units/units.h
|
||||
${TARGET_ROOT}/lv2/lv2/uri-map/uri-map.h
|
||||
${TARGET_ROOT}/lv2/lv2/urid/urid.h
|
||||
${TARGET_ROOT}/lv2/lv2/worker/worker.h
|
||||
)
|
||||
|
||||
set( src "${TARGET_ROOT}/lv2" )
|
||||
set( dst "${_PUBDIR}" )
|
||||
set( ns "${dst}/lv2/lv2plug.in/ns" )
|
||||
set( stamp "${_INTDIR}/.stamp.lv2" )
|
||||
|
||||
execute_process(
|
||||
COMMAND
|
||||
"${CMAKE_COMMAND}" -E make_directory "${ns}"
|
||||
)
|
||||
|
||||
execute_process(
|
||||
COMMAND
|
||||
"${CMAKE_COMMAND}" -E create_symlink "${src}/lv2/core/lv2.h" "${dst}/lv2.h"
|
||||
)
|
||||
|
||||
execute_process(
|
||||
COMMAND
|
||||
"${CMAKE_COMMAND}" -E create_symlink "${src}/lv2" "${ns}/ext"
|
||||
)
|
||||
|
||||
execute_process(
|
||||
COMMAND
|
||||
"${CMAKE_COMMAND}" -E create_symlink "${src}/lv2" "${ns}/extensions"
|
||||
)
|
||||
|
||||
execute_process(
|
||||
COMMAND
|
||||
"${CMAKE_COMMAND}" -E create_symlink "${src}/lv2/core" "${ns}/lv2core"
|
||||
)
|
||||
|
||||
set( LILV_VERSION "0.24.4" )
|
||||
set( SERD_VERSION "0.30.2" )
|
||||
set( SORD_VERSION "0.16.4" )
|
||||
set( SRATOM_VERSION "0.6.4" )
|
||||
set( SUIL_VERSION "0.10.6" )
|
||||
|
||||
set( HAVE_LV2 1 )
|
||||
set( HAVE_SERD 1 )
|
||||
set( HAVE_SORD 1 )
|
||||
set( HAVE_SRATOM 1 )
|
||||
|
||||
macro( bld name packages define sources )
|
||||
set( libs )
|
||||
set( missing )
|
||||
foreach( pkg ${packages} )
|
||||
if( NOT "${${pkg}_FOUND}" )
|
||||
set( missing ON )
|
||||
break()
|
||||
endif()
|
||||
|
||||
list( APPEND libs PRIVATE
|
||||
"PkgConfig::${pkg}"
|
||||
)
|
||||
endforeach()
|
||||
|
||||
if( NOT missing )
|
||||
|
||||
list( APPEND DEFINES
|
||||
# PUBLIC
|
||||
PRIVATE
|
||||
${define}
|
||||
)
|
||||
|
||||
add_library( ${name} SHARED "${sources}" )
|
||||
set_target_properties( ${name} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${_MODDIR} )
|
||||
add_dependencies( ${TARGET} ${name} )
|
||||
organize_source( "${TARGET_ROOT}" "" "${sources}" )
|
||||
target_compile_definitions( ${name} PRIVATE SUIL_SHARED ${DEFINES} )
|
||||
target_include_directories( ${name} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${name} PRIVATE ${libs} )
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
if( WIN32 )
|
||||
set( LILV_PATH_SEP ";" )
|
||||
set( LILV_DIR_SEP "\\\\" )
|
||||
set( LILV_DEFAULT_LV2_PATH "%APPDATA%\\LV2;%COMMONPROGRAMFILES%\\LV2" )
|
||||
|
||||
set( SUIL_MODULE_DIR "C:\\Windows\\System32" )
|
||||
set( SUIL_DIR_SEP "\\\\" )
|
||||
set( SUIL_GTK2_LIB_NAME "libgtk-x11-2.0.so.0" )
|
||||
set( SUIL_GTK3_LIB_NAME "libgtk-x11-3.0.so.0" )
|
||||
set( SUIL_MODULE_PREFIX "" )
|
||||
set( SUIL_MODULE_EXT ".dll" )
|
||||
elseif( APPLE )
|
||||
set( LILV_PATH_SEP ":" )
|
||||
set( LILV_DIR_SEP "/" )
|
||||
set( LILV_DEFAULT_LV2_PATH "~/Library/Audio/Plug-Ins/LV2:~/.lv2:/usr/local/lib/lv2:/usr/lib/lv2:/Library/Audio/Plug-Ins/LV2" )
|
||||
|
||||
set( SUIL_MODULE_DIR "/usr/local/lib/suil-0" )
|
||||
set( SUIL_DIR_SEP "/" )
|
||||
set( SUIL_GTK2_LIB_NAME "libgtk-x11-2.0.so.0" )
|
||||
set( SUIL_GTK3_LIB_NAME "libgtk-x11-3.0.so.0" )
|
||||
set( SUIL_MODULE_PREFIX "lib" )
|
||||
set( SUIL_MODULE_EXT ".dylib" )
|
||||
elseif( UNIX )
|
||||
set( LILV_PATH_SEP ":" )
|
||||
set( LILV_DIR_SEP "/" )
|
||||
set( LILV_DEFAULT_LV2_PATH "~/.lv2:/usr/lib/lv2:/usr/local/lib/lv2" )
|
||||
|
||||
set( SUIL_MODULE_DIR "/usr/local/lib/suil-0" )
|
||||
set( SUIL_DIR_SEP "/" )
|
||||
set( SUIL_GTK2_LIB_NAME "libgtk-x11-2.0.so.0" )
|
||||
set( SUIL_GTK3_LIB_NAME "libgtk-x11-3.0.so.0" )
|
||||
set( SUIL_MODULE_PREFIX "lib" )
|
||||
set( SUIL_MODULE_EXT ".so" )
|
||||
|
||||
pkg_check_modules( X11 IMPORTED_TARGET "x11" )
|
||||
pkg_check_modules( GTK2 IMPORTED_TARGET "gtk+-2.0" )
|
||||
pkg_check_modules( GTK3 IMPORTED_TARGET "gtk+-3.0" )
|
||||
pkg_check_modules( GTK2X11 IMPORTED_TARGET "gtk+-x11-2.0" )
|
||||
pkg_check_modules( GTK3X11 IMPORTED_TARGET "gtk+-x11-3.0" )
|
||||
pkg_check_modules( QT4 IMPORTED_TARGET "QtGui >= 4.4.0" )
|
||||
pkg_check_modules( QT5 IMPORTED_TARGET "Qt5Widgets >= 5.1.0" )
|
||||
|
||||
bld( "suil_x11"
|
||||
"X11"
|
||||
"SUIL_WITH_X11"
|
||||
"${TARGET_ROOT}/suil/src/x11.c" )
|
||||
bld( "suil_x11_in_gtk2"
|
||||
"X11;GTK2X11"
|
||||
"SUIL_WITH_X11_IN_GTK2"
|
||||
"${TARGET_ROOT}/suil/src/x11_in_gtk2.c" )
|
||||
bld( "suil_x11_in_gtk3"
|
||||
"X11;GTK3X11"
|
||||
"SUIL_WITH_X11_IN_GTK3"
|
||||
"${TARGET_ROOT}/suil/src/x11_in_gtk3.c" )
|
||||
bld( "suil_qt4_in_gtk2"
|
||||
"QT4;GTK2"
|
||||
"SUIL_WITH_QT4_IN_GTK2"
|
||||
"${TARGET_ROOT}/suil/src/qt4_in_gtk2.cpp" )
|
||||
bld( "suil_qt5_in_gtk2"
|
||||
"QT5;GTK2"
|
||||
"SUIL_WITH_QT5_IN_GTK2"
|
||||
"${TARGET_ROOT}/suil/src/qt5_in_gtk.cpp" )
|
||||
bld( "suil_qt5_in_gtk3"
|
||||
"QT5;GTK3"
|
||||
"SUIL_WITH_QT5_IN_GTK3"
|
||||
"${TARGET_ROOT}/suil/src/qt5_in_gtk.cpp" )
|
||||
endif()
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
add_compile_options(/TP)
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${TARGET_SOURCE}/windows
|
||||
${TARGET_SOURCE}/sord/src
|
||||
${TARGET_SOURCE}/lilv
|
||||
${TARGET_SOURCE}/lv2
|
||||
${TARGET_SOURCE}/serd
|
||||
${TARGET_SOURCE}/sord
|
||||
${TARGET_SOURCE}/sratom
|
||||
${TARGET_SOURCE}/suil
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
configure_file( lilv_config.h.in "${_PRVDIR}/lilv_config.h" )
|
||||
configure_file( serd_config.h.in "${_PRVDIR}/serd_config.h" )
|
||||
configure_file( sord_config.h.in "${_PRVDIR}/sord_config.h" )
|
||||
configure_file( sratom_config.h.in "${_PRVDIR}/sratom_config.h" )
|
||||
configure_file( suil_config.h.in "${_PRVDIR}/suil_config.h" )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES} ${HEADERS}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} ${HEADERS} )# ${stamp} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
/* WARNING! All changes made to this file will be lost! */
|
||||
|
||||
#ifndef W_LILV_CONFIG_H_WAF
|
||||
#define W_LILV_CONFIG_H_WAF
|
||||
|
||||
#cmakedefine LILV_CXX 1
|
||||
#define PYTHONDIR "@PYTHONDIR@"
|
||||
#define PYTHONARCHDIR "@PYTHONARCHDIR@"
|
||||
#define LILV_VERSION "@LILV_VERSION@"
|
||||
#cmakedefine HAVE_LV2 1
|
||||
#cmakedefine HAVE_SERD 1
|
||||
#cmakedefine HAVE_SORD 1
|
||||
#cmakedefine HAVE_SRATOM 1
|
||||
#cmakedefine HAVE_SNDFILE 1
|
||||
#cmakedefine HAVE_LSTAT 1
|
||||
#cmakedefine HAVE_FLOCK 1
|
||||
#cmakedefine HAVE_FILENO 1
|
||||
#cmakedefine HAVE_CLOCK_GETTIME 1
|
||||
#cmakedefine HAVE_LIBDL 1
|
||||
#define LILV_PATH_SEP "@LILV_PATH_SEP@"
|
||||
#define LILV_DIR_SEP "@LILV_DIR_SEP@"
|
||||
#define LILV_DEFAULT_LV2_PATH "@LILV_DEFAULT_LV2_PATH@"
|
||||
|
||||
#endif /* W_LILV_CONFIG_H_WAF */
|
|
@ -0,0 +1,12 @@
|
|||
/* WARNING! All changes made to this file will be lost! */
|
||||
|
||||
#ifndef W_SERD_CONFIG_H_WAF
|
||||
#define W_SERD_CONFIG_H_WAF
|
||||
|
||||
#cmakedefine HAVE_GCOV 1
|
||||
#define SERD_VERSION "@SERD_VERSION@"
|
||||
#cmakedefine HAVE_FILENO 1
|
||||
#cmakedefine HAVE_POSIX_FADVISE 1
|
||||
#cmakedefine HAVE_POSIX_MEMALIGN 1
|
||||
|
||||
#endif /* W_SERD_CONFIG_H_WAF */
|
|
@ -0,0 +1,11 @@
|
|||
/* WARNING! All changes made to this file will be lost! */
|
||||
|
||||
#ifndef W_SORD_CONFIG_H_WAF
|
||||
#define W_SORD_CONFIG_H_WAF
|
||||
|
||||
#cmakedefine HAVE_GCOV 1
|
||||
#define SORD_VERSION "@SORD_VERSION@"
|
||||
#cmakedefine HAVE_SERD 1
|
||||
#cmakedefine HAVE_PCRE 1
|
||||
|
||||
#endif /* W_SORD_CONFIG_H_WAF */
|
|
@ -0,0 +1,11 @@
|
|||
/* WARNING! All changes made to this file will be lost! */
|
||||
|
||||
#ifndef W_SRATOM_CONFIG_H_WAF
|
||||
#define W_SRATOM_CONFIG_H_WAF
|
||||
|
||||
#cmakedefine HAVE_LV2 1
|
||||
#cmakedefine HAVE_SERD 1
|
||||
#cmakedefine HAVE_SORD 1
|
||||
#define SRATOM_VERSION "@SRATOM_VERSION@"
|
||||
|
||||
#endif /* W_SRATOM_CONFIG_H_WAF */
|
|
@ -0,0 +1,34 @@
|
|||
/* WARNING! All changes made to this file will be lost! */
|
||||
|
||||
#ifndef W_SUIL_CONFIG_H_WAF
|
||||
#define W_SUIL_CONFIG_H_WAF
|
||||
|
||||
#define SUIL_VERSION "@SUIL_VERSION@"
|
||||
#cmakedefine HAVE_LV2 1
|
||||
#cmakedefine HAVE_X11 1
|
||||
#cmakedefine HAVE_GTK2 1
|
||||
#cmakedefine HAVE_GTK2_X11 1
|
||||
#cmakedefine HAVE_GTK3 1
|
||||
#cmakedefine HAVE_GTK3_X11 1
|
||||
#cmakedefine HAVE_QT4 1
|
||||
#cmakedefine HAVE_QT5 1
|
||||
#cmakedefine HAVE_QMACCOCOAVIEWCONTAINER 1
|
||||
#cmakedefine HAVE_LIBDL 1
|
||||
#define SUIL_MODULE_DIR "@SUIL_MODULE_DIR@"
|
||||
#define SUIL_DIR_SEP "@SUIL_DIR_SEP@"
|
||||
#define SUIL_GTK2_LIB_NAME "@SUIL_GTK2_LIB_NAME@"
|
||||
#define SUIL_GTK3_LIB_NAME "@SUIL_GTK3_LIB_NAME@"
|
||||
#define SUIL_MODULE_PREFIX "@SUIL_MODULE_PREFIX@"
|
||||
#define SUIL_MODULE_EXT "@SUIL_MODULE_EXT@"
|
||||
#cmakedefine SUIL_WITH_QT4_IN_GTK2 1
|
||||
#cmakedefine SUIL_WITH_GTK2_IN_QT4 1
|
||||
#cmakedefine SUIL_WITH_GTK2_IN_QT5 1
|
||||
#cmakedefine SUIL_WITH_QT5_IN_GTK2 1
|
||||
#cmakedefine SUIL_WITH_X11_IN_GTK2 1
|
||||
#cmakedefine SUIL_WITH_X11_IN_GTK3 1
|
||||
#cmakedefine SUIL_WITH_QT5_IN_GTK3 1
|
||||
#cmakedefine SUIL_WITH_X11_IN_QT4 1
|
||||
#cmakedefine SUIL_WITH_X11_IN_QT5 1
|
||||
#cmakedefine SUIL_WITH_X11 1
|
||||
|
||||
#endif /* W_SUIL_CONFIG_H_WAF */
|
|
@ -1,55 +1,149 @@
|
|||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
set(TARGET portaudio-v19)
|
||||
set(TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET})
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
add_subdirectory("${TARGET_SOURCE}" "${CMAKE_CURRENT_BINARY_DIR}/portaudio" EXCLUDE_FROM_ALL)
|
||||
target_include_directories(portaudio_static INTERFACE "${TARGET_SOURCE}/include")
|
||||
set_target_properties(portaudio_static PROPERTIES OSX_ARCHITECTURES "")
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/common/pa_allocation.c
|
||||
${TARGET_ROOT}/src/common/pa_converters.c
|
||||
${TARGET_ROOT}/src/common/pa_cpuload.c
|
||||
${TARGET_ROOT}/src/common/pa_debugprint.c
|
||||
${TARGET_ROOT}/src/common/pa_dither.c
|
||||
${TARGET_ROOT}/src/common/pa_dynload.c
|
||||
${TARGET_ROOT}/src/common/pa_front.c
|
||||
${TARGET_ROOT}/src/common/pa_process.c
|
||||
${TARGET_ROOT}/src/common/pa_ringbuffer.c
|
||||
${TARGET_ROOT}/src/common/pa_stream.c
|
||||
${TARGET_ROOT}/src/common/pa_trace.c
|
||||
)
|
||||
|
||||
if(NOT UNIX)
|
||||
return()
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/common
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/include
|
||||
)
|
||||
|
||||
if( WIN32 )
|
||||
list( APPEND DEFINES
|
||||
PUBLIC
|
||||
PA_USE_DS=1
|
||||
PA_USE_WASAPI=1
|
||||
PA_USE_WMME=1
|
||||
)
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/hostapi/dsound/pa_win_ds.c
|
||||
${TARGET_ROOT}/src/hostapi/dsound/pa_win_ds_dynlink.c
|
||||
${TARGET_ROOT}/src/hostapi/wasapi/pa_win_wasapi.c
|
||||
${TARGET_ROOT}/src/hostapi/wmme/pa_win_wmme.c
|
||||
${TARGET_ROOT}/src/os/win/pa_win_coinitialize.c
|
||||
${TARGET_ROOT}/src/os/win/pa_win_hostapis.c
|
||||
${TARGET_ROOT}/src/os/win/pa_win_util.c
|
||||
${TARGET_ROOT}/src/os/win/pa_win_waveformat.c
|
||||
${TARGET_ROOT}/src/os/win/pa_win_wdmks_utils.c
|
||||
${TARGET_ROOT}/src/os/win/pa_x86_plain_converters.c
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/hostapi/dsound
|
||||
${TARGET_ROOT}/src/os/win
|
||||
)
|
||||
|
||||
elseif( APPLE )
|
||||
list( APPEND DEFINES
|
||||
PUBLIC
|
||||
PA_USE_COREAUDIO=1
|
||||
)
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/hostapi/coreaudio/pa_mac_core.c
|
||||
${TARGET_ROOT}/src/hostapi/coreaudio/pa_mac_core_blocking.c
|
||||
${TARGET_ROOT}/src/hostapi/coreaudio/pa_mac_core_utilities.c
|
||||
${TARGET_ROOT}/src/os/unix/pa_unix_hostapis.c
|
||||
${TARGET_ROOT}/src/os/unix/pa_unix_util.c
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/hostapi/coreaudio
|
||||
${TARGET_ROOT}/src/os/unix
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
INTERFACE
|
||||
"-framework CoreAudio"
|
||||
)
|
||||
elseif( UNIX )
|
||||
find_package(ALSA)
|
||||
if( ALSA_FOUND )
|
||||
list( APPEND DEFINES
|
||||
PUBLIC
|
||||
PA_USE_ALSA=1
|
||||
)
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/hostapi/alsa/pa_linux_alsa.c
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${ALSA_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
INTERFACE
|
||||
${ALSA_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/os/unix/pa_unix_hostapis.c
|
||||
${TARGET_ROOT}/src/os/unix/pa_unix_util.c
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/os/unix
|
||||
)
|
||||
endif()
|
||||
|
||||
include(CheckIncludeFile)
|
||||
set( CMAKE_MODULE_PATH ${TARGET_ROOT}/cmake_support )
|
||||
|
||||
target_include_directories(portaudio_static PRIVATE
|
||||
"${TARGET_SOURCE}/src/os/unix/")
|
||||
target_sources(portaudio_static PRIVATE
|
||||
"${TARGET_SOURCE}/src/os/unix/pa_unix_hostapis.c"
|
||||
"${TARGET_SOURCE}/src/os/unix/pa_unix_util.c")
|
||||
find_package(Jack)
|
||||
if( JACK_FOUND )
|
||||
list( APPEND DEFINES
|
||||
PUBLIC
|
||||
PA_USE_JACK=1
|
||||
)
|
||||
|
||||
if(APPLE)
|
||||
target_compile_definitions(portaudio_static PUBLIC PA_USE_COREAUDIO=1)
|
||||
target_sources(portaudio_static PRIVATE
|
||||
"${TARGET_SOURCE}/src/hostapi/coreaudio/pa_mac_core.c"
|
||||
"${TARGET_SOURCE}/src/hostapi/coreaudio/pa_mac_core_utilities.c"
|
||||
"${TARGET_SOURCE}/src/hostapi/coreaudio/pa_mac_core_blocking.c"
|
||||
"${TARGET_SOURCE}/src/common/pa_ringbuffer.c")
|
||||
else()
|
||||
option(PA_WITH_ALSA "Enable support for ALSA" OFF)
|
||||
if(PA_WITH_ALSA)
|
||||
find_package(ALSA REQUIRED)
|
||||
target_compile_definitions(portaudio_static PUBLIC PA_USE_ALSA=1)
|
||||
target_sources(portaudio_static PRIVATE
|
||||
"${TARGET_SOURCE}/src/hostapi/alsa/pa_linux_alsa.c")
|
||||
target_link_libraries(portaudio_static PUBLIC ALSA::ALSA)
|
||||
endif()
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/hostapi/jack/pa_jack.c
|
||||
${TARGET_ROOT}/src/hostapi/jack/pa_jack_dynload.c
|
||||
)
|
||||
|
||||
option(PA_WITH_OSS "Enable support for OSS" OFF)
|
||||
if(PA_WITH_OSS)
|
||||
check_include_file(sys/soundcard.h HAVE_SYS_SOUNDCARD_H)
|
||||
check_include_file(linux/soundcard.h HAVE_LINUX_SOUNDCARD_H)
|
||||
check_include_file(machine/soundcard.h HAVE_MACHINE_SOUNDCARD_H)
|
||||
if(NOT (HAVE_SYS_SOUNDCARD_H OR HAVE_LINUX_SOUNDCARD_H OR HAVE_MACHINE_SOUNDCARD_H))
|
||||
message(FATAL_ERROR "Couldn't find OSS")
|
||||
endif()
|
||||
target_compile_definitions(portaudio_static PUBLIC
|
||||
PA_USE_OSS=1
|
||||
$<$<BOOL:${HAVE_SYS_SOUNDCARD_H}>:HAVE_SYS_SOUNDCARD_H>
|
||||
$<$<BOOL:${HAVE_LINUX_SOUNDCARD_H}>:HAVE_LINUX_SOUNDCARD_H>
|
||||
$<$<BOOL:${HAVE_MACHINE_SOUNDCARD_H}>:HAVE_MACHINE_SOUNDCARD_H>)
|
||||
target_sources(portaudio_static PRIVATE
|
||||
"${TARGET_SOURCE}/src/hostapi/oss/pa_unix_oss.c")
|
||||
endif()
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/hostapi/jack
|
||||
${JACK_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
INTERFACE
|
||||
${JACK_LIBRARIES}
|
||||
)
|
||||
endif()
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -1,10 +1,53 @@
|
|||
cmake_minimum_required(VERSION 2.8.11)
|
||||
|
||||
set(TARGET portmidi)
|
||||
set(TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET})
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/pm_common/portmidi.c
|
||||
${TARGET_ROOT}/pm_common/pmutil.c
|
||||
${TARGET_ROOT}/porttime/porttime.c
|
||||
$<$<PLATFORM_ID:Windows>:${TARGET_ROOT}/pm_win/pmwin.c>
|
||||
$<$<PLATFORM_ID:Windows>:${TARGET_ROOT}/pm_win/pmwinmm.c>
|
||||
$<$<PLATFORM_ID:Windows>:${TARGET_ROOT}/porttime/ptwinmm.c>
|
||||
$<$<PLATFORM_ID:Darwin>:${TARGET_ROOT}/pm_mac/finddefault.c>
|
||||
$<$<PLATFORM_ID:Darwin>:${TARGET_ROOT}/pm_mac/pmmac.c>
|
||||
$<$<PLATFORM_ID:Darwin>:${TARGET_ROOT}/pm_mac/pmmacosxcm.c>
|
||||
$<$<PLATFORM_ID:Darwin>:${TARGET_ROOT}/pm_mac/readbinaryplist.c>
|
||||
$<$<PLATFORM_ID:Darwin>:${TARGET_ROOT}/porttime/ptmacosx_mach.c>
|
||||
$<$<PLATFORM_ID:Linux>:${TARGET_ROOT}/pm_linux/finddefault.c>
|
||||
$<$<PLATFORM_ID:Linux>:${TARGET_ROOT}/pm_linux/pmlinux.c>
|
||||
$<$<PLATFORM_ID:Linux>:${TARGET_ROOT}/pm_linux/pmlinuxalsa.c>
|
||||
$<$<PLATFORM_ID:Linux>:${TARGET_ROOT}/porttime/ptlinux.c>
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/pm_common
|
||||
${TARGET_ROOT}/porttime
|
||||
$<$<PLATFORM_ID:Windows>:${TARGET_ROOT}/pm_win>
|
||||
$<$<PLATFORM_ID:Linux>:${TARGET_ROOT}/pm_linux>
|
||||
$<$<PLATFORM_ID:Darwin>:${TARGET_ROOT}/pm_win>
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
$<$<PLATFORM_ID:Linux>:PMALSA=1>
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<PLATFORM_ID:Linux>:
|
||||
-Wno-pointer-to-int-cast
|
||||
-Wno-int-to-pointer-cast
|
||||
-Wno-implicit-function-declaration
|
||||
>
|
||||
)
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
set(CMAKE_CACHEFILE_DIR ${CMAKE_BINARY_DIR})
|
||||
add_subdirectory( "${TARGET_SOURCE}" "${CMAKE_CURRENT_BINARY_DIR}/${TARGET}" EXCLUDE_FROM_ALL )
|
||||
set_target_properties(portmidi-static PROPERTIES
|
||||
OSX_ARCHITECTURES ""
|
||||
OUTPUT_NAME ${TARGET})
|
||||
|
|
|
@ -1,32 +1,48 @@
|
|||
#directory cmake-proxies/portmixer
|
||||
set(TARGET portmixer)
|
||||
set(TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET})
|
||||
project(${TARGET})
|
||||
|
||||
include(CheckIncludeFiles)
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
get_target_property(PA_DEFINITIONS portaudio_static INTERFACE_COMPILE_DEFINITIONS)
|
||||
get_target_property( PA_DEFS portaudio-v19 COMPILE_DEFINITIONS )
|
||||
string( REPLACE ";" " " PA_DEFS "${PA_DEFS}" )
|
||||
|
||||
add_library(${TARGET} STATIC
|
||||
"${TARGET_SOURCE}/src/px_mixer.c"
|
||||
"$<$<BOOL:${WIN32}>:${TARGET_SOURCE}/src/px_win_common.c>"
|
||||
"$<$<BOOL:${WIN32}>:${TARGET_SOURCE}/src/px_win_ds.c>"
|
||||
"$<$<BOOL:${WIN32}>:${TARGET_SOURCE}/src/px_win_endpoint.c>"
|
||||
"$<$<BOOL:${WIN32}>:${TARGET_SOURCE}/src/px_win_wasapi.c>"
|
||||
"$<$<BOOL:${WIN32}>:${TARGET_SOURCE}/src/px_win_wmme.c>"
|
||||
"$<$<IN_LIST:PA_USE_ALSA=1,${PA_DEFINITIONS}>:${TARGET_SOURCE}/src/px_linux_alsa.c>"
|
||||
"$<$<IN_LIST:PA_USE_OSS=1,${PA_DEFINITIONS}>:${TARGET_SOURCE}/src/px_unix_oss.c>"
|
||||
"$<$<IN_LIST:PA_USE_COREAUDIO=1,${PA_DEFINITIONS}>:${TARGET_SOURCE}/src/px_mac_coreaudio.c>")
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src/px_mixer.c
|
||||
$<$<PLATFORM_ID:Windows>:${TARGET_ROOT}/src/px_win_common.c>
|
||||
$<$<IN_LIST:PA_USE_DS=1,${PA_DEFS}>:${TARGET_ROOT}/src/px_win_ds.c>
|
||||
$<$<IN_LIST:PA_USE_WASAPI=1,${PA_DEFS}>:${TARGET_ROOT}/src/px_win_wasapi.c>
|
||||
$<$<IN_LIST:PA_USE_WMME=1,${PA_DEFS}>:${TARGET_ROOT}/src/px_win_wmme.c>
|
||||
$<$<IN_LIST:PA_USE_COREAUDIO=1,${PA_DEFS}>:${TARGET_ROOT}/src/px_mac_coreaudio.c>
|
||||
$<$<IN_LIST:PA_USE_ALSA=1,${PA_DEFS}>:${TARGET_ROOT}/src/px_linux_alsa.c>
|
||||
$<$<IN_LIST:PA_USE_OSS=1,${PA_DEFS}>:${TARGET_ROOT}/src/px_unix_oss.c>
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/src
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/include
|
||||
)
|
||||
|
||||
target_compile_definitions(${TARGET} PRIVATE
|
||||
# $<$<BOOL:${WIN32}>:PX_USE_WIN_DSOUND>
|
||||
$<$<BOOL:${WIN32}>:PX_USE_WIN_MME>
|
||||
$<$<BOOL:${WIN32}>:PX_USE_WIN_WASAPI>
|
||||
$<$<IN_LIST:PA_USE_ALSA=1,${PA_DEFINITIONS}>:PX_USE_LINUX_ALSA>
|
||||
$<$<IN_LIST:PA_USE_OSS=1,${PA_DEFINITIONS}>:PX_USE_UNIX_OSS>
|
||||
$<$<IN_LIST:PA_USE_COREAUDIO=1,${PA_DEFINITIONS}>:PX_USE_MAC_COREAUDIO>)
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
$<$<IN_LIST:PA_USE_DS=1,${PA_DEFS}>:PX_USE_WIN_DSOUND=1>
|
||||
$<$<IN_LIST:PA_USE_WASAPI=1,${PA_DEFS}>:PX_USE_WIN_WASAPI=1>
|
||||
$<$<IN_LIST:PA_USE_WMME=1,${PA_DEFS}>:PX_USE_WIN_MME=1>
|
||||
$<$<IN_LIST:PA_USE_COREAUDIO=1,${PA_DEFS}>:PX_USE_MAC_COREAUDIO=1>
|
||||
$<$<IN_LIST:PA_USE_ALSA=1,${PA_DEFS}>:PX_USE_LINUX_ALSA=1>
|
||||
$<$<IN_LIST:PA_USE_OSS=1,${PA_DEFS}>:PX_USE_UNIX_OSS=1>
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
PRIVATE
|
||||
portaudio-v19
|
||||
)
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
target_include_directories(${TARGET} PUBLIC "${TARGET_SOURCE}/include")
|
||||
target_link_libraries(${TARGET} PUBLIC portaudio_static)
|
||||
set_target_properties(${TARGET} PROPERTIES OSX_ARCHITECTURES "")
|
||||
|
|
|
@ -1,31 +1,28 @@
|
|||
#directory cmake-proxies/portsmf
|
||||
set( TARGET portsmf )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
${LIB_SRC_DIRECTORY}portsmf/allegro.cpp
|
||||
${LIB_SRC_DIRECTORY}portsmf/allegrord.cpp
|
||||
${LIB_SRC_DIRECTORY}portsmf/allegroserial.cpp
|
||||
${LIB_SRC_DIRECTORY}portsmf/allegrosmfrd.cpp
|
||||
${LIB_SRC_DIRECTORY}portsmf/allegrosmfwr.cpp
|
||||
${LIB_SRC_DIRECTORY}portsmf/allegrowr.cpp
|
||||
${LIB_SRC_DIRECTORY}portsmf/mfmidi.cpp
|
||||
${LIB_SRC_DIRECTORY}portsmf/strparse.cpp
|
||||
#${LIB_SRC_DIRECTORY}portsmf/trace.cpp
|
||||
#${LIB_SRC_DIRECTORY}portsmf/apps/allegroconvert.cpp
|
||||
#${LIB_SRC_DIRECTORY}portsmf/apps/allegroplay.cpp
|
||||
#${LIB_SRC_DIRECTORY}portsmf/apps/seq2midi.cpp
|
||||
#${LIB_SRC_DIRECTORY}portsmf/portsmf_test/portsmf_test.cpp
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/allegro.cpp
|
||||
${TARGET_ROOT}/allegrord.cpp
|
||||
${TARGET_ROOT}/allegroserial.cpp
|
||||
${TARGET_ROOT}/allegrosmfrd.cpp
|
||||
${TARGET_ROOT}/allegrosmfwr.cpp
|
||||
${TARGET_ROOT}/allegrowr.cpp
|
||||
${TARGET_ROOT}/mfmidi.cpp
|
||||
${TARGET_ROOT}/strparse.cpp
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/include
|
||||
)
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -1,31 +1,55 @@
|
|||
#directory cmake-proxies/sbsms
|
||||
set( TARGET sbsms )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/buffer.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/dBTable.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/fft.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/grain.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/resample.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/sbsms.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/slide.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/sms.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/subband.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/track.cpp
|
||||
${LIB_SRC_DIRECTORY}sbsms/src/trackpoint.cpp
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
-DNDEBUG
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${TARGET_SOURCE}/include
|
||||
${TARGET_SOURCE}/win
|
||||
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
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/private
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/include
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<C_COMPILER_ID:CLANG>:-Wno-enum-compare>
|
||||
$<$<C_COMPILER_ID:GNU>:-Wno-enum-compare>
|
||||
)
|
||||
|
||||
find_package( Threads )
|
||||
if( Threads_FOUND AND CMAKE_USE_PTHREADS_INIT )
|
||||
set( MULTITHREADED 1 )
|
||||
endif()
|
||||
|
||||
if( UNIX )
|
||||
check_cxx_compiler_flag( "-msse" ENABLE_SSE )
|
||||
if( ENABLE_SSE )
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE -msse
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
configure_file( config.h.in private/config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -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@"
|
||||
|
|
@ -1,35 +1,51 @@
|
|||
#directory cmake-proxies/soundtouch
|
||||
set( TARGET soundtouch )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
#${LIB_SRC_DIRECTORY}soundtouch/source/Android-lib/jni/soundtouch-jni.cpp
|
||||
#${LIB_SRC_DIRECTORY}soundtouch/source/SoundStretch/main.cpp
|
||||
#${LIB_SRC_DIRECTORY}soundtouch/source/SoundStretch/RunParameters.cpp
|
||||
#${LIB_SRC_DIRECTORY}soundtouch/source/SoundStretch/WavFile.cpp
|
||||
${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/AAFilter.cpp
|
||||
#${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/BPMDetect.cpp
|
||||
${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/cpu_detect_x86.cpp
|
||||
${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/FIFOSampleBuffer.cpp
|
||||
${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/FIRFilter.cpp
|
||||
${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/mmx_optimized.cpp
|
||||
#${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/PeakFinder.cpp
|
||||
${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/RateTransposer.cpp
|
||||
${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/SoundTouch.cpp
|
||||
${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/sse_optimized.cpp
|
||||
${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouch/TDStretch.cpp
|
||||
#${LIB_SRC_DIRECTORY}soundtouch/source/SoundTouchDLL/SoundTouchDLL.cpp
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${TARGET_SOURCE}/include
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/source/SoundTouch/AAFilter.cpp
|
||||
${TARGET_ROOT}/source/SoundTouch/FIFOSampleBuffer.cpp
|
||||
${TARGET_ROOT}/source/SoundTouch/FIRFilter.cpp
|
||||
${TARGET_ROOT}/source/SoundTouch/mmx_optimized.cpp
|
||||
${TARGET_ROOT}/source/SoundTouch/RateTransposer.cpp
|
||||
${TARGET_ROOT}/source/SoundTouch/SoundTouch.cpp
|
||||
${TARGET_ROOT}/source/SoundTouch/TDStretch.cpp
|
||||
${TARGET_ROOT}/source/SoundTouch/cpu_detect_x86.cpp
|
||||
${TARGET_ROOT}/source/SoundTouch/sse_optimized.cpp
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PUBLIC
|
||||
${CMAKE_CURRENT_BINARY_DIR}/public
|
||||
${TARGET_ROOT}/include
|
||||
)
|
||||
|
||||
|
||||
if( UNIX )
|
||||
check_cxx_compiler_flag( "-mmmx" HAVE_MMX )
|
||||
if( HAVE_MMX )
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
-mmmx
|
||||
)
|
||||
endif()
|
||||
|
||||
check_cxx_compiler_flag( "-msse" HAVE_SSE )
|
||||
if( HAVE_SSE )
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
-msse
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
configure_file( soundtouch_config.h.in public/soundtouch_config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -0,0 +1,75 @@
|
|||
/* include/soundtouch_config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to 1 if you have the <cpuid.h> header file. */
|
||||
#cmakedefine HAVE_CPUID_H 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 to 1 if you have the `m' library (-lm). */
|
||||
#cmakedefine HAVE_LIBM 1
|
||||
|
||||
/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
|
||||
to 0 otherwise. */
|
||||
#cmakedefine HAVE_MALLOC 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 as the return type of signal handlers (`int' or `void'). */
|
||||
#cmakedefine RETSIGTYPE @RETSIGTYPE@
|
||||
|
||||
/* Do not use x86 optimizations */
|
||||
#cmakedefine SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS 1
|
||||
|
||||
/* Use Float as Sample type */
|
||||
#cmakedefine SOUNDTOUCH_FLOAT_SAMPLES 1
|
||||
|
||||
/* Use Integer as Sample type */
|
||||
#cmakedefine SOUNDTOUCH_INTEGER_SAMPLES 1
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION "@VERSION@"
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#cmakedefine const @const@
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#cmakedefine inline @inline@
|
||||
#endif
|
||||
|
||||
/* Define to rpl_malloc if the replacement function should be used. */
|
||||
#cmakedefine malloc @malloc@
|
|
@ -1,44 +1,56 @@
|
|||
#directory cmake-proxies/twolame
|
||||
#UNUSED
|
||||
set( TARGET twolame )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
#${LIB_SRC_DIRECTORY}twolame/frontend/audioin_raw.c
|
||||
#${LIB_SRC_DIRECTORY}twolame/frontend/audioin_sndfile.c
|
||||
#${LIB_SRC_DIRECTORY}twolame/frontend/frontend.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/ath.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/availbits.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/bitbuffer.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/crc.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/dab.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/encode.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/energy.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/fft.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/get_set.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/mem.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/psycho_0.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/psycho_1.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/psycho_2.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/psycho_3.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/psycho_4.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/psycho_n1.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/subband.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/twolame.c
|
||||
${LIB_SRC_DIRECTORY}twolame/libtwolame/util.c
|
||||
#${LIB_SRC_DIRECTORY}twolame/simplefrontend/audio_wave.c
|
||||
#${LIB_SRC_DIRECTORY}twolame/simplefrontend/simplefrontend.c
|
||||
)
|
||||
# This defines the #define on both Windows and Linux.
|
||||
add_definitions(
|
||||
-D_LIB
|
||||
-DLIBTWOLAME_STATIC
|
||||
)
|
||||
add_library( ${TARGET} STATIC ${SOURCES})
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/libtwolame/ath.c
|
||||
${TARGET_ROOT}/libtwolame/availbits.c
|
||||
${TARGET_ROOT}/libtwolame/bitbuffer.c
|
||||
${TARGET_ROOT}/libtwolame/crc.c
|
||||
${TARGET_ROOT}/libtwolame/dab.c
|
||||
${TARGET_ROOT}/libtwolame/encode.c
|
||||
${TARGET_ROOT}/libtwolame/energy.c
|
||||
${TARGET_ROOT}/libtwolame/fft.c
|
||||
${TARGET_ROOT}/libtwolame/get_set.c
|
||||
${TARGET_ROOT}/libtwolame/mem.c
|
||||
${TARGET_ROOT}/libtwolame/psycho_0.c
|
||||
${TARGET_ROOT}/libtwolame/psycho_1.c
|
||||
${TARGET_ROOT}/libtwolame/psycho_2.c
|
||||
${TARGET_ROOT}/libtwolame/psycho_3.c
|
||||
${TARGET_ROOT}/libtwolame/psycho_4.c
|
||||
${TARGET_ROOT}/libtwolame/psycho_n1.c
|
||||
${TARGET_ROOT}/libtwolame/subband.c
|
||||
${TARGET_ROOT}/libtwolame/twolame.c
|
||||
${TARGET_ROOT}/libtwolame/util.c
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} )
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${CMAKE_CURRENT_BINARY_DIR}/private
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/libtwolame
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
LIBTWOLAME_STATIC
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<C_COMPILER_ID:GNU>:-Wno-implicit-function-declaration>
|
||||
)
|
||||
|
||||
set( PACKAGE_BUGREPORT "twolame-discuss@lists.sourceforge.net" )
|
||||
set( PACKAGE_VERSION "0.3.13" )
|
||||
|
||||
configure_file( config.h.in private/config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_compile_features( ${TARGET} PRIVATE ${FEATURES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
||||
|
|
|
@ -0,0 +1,96 @@
|
|||
/* libtwolame/config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define if building universal (internal helper macro) */
|
||||
#cmakedefine AC_APPLE_UNIVERSAL_BUILD 1
|
||||
|
||||
/* Define to 1 if you have the <assert.h> header file. */
|
||||
#cmakedefine HAVE_ASSERT_H 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 to 1 if you have the `m' library (-lm). */
|
||||
#cmakedefine HAVE_LIBM 1
|
||||
|
||||
/* Define to 1 if you have the `mx' library (-lmx). */
|
||||
#cmakedefine HAVE_LIBMX 1
|
||||
|
||||
/* Define to 1 if you have the <malloc.h> header file. */
|
||||
#cmakedefine HAVE_MALLOC_H 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@"
|
||||
|
||||
/* 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@"
|
||||
|
||||
/* The size of `float', as computed by sizeof. */
|
||||
#define SIZEOF_FLOAT @SIZEOF_FLOAT@
|
||||
|
||||
/* The size of `short', as computed by sizeof. */
|
||||
#define SIZEOF_SHORT @SIZEOF_SHORT@
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#cmakedefine STDC_HEADERS 1
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION "@VERSION@"
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#cmakedefine const @const@
|
||||
|
||||
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
||||
calls it, or to nothing if 'inline' is not supported under any name. */
|
||||
#ifndef __cplusplus
|
||||
#cmakedefine inline @inline@
|
||||
#endif
|
|
@ -0,0 +1,109 @@
|
|||
|
||||
add_library( ${TARGET} INTERFACE )
|
||||
|
||||
def_vars()
|
||||
|
||||
set( WXWIN $ENV{WXWIN} )
|
||||
if( "${WXWIN}" STREQUAL "" )
|
||||
set( WXWIN "${_INTDIR}/wxwidgets" )
|
||||
# XXX: Look into importing instead of adding to this project
|
||||
endif()
|
||||
|
||||
if( NOT EXISTS "${WXWIN}" )
|
||||
find_package( Git )
|
||||
if( NOT GIT_FOUND )
|
||||
message( FATAL_ERROR "Git is needed to clone wxWidgets" )
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND
|
||||
${GIT_EXECUTABLE} clone
|
||||
--depth 1
|
||||
--single-branch
|
||||
--recurse-submodules
|
||||
https://github.com/audacity/wxwidgets
|
||||
"${WXWIN}"
|
||||
)
|
||||
endif()
|
||||
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||
# Want accessibility
|
||||
set( wxUSE_ACCESSIBILITY YES )
|
||||
|
||||
# Windows requires it due to missing "#include" directives
|
||||
set( wxBUILD_PRECOMP YES )
|
||||
elseif( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
||||
# Want accessibility
|
||||
set( wxUSE_ACCESSIBILITY YES )
|
||||
|
||||
# Causes problems on OSX, so turn it off
|
||||
set( wxBUILD_PRECOMP NO )
|
||||
elseif( CMAKE_SYSTEM_NAME MATCHES "Linux" )
|
||||
# Doesn't yet have accessbility
|
||||
set( wxUSE_ACCESSIBILITY NO )
|
||||
|
||||
# Linux can go either way, so might as well use it
|
||||
set( wxBUILD_PRECOMP YES )
|
||||
endif()
|
||||
|
||||
# Just to be consistent with Audacity
|
||||
set( wxBUILD_CXX_STANDARD "14" )
|
||||
|
||||
# Pull in wxWidgets
|
||||
add_subdirectory( ${WXWIN} ${WXWIN} )
|
||||
|
||||
# And rearrange the folder structure
|
||||
set_dir_folder( ${WXWIN} "wxWidgets" )
|
||||
|
||||
set( INCLUDES
|
||||
$<$<STREQUAL:"${wxUSE_ZLIB}","builtin">:${WXWIN}/src/zlib>
|
||||
)
|
||||
|
||||
set( DEFINES
|
||||
WXUSINGDLL
|
||||
)
|
||||
|
||||
set( LIBRARIES
|
||||
adv
|
||||
base
|
||||
core
|
||||
html
|
||||
net
|
||||
qa
|
||||
xml
|
||||
$<$<STREQUAL:"${wxUSE_EXPAT}","builtin">:wxexpat>
|
||||
$<$<STREQUAL:"${wxUSE_LIBJPEG}","builtin">:wxjpeg>
|
||||
$<$<STREQUAL:"${wxUSE_LIBPNG}","builtin">:wxpng>
|
||||
$<$<STREQUAL:"${wxUSE_LIBTIFF}","builtin">:wxtiff>
|
||||
$<$<STREQUAL:"${wxUSE_REGEX}","builtin">:wxregex>
|
||||
$<$<STREQUAL:"${wxUSE_ZLIB}","builtin">:wxzlib>
|
||||
)
|
||||
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
||||
# When accessibility is enabled, the build will fail in "wx/chkconf.h"
|
||||
# since wxRegex compile defines do not include __WXOSX_COCOA__. So,
|
||||
# add it here.
|
||||
target_compile_definitions( wxregex PRIVATE "__WXOSX_COCOA__" )
|
||||
elseif( CMAKE_SYSTEM_NAME MATCHES "Linux" )
|
||||
# We need the system GTK/GLIB packages
|
||||
if( "${wxBUILD_TOOLKIT}" STREQUAL "gtk2" )
|
||||
set( gtk gtk+-2.0 )
|
||||
set( glib glib-2.0 )
|
||||
elseif( "${wxBUILD_TOOLKIT}" STREQUAL "gtk3" )
|
||||
set( gtk gtk+-3.0 )
|
||||
set( glib glib-2.0 )
|
||||
elseif( "${wxBUILD_TOOLKIT}" STREQUAL "gtk4" )
|
||||
set( gtk gtk+-4.0 )
|
||||
set( glib glib-2.0 )
|
||||
else()
|
||||
message( FATAL_ERROR "Unrecognized wxGTK version: ${wxBUILD_TOOLKIT}" )
|
||||
endif()
|
||||
|
||||
pkg_check_modules( GTK REQUIRED IMPORTED_TARGET GLOBAL ${gtk} )
|
||||
pkg_check_modules( GLIB REQUIRED IMPORTED_TARGET GLOBAL ${glib} )
|
||||
endif()
|
||||
|
||||
target_include_directories( ${TARGET} INTERFACE ${INCLUDES} )
|
||||
target_compile_definitions( ${TARGET} INTERFACE ${DEFINES} )
|
||||
target_link_libraries( ${TARGET} INTERFACE ${LIBRARIES} )
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
|
||||
set( TARGET manual )
|
||||
set( TARGET_ROOT ${topdir}/help )
|
||||
|
||||
message( STATUS "========== Configuring ${TARGET} ==========" )
|
||||
|
||||
set( host "alphamanual.audacityteam.org" )
|
||||
set( src "https://${host}/man" )
|
||||
set( dst "$<TARGET_FILE_DIR:Audacity>/help/manual" )
|
||||
set( script_dir "${top_dir}/scripts/mw2html_audacity" )
|
||||
set( script "mw2html.py" )
|
||||
set( out_dir "${CMAKE_CURRENT_BINARY_DIR}" )
|
||||
set( out "${out_dir}/${host}/index.html" )
|
||||
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||
file( TO_NATIVE_PATH
|
||||
"${CMAKE_BINARY_DIR}/packages/${PYTHON_NAME}.${PYTHON_VERSION}/tools/python.exe"
|
||||
python
|
||||
)
|
||||
else()
|
||||
find_package( Python2 )
|
||||
if( Python2_FOUND )
|
||||
set( python "${Python2_EXECUTABLE}" )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if( NOT DEFINED python )
|
||||
message( WARNING "Python not found...unable to produce manual." )
|
||||
return()
|
||||
endif()
|
||||
|
||||
add_custom_command(
|
||||
COMMENT
|
||||
"Downloading manual from: ${src}"
|
||||
COMMAND
|
||||
"${python}" "${script_dir}/${script}" -s "${src}" "${out_dir}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -E copy_directory "${out_dir}/${host}" "${dst}"
|
||||
WORKING_DIRECTORY
|
||||
"${script_dir}"
|
||||
OUTPUT
|
||||
"${out}"
|
||||
)
|
||||
|
||||
add_custom_target( ${TARGET} DEPENDS "${out}" )
|
||||
add_dependencies( ${TARGET} Audacity )
|
|
@ -1,34 +0,0 @@
|
|||
#directory lib-src
|
||||
set( LIB_SRC_DIRECTORY ${top_dir}/lib-src/ )
|
||||
|
||||
#These two are done in lib-src
|
||||
add_subdirectory( "mod-script-pipe" )
|
||||
add_subdirectory( "FileDialog" )
|
||||
|
||||
#Same idea, but not yet done/needed
|
||||
#add_subdirectory( "mod-null" )
|
||||
#add_subdirectory( "mod-nyq-bench" )
|
||||
#add_subdirectory( "mod-track-panel" )
|
||||
|
||||
#These are included in some other lib, and don't need a lib of their own.
|
||||
#add_subdirectory( "lib-widget-extra" )
|
||||
|
||||
# Most of the others are done via cmake-proxies subdirectory.
|
||||
|
||||
|
||||
#Some left over file names, not yet used in the cmake build.
|
||||
#[[
|
||||
${LIB_SRC_DIRECTORY}mod-null/ModNullCallback.cpp
|
||||
${LIB_SRC_DIRECTORY}mod-nyq-bench/NyqBench.cpp
|
||||
|
||||
${LIB_SRC_DIRECTORY}mod-track-panel/ModTrackPanelCallback.cpp
|
||||
${LIB_SRC_DIRECTORY}mod-track-panel/Registrar.cpp
|
||||
${LIB_SRC_DIRECTORY}mod-track-panel/SkewedRuler.cpp
|
||||
${LIB_SRC_DIRECTORY}mod-track-panel/TrackPanel2.cpp
|
||||
|
||||
${LIB_SRC_DIRECTORY}lib-widget-extra/NonGuiThread.cpp
|
||||
|
||||
]]#
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,174 @@
|
|||
|
||||
set( TARGET locale )
|
||||
set( TARGET_ROOT ${topdir}/locale )
|
||||
|
||||
message( STATUS "========== Configuring ${TARGET} ==========" )
|
||||
|
||||
def_vars()
|
||||
|
||||
list( APPEND SOURCES
|
||||
af.po
|
||||
ar.po
|
||||
be.po
|
||||
bg.po
|
||||
bn.po
|
||||
bs.po
|
||||
ca.po
|
||||
ca_ES@valencia.po
|
||||
cs.po
|
||||
cy.po
|
||||
da.po
|
||||
de.po
|
||||
el.po
|
||||
es.po
|
||||
eu.po
|
||||
eu_ES.po
|
||||
fa.po
|
||||
fi.po
|
||||
fr.po
|
||||
ga.po
|
||||
gl.po
|
||||
he.po
|
||||
hi.po
|
||||
hr.po
|
||||
hu.po
|
||||
hy.po
|
||||
id.po
|
||||
it.po
|
||||
ja.po
|
||||
ka.po
|
||||
km.po
|
||||
ko.po
|
||||
lt.po
|
||||
mk.po
|
||||
my.po
|
||||
nb.po
|
||||
nl.po
|
||||
oc.po
|
||||
pl.po
|
||||
pt_BR.po
|
||||
pt_PT.po
|
||||
ro.po
|
||||
ru.po
|
||||
sk.po
|
||||
sl.po
|
||||
sr_RS.po
|
||||
sr_RS@latin.po
|
||||
sv.po
|
||||
ta.po
|
||||
tg.po
|
||||
tr.po
|
||||
uk.po
|
||||
vi.po
|
||||
zh_CN.po
|
||||
zh_TW.po
|
||||
)
|
||||
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||
|
||||
file( TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/packages/${GETTEXT_NAME}.${GETTEXT_VERSION}/tools/bin/msgfmt.exe" msgfmt )
|
||||
|
||||
elseif( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
||||
find_package( Gettext )
|
||||
if( GETTEXT_FOUND )
|
||||
set( msgfmt "${GETTEXT_MSGFMT_EXECUTABLE}" )
|
||||
else()
|
||||
set( root "${CMAKE_CURRENT_BINARY_DIR}/usr/local" )
|
||||
set( msgfmt "${CMAKE_CURRENT_BINARY_DIR}/msgfmt" )
|
||||
|
||||
if( NOT EXISTS "${root}" )
|
||||
execute_process(
|
||||
COMMAND
|
||||
curl -L -o /tmp/gettext.pkg https://raw.githubusercontent.com/rudix-mac/packages/master/gettext-0.20.1-macos10.14.pkg
|
||||
)
|
||||
execute_process(
|
||||
COMMAND
|
||||
pkgutil --force --expand /tmp/gettext.pkg /tmp/gettext
|
||||
)
|
||||
execute_process(
|
||||
COMMAND
|
||||
tar -C "${CMAKE_CURRENT_BINARY_DIR}" -x -f /tmp/gettext/gettextinstall.pkg/Payload
|
||||
)
|
||||
execute_process(
|
||||
COMMAND
|
||||
rm -rf /tmp/gettext.pkg /tmp/gettext
|
||||
)
|
||||
endif()
|
||||
|
||||
file( WRITE ${CMAKE_BINARY_DIR}/msgfmt
|
||||
"#!/bin/sh\n"
|
||||
"export DYLD_LIBRARY_PATH=${root}/lib\n"
|
||||
"${root}/bin/msgfmt \$@ \n"
|
||||
)
|
||||
|
||||
file( COPY ${CMAKE_BINARY_DIR}/msgfmt
|
||||
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}
|
||||
FILE_PERMISSIONS
|
||||
OWNER_READ OWNER_EXECUTE
|
||||
GROUP_READ GROUP_EXECUTE
|
||||
WORLD_READ WORLD_EXECUTE
|
||||
)
|
||||
|
||||
file( REMOVE ${CMAKE_BINARY_DIR}/msgfmt )
|
||||
|
||||
endif()
|
||||
|
||||
|
||||
else()
|
||||
|
||||
find_package( Gettext )
|
||||
if( GETTEXT_FOUND )
|
||||
set( msgfmt "${GETTEXT_MSGFMT_EXECUTABLE}" )
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
if( NOT DEFINED msgfmt )
|
||||
message( WARNING "Gettext not found...translations will not be provided." )
|
||||
return()
|
||||
endif()
|
||||
|
||||
set( OUTPUTS )
|
||||
foreach( source ${SOURCES} )
|
||||
get_filename_component( lang "${source}" NAME_WE )
|
||||
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
||||
set( dst "${_EXEDIR}/Resources/${lang}.lproj" )
|
||||
elseif( CMAKE_SYSTEM_NAME MATCHES "Linux" )
|
||||
set( dst "${_EXEDIR}/locale/${lang}/LC_MESSAGES" )
|
||||
elseif( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
||||
set( dst "${_EXEDIR}/Languanges/${lang}" )
|
||||
endif()
|
||||
|
||||
set( po "${_SRCDIR}/${source}" )
|
||||
set( mo "${dst}/audacity.mo" )
|
||||
|
||||
add_custom_command(
|
||||
DEPENDS
|
||||
"${po}"
|
||||
COMMAND
|
||||
"${CMAKE_COMMAND}" -E make_directory "${dst}"
|
||||
COMMAND
|
||||
"${msgfmt}" -o "${mo}" "${po}"
|
||||
OUTPUT
|
||||
"${mo}"
|
||||
)
|
||||
|
||||
# Always make sure there's an empty English folder. Otherwise, some menu
|
||||
# items will be translated to the next language listed in System
|
||||
# Preferences/Language & Text
|
||||
if( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
||||
add_custom_command(
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -E make_directory "${_EXEDIR}/Resources/en.lproj"
|
||||
OUTPUT
|
||||
"${mo}"
|
||||
APPEND
|
||||
)
|
||||
endif()
|
||||
|
||||
list( APPEND OUTPUTS ${mo} )
|
||||
endforeach()
|
||||
|
||||
add_custom_target( "${TARGET}" ALL DEPENDS ${OUTPUTS} SOURCES "${SOURCES}" )
|
||||
|
|
@ -0,0 +1,75 @@
|
|||
|
||||
set( TARGET nyquist )
|
||||
set( TARGET_ROOT ${topdir}/nyquist )
|
||||
|
||||
message( STATUS "========== Configuring ${TARGET} ==========" )
|
||||
|
||||
def_vars()
|
||||
|
||||
list( APPEND SOURCES
|
||||
aud-do-support.lsp
|
||||
dspprims.lsp
|
||||
envelopes.lsp
|
||||
equalizer.lsp
|
||||
evalenv.lsp
|
||||
fileio.lsp
|
||||
init.lsp
|
||||
misc.lsp
|
||||
nyinit-dbg.lsp
|
||||
nyinit.lsp
|
||||
nyqmisc.lsp
|
||||
nyquist.lsp
|
||||
printrec.lsp
|
||||
profile.lsp
|
||||
sal-parse.lsp
|
||||
sal.lsp
|
||||
seq.lsp
|
||||
seqfnint.lsp
|
||||
seqmidi.lsp
|
||||
sliders.lsp
|
||||
sndfnint.lsp
|
||||
spec-plot.lsp
|
||||
spectral-analysis.lsp
|
||||
stk.lsp
|
||||
system.lsp
|
||||
test.lsp
|
||||
velocity.lsp
|
||||
xlinit.lsp
|
||||
xm.lsp
|
||||
rawwaves/mand1.raw
|
||||
rawwaves/mand10.raw
|
||||
rawwaves/mand11.raw
|
||||
rawwaves/mand12.raw
|
||||
rawwaves/mand2.raw
|
||||
rawwaves/mand3.raw
|
||||
rawwaves/mand4.raw
|
||||
rawwaves/mand5.raw
|
||||
rawwaves/mand6.raw
|
||||
rawwaves/mand7.raw
|
||||
rawwaves/mand8.raw
|
||||
rawwaves/mand9.raw
|
||||
rawwaves/mandpluk.raw
|
||||
rawwaves/marmstk1.raw
|
||||
rawwaves/sinewave.raw
|
||||
)
|
||||
|
||||
foreach( source ${SOURCES} )
|
||||
set( src "${_SRCDIR}/${source}" )
|
||||
set( dst "${_EXEDIR}/${TARGET}/${source}" )
|
||||
|
||||
add_custom_command(
|
||||
DEPENDS
|
||||
"${src}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -E make_directory "${_EXEDIR}/${TARGET}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -E copy "${src}" "${dst}"
|
||||
OUTPUT
|
||||
"${dst}"
|
||||
)
|
||||
|
||||
list( APPEND OUTPUTS "${dst}" )
|
||||
endforeach()
|
||||
|
||||
add_custom_target( ${TARGET} ALL DEPENDS ${OUTPUTS} SOURCES ${SOURCES} )
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
|
||||
set( TARGET plug-ins )
|
||||
set( TARGET_ROOT ${topdir}/plug-ins )
|
||||
|
||||
message( STATUS "========== Configuring ${TARGET} ==========" )
|
||||
|
||||
def_vars()
|
||||
|
||||
list( APPEND SOURCES
|
||||
SilenceMarker.ny
|
||||
SoundFinder.ny
|
||||
SpectralEditMulti.ny
|
||||
SpectralEditParametricEQ.ny
|
||||
SpectralEditShelves.ny
|
||||
StudioFadeOut.ny
|
||||
adjustable-fade.ny
|
||||
beat.ny
|
||||
clipfix.ny
|
||||
crossfadeclips.ny
|
||||
crossfadetracks.ny
|
||||
delay.ny
|
||||
equalabel.ny
|
||||
highpass.ny
|
||||
limiter.ny
|
||||
lowpass.ny
|
||||
noisegate.ny
|
||||
notch.ny
|
||||
nyquist-plug-in-installer.ny
|
||||
pluck.ny
|
||||
rhythmtrack.ny
|
||||
rissetdrum.ny
|
||||
rms.ny
|
||||
sample-data-export.ny
|
||||
sample-data-import.ny
|
||||
tremolo.ny
|
||||
vocalrediso.ny
|
||||
vocoder.ny
|
||||
)
|
||||
|
||||
foreach( source ${SOURCES} )
|
||||
set( src "${_SRCDIR}/${source}" )
|
||||
set( dst "${_EXEDIR}/${TARGET}/${source}" )
|
||||
|
||||
add_custom_command(
|
||||
DEPENDS
|
||||
"${src}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -E make_directory "${_EXEDIR}/${TARGET}"
|
||||
COMMAND
|
||||
${CMAKE_COMMAND} -E copy "${src}" "${dst}"
|
||||
OUTPUT
|
||||
"${dst}"
|
||||
)
|
||||
|
||||
list( APPEND OUTPUTS "${dst}" )
|
||||
endforeach()
|
||||
|
||||
add_custom_target( ${TARGET} ALL DEPENDS ${OUTPUTS} SOURCES ${SOURCES} )
|
||||
|
1639
src/CMakeLists.txt
1639
src/CMakeLists.txt
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,107 @@
|
|||
/* src/configtemplate.h. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* define if Audacity is being installed under a name other than "audacity",
|
||||
so it can find the files it needs at runtime */
|
||||
#cmakedefine AUDACITY_NAME "@AUDACITY_NAME@"
|
||||
|
||||
/* Define we are compiling Audacity itself, not an Audacity plug-in */
|
||||
#cmakedefine BUILDING_AUDACITY 1
|
||||
|
||||
/* Use system FFmpeg library and disable dynamic loading of it. */
|
||||
#cmakedefine DISABLE_DYNAMIC_LOADING_FFMPEG 1
|
||||
|
||||
/* Define if LAME should be linked at compile time */
|
||||
#cmakedefine DISABLE_DYNAMIC_LOADING_LAME 1
|
||||
|
||||
/* Define to 1 if you have the <alloca.h> header file. */
|
||||
#cmakedefine HAVE_ALLOCA_H 1
|
||||
|
||||
/* Define if GTK is available */
|
||||
#cmakedefine HAVE_GTK 1
|
||||
|
||||
/* Define to 1 if you have the <libudev.h> header file. */
|
||||
#cmakedefine HAVE_LIBUDEV_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 or 0, depending whether the compiler supports simple visibility
|
||||
declarations. */
|
||||
#cmakedefine HAVE_VISIBILITY 1
|
||||
|
||||
/* define as prefix where Audacity is installed */
|
||||
#define INSTALL_PREFIX "@INSTALL_PREFIX@"
|
||||
|
||||
/* define as prefix where Audacity is installed */
|
||||
#define LIBDIR "@LIBDIR@"
|
||||
|
||||
/* Define if Audio Unit plug-ins are enabled (Mac OS X only) */
|
||||
#cmakedefine USE_AUDIO_UNITS 1
|
||||
|
||||
/* Define if ffmpeg (multi-format import and export) support should be enabled
|
||||
*/
|
||||
#cmakedefine USE_FFMPEG 1
|
||||
|
||||
/* Define if GStreamer 1 is present */
|
||||
#cmakedefine USE_GSTREAMER 1
|
||||
|
||||
/* Define if LADSPA plug-ins are enabled */
|
||||
#cmakedefine USE_LADSPA 1
|
||||
|
||||
/* Define if the FLAC library is present */
|
||||
#cmakedefine USE_LIBFLAC 1
|
||||
|
||||
/* Define if libid3tag is present */
|
||||
#cmakedefine USE_LIBID3TAG 1
|
||||
|
||||
/* Define if mp3 support is implemented with the libmad library */
|
||||
#cmakedefine USE_LIBMAD 1
|
||||
|
||||
/* Define if libtwolame (MP2 export) support should be enabled */
|
||||
#cmakedefine USE_LIBTWOLAME 1
|
||||
|
||||
/* Define if the ogg vorbis decoding library is present */
|
||||
#cmakedefine USE_LIBVORBIS 1
|
||||
|
||||
/* Define if LV2 support should be enabled */
|
||||
#cmakedefine USE_LV2 1
|
||||
|
||||
/* Define if midi support should be enabled */
|
||||
#cmakedefine USE_MIDI 1
|
||||
|
||||
/* Define if Nyquist support should be enabled */
|
||||
#cmakedefine USE_NYQUIST 1
|
||||
|
||||
/* Define if midi support should be enabled */
|
||||
#cmakedefine USE_PORTMIDI 1
|
||||
|
||||
/* Define if PortMixer support should be enabled */
|
||||
#cmakedefine USE_PORTMIXER 1
|
||||
|
||||
/* Define if QuickTime importing is enabled (Mac OS X only) */
|
||||
#cmakedefine USE_QUICKTIME 1
|
||||
|
||||
/* Define if SBSMS support should be enabled */
|
||||
#cmakedefine USE_SBSMS 1
|
||||
|
||||
/* Define if SoundTouch support should be enabled */
|
||||
#cmakedefine USE_SOUNDTOUCH 1
|
||||
|
||||
/* Define if Vamp analysis plugin support should be enabled */
|
||||
#cmakedefine USE_VAMP 1
|
||||
|
||||
/* Define if VST plug-in support is enabled */
|
||||
#cmakedefine USE_VST 1
|
||||
|
||||
/* Version number of package */
|
||||
#cmakedefine VERSION "@VERSION@"
|
||||
|
||||
/* Placeholder for large file support */
|
||||
#cmakedefine _FILE_OFFSET_BITS 0
|
||||
|
||||
/* We're using cygwin */
|
||||
#cmakedefine __CYGWIN__ 1
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="Gettext.Tools" version="0.20.1.1" targetFramework="native" />
|
||||
<package id="python2" version="2.7.17" targetFramework="native" />
|
||||
</packages>
|
Loading…
Reference in New Issue