mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:53:02 +08:00
Merge pull request #1706 from IntelOrca/speexdsp
[speexdsp] Add port for speexdsp 1.2rc3
This commit is contained in:
commit
790c3777b7
31
ports/speexdsp/CMakeLists.txt
Normal file
31
ports/speexdsp/CMakeLists.txt
Normal file
@ -0,0 +1,31 @@
|
||||
# CMAKE project for libspeexdsp
|
||||
cmake_minimum_required(VERSION 3.1)
|
||||
option(SOURCE_PATH "Root directory.")
|
||||
project (libspeexdsp)
|
||||
|
||||
file(GLOB_RECURSE LIBSPEEXDSP_SOURCES "${SOURCE_PATH}/libspeexdsp/*.c")
|
||||
list(REMOVE_ITEM LIBSPEEXDSP_SOURCES "${SOURCE_PATH}/libspeexdsp/testdenoise.c"
|
||||
"${SOURCE_PATH}/libspeexdsp/testecho.c"
|
||||
"${SOURCE_PATH}/libspeexdsp/testjitter.c"
|
||||
"${SOURCE_PATH}/libspeexdsp/testresample.c")
|
||||
file(GLOB_RECURSE LIBSPEEXDSP_HEADERS "${SOURCE_PATH}/libspeexdsp/*.h")
|
||||
file(GLOB_RECURSE LIBSPEEXDSP_HEADERS_PUBLIC "${SOURCE_PATH}/include/**/*.h")
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
add_definitions(-D_WINDOWS -D_USRDLL)
|
||||
list(APPEND LIBSPEEXDSP_SOURCES "${SOURCE_PATH}/win32/libspeexdsp.def")
|
||||
else ()
|
||||
add_definitions(-D_LIB)
|
||||
endif ()
|
||||
|
||||
add_definitions(-D_USE_SSE -DHAVE_CONFIG_H -D_WIN32)
|
||||
include_directories("${SOURCE_PATH}/include"
|
||||
"${SOURCE_PATH}/win32")
|
||||
add_library(libspeexdsp ${LIBSPEEXDSP_SOURCES} ${LIBSPEEXDSP_HEADERS})
|
||||
|
||||
set_target_properties(libspeexdsp PROPERTIES PUBLIC_HEADER "${LIBSPEEXDSP_HEADERS_PUBLIC}")
|
||||
|
||||
install(TARGETS libspeexdsp
|
||||
ARCHIVE DESTINATION "lib"
|
||||
RUNTIME DESTINATION "bin"
|
||||
PUBLIC_HEADER DESTINATION "include/speex")
|
4
ports/speexdsp/CONTROL
Normal file
4
ports/speexdsp/CONTROL
Normal file
@ -0,0 +1,4 @@
|
||||
Source: speexdsp
|
||||
Version: 1.2rc3-1
|
||||
Description: A patent-free, Open Source/Free Software DSP library.
|
||||
Build-Depends:
|
24
ports/speexdsp/portfile.cmake
Normal file
24
ports/speexdsp/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
include(vcpkg_common_functions)
|
||||
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/speexdsp-1.2rc3)
|
||||
set(CMAKE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
||||
vcpkg_download_distfile(ARCHIVE_FILE
|
||||
URLS "http://downloads.xiph.org/releases/speex/speexdsp-1.2rc3.tar.gz"
|
||||
FILENAME "speexdsp-1.2rc3.tar.xz"
|
||||
SHA512 29dfa8345df025eeb076561648a9b5c0485692be699b6da3c2a3734b4329187a1c2eb181252f4df12b21f1309ecdf59797437dfb123d160fd723491ab216e858
|
||||
)
|
||||
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${CMAKE_PATH}
|
||||
OPTIONS -DSOURCE_PATH=${SOURCE_PATH}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
# Remove debug include
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
|
||||
# Copy copright information
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/speexdsp" RENAME "copyright")
|
||||
|
||||
vcpkg_copy_pdbs()
|
Loading…
Reference in New Issue
Block a user