Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kfr] Add new port #8322

Merged
merged 9 commits into from
Jul 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions ports/kfr/CONTROL
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
34 changes: 34 additions & 0 deletions ports/kfr/portfile.cmake
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)
3 changes: 3 additions & 0 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,9 @@ jinja2cpplight:arm-uwp=fail
jinja2cpplight:x64-uwp=fail
keystone:arm-uwp=fail
keystone:x64-uwp=fail
kfr:arm64-windows=fail
kfr:arm-uwp=fail
kfr:x64-linux=fail
kinectsdk1:arm64-windows=fail
kinectsdk1:arm-uwp=fail
kinectsdk1:x64-linux=fail
Expand Down