Commit Graph

3899 Commits

Author SHA1 Message Date
Ralph Giles
a41eb7ddd4 doc: Use empty-element <hr/> tag.
Improve the conformance of the xhtml generated by doxygen by
using the self-closing <hr/> tag in the custom footer.

Without this, xmllint complains about </body> and </html> end
tags inside the still-only <hr>. That syntax is allowed in
html but not xml.
2019-08-04 17:05:09 +10:00
Ralph Giles
e229fb4e56 .travis.yml: Generate and validate html documentation.
Install Doxygen when running on the linux environment to test
generation of the API documentation.

Run the included static html documentation as well as the
generated API documentation through xmllint to verify
it conforms to the declared DTD. Since this this will be very
slow or fail relying on network resources, also install
the w3c-sgml library so the xhtml1 DTDs are available locally.

We're checking the source files, not build results in the
particular environment, so it's fine to run this check
on only a subset of builds.

Don't validate on CMake builds since they're not currently
generating API documentation even when Doxygen is available.
2019-08-04 17:05:09 +10:00
Dagobert Michelsen
fcabd81aba Add -lrt for all operating systems for clock_gettime 2019-07-17 08:16:39 +10:00
Erik de Castro Lopo
deb21bc251 Update Visual Studio 2005 files
Patch-from: Janne Hyvärinen
2019-07-16 07:53:41 +10:00
Erik de Castro Lopo
48e8dbcf4a Fix CppCheck warnings 2019-07-15 09:42:38 +10:00
Erik de Castro Lopo
1146117229 test: Ignore varying length in metadata
The metadata test checked for specific lengths which change from 5 bytes for
something like "1.3.2" to 9 bytes for something like "1.3.3pre1".
2019-07-15 09:42:38 +10:00
evpobr
cd03042ea9 Fix CMake configure warning
Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when
 unquoted.
2019-06-01 12:33:53 +10:00
Vitaliy Kirsanov
0c3440aec0 Fixed #107: CMake error without enabling BUILD_CXXLIBS 2019-05-31 19:19:20 +10:00
Виталий Кирсанов
77e234acef CMake: fixed windows_unicode_filenames linking errors 2019-05-28 15:55:27 +10:00
evpobr
e4b94e3144 Fix Visual Studio solution generation with CMake
Rename flac application target to flacapp to avoid name collision with FLAC library target.

