forked from ruslo/hunter
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add 'FLAC' package * change package source to cpp-pm * build libs only
- Loading branch information
Showing
5 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
include(hunter_add_version) | ||
include(hunter_cacheable) | ||
include(hunter_cmake_args) | ||
include(hunter_download) | ||
include(hunter_pick_scheme) | ||
|
||
hunter_add_version( | ||
PACKAGE_NAME | ||
FLAC | ||
VERSION | ||
1.3.3-p0 | ||
URL | ||
"https://github.com/cpp-pm/flac/archive/1.3.3-p0.tar.gz" | ||
SHA1 | ||
712ff57b046ed00ebc2898989290c148cfda5c36 | ||
) | ||
|
||
set(_hunter_flac_cmake_args) | ||
if(ANDROID OR IOS) | ||
set( | ||
_hunter_flac_cmake_args | ||
WITH_ASM=OFF | ||
) | ||
endif() | ||
|
||
hunter_cmake_args( | ||
FLAC | ||
CMAKE_ARGS | ||
WITH_OGG=OFF | ||
BUILD_EXECUTABLES=OFF | ||
BUILD_EXAMPLES=OFF | ||
BUILD_TESTING=OFF | ||
BUILD_DOXYGEN=OFF | ||
${_hunter_flac_cmake_args} | ||
) | ||
|
||
hunter_pick_scheme(DEFAULT url_sha1_cmake) | ||
hunter_cacheable(FLAC) | ||
hunter_download(PACKAGE_NAME FLAC) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. spelling:: | ||
|
||
FLAC | ||
|
||
.. index:: | ||
single: media ; FLAC | ||
|
||
.. _pkg.FLAC: | ||
|
||
FLAC | ||
==== | ||
|
||
- `Official <https://github.com/xiph/flac>`__ | ||
- `Hunterized <https://github.com/drodin/flac>`__ | ||
- `Example <https://github.com/cpp-pm/hunter/blob/master/examples/FLAC/CMakeLists.txt>`__ | ||
- Added by `drodin <https://github.com/drodin>`__ (`pr-N <https://github.com/cpp-pm/hunter/pull/N>`__) | ||
|
||
.. literalinclude:: /../examples/FLAC/CMakeLists.txt | ||
:language: cmake | ||
:start-after: # DOCUMENTATION_START { | ||
:end-before: # DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
cmake_minimum_required(VERSION 3.2) | ||
|
||
# Emulate HunterGate: | ||
# * https://github.com/hunter-packages/gate | ||
include("../common.cmake") | ||
|
||
project(download-FLAC) | ||
|
||
# DOCUMENTATION_START { | ||
hunter_add_package(FLAC) | ||
find_package(FLAC CONFIG REQUIRED) | ||
|
||
add_executable(main main.cpp) | ||
target_link_libraries(main PUBLIC FLAC::FLAC++) | ||
# DOCUMENTATION_END } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include <FLAC++/all.h> | ||
|
||
int main() { | ||
} |