mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
9ebb96ca72
* Add win32_ordinal_test to test suite * Add examples targets * Add sndfile-regtest target * Improve compatibility with MSVC * Check direct.h header * Add define to enable math constants * Don't use CTest if tests are disabled * Make packaging configurable * Suppress annoying MSVC warnings * Add ENABLE_BOW_DOCS option * Add ENABLE_STATIC_RUNTIME option * Add package config support * Tune large files support messages * Don't build tests when static libs disabled * Use VS solution folders feature * Fix option value set twice * Rename sndfile target to sndfile-shared * Mark M_LIBRARY variable as advanced * Fix config packages installation directory * Rename ENABLE_PACKAGING option for clarity * CPack fixes * Add CMake modules to Makefile.am * Update documentation Closes: https://github.com/erikd/libsndfile/issues/71
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
ACLOCAL_AMFLAGS = -I M4
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-werror
|
|
|
|
if BUILD_OCTAVE_MOD
|
|
octave_dir = Octave
|
|
endif
|
|
|
|
SUBDIRS = M4 Win32 src examples tests
|
|
|
|
if FULL_SUITE
|
|
SUBDIRS += man doc $(octave_dir) regtest programs
|
|
endif
|
|
|
|
DIST_SUBDIRS = M4 man doc Win32 src Octave examples regtest tests programs
|
|
|
|
EXTRA_DIST = libsndfile.spec.in sndfile.pc.in Scripts/android-configure.sh \
|
|
Scripts/linux-to-win-cross-configure.sh Scripts/build-test-tarball.mk.in \
|
|
CMakeLists.txt $(cmake_files) sndfile.pc.cmake.in
|
|
|
|
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/SndFileChecks.cmake cmake/TestInline.cmake \
|
|
cmake/TestLargeFiles.cmake cmake/LibSndFileConfig.cmake.in \
|
|
cmake/TestInline.c.in
|
|
|
|
CLEANFILES = *~
|
|
|
|
pkgconfig_DATA = sndfile.pc
|
|
|
|
m4datadir = $(datadir)/aclocal
|
|
|
|
#===============================================================================
|
|
|
|
test: check-recursive
|
|
|
|
# Target to make autogenerated files.
|
|
checkprograms :
|
|
(cd src ; $(MAKE) libsndfile.la checkprograms)
|
|
(cd tests ; $(MAKE) checkprograms)
|
|
|
|
testprogs :
|
|
(cd src ; $(MAKE) testprogs)
|
|
(cd tests ; $(MAKE) testprogs)
|
|
|
|
|
|
test-tarball : Scripts/build-test-tarball.mk
|
|
(cd src ; $(MAKE) all libsndfile.la checkprograms)
|
|
(cd tests ; $(MAKE) all checkprograms)
|
|
$(MAKE) -f Scripts/build-test-tarball.mk
|