mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 01:49:53 +00:00
CMake: updates & fixes
This commit is contained in:
parent
b0453860db
commit
6710ff3fc6
30
.gitignore
vendored
30
.gitignore
vendored
@ -6,15 +6,6 @@
|
||||
*.au
|
||||
*.bin
|
||||
*.caf
|
||||
/*.cmake
|
||||
/src/*.cmake
|
||||
/src/ALAC/*.cmake
|
||||
/src/G72x/*.cmake
|
||||
/src/GSM610/*.cmake
|
||||
/tests/*.cmake
|
||||
/programs/*.cmake
|
||||
!src/config.h.cmake
|
||||
!*.in.cmake
|
||||
*.dll
|
||||
*.exe
|
||||
*.flac
|
||||
@ -40,11 +31,6 @@
|
||||
.deps
|
||||
.dirstamp
|
||||
.libs
|
||||
Build/
|
||||
CMake/config.h.in
|
||||
CMakeFiles
|
||||
CMakeCache.txt
|
||||
build-aux
|
||||
Hack
|
||||
Hack/sndfile-fuzzbomb
|
||||
INSTALL
|
||||
@ -139,3 +125,19 @@ Release/
|
||||
bin/
|
||||
obj/
|
||||
octave-workspace
|
||||
|
||||
CMakeCache.txt
|
||||
CMakeFiles
|
||||
CMakeScripts
|
||||
Testing
|
||||
Makefile
|
||||
cmake_install.cmake
|
||||
install_manifest.txt
|
||||
compile_commands.json
|
||||
CTestTestfile.cmake
|
||||
CMakeSettings.json
|
||||
|
||||
/*[Bb]uild*/
|
||||
|
||||
/.vscode/
|
||||
/.vs/
|
||||
|
@ -40,7 +40,7 @@ install:
|
||||
- true
|
||||
|
||||
script:
|
||||
- mkdir cmake-build && (cd cmake-build && cmake .. -DCMAKE_BUILD_TYPE=Release && make VERBOSE=1 && ctest -V)
|
||||
- mkdir cmake-build && (cd cmake-build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra" && make VERBOSE=1 && ctest -V)
|
||||
- pwd
|
||||
- ./autogen.sh
|
||||
- ./configure --enable-werror && make clean all check && make distcheck
|
||||
|
1072
CMakeLists.txt
1072
CMakeLists.txt
File diff suppressed because it is too large
Load Diff
@ -14,15 +14,14 @@ endif
|
||||
|
||||
EXTRA_DIST = libsndfile.spec.in sndfile.pc.in Scripts/android-configure.sh \
|
||||
Scripts/linux-to-win-cross-configure.sh \
|
||||
CMakeLists.txt $(cmake_files) sndfile.pc.cmake.in Win32
|
||||
CMakeLists.txt $(cmake_files) Win32
|
||||
|
||||
cmake_files = cmake/ClipMode.cmake cmake/FindFLAC.cmake \
|
||||
cmake/CMakeAutoGen.cmake cmake/CMakeAutoGenScript.cmake \
|
||||
cmake/FindFLAC.cmake cmake/FindOgg.cmake cmake/FindSndio.cmake \
|
||||
cmake/FindSpeex.cmake cmake/FindSQLite3.cmake cmake/FindVorbis.cmake \
|
||||
cmake/FindOgg.cmake cmake/FindVorbis.cmake cmake/FindSndio.cmake \
|
||||
cmake/FindSpeex.cmake cmake/FindSQLite3.cmake cmake/FindVorbisEnc.cmake \
|
||||
cmake/SndFileChecks.cmake cmake/TestInline.cmake \
|
||||
cmake/TestLargeFiles.cmake cmake/LibSndFileConfig.cmake.in \
|
||||
cmake/TestInline.c.in
|
||||
cmake/TestLargeFiles.cmake cmake/TestInline.c.in
|
||||
|
||||
pkgconfig_DATA = sndfile.pc
|
||||
|
||||
|
@ -9,31 +9,50 @@
|
||||
if (FLAC_INCLUDE_DIR)
|
||||
# Already in cache, be silent
|
||||
set (FLAC_FIND_QUIETLY TRUE)
|
||||
endif (FLAC_INCLUDE_DIR)
|
||||
endif ()
|
||||
|
||||
find_package (Ogg QUIET)
|
||||
|
||||
find_package (PkgConfig QUIET)
|
||||
pkg_check_modules(PC_FLAC QUIET flac)
|
||||
|
||||
set(FLAC_VERSION ${PC_FLAC_VERSION})
|
||||
|
||||
find_path (FLAC_INCLUDE_DIR FLAC/stream_decoder.h
|
||||
HINTS ${PC_FLAC_INCLUDEDIR} ${PC_FLAC_INCLUDE_DIRS} ${FLAC_ROOT}
|
||||
PATH_SUFFIXES include)
|
||||
HINTS
|
||||
${PC_FLAC_INCLUDEDIR}
|
||||
${PC_FLAC_INCLUDE_DIRS}
|
||||
${FLAC_ROOT}
|
||||
)
|
||||
|
||||
# MSVC built libraries can name them *_static, which is good as it
|
||||
# distinguishes import libraries from static libraries with the same extension.
|
||||
find_library (FLAC_LIBRARY NAMES FLAC libFLAC libFLAC_dynamic libFLAC_static
|
||||
HINTS ${PC_FLAC_LIBDIR} ${PC_FLAC_LIBRARY_DIRS} ${FLAC_ROOT}
|
||||
PATH_SUFFIXES lib)
|
||||
find_library (FLAC_LIBRARY
|
||||
NAMES
|
||||
FLAC
|
||||
libFLAC
|
||||
libFLAC_dynamic
|
||||
libFLAC_static
|
||||
HINTS
|
||||
${PC_FLAC_LIBDIR}
|
||||
${PC_FLAC_LIBRARY_DIRS}
|
||||
${FLAC_ROOT}
|
||||
)
|
||||
|
||||
# Handle the QUIETLY and REQUIRED arguments and set FLAC_FOUND to TRUE if
|
||||
# all listed variables are TRUE.
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args (FLAC DEFAULT_MSG
|
||||
FLAC_INCLUDE_DIR FLAC_LIBRARY)
|
||||
find_package_handle_standard_args (FLAC
|
||||
REQUIRED_VARS
|
||||
FLAC_LIBRARY
|
||||
FLAC_INCLUDE_DIR
|
||||
OGG_FOUND
|
||||
VERSION_VAR
|
||||
FLAC_VERSION
|
||||
)
|
||||
|
||||
if (FLAC_FOUND)
|
||||
set (FLAC_INCLUDE_DIRS ${FLAC_INCLUDE_DIR} ${OGG_INCLUDE_DIRS})
|
||||
set (FLAC_INCLUDE_DIRS ${FLAC_INCLUDE_DIR})
|
||||
set (FLAC_LIBRARIES ${FLAC_LIBRARY} ${OGG_LIBRARIES})
|
||||
if (WIN32)
|
||||
set (FLAC_LIBRARIES ${FLAC_LIBRARIES} wsock32)
|
||||
@ -41,7 +60,18 @@ if (FLAC_FOUND)
|
||||
if (FLAC_LIBRARY_FILENAME MATCHES "libFLAC_static")
|
||||
set (FLAC_DEFINITIONS -DFLAC__NO_DLL)
|
||||
endif ()
|
||||
endif (WIN32)
|
||||
endif (FLAC_FOUND)
|
||||
endif ()
|
||||
if (NOT TARGET FLAC::FLAC)
|
||||
add_library(FLAC::FLAC UNKNOWN IMPORTED)
|
||||
set_target_properties(FLAC::FLAC PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${FLAC_INCLUDE_DIR}"
|
||||
IMPORTED_LOCATION "${FLAC_LIBRARY}"
|
||||
INTERFACE_LINK_LIBRARIES
|
||||
Ogg::Ogg
|
||||
$<$<BOOL:${WIN32}>:wsock32>
|
||||
INTERFACE_COMPILE_DEFINITIONS ${FLAC_DEFINITIONS}
|
||||
)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
mark_as_advanced(FLAC_INCLUDE_DIR FLAC_LIBRARY)
|
||||
|
@ -3,28 +3,59 @@
|
||||
#
|
||||
# OGG_INCLUDE_DIRS - where to find ogg.h, etc.
|
||||
# OGG_LIBRARIES - List of libraries when using ogg.
|
||||
# Ogg_FOUND - True if ogg found.
|
||||
# OGG_FOUND - True if ogg found.
|
||||
|
||||
if (OGG_INCLUDE_DIR)
|
||||
# Already in cache, be silent
|
||||
set(OGG_FIND_QUIETLY TRUE)
|
||||
endif(OGG_INCLUDE_DIR)
|
||||
endif ()
|
||||
|
||||
find_package (PkgConfig QUIET)
|
||||
pkg_check_modules (PC_OGG QUIET ogg)
|
||||
|
||||
find_path(OGG_INCLUDE_DIR ogg/ogg.h HINTS ${PC_OGG_INCLUDEDIR} ${PC_OGG_INCLUDE_DIRS} ${OGG_ROOT} PATH_SUFFIXES include)
|
||||
set (OGG_VERSION ${PC_OGG_VERSION})
|
||||
|
||||
find_path (OGG_INCLUDE_DIR ogg/ogg.h
|
||||
HINTS
|
||||
${PC_OGG_INCLUDEDIR}
|
||||
${PC_OGG_INCLUDE_DIRS}
|
||||
${OGG_ROOT}
|
||||
)
|
||||
# MSVC built ogg may be named ogg_static.
|
||||
# The provided project files name the library with the lib prefix.
|
||||
find_library(OGG_LIBRARY NAMES ogg ogg_static libogg libogg_static HINTS ${PC_OGG_LIBDIR} ${PC_OGG_LIBRARY_DIRS} ${OGG_ROOT} PATH_SUFFIXES lib)
|
||||
find_library (OGG_LIBRARY
|
||||
NAMES
|
||||
ogg
|
||||
ogg_static
|
||||
libogg
|
||||
libogg_static
|
||||
HINTS
|
||||
${PC_OGG_LIBDIR}
|
||||
${PC_OGG_LIBRARY_DIRS}
|
||||
${OGG_ROOT}
|
||||
)
|
||||
# Handle the QUIETLY and REQUIRED arguments and set OGG_FOUND
|
||||
# to TRUE if all listed variables are TRUE.
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Ogg DEFAULT_MSG OGG_INCLUDE_DIR OGG_LIBRARY)
|
||||
find_package_handle_standard_args (Ogg
|
||||
REQUIRED_VARS
|
||||
OGG_LIBRARY
|
||||
OGG_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
OGG_VERSION
|
||||
)
|
||||
|
||||
if (OGG_FOUND)
|
||||
set (OGG_LIBRARIES ${OGG_LIBRARY})
|
||||
set (OGG_INCLUDE_DIRS ${OGG_INCLUDE_DIR})
|
||||
endif (OGG_FOUND)
|
||||
|
||||
if(NOT TARGET Ogg::Ogg)
|
||||
add_library(Ogg::Ogg UNKNOWN IMPORTED)
|
||||
set_target_properties(Ogg::Ogg PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${OGG_INCLUDE_DIRS}"
|
||||
IMPORTED_LOCATION "${OGG_LIBRARIES}"
|
||||
)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
mark_as_advanced (OGG_INCLUDE_DIR OGG_LIBRARY)
|
||||
|
@ -8,22 +8,49 @@
|
||||
if (SQLITE3_INCLUDE_DIR)
|
||||
# Already in cache, be silent
|
||||
set (SQLITE3_FIND_QUIETLY TRUE)
|
||||
endif(SQLITE3_INCLUDE_DIR)
|
||||
endif ()
|
||||
|
||||
find_package (PkgConfig QUIET)
|
||||
pkg_check_modules (PC_SQLITE3 QUIET sqlite3)
|
||||
|
||||
find_path(SQLITE3_INCLUDE_DIR sqlite3.h HINTS ${PC_SQLITE3_INCLUDEDIR} ${PC_SQLITE3_INCLUDE_DIRS} ${SQLITE3_ROOT})
|
||||
set (SQLITE3_VERSION ${PC_SQLITE3_VERSION})
|
||||
|
||||
find_library (SQLITE3_LIBRARY NAMES sqlite3 HINTS ${PC_SQLITE3_LIBDIR} ${PC_SQLITE3_LIBRARY_DIRS} ${SQLITE3_ROOT} PATH_SUFFIXES lib)
|
||||
find_path (SQLITE3_INCLUDE_DIR sqlite3.h
|
||||
HINTS
|
||||
${PC_SQLITE3_INCLUDEDIR}
|
||||
${PC_SQLITE3_INCLUDE_DIRS}
|
||||
${SQLITE3_ROOT}
|
||||
)
|
||||
|
||||
find_library (SQLITE3_LIBRARY
|
||||
NAMES
|
||||
sqlite3
|
||||
HINTS
|
||||
${PC_SQLITE3_LIBDIR}
|
||||
${PC_SQLITE3_LIBRARY_DIRS}
|
||||
${SQLITE3_ROOT}
|
||||
)
|
||||
|
||||
include (FindPackageHandleStandardArgs)
|
||||
|
||||
find_package_handle_standard_args(SQLITE3 DEFAULT_MSG SQLITE3_INCLUDE_DIR SQLITE3_LIBRARY)
|
||||
find_package_handle_standard_args (SQLITE3
|
||||
REQUIRED_VARS
|
||||
SQLITE3_LIBRARY
|
||||
SQLITE3_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
SQLITE3_VERSION
|
||||
)
|
||||
|
||||
if (SQLITE3_FOUND)
|
||||
set (SQLITE3_INCLUDE_DIRS ${SQLITE3_INCLUDE_DIR})
|
||||
set (SQLITE3_LIBRARIES ${SQLITE3_LIBRARY})
|
||||
endif (SQLITE3_FOUND)
|
||||
if (NOT TARGET SQLite3::SQLite3)
|
||||
add_library (SQLite3::SQLite3 UNKNOWN IMPORTED)
|
||||
set_target_properties (SQLite3::SQLite3 PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${SQLITE3_INCLUDE_DIRS}"
|
||||
IMPORTED_LOCATION "${SQLITE3_LIBRARIES}"
|
||||
)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
mark_as_advanced (SQLITE3_INCLUDE_DIR SQLITE3_LIBRARY)
|
||||
|
@ -1,6 +1,6 @@
|
||||
# - Find SoundIO (sndio) includes and libraries
|
||||
#
|
||||
# Sndio_FOUND - True if SNDIO_INCLUDE_DIR & SNDIO_LIBRARY are
|
||||
# SNDIO_FOUND - True if SNDIO_INCLUDE_DIR & SNDIO_LIBRARY are
|
||||
# found
|
||||
# SNDIO_LIBRARIES - Set when SNDIO_LIBRARY is found
|
||||
# SNDIO_INCLUDE_DIRS - Set when SNDIO_INCLUDE_DIR is found
|
||||
@ -9,25 +9,53 @@
|
||||
# SNDIO_LIBRARY - the sndio library
|
||||
#
|
||||
|
||||
if (SNDIO_INCLUDE_DIR)
|
||||
# Already in cache, be silent
|
||||
set (SNDIO_FIND_QUIETLY TRUE)
|
||||
endif ()
|
||||
|
||||
find_package (PkgConfig QUIET)
|
||||
pkg_check_modules (PC_SNDIO QUIET sndio)
|
||||
|
||||
set (SNDIO_VERSION ${PC_SNDIO_VERSION})
|
||||
|
||||
find_path (SNDIO_INCLUDE_DIR
|
||||
NAMES sndio.h
|
||||
DOC "The SoundIO include directory"
|
||||
NAMES
|
||||
sndio.h
|
||||
HINTS
|
||||
${PC_SNDIO_INCLUDEDIR}
|
||||
${PC_SNDIO_INCLUDE_DIRS}
|
||||
${SNDIO_ROOT}
|
||||
)
|
||||
|
||||
find_library (SNDIO_LIBRARY
|
||||
NAMES sndio
|
||||
DOC "The SoundIO library"
|
||||
NAMES
|
||||
sndio
|
||||
HINTS
|
||||
${PC_SNDIO_LIBDIR}
|
||||
${PC_SNDIO_LIBRARY_DIRS}
|
||||
${SNDIO_ROOT}
|
||||
)
|
||||
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args (Sndio
|
||||
REQUIRED_VARS SNDIO_LIBRARY SNDIO_INCLUDE_DIR
|
||||
REQUIRED_VARS
|
||||
SNDIO_LIBRARY
|
||||
SNDIO_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
SNDIO_VERSION
|
||||
)
|
||||
|
||||
if(Sndio_FOUND)
|
||||
if (SNDIO_FOUND)
|
||||
set (SNDIO_LIBRARIES ${SNDIO_LIBRARY})
|
||||
set (SNDIO_INCLUDE_DIRS ${SNDIO_INCLUDE_DIR})
|
||||
if (NOT TARGET Sndio::Sndio)
|
||||
add_library (Sndio::Sndio UNKNOWN IMPORTED)
|
||||
set_target_properties (Sndio::Sndio PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${SNDIO_INCLUDE_DIRS}"
|
||||
IMPORTED_LOCATION "${SNDIO_LIBRARIES}"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced (SNDIO_INCLUDE_DIR SNDIO_LIBRARY)
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
# SPEEX_INCLUDE_DIRS - where to find speex.h, etc.
|
||||
# SPEEX_LIBRARIES - List of libraries when using Speex.
|
||||
# Speex_FOUND - True if Speex found.
|
||||
# SPEEX_FOUND - True if Speex found.
|
||||
|
||||
if (SPEEX_INCLUDE_DIR)
|
||||
set (SPEEX_FIND_QUIETLY TRUE)
|
||||
@ -12,14 +12,44 @@ endif ()
|
||||
find_package (PkgConfig QUIET)
|
||||
pkg_check_modules (PC_SPEEX QUIET speex)
|
||||
|
||||
find_path (SPEEX_INCLUDE_DIR speex/speex.h HINTS ${PC_SPEEX_INCLUDEDIR} ${PC_SPEEX_INCLUDE_DIRS} ${SPEEX_ROOT} PATH_SUFFIXES include)
|
||||
find_library (SPEEX_LIBRARY NAMES speex HINTS ${PC_SPEEX_LIBDIR} ${PC_SPEEX_LIBRARY_DIRS} ${SPEEX_ROOT} PATH_SUFFIXES lib)
|
||||
set (SPEEX_VERSION ${PC_SPEEX_VERSION})
|
||||
|
||||
find_path (SPEEX_INCLUDE_DIR speex/speex.h
|
||||
HINTS
|
||||
${PC_SPEEX_INCLUDEDIR}
|
||||
${PC_SPEEX_INCLUDE_DIRS}
|
||||
${SPEEX_ROOT}
|
||||
)
|
||||
find_library (SPEEX_LIBRARY
|
||||
NAMES
|
||||
speex
|
||||
libspeex
|
||||
HINTS
|
||||
${PC_SPEEX_LIBDIR}
|
||||
${PC_SPEEX_LIBRARY_DIRS}
|
||||
${SPEEX_ROOT}
|
||||
)
|
||||
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Speex DEFAULT_MSG SPEEX_INCLUDE_DIR SPEEX_LIBRARY)
|
||||
find_package_handle_standard_args (Speex
|
||||
REQUIRED_VARS
|
||||
SPEEX_LIBRARY
|
||||
SPEEX_INCLUDE_DIR
|
||||
VERSION_VAR
|
||||
SPEEX_VERSION
|
||||
)
|
||||
|
||||
if (SPEEX_FOUND)
|
||||
set (SPEEX_LIBRARIES ${SPEEX_LIBRARY})
|
||||
set (SPEEX_INCLUDE_DIRS ${SPEEX_INCLUDE_DIR})
|
||||
|
||||
if (NOT TARGET Speex::Speex)
|
||||
add_library (Speex::Speex UNKNOWN IMPORTED)
|
||||
set_target_properties (Speex::Speex PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${SPEEX_INCLUDE_DIRS}"
|
||||
IMPORTED_LOCATION "${SPEEX_LIBRARIES}"
|
||||
)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
mark_as_advanced (SPEEX_INCLUDE_DIR SPEEX_LIBRARY)
|
||||
|
||||
set(SPEEX_INCLUDE_DIRS ${SPEEX_INCLUDE_DIR})
|
||||
set(SPEEX_LIBRARIES ${SPEEX_LIBRARY})
|
||||
|
||||
|
@ -1,49 +1,64 @@
|
||||
# - Find vorbis
|
||||
# Find the native vorbis includes and libraries
|
||||
# - Find vorbisenc
|
||||
# Find the native vorbisenc includes and libraries
|
||||
#
|
||||
# VORBIS_INCLUDE_DIRS - where to find vorbis.h, etc.
|
||||
# VORBIS_LIBRARIES - List of libraries when using vorbis(file).
|
||||
# Vorbis_FOUND - True if vorbis found.
|
||||
# VORBIS_LIBRARIES - List of libraries when using vorbis.
|
||||
# VORBIS_FOUND - True if vorbis found.
|
||||
|
||||
if (VORBIS_INCLUDE_DIR)
|
||||
# Already in cache, be silent
|
||||
set (VORBIS_FIND_QUIETLY TRUE)
|
||||
endif(VORBIS_INCLUDE_DIR)
|
||||
endif ()
|
||||
|
||||
find_package (Ogg QUIET)
|
||||
|
||||
find_package (PkgConfig QUIET)
|
||||
pkg_check_modules (PC_VORBIS QUIET vorbis)
|
||||
pkg_check_modules(PC_VORBISFILE QUIET vorbisfile)
|
||||
pkg_check_modules(PC_VORBISENC QUIET vorbisenc)
|
||||
|
||||
find_path(VORBIS_INCLUDE_DIR vorbis/codec.h vorbis/vorbisfile.h vorbis/vorbisfile.h
|
||||
HINTS ${PC_VORBIS_INCLUDEDIR} ${PC_VORBIS_INCLUDE_DIRS} ${VORBIS_ROOT}
|
||||
PATH_SUFFIXES include)
|
||||
# MSVC built vorbis may be named vorbis_static
|
||||
# The provided project files name the library with the lib prefix.
|
||||
set (VORBIS_VERSION ${PC_VORBIS_VERSION})
|
||||
|
||||
find_path (VORBIS_INCLUDE_DIR vorbis/codec.h
|
||||
HINTS
|
||||
${PC_VORBIS_INCLUDEDIR}
|
||||
${PC_VORBIS_INCLUDE_DIRS}
|
||||
${VORBIS_ROOT}
|
||||
)
|
||||
|
||||
find_library (VORBIS_LIBRARY
|
||||
NAMES vorbis vorbis_static libvorbis libvorbis_static
|
||||
HINTS ${PC_VORBIS_LIBDIR} ${PC_VORBIS_LIBRARY_DIRS} ${VORBIS_ROOT}
|
||||
PATH_SUFFIXES lib)
|
||||
find_library(VORBISFILE_LIBRARY
|
||||
NAMES vorbisfile vorbisfile_static libvorbisfile libvorbisfile_static
|
||||
HINTS ${PC_VORBISFILE_LIBDIR} ${PC_VORBISFILE_LIBRARY_DIRS} ${VORBIS_ROOT}
|
||||
PATH_SUFFIXES lib)
|
||||
find_library(VORBISENC_LIBRARY
|
||||
NAMES vorbisenc vorbisenc_static libvorbisenc libvorbisenc_static
|
||||
HINTS ${PC_VORBISENC_LIBDIR} ${PC_VORBISENC_LIBRARY_DIRS} ${VORBIS_ROOT}
|
||||
PATH_SUFFIXES lib)
|
||||
NAMES
|
||||
vorbis
|
||||
vorbis_static
|
||||
libvorbis
|
||||
libvorbis_static
|
||||
HINTS
|
||||
${PC_VORBIS_LIBDIR}
|
||||
${PC_VORBIS_LIBRARY_DIRS}
|
||||
${VORBIS_ROOT}
|
||||
)
|
||||
|
||||
# Handle the QUIETLY and REQUIRED arguments and set VORBIS_FOUND
|
||||
# to TRUE if all listed variables are TRUE.
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(Vorbis DEFAULT_MSG VORBIS_INCLUDE_DIR VORBIS_LIBRARY VORBISFILE_LIBRARY VORBISENC_LIBRARY)
|
||||
find_package_handle_standard_args (Vorbis
|
||||
REQUIRED_VARS
|
||||
VORBIS_LIBRARY
|
||||
VORBIS_INCLUDE_DIR
|
||||
OGG_FOUND
|
||||
VERSION_VAR
|
||||
VORBIS_VERSION
|
||||
)
|
||||
|
||||
if (VORBIS_FOUND)
|
||||
set (VORBIS_INCLUDE_DIRS ${VORBIS_INCLUDE_DIR} ${OGG_INCLUDE_DIRS})
|
||||
set (VORBIS_LIBRARIES ${VORBISFILE_LIBRARY} ${VORBIS_LIBRARY} ${VORBISENC_LIBRARY}
|
||||
${OGG_LIBRARIES})
|
||||
endif (VORBIS_FOUND)
|
||||
set (VORBIS_INCLUDE_DIRS ${VORBIS_INCLUDE_DIR})
|
||||
set (VORBIS_LIBRARIES ${VORBIS_LIBRARY} ${OGG_LIBRARIES})
|
||||
if (NOT TARGET Vorbis::Vorbis)
|
||||
add_library (Vorbis::Vorbis UNKNOWN IMPORTED)
|
||||
set_target_properties (Vorbis::Vorbis PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${VORBIS_INCLUDE_DIR}"
|
||||
IMPORTED_LOCATION "${VORBIS_LIBRARY}"
|
||||
INTERFACE_LINK_LIBRARIES Ogg::Ogg
|
||||
)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
mark_as_advanced(VORBIS_INCLUDE_DIR VORBIS_LIBRARY VORBISFILE_LIBRARY VORBISENC_LIBRARY)
|
||||
mark_as_advanced (VORBIS_INCLUDE_DIR VORBIS_LIBRARY)
|
||||
|
64
cmake/FindVorbisEnc.cmake
Normal file
64
cmake/FindVorbisEnc.cmake
Normal file
@ -0,0 +1,64 @@
|
||||
# - Find vorbisenc
|
||||
# Find the native vorbisenc includes and libraries
|
||||
#
|
||||
# VORBISENC_INCLUDE_DIRS - where to find vorbisenc.h, etc.
|
||||
# VORBISENC_LIBRARIES - List of libraries when using vorbisenc.
|
||||
# VORBISENC_FOUND - True if vorbisenc found.
|
||||
|
||||
if (VORBISENC_INCLUDE_DIR)
|
||||
# Already in cache, be silent
|
||||
set (VORBISENC_FIND_QUIETLY TRUE)
|
||||
endif ()
|
||||
|
||||
find_package (Vorbis QUIET)
|
||||
|
||||
find_package (PkgConfig QUIET)
|
||||
pkg_check_modules (PC_VORBISENC QUIET vorbisenc)
|
||||
|
||||
set (VORBISENC_VERSION ${PC_VORBISENC_VERSION})
|
||||
|
||||
find_path (VORBISENC_INCLUDE_DIR vorbis/vorbisenc.h
|
||||
HINTS
|
||||
${PC_VORBISENC_INCLUDEDIR}
|
||||
${PC_VORBISENC_INCLUDE_DIRS}
|
||||
${VORBISENC_ROOT}
|
||||
)
|
||||
|
||||
find_library (VORBISENC_LIBRARY
|
||||
NAMES
|
||||
vorbisenc
|
||||
vorbisenc_static
|
||||
libvorbisenc
|
||||
libvorbisenc_static
|
||||
HINTS
|
||||
${PC_VORBISENC_LIBDIR}
|
||||
${PC_VORBISENC_LIBRARY_DIRS}
|
||||
${VORBISENC_ROOT}
|
||||
)
|
||||
|
||||
# Handle the QUIETLY and REQUIRED arguments and set VORBISENC_FOUND
|
||||
# to TRUE if all listed variables are TRUE.
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args (VorbisEnc
|
||||
REQUIRED_VARS
|
||||
VORBISENC_LIBRARY
|
||||
VORBISENC_INCLUDE_DIR
|
||||
VORBIS_FOUND
|
||||
VERSION_VAR
|
||||
VORBISENC_VERSION
|
||||
)
|
||||
|
||||
if (VORBISENC_FOUND)
|
||||
set (VORBISENC_INCLUDE_DIRS ${VORBISENC_INCLUDE_DIR})
|
||||
set (VORBISENC_LIBRARIES ${VORBISENC_LIBRARY} ${VORBIS_LIBRARIES})
|
||||
if (NOT TARGET Vorbis::VorbisEnc)
|
||||
add_library (Vorbis::VorbisEnc UNKNOWN IMPORTED)
|
||||
set_target_properties (Vorbis::VorbisEnc PROPERTIES
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${VORBISENC_INCLUDE_DIR}"
|
||||
IMPORTED_LOCATION "${VORBISENC_LIBRARY}"
|
||||
INTERFACE_LINK_LIBRARIES Vorbis::Vorbis
|
||||
)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
mark_as_advanced (VORBISENC_INCLUDE_DIR VORBISENC_LIBRARY)
|
@ -1,3 +0,0 @@
|
||||
@PACKAGE_INIT@
|
||||
|
||||
include (${CMAKE_CURRENT_LIST_DIR}/LibSndFileTargets.cmake)
|
@ -17,76 +17,73 @@ endif ()
|
||||
|
||||
if (WIN32)
|
||||
set(TYPEOF_SF_COUNT_T __int64)
|
||||
else (UNIX)
|
||||
else ()
|
||||
set(TYPEOF_SF_COUNT_T int64_t)
|
||||
endif ()
|
||||
set (SF_COUNT_MAX 0x7fffffffffffffffll)
|
||||
|
||||
if (NOT WIN32)
|
||||
find_package (ALSA)
|
||||
if (ALSA_FOUND)
|
||||
set (HAVE_ALSA_ASOUNDLIB_H TRUE)
|
||||
else ()
|
||||
find_package (Sndio)
|
||||
set (HAVE_SNDIO_H ${SNDIO_FOUND})
|
||||
endif (ALSA_FOUND)
|
||||
endif ()
|
||||
|
||||
if (NOT DISABLE_EXTERNAL_LIBS)
|
||||
find_package (Ogg)
|
||||
find_package (Vorbis)
|
||||
find_package (VorbisEnc)
|
||||
find_package (FLAC)
|
||||
if (OGG_FOUND AND VORBIS_FOUND AND FLAC_FOUND)
|
||||
if (VORBIS_FOUND AND FLAC_FOUND)
|
||||
set (HAVE_EXTERNAL_XIPH_LIBS 1)
|
||||
set (EXTERNAL_XIPH_LIBS
|
||||
${OGG_LIBRARIES}
|
||||
${VORBIS_LIBRARIES}
|
||||
${FLAC_LIBRARIES})
|
||||
else ()
|
||||
set (DISABLE_EXTERNAL_LIBS ON)
|
||||
endif ()
|
||||
set (HAVE_EXTERNAL_XIPH_LIBS 0)
|
||||
endif ()
|
||||
|
||||
if (ENABLE_EXPERIMENTAL)
|
||||
find_package (Speex)
|
||||
endif ()
|
||||
|
||||
find_package (SQLite3)
|
||||
if (SQLITE3_FOUND)
|
||||
set (HAVE_SQLITE3 1)
|
||||
endif ()
|
||||
|
||||
check_include_file (byteswap.h HAVE_BYTESWAP_H)
|
||||
check_include_file (dlfcn.h HAVE_DLFCN_H)
|
||||
check_include_file (direct.h HAVE_DIRECT_H)
|
||||
check_include_file (endian.h HAVE_ENDIAN_H)
|
||||
check_include_file (inttypes.h HAVE_INTTYPES_H)
|
||||
check_include_file(locale.h HAVE_LOCALE_H)
|
||||
check_include_file(memory.h HAVE_MEMORY_H)
|
||||
check_include_file (io.h HAVE_IO_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(sys/stat.h HAVE_SYS_STAT_H)
|
||||
check_include_file (sys/time.h HAVE_SYS_TIME_H)
|
||||
check_include_file (sys/types.h HAVE_SYS_TYPES_H)
|
||||
check_include_file(sys/wait.h HAVE_SYS_WAIT_H)
|
||||
check_include_file (unistd.h HAVE_UNISTD_H)
|
||||
check_include_file(io.h HAVE_IO_H)
|
||||
|
||||
# Never checked
|
||||
# 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 (sys/stat.h HAVE_SYS_STAT_H)
|
||||
# check_include_file (memory.h HAVE_MEMORY_H)
|
||||
|
||||
if (BUILD_TESTING)
|
||||
check_include_file (locale.h HAVE_LOCALE_H)
|
||||
check_include_file (sys/wait.h HAVE_SYS_WAIT_H)
|
||||
endif ()
|
||||
|
||||
check_type_size (int64_t SIZEOF_INT64_T)
|
||||
check_type_size(double SIZEOF_DOUBLE)
|
||||
check_type_size(float SIZEOF_FLOAT)
|
||||
check_type_size(int SIZEOF_INT)
|
||||
check_type_size(loff_t SIZEOF_LOFF_T)
|
||||
check_type_size (long SIZEOF_LONG)
|
||||
check_type_size (long\ long SIZEOF_LONG_LONG)
|
||||
check_type_size(offt64_t SIZEOF_OFF64_T)
|
||||
check_type_size(short SIZEOF_SHORT)
|
||||
check_type_size(size_t SIZEOF_SIZE_T)
|
||||
check_type_size (ssize_t SIZEOF_SSIZE_T)
|
||||
check_type_size(void* SIZEOF_VOIDP)
|
||||
check_type_size (wchar_t SIZEOF_WCHAR_T)
|
||||
|
||||
# Never used
|
||||
# check_type_size (loff_t SIZEOF_LOFF_T)
|
||||
# check_type_size (offt64_t SIZEOF_OFF64_T)
|
||||
|
||||
# Never checked
|
||||
# check_type_size (size_t SIZEOF_SIZE_T)
|
||||
|
||||
# Used in configre.ac
|
||||
# check_type_size (double SIZEOF_DOUBLE)
|
||||
# check_type_size (float SIZEOF_FLOAT)
|
||||
# check_type_size (int SIZEOF_INT)
|
||||
# check_type_size (short SIZEOF_SHORT)
|
||||
|
||||
if (ENABLE_TESTING)
|
||||
check_type_size (void* SIZEOF_VOIDP)
|
||||
endif()
|
||||
|
||||
if ((SIZEOF_OFF_T EQUAL 8) OR (SIZEOF_LOFF_T EQUAL 8) OR (SIZEOF_OFF64_T EQUAL 8))
|
||||
set (TYPEOF_SF_COUNT_T "int64_t")
|
||||
set (SF_COUNT_MAX "0x7FFFFFFFFFFFFFFFLL")
|
||||
@ -96,7 +93,7 @@ else ()
|
||||
set (TYPEOF_SF_COUNT_T "__int64")
|
||||
set (SF_COUNT_MAX "0x7FFFFFFFFFFFFFFFLL")
|
||||
set (SIZEOF_SF_COUNT_T 8)
|
||||
else (NOT WIN32)
|
||||
else ()
|
||||
message ("")
|
||||
message ("*** The configure process has determined that this system is capable")
|
||||
message ("*** of Large File Support but has not been able to find a type which")
|
||||
@ -104,64 +101,69 @@ else ()
|
||||
message ("*** Please contact the author to help resolve this problem.")
|
||||
message ("")
|
||||
message (FATAL_ERROR "Bad file offset type.")
|
||||
endif (WIN32)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
check_type_size (${TYPEOF_SF_COUNT_T} SIZEOF_SF_COUNT_T)
|
||||
|
||||
find_library (M_LIBRARY m)
|
||||
if (M_LIBRARY)
|
||||
# Check if he need to link 'm' for math functions
|
||||
if (NOT WIN32)
|
||||
check_library_exists (m floor "" LIBM_REQUIRED)
|
||||
if (LIBM_REQUIRED)
|
||||
list (APPEND CMAKE_REQUIRED_LIBRARIES ${M_LIBRARY})
|
||||
else ()
|
||||
unset (M_LIBRARY)
|
||||
list (APPEND CMAKE_REQUIRED_LIBRARIES m)
|
||||
endif ()
|
||||
endif ()
|
||||
mark_as_advanced (M_LIBRARY)
|
||||
|
||||
check_library_exists (sqlite3 sqlite3_close "" HAVE_SQLITE3)
|
||||
|
||||
check_function_exists(calloc HAVE_CALLOC)
|
||||
check_function_exists(free HAVE_FREE)
|
||||
check_function_exists (fstat HAVE_FSTAT)
|
||||
check_function_exists (fstat64 HAVE_FSTAT64)
|
||||
check_function_exists(fsync HAVE_FSYNC)
|
||||
check_function_exists(ftruncate HAVE_FTRUNCATE)
|
||||
check_function_exists(getpagesize HAVE_GETPAGESIZE)
|
||||
check_function_exists (gettimeofday HAVE_GETTIMEOFDAY)
|
||||
check_function_exists (gmtime HAVE_GMTIME)
|
||||
check_function_exists (gmtime_r HAVE_GMTIME_R)
|
||||
check_function_exists (localtime HAVE_LOCALTIME)
|
||||
check_function_exists (localtime_r HAVE_LOCALTIME_R)
|
||||
check_function_exists (lseek HAVE_LSEEK)
|
||||
check_function_exists(lseek64 HAVE_LSEEK64)
|
||||
check_function_exists(malloc HAVE_MALLOC)
|
||||
check_function_exists(mmap HAVE_MMAP)
|
||||
check_function_exists (open HAVE_OPEN)
|
||||
check_function_exists(pipe HAVE_PIPE)
|
||||
check_function_exists (read HAVE_READ)
|
||||
check_function_exists(realloc HAVE_REALLOC)
|
||||
check_function_exists(setlocale HAVE_SETLOCALE)
|
||||
check_function_exists(snprintf HAVE_SNPRINTF)
|
||||
check_function_exists(vsnprintf HAVE_VSNPRINTF)
|
||||
check_function_exists(waitpid HAVE_WAITPID)
|
||||
check_function_exists (write HAVE_WRITE)
|
||||
check_function_exists(ceil HAVE_CEIL)
|
||||
check_function_exists(floor HAVE_FLOOR)
|
||||
check_function_exists(fmod HAVE_FMOD)
|
||||
check_function_exists (lrint HAVE_LRINT)
|
||||
check_function_exists (lrintf HAVE_LRINTF)
|
||||
check_function_exists(lround HAVE_LROUND)
|
||||
|
||||
if (NOT WIN32)
|
||||
check_function_exists (ftruncate HAVE_FTRUNCATE)
|
||||
check_function_exists (fsync HAVE_FSYNC)
|
||||
endif ()
|
||||
|
||||
if (BUILD_TESTING)
|
||||
check_function_exists (pipe HAVE_PIPE)
|
||||
check_function_exists (setlocale HAVE_SETLOCALE)
|
||||
check_function_exists (waitpid HAVE_WAITPID)
|
||||
endif ()
|
||||
|
||||
# Never checked
|
||||
# check_function_exists (calloc HAVE_CALLOC)
|
||||
# check_function_exists (free HAVE_FREE)
|
||||
# check_function_exists (getpagesize HAVE_GETPAGESIZE)
|
||||
# check_function_exists (malloc HAVE_MALLOC)
|
||||
# check_function_exists (realloc HAVE_REALLOC)
|
||||
# check_function_exists (snprintf HAVE_SNPRINTF)
|
||||
# check_function_exists (vsnprintf HAVE_VSNPRINTF)
|
||||
# check_function_exists (floor HAVE_FLOOR)
|
||||
# check_function_exists (fmod HAVE_FMOD)
|
||||
|
||||
# Never used
|
||||
# check_function_exists (mmap HAVE_MMAP)
|
||||
# check_function_exists (ceil HAVE_CEIL)
|
||||
# check_function_exists (lround HAVE_LROUND)
|
||||
# check_function_exists (lseek64 HAVE_LSEEK64)
|
||||
|
||||
|
||||
check_symbol_exists (S_IRGRP sys/stat.h HAVE_DECL_S_IRGRP)
|
||||
|
||||
test_big_endian (WORDS_BIGENDIAN)
|
||||
if (WORDS_BIGENDIAN)
|
||||
set (WORDS_BIGENDIAN 1)
|
||||
set (CPU_IS_BIG_ENDIAN 1)
|
||||
else (${LITTLE_ENDIAN})
|
||||
else ()
|
||||
set (CPU_IS_LITTLE_ENDIAN 1)
|
||||
endif ()
|
||||
|
||||
@ -173,10 +175,10 @@ if (WIN32)
|
||||
endif ()
|
||||
if (MINGW)
|
||||
set (__USE_MINGW_ANSI_STDIO 1)
|
||||
endif (MINGW)
|
||||
endif (WIN32)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
|
||||
set (OS_IS_OPENBSD 1)
|
||||
endif ()
|
||||
|
||||
@ -185,18 +187,8 @@ if (CMAKE_COMPILER_IS_GNUCC OR (CMAKE_C_COMPILER_ID MATCHES "Clang"))
|
||||
set (COMPILER_IS_GCC 1)
|
||||
endif ()
|
||||
|
||||
if (COMPILER_IS_GCC)
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
|
||||
endif ()
|
||||
|
||||
if (ENABLE_EXPERIMENTAL)
|
||||
set (ENABLE_EXPERIMENTAL_CODE 1)
|
||||
endif ()
|
||||
|
||||
test_inline ()
|
||||
if (NOT DISABLE_CPU_CLIP)
|
||||
clip_mode ()
|
||||
endif ()
|
||||
|
||||
if (MSVC)
|
||||
add_definitions (-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE)
|
||||
@ -208,10 +200,11 @@ if (ENABLE_STATIC_RUNTIME)
|
||||
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
|
||||
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
|
||||
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
|
||||
)
|
||||
if (${flag_var} MATCHES "/MD")
|
||||
string (REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
|
||||
endif(${flag_var} MATCHES "/MD")
|
||||
endif ()
|
||||
endforeach (flag_var)
|
||||
endif (MSVC)
|
||||
if (MINGW)
|
||||
@ -226,19 +219,20 @@ elseif (NOT ENABLE_STATIC_RUNTIME)
|
||||
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE
|
||||
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO)
|
||||
CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO
|
||||
)
|
||||
if (${flag_var} MATCHES "/MT")
|
||||
string (REGEX REPLACE "/MT" "/MD" ${flag_var} "${${flag_var}}")
|
||||
endif (${flag_var} MATCHES "/MT")
|
||||
endforeach (flag_var)
|
||||
endif (MSVC)
|
||||
endif ()
|
||||
if (MINGW)
|
||||
set (CMAKE_C_FLAGS "")
|
||||
set (CMAKE_CXX_FLAGS "")
|
||||
set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||
set (CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
|
||||
endif (MINGW)
|
||||
endif (ENABLE_STATIC_RUNTIME)
|
||||
endif ()
|
||||
endif ( )
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
find_package (PythonInterp REQUIRED)
|
||||
|
@ -12,6 +12,12 @@ if (NOT DEFINED ${VARIABLE})
|
||||
message (STATUS "")
|
||||
message (STATUS "Checking large files support...")
|
||||
|
||||
if (WIN32)
|
||||
set (${VARIABLE} 1 CACHE INTERNAL "Result of tests for large file support" FORCE)
|
||||
message (STATUS "")
|
||||
message (STATUS "Result of checking large files support: supported with WinAPI")
|
||||
else ()
|
||||
|
||||
message (STATUS "")
|
||||
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
||||
check_include_file(stdint.h HAVE_STDINT_H)
|
||||
@ -101,9 +107,6 @@ if (NOT DEFINED ${VARIABLE})
|
||||
message (STATUS "Add LARGE_FILES_DEFINITIONS to your compiler definitions or configure with _FILE_OFFSET_BITS,")
|
||||
message (STATUS "_FILE_OFFSET_BITS_CODE, _LARGE_FILES and _LARGEFILE_SOURCE variables.")
|
||||
endif ()
|
||||
elseif (WIN32)
|
||||
set (${VARIABLE} 1 CACHE INTERNAL "Result of tests for large file support" FORCE)
|
||||
message (STATUS "Result of checking large files support: supported with WinAPI")
|
||||
else ()
|
||||
message ("Result of checking large files support: not supported")
|
||||
set (${VARIABLE} 0 CACHE INTERNAL "Result of test for large file support" FORCE)
|
||||
@ -111,6 +114,8 @@ if (NOT DEFINED ${VARIABLE})
|
||||
message ("")
|
||||
message ("")
|
||||
|
||||
endif ()
|
||||
|
||||
endif (NOT DEFINED ${VARIABLE})
|
||||
|
||||
endmacro (TEST_LARGE_FILES VARIABLE)
|
||||
|
@ -1,12 +0,0 @@
|
||||
prefix=@PC_PREFIX@
|
||||
exec_prefix=@PC_EXEC_PREFIX@
|
||||
libdir=@PC_LIBDIR@
|
||||
includedir=@PC_INCLUDEDIR@
|
||||
|
||||
Name: sndfile
|
||||
Description: A library for reading and writing audio files
|
||||
Requires:
|
||||
Version: @PC_VERSION@
|
||||
Libs: -L${libdir} -lsndfile
|
||||
Libs.private: @PC_PRIVATE_LIBS@
|
||||
Cflags: -I${includedir}
|
@ -191,19 +191,19 @@
|
||||
#cmakedefine01 OS_IS_WIN32
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "@CPACK_PACKAGE_NAME@"
|
||||
#define PACKAGE "@PROJECT_NAME@"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "@PACKAGE_BUGREPORT@"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "@CPACK_PACKAGE_NAME@"
|
||||
#define PACKAGE_NAME "@PROJECT_NAME@"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "@CPACK_PACKAGE_NAME@ @CPACK_PACKAGE_VERSION_FULL@"
|
||||
#define PACKAGE_STRING "@PROJECT_NAME@ @CPACK_PACKAGE_VERSION_FULL@"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "@CPACK_PACKAGE_NAME@"
|
||||
#define PACKAGE_TARNAME "@PROJECT_NAME@"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL "@PACKAGE_URL@"
|
||||
|
@ -110,7 +110,6 @@ def darwin_symbols (progname, version):
|
||||
|
||||
def win32_symbols (progname, version, name):
|
||||
print ("; Auto-generated by %s\n" %progname)
|
||||
print ("LIBRARY %s-%s.dll" % (name, re.sub ("\..*", "", version)))
|
||||
print ("EXPORTS\n")
|
||||
for name, ordinal in ALL_SYMBOLS:
|
||||
print ("%-20s @%s" % (name, ordinal))
|
||||
|
@ -19,7 +19,6 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_AUS
|
||||
VALUE "Full Version", "@PACKAGE_VERSION@"
|
||||
VALUE "InternalName", "libsndfile"
|
||||
VALUE "LegalCopyright", "Copyright (C) 1999-2012, Licensed LGPL"
|
||||
VALUE "OriginalFilename", "libsndfile-1.dll"
|
||||
VALUE "ProductName", "libsndfile-1 DLL"
|
||||
VALUE "ProductVersion", "@CLEAN_VERSION@.0\0"
|
||||
VALUE "Language", "Language Neutral"
|
||||
|
Loading…
Reference in New Issue
Block a user