Closes #101.
2019-05-12 09:00:07 +10:00
Vitaliy Kirsanov
95a94232a8 Added README description for CMake 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
26cbd97884 CMAKE_BUILD_TYPE set to Release by default: improved 2019-05-04 11:41:48 +10:00
evpobr
29fadb6e47 Enable components search in package config mode 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
1794b0cd79 CMAKE_BUILD_TYPE set to Release by default 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
b967ef060e Added ECHO_C to CMake tests 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
55447a2d58 Ogg::Ogg renamed to Ogg::ogg 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
573dbc12ae Use of BUILD_SHARED_LIBS added 2019-05-04 11:41:48 +10:00
Виталий Кирсанов
1cb968a7d4 Fixed dependencies on win_utf8_io 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
5d81610eb5 Fixed dependency between grabbag and utf8 2019-05-04 11:41:48 +10:00
Vitaly Kirsanov
a82a014cf1 CMake minimum required lowered to 3.1 2019-05-04 11:41:48 +10:00
evpobr
d38b867f68 Add missing fseeko check 2019-05-04 11:41:48 +10:00
evpobr
b3c20d3b8e Integrate CMake to Travis CI tests
* Add CMake builds with ENABLE_64_BIT_WORDS enabled\disabled
* Run tests in parallel jobs
* Use Xenial Travis image to support CMake >= 3.12
* Install libtool-bin package missing in Xenial image
2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
2359563a46 FLAC now depends on win_utf8_io
Accidently found this missing dependency
2019-05-04 11:41:48 +10:00
Vitaly Kirsanov
8610c3acfb Added /arch:SSE2 flag 2019-05-04 11:41:48 +10:00
Vitaly Kirsanov
aa96297d78 Versions for shared libs specified 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
60129c7018 Cosmetic change: using $<COMPILE_LANGUAGE:> 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
5435f15be4 /test/*.sh enabled for CTest in UNIX 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
6cd2b6cded FindOGG.cmake module added 2019-05-04 11:41:48 +10:00
Vitaliy Kirsanov
c39718d7a3 CMake support added 2019-05-04 11:41:48 +10:00
lvqcl
12ec86c618 Use MMX ASM fucntions instead of SSE4.1 if available
These SSE4.1 functions are not always faster than their MMX ASM counterparts,
so let's use ASM functions if they're available.
2019-03-08 07:01:19 +11:00
Robert Kausch
b936e398e2 Speed up FLAC__bitwriter_write_byte_block (metadata writing) 2019-03-08 07:00:12 +11:00
Karthik Periagaram
cc15b7427a Suppress compression failure message if it is not an error
If the user specifies `--no-error-on-compression-fail`, there is no need
to treat compression failure as an error. Hence, the failure message
should be suppressed along with the non-zero exit code (which already
is suppressed).
2019-02-01 18:20:30 +11:00
lvqcl
421961f00b Replace hadd with shuffle + add 2018-09-20 07:20:13 +10:00
lvqcl
faafa4c82c Cosmetic changes in lpc_asm.nasm and utf8.c 2018-09-02 21:26:51 +10:00
lvqcl
0897458f59 Update MinGW build files 2018-08-26 07:58:50 +10:00
lvqcl
edfbe3cf19 Move CreateFile_utf8 function to a more logical place 2018-08-25 18:55:30 +10:00
Anton Blanchard
cdb030cd37 Add VSX optimised versions of autocorrelation loops
Add a POWER8 and POWER9 version of the autocorrelation functions.

flac --best is about 3.3x faster on POWER9 with this patch.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
2018-08-20 18:16:34 +10:00
Anton Blanchard
8e1796b91a Add runtime detection of POWER8 and POWER9
Use getauxval() to determine if we are on POWER8 or POWER9 or newer.
POWER8 is represented by version 2.07 and POWER9 by version 3.00.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
2018-08-20 18:16:34 +10:00
Amitay Isaacs
c0215fc149 Check if compiler supports target attribute on ppc64
Check if the compiler supports __attribute__((target("cpu=power8")))
and __attribute__((target("cpu=power9")))

Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
2018-08-20 18:16:34 +10:00
Amitay Isaacs
08d9d985da Add m4 macro to check for C __attribute__ features
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
2018-08-20 18:16:34 +10:00
Anton Blanchard
f301518c52 configure.ac: Fix FLAC__CPU_PPC on little endian, and add FLAC__CPU_PPC64
FLAC__CPU_PPC wasn't catching powerpcle or powerpc64le. Fix that and
add a new define for FLAC__CPU_PPC64.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
2018-08-20 18:16:34 +10:00
Anton Blanchard
5e0d4187a2 configure.ac: Add VSX enable/disable
We want to create functions with PowerPC VSX instructions, so add
a configure check.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
2018-08-20 18:16:34 +10:00
Anton Blanchard
595ac14023 configure.ac: Remove SPE detection code
We don't have any SPE code, so there's no need to detect it
at configure time.

Signed-off-by: Anton Blanchard <anton@ozlabs.org>
2018-08-20 18:16:34 +10:00
lvqcl
9fa2b5edba move CreateFile function outside of libFLAC 2018-08-19 15:12:26 +10:00
Erik de Castro Lopo
a8e9857e38 windows_unicode_filenames.c: Fix a missing return statement 2018-08-18 09:44:24 +10:00
evpobr
6892e7c8a2 Improve SIMD detection with Visual Studio
Visual Studio can use GCC (for Android) and Clang (supported toolset) so they must be checked before native compiler.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-06-13 06:21:54 +10:00
orbea
452a447778 Add output-prefix tests
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-06-11 09:57:21 +10:00
orbea
5dff53c0cc Fix --output-prefix with input-files in sub-directories
And make sure to reserve the whole file path when not using --output-prefix.

Fixes https://sourceforge.net/p/flac/bugs/463/
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-06-11 09:57:09 +10:00
luz.paz
01eb19708c Fix miscellaneous typos.
Found via `codespell -q 3`
2018-05-24 07:20:19 +10:00
Robert Kausch
0db0e878b8 .travis.yml: Simplify file structure and add libogg dependency. 2018-05-21 10:51:20 +10:00