Skip to content

Commit

Permalink
[kfr] Add new port (#8322)
Browse files Browse the repository at this point in the history
* [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
myd7349 committed Jul 9, 2020
1 parent a6ba0da commit dbba608
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
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 @@ -629,6 +629,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

0 comments on commit dbba608

Please sign in to comment.