-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [kfr] Add new port * [kfr] Modernize and update to lastest * [kfr] Add features * [kfr] Fail fast on arm-uwp, arm64-windows * [kfr] Fail fast on linux
- Loading branch information
Showing
3 changed files
with
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Source: kfr | ||
Version: 2020-06-15 | ||
Description: Fast, modern C++ DSP framework | ||
Homepage: https://www.kfr.dev/ | ||
Supports: !(arm|linux) | ||
|
||
Feature: capi | ||
Description: Enable C API build | ||
Build-Depends: kfr[dft] | ||
|
||
Feature: dft | ||
Description: Enable DFT and related algorithms | ||
|
||
Feature: dft-np | ||
Description: Enable Non-power of 2 DFT |
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,34 @@ | ||
vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "Linux") | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO kfrlib/kfr | ||
REF 1f9706197abfcd4b4ec19ded3ce37b70ebd9a223 | ||
SHA512 901c6984a46a7abcc28adf9397759156a9e8d173e028c236ab423568ed20b3a3efe207be9660c961539c73a2767afaedcd76133304f542d3299353942cf13f5e | ||
HEAD_REF master | ||
) | ||
|
||
vcpkg_check_features( | ||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS | ||
capi ENABLE_CAPI_BUILD | ||
dft ENABLE_DFT | ||
dft-np ENABLE_DFT_NP | ||
) | ||
|
||
vcpkg_configure_cmake( | ||
SOURCE_PATH ${SOURCE_PATH} | ||
PREFER_NINJA | ||
OPTIONS | ||
-DENABLE_TESTS=OFF | ||
-DENABLE_ASMTEST=OFF | ||
-DREGENERATE_TESTS=OFF | ||
-DKFR_EXTENDED_TESTS=OFF | ||
-DSKIP_TESTS=ON | ||
${FEATURE_OPTIONS} | ||
) | ||
|
||
vcpkg_install_cmake() | ||
|
||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | ||
|
||
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
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