2022-09-23 05:23:53 +08:00
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O b r e a k f a s t q u a y / r u b b e r b a n d
2022-11-03 04:43:21 +08:00
R E F v 3 . 1 . 1
S H A 5 1 2 a e f 4 d e 0 2 b 6 f e 2 5 0 a b 4 3 d 6 2 7 d 3 0 7 2 0 d a b 8 a e a 3 5 8 7 b 4 2 8 c e 7 6 f e 3 3 9 d 0 b 1 f 0 e 5 0 d a 6 b a 7 f a 7 c 7 6 f 6 1 3 0 6 7 0 4 d d 2 c f c 2 4 2 4 1 f 3 d 4 1 0 8 b 6 c 1 5 5 c 3 d 1 2 6 2 4 e a c 8 5 9 6 7 2 f 8 6 c
2022-09-23 05:23:53 +08:00
H E A D _ R E F d e f a u l t
)
vcpkg_configure_meson (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
O P T I O N S
- D f f t = f f t w # 'auto', 'builtin', 'kissfft', 'fftw', 'vdsp', 'ipp' 'FFT library to use. The default (auto) will use vDSP if available, the builtin implementation otherwise.')
- D r e s a m p l e r = l i b s a m p l e r a t e # 'auto', 'builtin', 'libsamplerate', 'speex', 'ipp' 'Resampler library to use. The default (auto) simply uses the builtin implementation.'
- D i p p _ p a t h = # 'Path to Intel IPP libraries, if selected for any of the other options.'
- D e x t r a _ i n c l u d e _ d i r s = # 'Additional local header directories to search for dependencies.'
- D e x t r a _ l i b _ d i r s = # 'Additional local library directories to search for dependencies.'
)
vcpkg_install_meson ( )
vcpkg_fixup_pkgconfig ( )
vcpkg_copy_pdbs ( )
if ( EXISTS "${CURRENT_PACKAGES_DIR}/bin/rubberband-program${VCPKG_TARGET_EXECUTABLE_SUFFIX}" )
2022-11-03 04:43:21 +08:00
# Rubberband uses a different executable name when compiled with msvc
2022-09-23 05:23:53 +08:00
# Just looking for that file is faster than detecting msvc builds
2022-11-03 04:43:21 +08:00
set ( RUBBERBAND_PROGRAM_NAMES rubberband-program rubberband-program-r3 )
2022-09-23 05:23:53 +08:00
else ( )
2022-11-03 04:43:21 +08:00
set ( RUBBERBAND_PROGRAM_NAMES rubberband rubberband-r3 )
endif ( )
2022-09-23 05:23:53 +08:00
# Features cli and lv2 are build whenever suficient dependencies are installed,
2022-11-03 04:43:21 +08:00
# Remove them when not enabled.
2022-09-23 05:23:53 +08:00
if ( "cli" IN_LIST FEATURES )
2022-11-03 04:43:21 +08:00
vcpkg_copy_tools ( TOOL_NAMES ${ RUBBERBAND_PROGRAM_NAMES } AUTO_CLEAN )
2022-09-23 05:23:53 +08:00
else ( )
2022-11-03 04:43:21 +08:00
vcpkg_clean_executables_in_bin ( FILE_NAMES ${ RUBBERBAND_PROGRAM_NAMES } )
2022-09-23 05:23:53 +08:00
endif ( )
2022-11-03 04:43:21 +08:00
# lv2 feature is not supported yet because vcpkg can't isntall to
2022-09-23 05:23:53 +08:00
# %APPDATA%\LV2 or %COMMONPROGRAMFILES%\LV2 but also complains about dlls in "${CURRENT_PACKAGES_DIR}/lib/lv2"
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/lv2" "${CURRENT_PACKAGES_DIR}/debug/lib/lv2" )
file (
I N S T A L L " $ { S O U R C E _ P A T H } / C O P Y I N G "
D E S T I N A T I O N " $ { C U R R E N T _ P A C K A G E S _ D I R } / s h a r e / $ { P O R T } "
R E N A M E c o p y r i g h t
)