1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-27 15:08:39 +01:00

Remove libsndfile related source from lib-src

This commit is contained in:
Dmitry Vedenko
2021-08-09 12:55:51 +03:00
committed by Dmitry Vedenko
parent 50cf64f93f
commit 7d5285fc37
1675 changed files with 1 additions and 600038 deletions

View File

@@ -1,82 +0,0 @@
add_library( ${TARGET} STATIC )
def_vars()
list( APPEND SOURCES
PRIVATE
# 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>
# libflac++
${TARGET_ROOT}/src/libFLAC++/metadata.cpp
${TARGET_ROOT}/src/libFLAC++/stream_decoder.cpp
${TARGET_ROOT}/src/libFLAC++/stream_encoder.cpp
)
list( APPEND INCLUDES
PRIVATE
${_PRVDIR}
${TARGET_ROOT}/src/libFLAC/include
PUBLIC
${TARGET_ROOT}/include
)
list( APPEND DEFINES
PRIVATE
HAVE_CONFIG_H
PUBLIC
FLAC__NO_DLL
)
list( APPEND LIBRARIES
PUBLIC
libogg
)
set( CPU_IS_BIG_ENDIAN ${WORDS_BIGENDIAN} )
set( CPU_IS_LITTLE_ENDIAN !${WORDS_BIGENDIAN} )
set( FLAC__HAS_OGG 1 )
set( VERSION "1.3.1" )
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_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )

View File

@@ -1,234 +0,0 @@
/* 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@

View File

@@ -1,88 +0,0 @@
add_library( ${TARGET} STATIC )
def_vars()
list( APPEND SOURCES
PRIVATE
${TARGET_ROOT}/src/bitwise.c
${TARGET_ROOT}/src/framing.c
)
list( APPEND INCLUDES
PUBLIC
${_PUBDIR}
${TARGET_ROOT}/include
)
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!" )
endif()
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!" )
endif()
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!" )
endif()
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!" )
endif()
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!" )
endif()
set( INCLUDE_INTTYPES_H ${HAVE_INTTYPES_H} )
set( INCLUDE_STDINT_H ${HAVE_STDINT_H} )
set( INCLUDE_SYS_TYPES_H ${HAVE_SYS_TYPES_H} )
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_include_directories( ${TARGET} PRIVATE ${INCLUDES} )

View File

@@ -1,25 +0,0 @@
#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

View File

@@ -1,202 +0,0 @@
add_library( ${TARGET} STATIC )
def_vars()
list( APPEND SOURCES
PRIVATE
${TARGET_ROOT}/src/ALAC/ALACBitUtilities.c
${TARGET_ROOT}/src/ALAC/ag_dec.c
${TARGET_ROOT}/src/ALAC/ag_enc.c
${TARGET_ROOT}/src/ALAC/alac_decoder.c
${TARGET_ROOT}/src/ALAC/alac_encoder.c
${TARGET_ROOT}/src/ALAC/dp_dec.c
${TARGET_ROOT}/src/ALAC/dp_enc.c
${TARGET_ROOT}/src/ALAC/matrix_dec.c
${TARGET_ROOT}/src/ALAC/matrix_enc.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_ROOT}/src/aiff.c
${TARGET_ROOT}/src/alac.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/cart.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/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/nms_adpcm.c
${TARGET_ROOT}/src/ogg.c
${TARGET_ROOT}/src/ogg_opus.c
${TARGET_ROOT}/src/ogg_pcm.c
${TARGET_ROOT}/src/ogg_speex.c
${TARGET_ROOT}/src/ogg_vcomment.c
${TARGET_ROOT}/src/ogg_vorbis.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/wavlike.c
${TARGET_ROOT}/src/wve.c
${TARGET_ROOT}/src/xi.c
)
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>
$<$<C_COMPILER_ID:AppleClang>:-Wno-implicit-function-declaration>
)
if( CMAKE_C_COMPILER_ID MATCHES "MSVC" )
cmake_push_check_state( RESET )
set( CMAKE_EXTRA_INCLUDE_FILES "BaseTsd.h" )
check_type_size( "SSIZE_T" SIZEOF_SSIZE_T LANGUAGE C )
cmake_pop_check_state()
if( HAVE_SIZEOF_SSIZE_T )
list( APPEND DEFINES ssize_t=SSIZE_T )
endif()
else()
check_type_size( "ssize_t" SIZEOF_SSIZE_T LANGUAGE C )
endif()
if( HAVE_SIZEOF_SSIZE_T )
set( HAVE_SSIZE_T YES )
endif()
set( TYPEOF_SF_COUNT_T "int64_t" )
check_type_size( "${TYPEOF_SF_COUNT_T}" SIZEOF_SF_COUNT_T LANGUAGE C )
set( SF_COUNT_MAX "0x7FFFFFFFFFFFFFFFLL" )
configure_file( ${TARGET_ROOT}/src/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 !${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}
${_SRCDIR}/famcheck.c
LINK_LIBRARIES ${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}
${_SRCDIR}/clipcheck.c
LINK_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}
RUN_OUTPUT_VARIABLE r_out
COMPILE_OUTPUT_VARIABLE c_out
)
if( NOT c_rc )
message( STATUS "${c_out}" )
message( FATAL_ERROR "${_SRCDIR}/clipcheck.c compile failed:" )
endif()
list( GET r_out 0 CPU_CLIPS_POSITIVE )
list( GET r_out 1 CPU_CLIPS_NEGATIVE )
configure_file( ${TARGET_ROOT}/src/config.h.cmake ${_PRVDIR}/config.h )
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
target_sources( ${TARGET} PRIVATE ${SOURCES} )
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )

View File

@@ -1,44 +0,0 @@
#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 ;
}

View File

@@ -1,12 +0,0 @@
#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;
}

View File

@@ -1,57 +0,0 @@
add_library( ${TARGET} STATIC )
def_vars()
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
)
list( APPEND INCLUDES
PRIVATE
${_PRVDIR}
${TARGET_ROOT}/lib
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_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )

View File

@@ -1,94 +0,0 @@
/* 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@