mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-11 17:13:37 +02:00
Removes previously vendored libraries from the source tree
This commit is contained in:
committed by
Dmitry Vedenko
parent
8aca9d02de
commit
f66381b967
@@ -1,45 +0,0 @@
|
||||
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
def_vars()
|
||||
|
||||
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
|
||||
${_PRVDIR}
|
||||
PUBLIC
|
||||
${TARGET_ROOT}/lib
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
HAVE_EXPAT_CONFIG_H
|
||||
PUBLIC
|
||||
XML_STATIC
|
||||
)
|
||||
|
||||
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_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
@@ -1,89 +0,0 @@
|
||||
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
def_vars()
|
||||
|
||||
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/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
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${_PRVDIR}
|
||||
${TARGET_ROOT}/lame
|
||||
${TARGET_ROOT}/libmp3lame
|
||||
PUBLIC
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
HAVE_CONFIG_H
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
${MMX_FLAG}
|
||||
${SSE_FLAG}
|
||||
)
|
||||
|
||||
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( 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 )
|
||||
|
||||
#organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
@@ -1,371 +0,0 @@
|
||||
/* 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
|
||||
|
||||
/* a lot 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 precision */
|
||||
#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 */
|
@@ -1,51 +0,0 @@
|
||||
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
def_vars()
|
||||
|
||||
list( APPEND SOURCES
|
||||
PRIVATE
|
||||
${TARGET_ROOT}/compat.c
|
||||
${TARGET_ROOT}/crc.c
|
||||
${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
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${_PRVDIR}
|
||||
PUBLIC
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-implicit-function-declaration>
|
||||
)
|
||||
|
||||
list( APPEND LIBRARIES
|
||||
PRIVATE
|
||||
|
||||
)
|
||||
|
||||
configure_file( config.h.in private/config.h )
|
||||
|
||||
organize_source( "${TARGET_ROOT}" "src" "${SOURCES}" )
|
||||
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
||||
target_compile_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
@@ -1,86 +0,0 @@
|
||||
/* 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,58 +0,0 @@
|
||||
|
||||
add_library( ${TARGET} STATIC )
|
||||
|
||||
def_vars()
|
||||
|
||||
if( IS_64BIT )
|
||||
set( FPM FPM_64BIT )
|
||||
elseif( ${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "X86|AMD64|i386|i686|x86_64" )
|
||||
set( FPM FPM_INTEL )
|
||||
else()
|
||||
set( FPM FPM_DEFAULT )
|
||||
endif()
|
||||
|
||||
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
|
||||
)
|
||||
|
||||
list( APPEND INCLUDES
|
||||
PRIVATE
|
||||
${_PRVDIR}
|
||||
PUBLIC
|
||||
${_PUBDIR}
|
||||
${TARGET_ROOT}
|
||||
)
|
||||
|
||||
list( APPEND DEFINES
|
||||
PRIVATE
|
||||
HAVE_CONFIG_H
|
||||
OPT_ACCURACY
|
||||
${FPM}
|
||||
)
|
||||
|
||||
list( APPEND OPTIONS
|
||||
PRIVATE
|
||||
$<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wall>
|
||||
)
|
||||
|
||||
configure_file( config.h.in private/config.h )
|
||||
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_options( ${TARGET} PRIVATE ${OPTIONS} )
|
||||
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
||||
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
||||
|
@@ -1,215 +0,0 @@
|
||||
/* 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
|
||||
# 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
|
@@ -1,15 +0,0 @@
|
||||
#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,287 +0,0 @@
|
||||
|
||||
add_library( ${TARGET} INTERFACE )
|
||||
add_library( wxBase INTERFACE )
|
||||
add_library( ${symbol} ALIAS ${TARGET} )
|
||||
|
||||
def_vars()
|
||||
|
||||
message( STATUS "========== Configuring ${name} ==========" )
|
||||
|
||||
cmd_option( ${_OPT}use_wxwidgets
|
||||
"Use ${name} library [system (if available), local]"
|
||||
"${audacity_lib_preference}"
|
||||
STRINGS "system" "local"
|
||||
)
|
||||
|
||||
if( ${_OPT}use_wxwidgets STREQUAL "system" )
|
||||
# Make sure shared libs are preferred over static
|
||||
set( BUILD_SHARED_LIBS YES )
|
||||
|
||||
# Specify all of the components we'll need since "html" and "qa" aren't
|
||||
# included in the default list
|
||||
find_package(wxWidgets REQUIRED COMPONENTS adv base core html net qa xml)
|
||||
|
||||
unset( BUILD_SHARED_LIBS )
|
||||
endif()
|
||||
|
||||
if( wxWidgets_FOUND )
|
||||
message( STATUS "Using '${name}' system library" )
|
||||
|
||||
if( wxWidgets_INCLUDE_DIRS_NO_SYSTEM )
|
||||
set( INCLUDES
|
||||
INTERFACE
|
||||
${wxWidgets_INCLUDE_DIRS_NO_SYSTEM}
|
||||
)
|
||||
else()
|
||||
set( INCLUDES
|
||||
INTERFACE
|
||||
${wxWidgets_INCLUDE_DIRS}
|
||||
)
|
||||
endif()
|
||||
|
||||
set( DEFINES
|
||||
INTERFACE
|
||||
${wxWidgets_DEFINITIONS_GENERAL}
|
||||
$<$<CONFIG:Debug>:
|
||||
${wxWidgets_DEFINITIONS_DEBUG}
|
||||
>
|
||||
$<$<NOT:$<CONFIG:Debug>>:
|
||||
${wxWidgets_DEFINITIONS_OPTIMIZED}
|
||||
>
|
||||
)
|
||||
|
||||
set( LINKDIRS
|
||||
INTERFACE
|
||||
$<$<PLATFORM_ID:Windows>:
|
||||
${wxWidgets_LIB_DIR}
|
||||
>
|
||||
)
|
||||
|
||||
set( LIBRARIES
|
||||
INTERFACE
|
||||
${wxWidgets_LIBRARIES}
|
||||
$<$<NOT:$<PLATFORM_ID:Windows>>:
|
||||
z
|
||||
>
|
||||
)
|
||||
|
||||
# set( WXWIN $ENV{WXWIN} CACHE INTERNAL "" )
|
||||
if( WXWIN )
|
||||
string( APPEND WXWIN "/lib" )
|
||||
else()
|
||||
set( WXWIN "${wxWidgets_LIBRARY_DIRS}" )
|
||||
endif()
|
||||
set( WXWIN "${WXWIN}" CACHE INTERNAL "" )
|
||||
|
||||
set( toolkit "${wxWidgets_LIBRARIES}" )
|
||||
else()
|
||||
message( STATUS "Using local '${name}' library" )
|
||||
|
||||
set( WXWIN $ENV{WXWIN} )
|
||||
if( "${WXWIN}" STREQUAL "" )
|
||||
# XXX: Look into importing instead of adding to this project
|
||||
set( WXWIN "${_INTDIR}/wxwidgets" )
|
||||
endif()
|
||||
|
||||
if( NOT EXISTS "${WXWIN}" )
|
||||
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|FreeBSD" )
|
||||
# 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
|
||||
)
|
||||
|
||||
# For all required libs, gather all of the interface target
|
||||
# properties and merge them into the wxWidgets target
|
||||
foreach( lib adv base core html net qa xml )
|
||||
get_target_property( value ${lib} INTERFACE_INCLUDE_DIRECTORIES )
|
||||
if( value )
|
||||
list( APPEND INCLUDES ${value} )
|
||||
list( REMOVE_DUPLICATES INCLUDES )
|
||||
endif()
|
||||
|
||||
get_target_property( value ${lib} INTERFACE_COMPILE_DEFINITIONS )
|
||||
if( value )
|
||||
list( APPEND DEFINES ${value} )
|
||||
list( REMOVE_DUPLICATES DEFINES )
|
||||
endif()
|
||||
|
||||
get_target_property( value ${lib} INTERFACE_COMPILE_OPTIONS )
|
||||
if( value )
|
||||
list( APPEND COPTS ${value} )
|
||||
list( REMOVE_DUPLICATES COPTS )
|
||||
endif()
|
||||
|
||||
get_target_property( value ${lib} INTERFACE_LINK_LIBRARIES )
|
||||
if( value)
|
||||
list( APPEND LIBRARIES ${lib} ${value} )
|
||||
list( REMOVE_DUPLICATES LIBRARIES )
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Do NOT split the generator expressions across multiple lines here.
|
||||
# CMake appears to have a bug and doesn't seem to handle it correctly
|
||||
# for target link libraries.
|
||||
list( APPEND LIBRARIES
|
||||
$<$<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__" )
|
||||
endif()
|
||||
|
||||
set( toolkit "${wxBUILD_TOOLKIT}" )
|
||||
endif()
|
||||
|
||||
if( "${toolkit}" MATCHES ".*gtk2.*" )
|
||||
set( gtk gtk+-2.0 )
|
||||
set( glib glib-2.0 )
|
||||
set( wxTOOLKIT "GTK2" CACHE INTERNAL "" )
|
||||
set( wxIS_GTK YES CACHE INTERNAL "" )
|
||||
elseif( "${toolkit}" MATCHES ".*gtk3.*" )
|
||||
set( gtk gtk+-3.0 )
|
||||
set( glib glib-2.0 )
|
||||
set( wxTOOLKIT "GTK3" CACHE INTERNAL "" )
|
||||
set( wxIS_GTK YES CACHE INTERNAL "" )
|
||||
elseif( "${toolkit}" MATCHES ".*gtk4.*" )
|
||||
set( gtk gtk+-4.0 )
|
||||
set( glib glib-2.0 )
|
||||
set( wxTOOLKIT "GTK4" CACHE INTERNAL "" )
|
||||
set( wxIS_GTK YES CACHE INTERNAL "" )
|
||||
elseif( "${toolkit}" MATCHES ".*msw.*" )
|
||||
set( wxTOOLKIT "MSW" CACHE INTERNAL "" )
|
||||
set( wxIS_WIN YES CACHE INTERNAL "" )
|
||||
list( APPEND DEFINES __WXMSW__=1 )
|
||||
elseif( "${toolkit}" MATCHES ".*osx.*" )
|
||||
set( wxTOOLKIT "MAC" CACHE INTERNAL "" )
|
||||
set( wxIS_MAC YES CACHE INTERNAL "" )
|
||||
else()
|
||||
message( FATAL_ERROR "Unrecognized wxWidgets toolkit" )
|
||||
endif()
|
||||
|
||||
if( "${wxTOOLKIT}" MATCHES "GTK." )
|
||||
pkg_check_modules( GTK REQUIRED IMPORTED_TARGET GLOBAL ${gtk} )
|
||||
pkg_check_modules( GLIB REQUIRED IMPORTED_TARGET GLOBAL ${glib} )
|
||||
endif()
|
||||
|
||||
find_file( WXVERSION_H
|
||||
NAMES
|
||||
wx/version.h
|
||||
PATHS
|
||||
${INCLUDES}
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
if( NOT WXVERSION_H )
|
||||
message( FATAL_ERROR "wxWidgets version.h header not found" )
|
||||
endif()
|
||||
|
||||
file(
|
||||
STRINGS
|
||||
"${WXVERSION_H}" output
|
||||
REGEX
|
||||
"^#define +wxVERSION_STRING +"
|
||||
)
|
||||
|
||||
string( REGEX MATCHALL "\".+(Audacity).+\"" ours "${output}")
|
||||
if( NOT ours )
|
||||
message( FATAL_ERROR
|
||||
"\n########################################################################\n"
|
||||
"Audacity version 3.0.0 or higher requires use of a customized version of "
|
||||
"wxWidgets. For details:\n"
|
||||
" https://wiki.audacityteam.org/wiki/Building_for_Distros\n"
|
||||
"########################################################################\n"
|
||||
)
|
||||
endif()
|
||||
|
||||
foreach( target "${TARGET}" wxBase )
|
||||
target_include_directories( ${target} INTERFACE ${INCLUDES} )
|
||||
target_compile_definitions( ${target} INTERFACE ${DEFINES} )
|
||||
target_compile_options( ${target} INTERFACE ${COPTS} )
|
||||
target_link_directories( ${target} INTERFACE ${LINKDIRS} )
|
||||
target_link_libraries( ${target} INTERFACE ${LIBRARIES} )
|
||||
endforeach()
|
||||
|
||||
# wxBase exposes only the GUI-less subset of full wxWidgets
|
||||
# Also prohibit use of some other headers by pre-defining their include guards
|
||||
# wxUSE_GUI=0 doesn't exclude all of wxCore dependency, and the application
|
||||
# object and event loops are in wxBase, but we want to exclude their use too
|
||||
target_compile_definitions( wxBase INTERFACE
|
||||
"wxUSE_GUI=0"
|
||||
|
||||
# Don't use app.h
|
||||
_WX_APP_H_BASE_
|
||||
|
||||
# Don't use evtloop.h
|
||||
_WX_EVTLOOP_H_
|
||||
|
||||
# Don't use image.h
|
||||
_WX_IMAGE_H
|
||||
|
||||
# Don't use colour.h
|
||||
_WX_COLOUR_H_BASE_
|
||||
|
||||
# Don't use brush.h
|
||||
_WX_BRUSH_H_BASE_
|
||||
|
||||
# Don't use pen.h
|
||||
_WX_PEN_H_BASE_
|
||||
)
|
||||
|
||||
install( TARGETS ${TARGET} DESTINATION ${_LIBDIR} )
|
||||
|
Reference in New Issue
Block a user