summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Release FLAC 1.4.11.4.1Martijn van Beurden2022-09-221-1/+1
|
* [CMake] Create dir for pandoc generationMartijn van Beurden2022-09-221-0/+1
|
* [CMake] C flags were set while CXX flags were meantMartijn van Beurden2022-09-211-1/+1
|
* [CMake] Prepend compiler flags, fix Clang compiler warningsMartijn van Beurden2022-09-171-4/+5
| | | | | | | | | Because of issue https://github.com/xiph/flac/issues/437 compiler flags are prepended instead of appended, so the user can override them without altering the CMakeLists.txt. Also, Clang doesn't support per-function optimize options, so in CMake the fma file gets that option per-file. This is not supported by automake.
* Make sure git doesn't try to get version from other repositoryMartijn van Beurden2022-09-161-3/+3
| | | Fixes https://github.com/xiph/flac/issues/443
* [CMake] Make building of man pages possibleMartijn van Beurden2022-09-151-1/+19
| | | | This mirrors https://github.com/xiph/flac/pull/440 and fixes https://gitlab.xiph.org/xiph/flac/-/issues/2
* install cmake module in default cmake search pathTomasz Kłoczko2022-09-151-4/+4
| | | | | | | | cmake uses $(datadir}/cmake and $(libdir}/cmake as base path to search for its moduels. Install FLAC cmake module in $(libdir}/cmake/FLAC because it provides arch dependent API/ABI. Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
* Fix man pages lvl 1 install pathTomasz Kłoczko2022-09-151-1/+1
| | | | | | | Install those pages in "${CMAKE_INSTALL_MANDIR}/man1 instead directly in "${CMAKE_INSTALL_MANDIR}. Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
* Release FLAC 1.4.01.4.0Martijn van Beurden2022-09-091-1/+1
|
* [CMake] Don't search for libiconv and libintl on WindowsMartijn van Beurden2022-08-011-2/+4
| | | | | The functions these libs provide don't seem to be used on Windows anyway. This fixes https://github.com/xiph/flac/issues/249
* Fix CMake builds with -DBUILD_CXXLIBS=OFF (#360)Cameron Cawley2022-06-241-1/+4
|
* Export flac properly when use with add_subdirectory (#285)martinRenou2022-05-301-3/+13
| | | | | This allows for flac to be used in a larger CMake project with add_subdirectory. It also allows for Ogg to be build elsewhere in the larger project.
* [CMake] Remove _FORTIFY_SOURCE=1 on not having libsspMartijn van Beurden2022-05-201-3/+1
| | | | | | | Based on some information somewhere on the internet, CMakeLists.txt sets _FORTIFY_SOURCE=2 when its runtime functions are available and _FORTIFY_SOURCE=1 when they are not. However, _FORTIFY_SOURCE=1 also requires runtime functions.
* Adding ARM64 support and optimized Neon implementation (#270)RonenGvili2022-04-291-0/+2
| | | | Add NEON intrinsics routines for lpc_compute_residual_from_qlp_coefficients and lpc_compute_residual_from_qlp_coefficients_wide
* [CMake] Enable building ogg together with flac (#325)Martijn van Beurden2022-04-271-2/+11
| | | | This reverts the part of commit 2013738 that searched for a local ogg build
* Add missing langinfo check for CMakeNotTsunami2022-04-211-0/+8
|
* Add git commit tag, hash and date to vendor string when availableMartijn van Beurden2022-04-201-0/+26
| | | | | | | In some circles (Hydrogenaud.io for example) people share binaries compiled from git, i.e. inbetween official releases. Files created with these binaries cannot be discerned from others. To improve troubleshooting, compiles from a git repository are marked with the commit hash and date when configured with autotools or CMake
* [CMake] Remove /MT from MSVC flags, causes crashes with shared libsMartijn van Beurden2022-04-131-1/+1
|
* [CMake] Set binary and library output dir to objs on WindowsMartijn van Beurden2022-04-131-0/+6
| | | | | | | | | | | | Without this patch, CMake places output binaries and libraries in the respective source directories, like the autotools build system. The Visual Studio build system places objects in the objs directory Because CTest didn't run properly when building shared libs, this commit changes the CMake behaviour on (NOT UNIX) to that similar to Visual Studio. That way, DLLs and EXEs are placed in the same directory and running CTest with the correct DLLs being loaded is trivial.
* [CMake] Specifically prefer linking with static libsspMartijn van Beurden2022-04-131-2/+2
| | | | | As to have a libFLAC.dll with no additional dependencies, linking with libssp.a is preferred over linking with libssp.dll.a
* [CMake] Add BUILD_SHARED_LIBS as optionsMartijn van Beurden2022-04-131-0/+1
|
* [CMake] Build with -lssp on MinGWMartijn van Beurden2022-04-131-0/+3
|
* CMake: Make FORTIFY_SOURCE optionalNotTsunami2022-04-131-1/+17
| | | | * Also add in checking for libssp for MinGW
* [CMake] Create prettier MSVC solution filesMartijn van Beurden2022-04-131-0/+23
|
* [CMake] Add options for better MS Visual Studio buildingMartijn van Beurden2022-04-131-2/+5
|
* cmake: fix c/cxx compile option use with asm codeDavid Callu2022-04-121-2/+2
|
* Change version to 1.3.4 and add placeholders for release dateMartijn van Beurden2022-02-201-1/+1
| | | | Signed-off-by: Ralph Giles <giles@thaumas.net>
* Fix version & requires fields in pkg config filesTGMarkiewicz2021-06-241-0/+3
| | | | | | | | | | | Details: - When building with CMake, pkg-config files flac.pc and flac++.pc are not updated with Version information. This causes a failure when running a configure script in opus-tools (https://github.com/xiph/opus-tools). Note that OGG_PACKAGE is set to "ogg" exactly as in the configure.ac, but it is only set when the building explicitly with libogg.
* Bunch of CMake fixesevpobr2020-05-031-6/+6
| | | | | | | | | | | | * Add more Git ignore patterns * Fix Ogg dependency handling (closes #203) * Remove unneeded compiler flag (closes #204) * Fix Visual Studio DLL build error error C2491: 'flac_internal_rename_utf8': definition of dllimport function not allowed (closes #205) * Add alias targets * Reduce number of CMake files * Improve CMake intrinsics detection
* Add more CMake optionsevpobr2020-04-051-18/+26
| | | | | | | * BUILD_PROGRAMS ** INSTALL_MANPAGES * INSTALL_PKGCONFIG_MODULES * INSTALL_CMAKE_CONFIG_MODULE
* CMake: Handier way to find IconvVitaliy Kirsanov2019-12-221-0/+3
|
* cmake/configure.ac: Enable -fstack-protector-strong by defaultNotTsunami2019-11-201-6/+11
| | | | | | | | | | | | | | | | This commit contains the following changes: - Drops -fstack-protector in favor of -fstack-protector-strong. Consequently, the ssp-buffer-size parameter has been removed as -fstack-protector-strong ignores array size. - Add new global opt-out for stack smash protection. This is enabled by default for both autotools and CMake builds. Users can opt out of stack smash protection by passing -DWITH_STACK_PROTECTOR=OFF to CMake or --disable-stack-smash-protection when running ./configure. - Renames HAVE_SSP_FLAG to HAVE_STACK_PROTECTOR_FLAG in CMakeLists.txt to be more readable.
* cmake_minimum_required() cleanup:sezero2019-11-151-2/+9
| | | | | | | | | | - document version requirements in the top-level file. - remove incorrect version requirements from sub-dirs. - set min. required version to 3.5 in top-level file. - set minimun required version to 3.9 under docs/ . - make documents building an option (on by default.) so, the tree can be built using cmake-3.5 using -DBUILD_DOCS=0 on the command line.
* Fix metaflac under ctest.Ralph Giles2019-08-161-1/+1
| | | | | | | | The 1.3.3 release didn't update the version number in the cmake build. It's too late to fix the release, but bringing the version number into sync allows the metaflac test which verifies the encoder's embedded version number to pass, giving us proper test feedback on other changes to the development tree.
* increase required minimum cmake version to 3.9.sezero2019-08-061-1/+1
|
* Fix CMake configure warningevpobr2019-06-011-1/+1
| | | | | Policy CMP0054 is not set: Only interpret if() arguments as variables or keywords when unquoted.
* CMAKE_BUILD_TYPE set to Release by default: improvedVitaliy Kirsanov2019-05-041-2/+2
|
* CMAKE_BUILD_TYPE set to Release by defaultVitaliy Kirsanov2019-05-041-0/+4
|
* Use of BUILD_SHARED_LIBS addedVitaliy Kirsanov2019-05-041-4/+1
|
* CMake minimum required lowered to 3.1Vitaly Kirsanov2019-05-041-16/+17
|
* Add missing fseeko checkevpobr2019-05-041-0/+3
|
* FLAC now depends on win_utf8_ioVitaliy Kirsanov2019-05-041-2/+2
| | | | Accidently found this missing dependency
* Added /arch:SSE2 flagVitaly Kirsanov2019-05-041-2/+2
|
* Cosmetic change: using $<COMPILE_LANGUAGE:>Vitaliy Kirsanov2019-05-041-8/+3
|
* /test/*.sh enabled for CTest in UNIXVitaliy Kirsanov2019-05-041-6/+2
|
* FindOGG.cmake module addedVitaliy Kirsanov2019-05-041-1/+12
|
* CMake support addedVitaliy Kirsanov2019-05-041-0/+123