early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

39
externals/vcpkg/ports/libilbc/absl.patch vendored Executable file
View File

@@ -0,0 +1,39 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 016b46d37..4caa88fce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,14 +50,12 @@ set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
set(CMAKE_CXX_STANDARD 14)
-if((CMAKE_C_COMPILER_ID STREQUAL "GNU") OR
- (CMAKE_C_COMPILER_ID MATCHES "Clang" AND CMAKE_C_COMPILER_FRONTEND_VARIANT STREQUAL "GNU"))
+if(0)
set(CMAKE_C_FLAGS "-Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wno-unused-parameter -fno-strict-aliasing")
set(CMAKE_C_FLAGS_DEBUG "-g")
set(CMAKE_C_FLAGS_RELEASE "-O2")
endif()
-if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR
- (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_FRONTEND_VARIANT STREQUAL "GNU"))
+if(0)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused-parameter -fno-strict-aliasing")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
@@ -146,7 +144,8 @@ endif()
## Configure input files
#############################################################################
-include_directories(. abseil-cpp ${CMAKE_CURRENT_BINARY_DIR})
+find_package(absl REQUIRED)
+include_directories(. ${CMAKE_CURRENT_BINARY_DIR})
set(ilbc_source_files
modules/audio_coding/codecs/ilbc/abs_quant.c
@@ -310,6 +310,7 @@ add_library(ilbc ${ilbc_source_files})
generate_export_header(ilbc)
set_target_properties(ilbc PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION 3)
set_target_properties(ilbc PROPERTIES CLEAN_DIRECT_OUTPUT 1)
+target_link_libraries(ilbc PRIVATE absl::core_headers)
add_executable(ilbc_test modules/audio_coding/codecs/ilbc/test/iLBC_test.c)
target_link_libraries(ilbc_test ilbc)

View File

@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 671ded64d1..1d01f737c2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -332,7 +332,7 @@ install(FILES ilbc.h ${CMAKE_CURRENT_BINARY_DIR}/ilbc_export.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(FILES CONTRIBUTING.md NEWS.md README.md
DESTINATION ${CMAKE_INSTALL_DOCDIR})
-install(TARGETS ilbc ilbc_test
+install(TARGETS ilbc
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})

29
externals/vcpkg/ports/libilbc/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,29 @@
set(ILBC_VERSION 3.0.4)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO TimothyGu/libilbc
REF cd064edf2c6c104a4e1fd87b34fd24cfa6dbe401
SHA512 323d32dbd54d5ef624940432bf19c29f5ead6f40bc84aba4261f067dfdc40cf4000e383f4dca65cd3b745a354a119a9e515949a1466af89c300cd7bf95991675
PATCHES
do-not-build-ilbc_test.patch
absl.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DCMAKE_INSTALL_DOCDIR=share/${PORT}
)
vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/ilbc_export.h" "#ifdef ILBC_STATIC_DEFINE" "#if 1")
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

15
externals/vcpkg/ports/libilbc/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,15 @@
{
"name": "libilbc",
"version": "3.0.4",
"description": "Open source implementation of the Internet Low Bit Rate Codec (iLBC) / RFC 3951 codec from the WebRTC project.",
"homepage": "https://github.com/TimothyGu/libilbc",
"license": "BSD-3-Clause",
"supports": "!(arm & uwp)",
"dependencies": [
"abseil",
{
"name": "vcpkg-cmake",
"host": true
}
]
}