applied-ai-018 commited on
Commit
78d1258
·
verified ·
1 Parent(s): 8e4b796

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. cc-multilingual-main/cc_net/vcpkg/ports/aws-crt-cpp/no-werror.patch +15 -0
  2. cc-multilingual-main/cc_net/vcpkg/ports/aws-crt-cpp/portfile.cmake +38 -0
  3. cc-multilingual-main/cc_net/vcpkg/ports/aws-crt-cpp/vcpkg.json +32 -0
  4. cc-multilingual-main/cc_net/vcpkg/ports/boost-algorithm/portfile.cmake +12 -0
  5. cc-multilingual-main/cc_net/vcpkg/ports/boost-algorithm/vcpkg.json +82 -0
  6. cc-multilingual-main/cc_net/vcpkg/ports/boost-polygon/portfile.cmake +12 -0
  7. cc-multilingual-main/cc_net/vcpkg/ports/boost-polygon/vcpkg.json +18 -0
  8. cc-multilingual-main/cc_net/vcpkg/ports/directx-dxc/directx-dxc-config.cmake.in +24 -0
  9. cc-multilingual-main/cc_net/vcpkg/ports/directx-dxc/portfile.cmake +122 -0
  10. cc-multilingual-main/cc_net/vcpkg/ports/directx-dxc/usage +6 -0
  11. cc-multilingual-main/cc_net/vcpkg/ports/directx-dxc/vcpkg.json +24 -0
  12. cc-multilingual-main/cc_net/vcpkg/ports/egl/egl.pc.in +12 -0
  13. cc-multilingual-main/cc_net/vcpkg/ports/egl/portfile.cmake +11 -0
  14. cc-multilingual-main/cc_net/vcpkg/ports/egl/vcpkg-cmake-wrapper.cmake +22 -0
  15. cc-multilingual-main/cc_net/vcpkg/ports/egl/vcpkg.json +14 -0
  16. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0001-create-lib-libraries.patch +27 -0
  17. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0002-fix-msvc-link.patch +11 -0
  18. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0005-fix-nasm.patch +55 -0
  19. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0006-fix-StaticFeatures.patch +49 -0
  20. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0007-fix-lib-naming.patch +16 -0
  21. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0009-Fix-fdk-detection.patch +14 -0
  22. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0011-Fix-x265-detection.patch +15 -0
  23. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0015-Fix-xml2-detection.patch +17 -0
  24. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/FindFFMPEG.cmake.in +161 -0
  25. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/portfile.cmake +888 -0
  26. cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/vcpkg.json +691 -0
  27. cc-multilingual-main/cc_net/vcpkg/ports/gtl/portfile.cmake +25 -0
  28. cc-multilingual-main/cc_net/vcpkg/ports/gtl/vcpkg.json +13 -0
  29. cc-multilingual-main/cc_net/vcpkg/ports/lemon-parser-generator/vcpkg.json +14 -0
  30. cc-multilingual-main/cc_net/vcpkg/ports/libgpod/portfile.cmake +38 -0
  31. cc-multilingual-main/cc_net/vcpkg/ports/libgpod/vcpkg.json +13 -0
  32. cc-multilingual-main/cc_net/vcpkg/ports/libimobiledevice-glue/CMakeLists.txt +77 -0
  33. cc-multilingual-main/cc_net/vcpkg/ports/libofx/portfile.cmake +36 -0
  34. cc-multilingual-main/cc_net/vcpkg/ports/libuuid/CMakeLists.txt +64 -0
  35. cc-multilingual-main/cc_net/vcpkg/ports/libuuid/config.linux.h +13 -0
  36. cc-multilingual-main/cc_net/vcpkg/ports/libuuid/portfile.cmake +40 -0
  37. cc-multilingual-main/cc_net/vcpkg/ports/libuuid/unofficial-libuuid-config.cmake.in +3 -0
  38. cc-multilingual-main/cc_net/vcpkg/ports/libuuid/vcpkg.json +19 -0
  39. cc-multilingual-main/cc_net/vcpkg/ports/libxmlpp/portfile.cmake +31 -0
  40. cc-multilingual-main/cc_net/vcpkg/ports/libxmlpp/vcpkg.json +15 -0
  41. cc-multilingual-main/cc_net/vcpkg/ports/oatpp-mongo/portfile.cmake +24 -0
  42. cc-multilingual-main/cc_net/vcpkg/ports/oatpp-mongo/vcpkg.json +19 -0
  43. cc-multilingual-main/cc_net/vcpkg/ports/openctm/CMakeLists.txt +60 -0
  44. cc-multilingual-main/cc_net/vcpkg/ports/openctm/vcpkg.json +17 -0
  45. cc-multilingual-main/cc_net/vcpkg/ports/openh264/0001-respect-default-library-option.patch +57 -0
  46. cc-multilingual-main/cc_net/vcpkg/ports/openh264/portfile.cmake +35 -0
  47. cc-multilingual-main/cc_net/vcpkg/ports/openh264/vcpkg.json +14 -0
  48. cc-multilingual-main/cc_net/vcpkg/ports/qt5-activeqt/portfile.cmake +2 -0
  49. cc-multilingual-main/cc_net/vcpkg/ports/qt5-activeqt/vcpkg.json +14 -0
  50. cc-multilingual-main/cc_net/vcpkg/ports/rest-rpc/portfile.cmake +28 -0
cc-multilingual-main/cc_net/vcpkg/ports/aws-crt-cpp/no-werror.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ --- a/CMakeLists.txt (revision f2adef31d778cfe90b8a5bb377425f825ebf92f0)
3
+ +++ b/CMakeLists.txt (date 1675009099302)
4
+ @@ -337,9 +337,9 @@
5
+ # set extra warning flags
6
+ if(AWS_WARNINGS_ARE_ERRORS)
7
+ if(MSVC)
8
+ - target_compile_options(${PROJECT_NAME} PRIVATE /W4 /WX /wd4068)
9
+ + target_compile_options(${PROJECT_NAME} PRIVATE /W4 /wd4068)
10
+ else()
11
+ - target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic -Werror)
12
+ + target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wno-long-long -pedantic)
13
+ endif()
14
+ endif()
15
+
cc-multilingual-main/cc_net/vcpkg/ports/aws-crt-cpp/portfile.cmake ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO awslabs/aws-crt-cpp
4
+ REF "v${VERSION}"
5
+ SHA512 357fd22056b24e939d300a2e5f3eb61e6f2683cc1ec187a3a198b25b5908f07c07af38c3e862befb17254a0029f4994e4af43c070620a6a03e7d112c6eabcd25
6
+ PATCHES
7
+ no-werror.patch
8
+ )
9
+
10
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
11
+
12
+ vcpkg_cmake_configure(
13
+ SOURCE_PATH "${SOURCE_PATH}"
14
+ DISABLE_PARALLEL_CONFIGURE
15
+ OPTIONS
16
+ "-DSTATIC_CRT=${STATIC_CRT}"
17
+ -DBUILD_DEPS=OFF
18
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
19
+ -DBUILD_TESTING=FALSE
20
+ )
21
+
22
+ vcpkg_cmake_install()
23
+
24
+ string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}")
25
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH)
26
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake")
27
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/")
28
+
29
+ file(REMOVE_RECURSE
30
+ "${CURRENT_PACKAGES_DIR}/debug/include"
31
+ "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}"
32
+ "${CURRENT_PACKAGES_DIR}/debug/share"
33
+ "${CURRENT_PACKAGES_DIR}/lib/${PORT}"
34
+ )
35
+
36
+ vcpkg_copy_pdbs()
37
+
38
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/aws-crt-cpp/vcpkg.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aws-crt-cpp",
3
+ "version": "0.26.4",
4
+ "description": "C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.",
5
+ "homepage": "https://github.com/awslabs/aws-crt-cpp",
6
+ "license": "Apache-2.0",
7
+ "supports": "!(windows & arm) & !uwp",
8
+ "dependencies": [
9
+ "aws-c-auth",
10
+ "aws-c-cal",
11
+ "aws-c-common",
12
+ "aws-c-compression",
13
+ "aws-c-event-stream",
14
+ "aws-c-http",
15
+ "aws-c-io",
16
+ "aws-c-mqtt",
17
+ "aws-c-s3",
18
+ "aws-checksums",
19
+ {
20
+ "name": "s2n",
21
+ "platform": "!uwp & !windows"
22
+ },
23
+ {
24
+ "name": "vcpkg-cmake",
25
+ "host": true
26
+ },
27
+ {
28
+ "name": "vcpkg-cmake-config",
29
+ "host": true
30
+ }
31
+ ]
32
+ }
cc-multilingual-main/cc_net/vcpkg/ports/boost-algorithm/portfile.cmake ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Automatically generated by scripts/boost/generate-ports.ps1
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO boostorg/algorithm
6
+ REF boost-${VERSION}
7
+ SHA512 d7614816293080982df97725e4994aadf62c0215336b74297d9143cae27d253e666256e0a0759bb2b563396d6cc205fbb6bcc54db383add612efdff2168b4b53
8
+ HEAD_REF master
9
+ )
10
+
11
+ include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
12
+ boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
cc-multilingual-main/cc_net/vcpkg/ports/boost-algorithm/vcpkg.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
3
+ "name": "boost-algorithm",
4
+ "version": "1.84.0",
5
+ "description": "Boost algorithm module",
6
+ "homepage": "https://github.com/boostorg/algorithm",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ {
10
+ "name": "boost-array",
11
+ "version>=": "1.84.0"
12
+ },
13
+ {
14
+ "name": "boost-assert",
15
+ "version>=": "1.84.0"
16
+ },
17
+ {
18
+ "name": "boost-bind",
19
+ "version>=": "1.84.0"
20
+ },
21
+ {
22
+ "name": "boost-concept-check",
23
+ "version>=": "1.84.0"
24
+ },
25
+ {
26
+ "name": "boost-config",
27
+ "version>=": "1.84.0"
28
+ },
29
+ {
30
+ "name": "boost-core",
31
+ "version>=": "1.84.0"
32
+ },
33
+ {
34
+ "name": "boost-exception",
35
+ "version>=": "1.84.0"
36
+ },
37
+ {
38
+ "name": "boost-function",
39
+ "version>=": "1.84.0"
40
+ },
41
+ {
42
+ "name": "boost-iterator",
43
+ "version>=": "1.84.0"
44
+ },
45
+ {
46
+ "name": "boost-mpl",
47
+ "version>=": "1.84.0"
48
+ },
49
+ {
50
+ "name": "boost-range",
51
+ "version>=": "1.84.0"
52
+ },
53
+ {
54
+ "name": "boost-regex",
55
+ "version>=": "1.84.0"
56
+ },
57
+ {
58
+ "name": "boost-static-assert",
59
+ "version>=": "1.84.0"
60
+ },
61
+ {
62
+ "name": "boost-throw-exception",
63
+ "version>=": "1.84.0"
64
+ },
65
+ {
66
+ "name": "boost-tuple",
67
+ "version>=": "1.84.0"
68
+ },
69
+ {
70
+ "name": "boost-type-traits",
71
+ "version>=": "1.84.0"
72
+ },
73
+ {
74
+ "name": "boost-unordered",
75
+ "version>=": "1.84.0"
76
+ },
77
+ {
78
+ "name": "boost-vcpkg-helpers",
79
+ "version>=": "1.84.0"
80
+ }
81
+ ]
82
+ }
cc-multilingual-main/cc_net/vcpkg/ports/boost-polygon/portfile.cmake ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Automatically generated by scripts/boost/generate-ports.ps1
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO boostorg/polygon
6
+ REF boost-${VERSION}
7
+ SHA512 6cb6bdb88f551a52d255ef9fcc500e1cfca26817f215747bafd5ec0d2531c1b2516f7cd8475994113632a015300d914bf0c9d6c731bb52a1874ce526b516fb5c
8
+ HEAD_REF master
9
+ )
10
+
11
+ include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
12
+ boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
cc-multilingual-main/cc_net/vcpkg/ports/boost-polygon/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
3
+ "name": "boost-polygon",
4
+ "version": "1.84.0",
5
+ "description": "Boost polygon module",
6
+ "homepage": "https://github.com/boostorg/polygon",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ {
10
+ "name": "boost-config",
11
+ "version>=": "1.84.0"
12
+ },
13
+ {
14
+ "name": "boost-vcpkg-helpers",
15
+ "version>=": "1.84.0"
16
+ }
17
+ ]
18
+ }
cc-multilingual-main/cc_net/vcpkg/ports/directx-dxc/directx-dxc-config.cmake.in ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ get_filename_component(_dxc_root "${CMAKE_CURRENT_LIST_DIR}" PATH)
2
+ get_filename_component(_dxc_root "${_dxc_root}" PATH)
3
+
4
+ set(DIRECTX_DXC_TOOL "${_dxc_root}/@tool_path@" CACHE PATH "Location of the dxc tool")
5
+ mark_as_advanced(DIRECTX_DXC_TOOL)
6
+
7
+ add_library(Microsoft::DirectXShaderCompiler SHARED IMPORTED)
8
+ set_target_properties(Microsoft::DirectXShaderCompiler PROPERTIES
9
+ IMPORTED_LOCATION "${_dxc_root}/@dll_dir@/@dll_name_dxc@"
10
+ IMPORTED_IMPLIB "${_dxc_root}/lib/@lib_name@"
11
+ IMPORTED_SONAME "@lib_name@"
12
+ INTERFACE_INCLUDE_DIRECTORIES "${_dxc_root}/include/directx-dxc"
13
+ INTERFACE_LINK_LIBRARIES "Microsoft::DXIL"
14
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C")
15
+
16
+ add_library(Microsoft::DXIL SHARED IMPORTED)
17
+ set_target_properties(Microsoft::DXIL PROPERTIES
18
+ IMPORTED_LOCATION "${_dxc_root}/@dll_dir@/@dll_name_dxil@"
19
+ IMPORTED_IMPLIB "${_dxc_root}/lib/@lib_name@"
20
+ IMPORTED_SONAME "@lib_name@"
21
+ INTERFACE_INCLUDE_DIRECTORIES "${_dxc_root}/include/directx-dxc"
22
+ IMPORTED_LINK_INTERFACE_LANGUAGES "C")
23
+
24
+ unset(_dxc_root)
cc-multilingual-main/cc_net/vcpkg/ports/directx-dxc/portfile.cmake ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(VCPKG_POLICY_DLLS_IN_STATIC_LIBRARY enabled)
2
+
3
+ set(DIRECTX_DXC_TAG v1.8.2403)
4
+ set(DIRECTX_DXC_VERSION 2024_03_07)
5
+
6
+ if (NOT VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
7
+ message(STATUS "Note: ${PORT} always requires dynamic library linkage at runtime.")
8
+ endif()
9
+
10
+ if (VCPKG_TARGET_IS_LINUX)
11
+ vcpkg_download_distfile(ARCHIVE
12
+ URLS "https://github.com/microsoft/DirectXShaderCompiler/releases/download/${DIRECTX_DXC_TAG}/linux_dxc_${DIRECTX_DXC_VERSION}.x86_64.tar.gz"
13
+ FILENAME "linux_dxc_${DIRECTX_DXC_VERSION}.tar.gz"
14
+ SHA512 8212b31dd1f10b9896ab7cacc6230a8c1685a7dac8953e6adc85885e6305f39e2eb539119f3716de57c9ff3ebdb70fd746200bd390b341062a1aefae867d796c
15
+ )
16
+ else()
17
+ vcpkg_download_distfile(ARCHIVE
18
+ URLS "https://github.com/microsoft/DirectXShaderCompiler/releases/download/${DIRECTX_DXC_TAG}/dxc_${DIRECTX_DXC_VERSION}.zip"
19
+ FILENAME "dxc_${DIRECTX_DXC_VERSION}.zip"
20
+ SHA512 a0a8ec523d5937f545261dd3ad30d55c222444ba1872a0a8c6f0c869d809537afbc57cb605b7cf156650ca38fc12ec8c1add3ffc18b65dd7fe785afe6a7f85f2
21
+ )
22
+ endif()
23
+
24
+ vcpkg_download_distfile(
25
+ LICENSE_TXT
26
+ URLS "https://raw.githubusercontent.com/microsoft/DirectXShaderCompiler/${DIRECTX_DXC_TAG}/LICENSE.TXT"
27
+ FILENAME "LICENSE.${DIRECTX_DXC_VERSION}"
28
+ SHA512 9feaa85ca6d42d5a2d6fe773706bbab8241e78390a9d61ea9061c8f0eeb5a3e380ff07c222e02fbf61af7f2b2f6dd31c5fc87247a94dae275dc0a20cdfcc8c9d
29
+ )
30
+
31
+ vcpkg_extract_source_archive(
32
+ PACKAGE_PATH
33
+ ARCHIVE ${ARCHIVE}
34
+ NO_REMOVE_ONE_LEVEL
35
+ )
36
+
37
+ if (VCPKG_TARGET_IS_LINUX)
38
+ file(INSTALL
39
+ "${PACKAGE_PATH}/include/dxc/dxcapi.h"
40
+ "${PACKAGE_PATH}/include/dxc/dxcerrors.h"
41
+ "${PACKAGE_PATH}/include/dxc/dxcisense.h"
42
+ "${PACKAGE_PATH}/include/dxc/WinAdapter.h"
43
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
44
+
45
+ file(INSTALL
46
+ "${PACKAGE_PATH}/lib/libdxcompiler.so"
47
+ "${PACKAGE_PATH}/lib/libdxil.so"
48
+ DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
49
+
50
+ if(NOT DEFINED VCPKG_BUILD_TYPE)
51
+ file(INSTALL
52
+ "${PACKAGE_PATH}/lib/libdxcompiler.so"
53
+ "${PACKAGE_PATH}/lib/libdxil.so"
54
+ DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
55
+ endif()
56
+
57
+ file(INSTALL
58
+ "${PACKAGE_PATH}/bin/dxc"
59
+ DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/")
60
+
61
+ set(dll_name_dxc "libdxcompiler.so")
62
+ set(dll_name_dxil "libdxil.so")
63
+ set(dll_dir "lib")
64
+ set(lib_name "libdxcompiler.so")
65
+ set(tool_path "tools/${PORT}/dxc")
66
+ else()
67
+ # VCPKG_TARGET_IS_WINDOWS
68
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
69
+ set(DXC_ARCH arm64)
70
+ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
71
+ set(DXC_ARCH x86)
72
+ else()
73
+ set(DXC_ARCH x64)
74
+ endif()
75
+
76
+ file(INSTALL
77
+ "${PACKAGE_PATH}/inc/dxcapi.h"
78
+ "${PACKAGE_PATH}/inc/dxcerrors.h"
79
+ "${PACKAGE_PATH}/inc/dxcisense.h"
80
+ "${PACKAGE_PATH}/inc/d3d12shader.h"
81
+ DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
82
+
83
+ file(INSTALL "${PACKAGE_PATH}/lib/${DXC_ARCH}/dxcompiler.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
84
+ if(NOT DEFINED VCPKG_BUILD_TYPE)
85
+ file(INSTALL "${PACKAGE_PATH}/lib/${DXC_ARCH}/dxcompiler.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
86
+ endif()
87
+
88
+ file(INSTALL
89
+ "${PACKAGE_PATH}/bin/${DXC_ARCH}/dxcompiler.dll"
90
+ "${PACKAGE_PATH}/bin/${DXC_ARCH}/dxil.dll"
91
+ DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
92
+
93
+ if(NOT DEFINED VCPKG_BUILD_TYPE)
94
+ file(INSTALL
95
+ "${PACKAGE_PATH}/bin/${DXC_ARCH}/dxcompiler.dll"
96
+ "${PACKAGE_PATH}/bin/${DXC_ARCH}/dxil.dll"
97
+ DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
98
+ endif()
99
+
100
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}/")
101
+
102
+ file(INSTALL
103
+ "${PACKAGE_PATH}/bin/${DXC_ARCH}/dxc.exe"
104
+ "${PACKAGE_PATH}/bin/${DXC_ARCH}/dxcompiler.dll"
105
+ "${PACKAGE_PATH}/bin/${DXC_ARCH}/dxil.dll"
106
+ DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/")
107
+
108
+ set(dll_name_dxc "dxcompiler.dll")
109
+ set(dll_name_dxil "dxil.dll")
110
+ set(dll_dir "bin")
111
+ set(lib_name "dxcompiler.lib")
112
+ set(tool_path "tools/${PORT}/dxc.exe")
113
+ endif()
114
+
115
+ vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
116
+
117
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/directx-dxc-config.cmake.in"
118
+ "${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake"
119
+ @ONLY)
120
+
121
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
122
+ vcpkg_install_copyright(FILE_LIST "${LICENSE_TXT}")
cc-multilingual-main/cc_net/vcpkg/ports/directx-dxc/usage ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ The DirectX Shader Compiler package provides CMake targets:
2
+
3
+ find_package(directx-dxc CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE Microsoft::DirectXShaderCompiler)
5
+
6
+ The CMake variable DIRECTX_DXC_TOOL is also set to point to the appropriate DXC command-line tool.
cc-multilingual-main/cc_net/vcpkg/ports/directx-dxc/vcpkg.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "directx-dxc",
3
+ "version-date": "2024-03-07",
4
+ "port-version": 1,
5
+ "description": "DirectX Shader Compiler (LLVM/Clang)",
6
+ "homepage": "https://github.com/microsoft/DirectXShaderCompiler",
7
+ "documentation": "https://github.com/microsoft/DirectXShaderCompiler/wiki",
8
+ "license": null,
9
+ "supports": "(windows & !arm32 & !uwp & !xbox) | (linux & x64)",
10
+ "dependencies": [
11
+ {
12
+ "name": "vcpkg-cmake",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake-config",
17
+ "host": true
18
+ },
19
+ {
20
+ "name": "zlib",
21
+ "platform": "linux & !static"
22
+ }
23
+ ]
24
+ }
cc-multilingual-main/cc_net/vcpkg/ports/egl/egl.pc.in ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ prefix=${pcfiledir}/../..
2
+ libdir=${prefix}/lib
3
+ includedir=${prefix}/include
4
+
5
+ Name: EGL
6
+ Description: EGL library and headers.
7
+ Version: @VERSION@
8
+ Requires.private: zlib opengl # angle
9
+ Libs: -L${libdir} -llibEGL
10
+ Libs.private: -llibGLESv2 -llibANGLE -ld3d9 -ldxguid -ldxgi
11
+ Cflags: -I${includedir}
12
+ Cflags.private: -DKHRONOS_STATIC
cc-multilingual-main/cc_net/vcpkg/ports/egl/portfile.cmake ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
2
+
3
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/egl/vcpkg-cmake-wrapper.cmake" @ONLY)
4
+
5
+ if(VCPKG_TARGET_IS_WINDOWS)
6
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/egl.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/egl.pc" @ONLY)
7
+ if (NOT VCPKG_BUILD_TYPE)
8
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/egl.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/egl.pc" @ONLY)
9
+ endif()
10
+ vcpkg_fixup_pkgconfig()
11
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/egl/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Wrapper for FindEGL.cmake in extra-cmake-modules (port ecm) and its vendored copies
2
+
3
+ if(UNIX)
4
+ find_package(OpenGL COMPONENTS EGL)
5
+ if(OPENGL_egl_LIBRARY)
6
+ set(EGL_LIBRARY "${OPENGL_egl_LIBRARY}" CACHE STRING "")
7
+ set(EGL_INCLUDE_DIR "${OPENGL_EGL_INCLUDE_DIRS}" CACHE STRING "")
8
+ endif()
9
+ elseif(WIN32)
10
+ find_package(unofficial-angle CONFIG)
11
+ if(TARGET unofficial::angle::libEGL)
12
+ set(EGL_LIBRARY unofficial::angle::libEGL)
13
+ if(NOT TARGET EGL::EGL)
14
+ add_library(EGL::EGL INTERFACE IMPORTED)
15
+ set_target_properties(EGL::EGL PROPERTIES
16
+ INTERFACE_LINK_LIBRARIES unofficial::angle::libEGL
17
+ )
18
+ endif()
19
+ endif()
20
+ endif()
21
+
22
+ _find_package(${ARGS})
cc-multilingual-main/cc_net/vcpkg/ports/egl/vcpkg.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "egl",
3
+ "version-date": "2022-12-04",
4
+ "description": "EGL is an interface between Khronos rendering APIs (such as OpenGL, OpenGL ES or OpenVG) and the underlying native platform windowing system.",
5
+ "license": null,
6
+ "dependencies": [
7
+ {
8
+ "$comment": "alternativly this can be supplied by mesa; angle translates to Direct 3D",
9
+ "name": "angle",
10
+ "platform": "windows"
11
+ },
12
+ "opengl"
13
+ ]
14
+ }
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0001-create-lib-libraries.patch ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure b/configure
2
+ index 1f0b9497cb..3243e23021 100644
3
+ --- a/configure
4
+ +++ b/configure
5
+ @@ -5697,17 +5697,19 @@ case $target_os in
6
+ ;;
7
+ win32|win64)
8
+ disable symver
9
+ - if enabled shared; then
10
+ +# if enabled shared; then
11
+ # Link to the import library instead of the normal static library
12
+ # for shared libs.
13
+ LD_LIB='%.lib'
14
+ # Cannot build both shared and static libs with MSVC or icl.
15
+ - disable static
16
+ - fi
17
+ +# disable static
18
+ +# fi
19
+ ! enabled small && test_cmd $windres --version && enable gnu_windres
20
+ enabled x86_32 && check_ldflags -LARGEADDRESSAWARE
21
+ add_cppflags -DWIN32_LEAN_AND_MEAN
22
+ shlibdir_default="$bindir_default"
23
+ + LIBPREF=""
24
+ + LIBSUF=".lib"
25
+ SLIBPREF=""
26
+ SLIBSUF=".dll"
27
+ SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0002-fix-msvc-link.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure b/configure
2
+ --- a/configure
3
+ +++ b/configure
4
+ @@ -6162,6 +6162,7 @@ EOF
5
+ test -n "$extern_prefix" && append X86ASMFLAGS "-DPREFIX"
6
+ case "$objformat" in
7
+ elf*) enabled debug && append X86ASMFLAGS $x86asm_debug ;;
8
+ + win*) enabled debug && append X86ASMFLAGS "-g" ;;
9
+ esac
10
+
11
+ enabled avx512 && check_x86asm avx512_external "vmovdqa32 [eax]{k1}{z}, zmm0"
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0005-fix-nasm.patch ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/libavcodec/x86/Makefile b/libavcodec/x86/Makefile
2
+ --- a/libavcodec/x86/Makefile
3
+ +++ b/libavcodec/x86/Makefile
4
+ @@ -158,6 +158,8 @@ X86ASM-OBJS-$(CONFIG_ALAC_DECODER) += x86/alacdsp.o
5
+ X86ASM-OBJS-$(CONFIG_APNG_DECODER) += x86/pngdsp.o
6
+ X86ASM-OBJS-$(CONFIG_CAVS_DECODER) += x86/cavsidct.o
7
+ +ifdef ARCH_X86_64
8
+ X86ASM-OBJS-$(CONFIG_CFHD_ENCODER) += x86/cfhdencdsp.o
9
+ +endif
10
+ X86ASM-OBJS-$(CONFIG_CFHD_DECODER) += x86/cfhddsp.o
11
+ X86ASM-OBJS-$(CONFIG_DCA_DECODER) += x86/dcadsp.o x86/synth_filter.o
12
+ X86ASM-OBJS-$(CONFIG_DIRAC_DECODER) += x86/diracdsp.o \
13
+ @@ -175,15 +177,21 @@ x86/hevc_sao_10bit.o
14
+ X86ASM-OBJS-$(CONFIG_JPEG2000_DECODER) += x86/jpeg2000dsp.o
15
+ X86ASM-OBJS-$(CONFIG_LSCR_DECODER) += x86/pngdsp.o
16
+ +ifdef ARCH_X86_64
17
+ X86ASM-OBJS-$(CONFIG_MLP_DECODER) += x86/mlpdsp.o
18
+ +endif
19
+ X86ASM-OBJS-$(CONFIG_MPEG4_DECODER) += x86/xvididct.o
20
+ X86ASM-OBJS-$(CONFIG_PNG_DECODER) += x86/pngdsp.o
21
+ +ifdef ARCH_X86_64
22
+ X86ASM-OBJS-$(CONFIG_PRORES_DECODER) += x86/proresdsp.o
23
+ X86ASM-OBJS-$(CONFIG_PRORES_LGPL_DECODER) += x86/proresdsp.o
24
+ +endif
25
+ X86ASM-OBJS-$(CONFIG_RV40_DECODER) += x86/rv40dsp.o
26
+ X86ASM-OBJS-$(CONFIG_SBC_ENCODER) += x86/sbcdsp.o
27
+ X86ASM-OBJS-$(CONFIG_SVQ1_ENCODER) += x86/svq1enc.o
28
+ X86ASM-OBJS-$(CONFIG_TAK_DECODER) += x86/takdsp.o
29
+ +ifdef ARCH_X86_64
30
+ X86ASM-OBJS-$(CONFIG_TRUEHD_DECODER) += x86/mlpdsp.o
31
+ +endif
32
+ X86ASM-OBJS-$(CONFIG_TTA_DECODER) += x86/ttadsp.o
33
+ X86ASM-OBJS-$(CONFIG_TTA_ENCODER) += x86/ttaencdsp.o
34
+ X86ASM-OBJS-$(CONFIG_UTVIDEO_DECODER) += x86/utvideodsp.o
35
+ diff --git a/libavfilter/x86/Makefile b/libavfilter/x86/Makefile
36
+ --- a/libavfilter/x86/Makefile
37
+ +++ b/libavfilter/x86/Makefile
38
+ @@ -44,6 +44,8 @@
39
+ X86ASM-OBJS-$(CONFIG_AFIR_FILTER) += x86/af_afir.o
40
+ X86ASM-OBJS-$(CONFIG_ANLMDN_FILTER) += x86/af_anlmdn.o
41
+ +ifdef ARCH_X86_64
42
+ X86ASM-OBJS-$(CONFIG_ATADENOISE_FILTER) += x86/vf_atadenoise.o
43
+ +endif
44
+ X86ASM-OBJS-$(CONFIG_BLEND_FILTER) += x86/vf_blend.o
45
+ X86ASM-OBJS-$(CONFIG_BWDIF_FILTER) += x86/vf_bwdif.o
46
+ X86ASM-OBJS-$(CONFIG_COLORSPACE_FILTER) += x86/colorspacedsp.o
47
+ @@ -62,6 +62,8 @@ X86ASM-OBJS-$(CONFIG_LUT3D_FILTER) += x86/vf_lut3d.o
48
+ X86ASM-OBJS-$(CONFIG_MASKEDCLAMP_FILTER) += x86/vf_maskedclamp.o
49
+ X86ASM-OBJS-$(CONFIG_MASKEDMERGE_FILTER) += x86/vf_maskedmerge.o
50
+ +ifdef ARCH_X86_64
51
+ X86ASM-OBJS-$(CONFIG_NLMEANS_FILTER) += x86/vf_nlmeans.o
52
+ +endif
53
+ X86ASM-OBJS-$(CONFIG_OVERLAY_FILTER) += x86/vf_overlay.o
54
+ X86ASM-OBJS-$(CONFIG_PP7_FILTER) += x86/vf_pp7.o
55
+ X86ASM-OBJS-$(CONFIG_PSNR_FILTER) += x86/vf_psnr.o
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0006-fix-StaticFeatures.patch ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure b/configure
2
+ index 6d3f31fc95..f5f4a769cc 100644
3
+ --- a/configure
4
+ +++ b/configure
5
+ @@ -6761,7 +6761,8 @@ if enabled libmfx; then
6
+ fi
7
+
8
+ enabled libmodplug && require_pkg_config libmodplug libmodplug libmodplug/modplug.h ModPlug_Load
9
+ -enabled libmp3lame && require "libmp3lame >= 3.98.3" lame/lame.h lame_set_VBR_quality -lmp3lame $libm_extralibs
10
+ +enabled libmp3lame && { check_lib libmp3lame lame/lame.h lame_set_VBR_quality -lmp3lame $libm_extralibs ||
11
+ + require libmp3lame lame/lame.h lame_set_VBR_quality -llibmp3lame-static -llibmpghip-static $libm_extralibs; }
12
+ enabled libmysofa && { check_pkg_config libmysofa libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine ||
13
+ require libmysofa mysofa.h mysofa_neighborhood_init_withstepdefine -lmysofa $zlib_extralibs; }
14
+ enabled libnpp && { check_lib libnpp npp.h nppGetLibVersion -lnppig -lnppicc -lnppc -lnppidei -lnppif ||
15
+ @@ -6805,7 +6806,7 @@ if enabled debug_configure; then
16
+ else
17
+ enabled libsnappy && require libsnappy snappy-c.h snappy_compress -lsnappy -lstdc++
18
+ fi
19
+ -enabled libsoxr && require libsoxr soxr.h soxr_create -lsoxr
20
+ +enabled libsoxr && require libsoxr soxr.h soxr_create -lsoxr -lm
21
+ enabled libssh && require_pkg_config libssh "libssh >= 0.6.0" libssh/sftp.h sftp_init
22
+ enabled libspeex && require_pkg_config libspeex speex speex/speex.h speex_decoder_init
23
+ enabled libsrt && require_pkg_config libsrt "srt >= 1.3.0" srt/srt.h srt_socket
24
+ @@ -6888,6 +6889,8 @@ enabled openal && { check_pkg_config openal "openal >= 1.1" "AL/al.h"
25
+ enabled opencl && { check_pkg_config opencl OpenCL CL/cl.h clEnqueueNDRangeKernel ||
26
+ check_lib opencl OpenCL/cl.h clEnqueueNDRangeKernel -Wl,-framework,OpenCL ||
27
+ check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL ||
28
+ + check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL -lAdvapi32 -lOle32 -lCfgmgr32||
29
+ + check_lib opencl CL/cl.h clEnqueueNDRangeKernel -lOpenCL -pthread -ldl ||
30
+ die "ERROR: opencl not found"; } &&
31
+ { test_cpp_condition "OpenCL/cl.h" "defined(CL_VERSION_1_2)" ||
32
+ test_cpp_condition "CL/cl.h" "defined(CL_VERSION_1_2)" ||
33
+ @@ -6914,6 +6917,7 @@ enabled openssl && { { check_pkg_config openssl "openssl >= 3.0.0" ope
34
+ check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto ||
35
+ check_lib openssl openssl/ssl.h SSL_library_init -lssl32 -leay32 ||
36
+ check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 ||
37
+ + check_lib openssl openssl/ssl.h OPENSSL_init_ssl -llibssl -llibcrypto -lws2_32 -lgdi32 -lcrypt32 -lAdvapi32 -lUser32||
38
+ die "ERROR: openssl not found"; }
39
+ enabled pocketsphinx && require_pkg_config pocketsphinx pocketsphinx pocketsphinx/pocketsphinx.h ps_init
40
+ enabled rkmpp && { require_pkg_config rkmpp rockchip_mpp rockchip/rk_mpi.h mpp_create &&
41
+ @@ -7215,7 +7219,7 @@ enabled amf &&
42
+ if enabled libc_iconv; then
43
+ check_func_headers iconv.h iconv
44
+ elif enabled iconv; then
45
+ - check_func_headers iconv.h iconv || check_lib iconv iconv.h iconv -liconv
46
+ + check_func_headers iconv.h iconv || check_lib iconv iconv.h iconv -liconv || check_lib iconv iconv.h iconv -liconv -llibcharset
47
+ fi
48
+
49
+ enabled debug && add_cflags -g"$debuglevel" && add_asflags -g"$debuglevel"
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0007-fix-lib-naming.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure b/configure
2
+ index d6c4388..75b96c3 100644
3
+ --- a/configure
4
+ +++ b/configure
5
+ @@ -4378,6 +4378,11 @@ msvc_common_flags(){
6
+ -march=*) ;;
7
+ -lz) echo zlib.lib ;;
8
+ -lx264) echo libx264.lib ;;
9
+ + -lx265) echo libx265.lib ;;
10
+ + -lmp3lame) echo libmp3lame.lib ;;
11
+ + -liconv) echo iconv.lib ;;
12
+ + -llibcharset) echo charset.lib ;;
13
+ + -lm) ;;
14
+ -lstdc++) ;;
15
+ -l*) echo ${flag#-l}.lib ;;
16
+ -LARGEADDRESSAWARE) echo $flag ;;
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0009-Fix-fdk-detection.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure b/configure
2
+ index b137669dd3..34c92230f4 100755
3
+ --- a/configure
4
+ +++ b/configure
5
+ @@ -6331,7 +6331,7 @@ enabled libdavs2 && require_pkg_config libdavs2 "davs2 >= 1.6.0" davs2.
6
+ enabled libdc1394 && require_pkg_config libdc1394 libdc1394-2 dc1394/dc1394.h dc1394_new
7
+ enabled libdrm && require_pkg_config libdrm libdrm xf86drm.h drmGetVersion
8
+ enabled libfdk_aac && { check_pkg_config libfdk_aac fdk-aac "fdk-aac/aacenc_lib.h" aacEncOpen ||
9
+ - { require libfdk_aac fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac &&
10
+ + { require libfdk_aac fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac -lm -lstdc++ &&
11
+ warn "using libfdk without pkg-config"; } }
12
+ flite_extralibs="-lflite_cmu_time_awb -lflite_cmu_us_awb -lflite_cmu_us_kal -lflite_cmu_us_kal16 -lflite_cmu_us_rms -lflite_cmu_us_slt -lflite_usenglish -lflite_cmulex -lflite"
13
+ enabled libflite && require libflite "flite/flite.h" flite_init $flite_extralibs
14
+
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0011-Fix-x265-detection.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/configure b/configure
2
+ --- a/configure
3
+ +++ b/configure
4
+ @@ -6730,7 +6730,10 @@
5
+ [ "$toolchain" != "msvc" ] ||
6
+ require_cpp_condition libx264 x264.h "X264_BUILD >= 158"; } &&
7
+ check_cpp_condition libx262 x264.h "X264_MPEG2"
8
+ -enabled libx265 && require_pkg_config libx265 x265 x265.h x265_api_get &&
9
+ +enabled libx265 && { check_pkg_config libx265 x265 x265.h x265_api_get ||
10
+ + { { check_lib libx265 x265.h x265_api_get "-lx265 $pthreads_extralibs $libm_extralibs -ldl -lstdc++ -lgcc_s -lgcc -lrt -lnuma" ||
11
+ + require libx265 x265.h x265_api_get "-lx265 $pthreads_extralibs $libm_extralibs -ldl -lstdc++"; } &&
12
+ + warn "using libx265 without pkg-config"; } } &&
13
+ require_cpp_condition libx265 x265.h "X265_BUILD >= 89"
14
+ enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode "-lxavs $pthreads_extralibs $libm_extralibs"
15
+ enabled libxavs2 && require_pkg_config libxavs2 "xavs2 >= 1.3.0" "stdint.h xavs2.h" xavs2_api_get
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/0015-Fix-xml2-detection.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ configure | 2 +-
2
+ 1 file changed, 1 insertion(+), 1 deletion(-)
3
+
4
+ diff --git a/configure b/configure
5
+ index 900505756b..8d1388a347 100755
6
+ --- a/configure
7
+ +++ b/configure
8
+ @@ -6476,7 +6476,7 @@ enabled libzmq && require_pkg_config libzmq "libzmq >= 4.2.1" zmq.h z
9
+ enabled libzvbi && require_pkg_config libzvbi zvbi-0.2 libzvbi.h vbi_decoder_new &&
10
+ { test_cpp_condition libzvbi.h "VBI_VERSION_MAJOR > 0 || VBI_VERSION_MINOR > 2 || VBI_VERSION_MINOR == 2 && VBI_VERSION_MICRO >= 28" ||
11
+ enabled gpl || die "ERROR: libzvbi requires version 0.2.28 or --enable-gpl."; }
12
+ -enabled libxml2 && require_pkg_config libxml2 libxml-2.0 libxml2/libxml/xmlversion.h xmlCheckVersion
13
+ +enabled libxml2 && require_pkg_config libxml2 libxml-2.0 libxml/xmlversion.h xmlCheckVersion
14
+ enabled mbedtls && { check_pkg_config mbedtls mbedtls mbedtls/x509_crt.h mbedtls_x509_crt_init ||
15
+ check_pkg_config mbedtls mbedtls mbedtls/ssl.h mbedtls_ssl_init ||
16
+ check_lib mbedtls mbedtls/ssl.h mbedtls_ssl_init -lmbedtls -lmbedx509 -lmbedcrypto ||
17
+
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/FindFFMPEG.cmake.in ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License.
2
+ #
3
+ #.rst:
4
+ # FindFFMPEG
5
+ # --------
6
+ #
7
+ # Find the FFPMEG libraries
8
+ #
9
+ # Result Variables
10
+ # ^^^^^^^^^^^^^^^^
11
+ #
12
+ # The following variables will be defined:
13
+ #
14
+ # ``FFMPEG_FOUND``
15
+ # True if FFMPEG found on the local system
16
+ #
17
+ # ``FFMPEG_INCLUDE_DIRS``
18
+ # Location of FFMPEG header files
19
+ #
20
+ # ``FFMPEG_LIBRARY_DIRS``
21
+ # Location of FFMPEG libraries
22
+ #
23
+ # ``FFMPEG_LIBRARIES``
24
+ # List of the FFMPEG libraries found
25
+ #
26
+ #
27
+
28
+ include(FindPackageHandleStandardArgs)
29
+ include(SelectLibraryConfigurations)
30
+ include(CMakeFindDependencyMacro)
31
+
32
+ if(NOT FFMPEG_FOUND)
33
+
34
+ # Compute the installation path relative to this file.
35
+ get_filename_component(SEARCH_PATH "${CMAKE_CURRENT_LIST_FILE}" PATH)
36
+ get_filename_component(SEARCH_PATH "${SEARCH_PATH}" PATH)
37
+ get_filename_component(SEARCH_PATH "${SEARCH_PATH}" PATH)
38
+ if(SEARCH_PATH STREQUAL "/")
39
+ set(SEARCH_PATH "")
40
+ endif()
41
+
42
+ set(FFMPEG_VERSION "@FFMPEG_VERSION@")
43
+
44
+ function(append_dependencies out)
45
+ cmake_parse_arguments(PARSE_ARGV 1 "arg" "DEBUG" "NAMES" "")
46
+ if(${arg_DEBUG})
47
+ set(config DEBUG)
48
+ set(path "${CURRENT_INSTALLED_DIR}/debug/lib/")
49
+ else()
50
+ set(config RELEASE)
51
+ set(path "${CURRENT_INSTALLED_DIR}/lib/")
52
+ endif()
53
+ foreach(lib_name ${arg_NAMES})
54
+ if("${lib_name}" STREQUAL "-pthread")
55
+ list(APPEND ${out} "-pthread")
56
+ elseif("${lib_name}" STREQUAL "-pthreads")
57
+ list(APPEND ${out} "-pthreads")
58
+ elseif("${lib_name}" STREQUAL "gcc")
59
+ list(APPEND ${out} "-lgcc")
60
+ elseif("${lib_name}" STREQUAL "gcc_s")
61
+ list(APPEND ${out} "-lgcc_s")
62
+ elseif("${lib_name}" STREQUAL "stdc++")
63
+ list(APPEND ${out} "-lstdc++")
64
+ elseif("${lib_name}" STREQUAL "atomic")
65
+ list(APPEND ${out} "-latomic")
66
+ else()
67
+ # first look in ${path} specifically to ensure we find the right release/debug variant
68
+ find_library(FFMPEG_DEPENDENCY_${lib_name}_${config} NAMES "${lib_name}" PATHS "${path}" NO_DEFAULT_PATH)
69
+ # if not found there, must be a system dependency, so look elsewhere
70
+ find_library(FFMPEG_DEPENDENCY_${lib_name}_${config} NAMES "${lib_name}" REQUIRED)
71
+ list(APPEND ${out} "${FFMPEG_DEPENDENCY_${lib_name}_${config}}")
72
+ endif()
73
+ endforeach()
74
+ set("${out}" "${${out}}" PARENT_SCOPE)
75
+ endfunction()
76
+
77
+ macro(FFMPEG_FIND varname shortname headername)
78
+ if(NOT FFMPEG_${varname}_INCLUDE_DIRS)
79
+ find_path(FFMPEG_${varname}_INCLUDE_DIRS NAMES lib${shortname}/${headername} ${headername} PATHS ${SEARCH_PATH}/include NO_DEFAULT_PATH)
80
+ endif()
81
+ if(NOT FFMPEG_${varname}_LIBRARY)
82
+ find_library(FFMPEG_${varname}_LIBRARY_RELEASE NAMES ${shortname} PATHS ${SEARCH_PATH}/lib/ NO_DEFAULT_PATH)
83
+ find_library(FFMPEG_${varname}_LIBRARY_DEBUG NAMES ${shortname}d ${shortname} PATHS ${SEARCH_PATH}/debug/lib/ NO_DEFAULT_PATH)
84
+ get_filename_component(FFMPEG_${varname}_LIBRARY_RELEASE_DIR ${FFMPEG_${varname}_LIBRARY_RELEASE} DIRECTORY)
85
+ get_filename_component(FFMPEG_${varname}_LIBRARY_DEBUG_DIR ${FFMPEG_${varname}_LIBRARY_DEBUG} DIRECTORY)
86
+ select_library_configurations(FFMPEG_${varname})
87
+ set(FFMPEG_${varname}_LIBRARY ${FFMPEG_${varname}_LIBRARY} CACHE STRING "")
88
+ endif()
89
+ if (FFMPEG_${varname}_LIBRARY AND FFMPEG_${varname}_INCLUDE_DIRS)
90
+ set(FFMPEG_${varname}_FOUND TRUE BOOL)
91
+ list(APPEND FFMPEG_INCLUDE_DIRS ${FFMPEG_${varname}_INCLUDE_DIRS})
92
+ list(APPEND FFMPEG_LIBRARIES ${FFMPEG_${varname}_LIBRARY})
93
+ list(APPEND FFMPEG_LIBRARY_DIRS ${FFMPEG_${varname}_LIBRARY_RELEASE_DIR} ${FFMPEG_${varname}_LIBRARY_DEBUG_DIR})
94
+ endif()
95
+ endmacro(FFMPEG_FIND)
96
+
97
+ if(@ENABLE_AVDEVICE@)
98
+ FFMPEG_FIND(libavdevice avdevice avdevice.h)
99
+ endif()
100
+ if(@ENABLE_AVFILTER@)
101
+ FFMPEG_FIND(libavfilter avfilter avfilter.h)
102
+ endif()
103
+ if(@ENABLE_AVFORMAT@)
104
+ FFMPEG_FIND(libavformat avformat avformat.h)
105
+ endif()
106
+ if(@ENABLE_AVCODEC@)
107
+ FFMPEG_FIND(libavcodec avcodec avcodec.h)
108
+ endif()
109
+ if(@ENABLE_POSTPROC@)
110
+ FFMPEG_FIND(libpostproc postproc postprocess.h)
111
+ endif()
112
+ if(@ENABLE_SWRESAMPLE@)
113
+ FFMPEG_FIND(libswresample swresample swresample.h)
114
+ endif()
115
+ if(@ENABLE_SWSCALE@)
116
+ FFMPEG_FIND(libswscale swscale swscale.h)
117
+ endif()
118
+ FFMPEG_FIND(libavutil avutil avutil.h)
119
+
120
+ if (FFMPEG_libavutil_FOUND)
121
+ list(REMOVE_DUPLICATES FFMPEG_INCLUDE_DIRS)
122
+ list(REMOVE_DUPLICATES FFMPEG_LIBRARY_DIRS)
123
+ set(FFMPEG_libavutil_VERSION "@LIBAVUTIL_VERSION@" CACHE STRING "")
124
+
125
+ if(FFMPEG_libavcodec_FOUND)
126
+ set(FFMPEG_libavcodec_VERSION "@LIBAVCODEC_VERSION@" CACHE STRING "")
127
+ endif()
128
+ if(FFMPEG_libavdevice_FOUND)
129
+ set(FFMPEG_libavdevice_VERSION "@LIBAVDEVICE_VERSION@" CACHE STRING "")
130
+ endif()
131
+ if(FFMPEG_libavfilter_FOUND)
132
+ set(FFMPEG_libavfilter_VERSION "@LIBAVFILTER_VERSION@" CACHE STRING "")
133
+ endif()
134
+ if(FFMPEG_libavformat_FOUND)
135
+ set(FFMPEG_libavformat_VERSION "@LIBAVFORMAT_VERSION@" CACHE STRING "")
136
+ endif()
137
+ if(FFMPEG_libswresample_FOUND)
138
+ set(FFMPEG_libswresample_VERSION "@LIBSWRESAMPLE_VERSION@" CACHE STRING "")
139
+ endif()
140
+ if(FFMPEG_libswscale_FOUND)
141
+ set(FFMPEG_libswscale_VERSION "@LIBSWSCALE_VERSION@" CACHE STRING "")
142
+ endif()
143
+
144
+ append_dependencies(FFMPEG_DEPS_LIBRARY_RELEASE NAMES "@FFMPEG_DEPENDENCIES_RELEASE@")
145
+ append_dependencies(FFMPEG_DEPS_LIBRARY_DEBUG NAMES "@FFMPEG_DEPENDENCIES_DEBUG@" DEBUG)
146
+ if(FFMPEG_DEPS_LIBRARY_RELEASE OR FFMPEG_DEPS_LIBRARY_DEBUG)
147
+ select_library_configurations(FFMPEG_DEPS)
148
+ list(APPEND FFMPEG_LIBRARIES ${FFMPEG_DEPS_LIBRARY})
149
+ endif()
150
+
151
+ set(FFMPEG_LIBRARY ${FFMPEG_LIBRARIES})
152
+
153
+ set(FFMPEG_FOUND TRUE CACHE BOOL "")
154
+ set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} CACHE STRING "")
155
+ set(FFMPEG_INCLUDE_DIRS ${FFMPEG_INCLUDE_DIRS} CACHE STRING "")
156
+ set(FFMPEG_LIBRARY_DIRS ${FFMPEG_LIBRARY_DIRS} CACHE STRING "")
157
+ endif()
158
+
159
+ find_package_handle_standard_args(FFMPEG REQUIRED_VARS FFMPEG_LIBRARIES FFMPEG_LIBRARY_DIRS FFMPEG_INCLUDE_DIRS)
160
+
161
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/portfile.cmake ADDED
@@ -0,0 +1,888 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO ffmpeg/ffmpeg
4
+ REF "n${VERSION}"
5
+ SHA512 a84209fe36a2a0262ebc34b727e7600b12d4739991a95599d7b4df533791b12e2e43586ccc6ff26aab2f935a3049866204e322ec0c5e49e378fc175ded34e183
6
+ HEAD_REF master
7
+ PATCHES
8
+ 0001-create-lib-libraries.patch
9
+ 0002-fix-msvc-link.patch #upstreamed in future version
10
+ 0003-fix-windowsinclude.patch
11
+ 0004-fix-debug-build.patch
12
+ 0005-fix-nasm.patch #upstreamed in future version
13
+ 0006-fix-StaticFeatures.patch
14
+ 0007-fix-lib-naming.patch
15
+ 0009-Fix-fdk-detection.patch
16
+ 0011-Fix-x265-detection.patch
17
+ 0012-Fix-ssl-110-detection.patch
18
+ 0013-define-WINVER.patch
19
+ 0015-Fix-xml2-detection.patch
20
+ 0020-fix-aarch64-libswscale.patch
21
+ 0022-fix-iconv.patch
22
+ )
23
+
24
+ if(SOURCE_PATH MATCHES " ")
25
+ message(FATAL_ERROR "Error: ffmpeg will not build with spaces in the path. Please use a directory with no spaces")
26
+ endif()
27
+
28
+ if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "wasm32")
29
+ vcpkg_find_acquire_program(NASM)
30
+ get_filename_component(NASM_EXE_PATH "${NASM}" DIRECTORY)
31
+ vcpkg_add_to_path("${NASM_EXE_PATH}")
32
+ endif()
33
+
34
+ set(OPTIONS "--enable-pic --disable-doc --enable-debug --enable-runtime-cpudetect --disable-autodetect")
35
+
36
+ if(VCPKG_HOST_IS_WINDOWS)
37
+ vcpkg_acquire_msys(MSYS_ROOT PACKAGES automake1.16)
38
+ set(SHELL "${MSYS_ROOT}/usr/bin/bash.exe")
39
+ vcpkg_add_to_path("${MSYS_ROOT}/usr/share/automake-1.16")
40
+ string(APPEND OPTIONS " --pkg-config=${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf${VCPKG_HOST_EXECUTABLE_SUFFIX}")
41
+ else()
42
+ find_program(SHELL bash)
43
+ endif()
44
+
45
+ if(VCPKG_TARGET_IS_MINGW)
46
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
47
+ string(APPEND OPTIONS " --target-os=mingw32")
48
+ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
49
+ string(APPEND OPTIONS " --target-os=mingw64")
50
+ endif()
51
+ elseif(VCPKG_TARGET_IS_LINUX)
52
+ string(APPEND OPTIONS " --target-os=linux --enable-pthreads")
53
+ elseif(VCPKG_TARGET_IS_UWP)
54
+ string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-mediafoundation")
55
+ elseif(VCPKG_TARGET_IS_WINDOWS)
56
+ string(APPEND OPTIONS " --target-os=win32 --enable-w32threads --enable-d3d11va --enable-dxva2 --enable-mediafoundation")
57
+ elseif(VCPKG_TARGET_IS_OSX)
58
+ string(APPEND OPTIONS " --target-os=darwin --enable-appkit --enable-avfoundation --enable-coreimage --enable-audiotoolbox --enable-videotoolbox")
59
+ elseif(VCPKG_TARGET_IS_IOS)
60
+ string(APPEND OPTIONS " --enable-avfoundation --enable-coreimage --enable-videotoolbox")
61
+ elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Android")
62
+ string(APPEND OPTIONS " --target-os=android --enable-jni --enable-mediacodec")
63
+ elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "QNX")
64
+ string(APPEND OPTIONS " --target-os=qnx")
65
+ endif()
66
+
67
+ if(VCPKG_TARGET_IS_OSX)
68
+ list(JOIN VCPKG_OSX_ARCHITECTURES " " OSX_ARCHS)
69
+ list(LENGTH VCPKG_OSX_ARCHITECTURES OSX_ARCH_COUNT)
70
+ endif()
71
+
72
+ vcpkg_cmake_get_vars(cmake_vars_file)
73
+ include("${cmake_vars_file}")
74
+ if(VCPKG_DETECTED_MSVC)
75
+ string(APPEND OPTIONS " --disable-inline-asm") # clang-cl has inline assembly but this leads to undefined symbols.
76
+ set(OPTIONS "--toolchain=msvc ${OPTIONS}")
77
+ # This is required because ffmpeg depends upon optimizations to link correctly
78
+ string(APPEND VCPKG_COMBINED_C_FLAGS_DEBUG " -O2")
79
+ string(REGEX REPLACE "(^| )-RTC1( |$)" " " VCPKG_COMBINED_C_FLAGS_DEBUG "${VCPKG_COMBINED_C_FLAGS_DEBUG}")
80
+ string(REGEX REPLACE "(^| )-Od( |$)" " " VCPKG_COMBINED_C_FLAGS_DEBUG "${VCPKG_COMBINED_C_FLAGS_DEBUG}")
81
+ string(REGEX REPLACE "(^| )-Ob0( |$)" " " VCPKG_COMBINED_C_FLAGS_DEBUG "${VCPKG_COMBINED_C_FLAGS_DEBUG}")
82
+ endif()
83
+
84
+ string(APPEND VCPKG_COMBINED_C_FLAGS_DEBUG " -I \"${CURRENT_INSTALLED_DIR}/include\"")
85
+ string(APPEND VCPKG_COMBINED_C_FLAGS_RELEASE " -I \"${CURRENT_INSTALLED_DIR}/include\"")
86
+
87
+ ## Setup vcpkg toolchain
88
+
89
+ set(prog_env "")
90
+
91
+ if(VCPKG_DETECTED_CMAKE_C_COMPILER)
92
+ get_filename_component(CC_path "${VCPKG_DETECTED_CMAKE_C_COMPILER}" DIRECTORY)
93
+ get_filename_component(CC_filename "${VCPKG_DETECTED_CMAKE_C_COMPILER}" NAME)
94
+ set(ENV{CC} "${CC_filename}")
95
+ string(APPEND OPTIONS " --cc=${CC_filename}")
96
+ #string(APPEND OPTIONS " --host_cc=${CC_filename}") ffmpeg not yet setup for cross builds?
97
+ list(APPEND prog_env "${CC_path}")
98
+ endif()
99
+
100
+ if(VCPKG_DETECTED_CMAKE_CXX_COMPILER)
101
+ get_filename_component(CXX_path "${VCPKG_DETECTED_CMAKE_CXX_COMPILER}" DIRECTORY)
102
+ get_filename_component(CXX_filename "${VCPKG_DETECTED_CMAKE_CXX_COMPILER}" NAME)
103
+ set(ENV{CXX} "${CXX_filename}")
104
+ string(APPEND OPTIONS " --cxx=${CXX_filename}")
105
+ #string(APPEND OPTIONS " --host_cxx=${CC_filename}")
106
+ list(APPEND prog_env "${CXX_path}")
107
+ endif()
108
+
109
+ if(VCPKG_DETECTED_CMAKE_RC_COMPILER)
110
+ get_filename_component(RC_path "${VCPKG_DETECTED_CMAKE_RC_COMPILER}" DIRECTORY)
111
+ get_filename_component(RC_filename "${VCPKG_DETECTED_CMAKE_RC_COMPILER}" NAME)
112
+ set(ENV{WINDRES} "${RC_filename}")
113
+ string(APPEND OPTIONS " --windres=${RC_filename}")
114
+ list(APPEND prog_env "${RC_path}")
115
+ endif()
116
+
117
+ if(VCPKG_DETECTED_CMAKE_LINKER AND VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
118
+ get_filename_component(LD_path "${VCPKG_DETECTED_CMAKE_LINKER}" DIRECTORY)
119
+ get_filename_component(LD_filename "${VCPKG_DETECTED_CMAKE_LINKER}" NAME)
120
+ set(ENV{LD} "${LD_filename}")
121
+ string(APPEND OPTIONS " --ld=${LD_filename}")
122
+ #string(APPEND OPTIONS " --host_ld=${LD_filename}")
123
+ list(APPEND prog_env "${LD_path}")
124
+ endif()
125
+
126
+ if(VCPKG_DETECTED_CMAKE_NM)
127
+ get_filename_component(NM_path "${VCPKG_DETECTED_CMAKE_NM}" DIRECTORY)
128
+ get_filename_component(NM_filename "${VCPKG_DETECTED_CMAKE_NM}" NAME)
129
+ set(ENV{NM} "${NM_filename}")
130
+ string(APPEND OPTIONS " --nm=${NM_filename}")
131
+ list(APPEND prog_env "${NM_path}")
132
+ endif()
133
+
134
+ if(VCPKG_DETECTED_CMAKE_AR)
135
+ get_filename_component(AR_path "${VCPKG_DETECTED_CMAKE_AR}" DIRECTORY)
136
+ get_filename_component(AR_filename "${VCPKG_DETECTED_CMAKE_AR}" NAME)
137
+ if(AR_filename MATCHES [[^(llvm-)?lib\.exe$]])
138
+ set(ENV{AR} "ar-lib ${AR_filename}")
139
+ string(APPEND OPTIONS " --ar='ar-lib ${AR_filename}'")
140
+ else()
141
+ set(ENV{AR} "${AR_filename}")
142
+ string(APPEND OPTIONS " --ar='${AR_filename}'")
143
+ endif()
144
+ list(APPEND prog_env "${AR_path}")
145
+ endif()
146
+
147
+ if(VCPKG_DETECTED_CMAKE_RANLIB)
148
+ get_filename_component(RANLIB_path "${VCPKG_DETECTED_CMAKE_RANLIB}" DIRECTORY)
149
+ get_filename_component(RANLIB_filename "${VCPKG_DETECTED_CMAKE_RANLIB}" NAME)
150
+ set(ENV{RANLIB} "${RANLIB_filename}")
151
+ string(APPEND OPTIONS " --ranlib=${RANLIB_filename}")
152
+ list(APPEND prog_env "${RANLIB_path}")
153
+ endif()
154
+
155
+ list(REMOVE_DUPLICATES prog_env)
156
+ vcpkg_add_to_path(PREPEND ${prog_env})
157
+
158
+ # More? OBJCC STRIP BIN2C
159
+
160
+ file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg" "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")
161
+
162
+ set(FFMPEG_PKGCONFIG_MODULES libavutil)
163
+
164
+ if("nonfree" IN_LIST FEATURES)
165
+ set(OPTIONS "${OPTIONS} --enable-nonfree")
166
+ endif()
167
+
168
+ if("gpl" IN_LIST FEATURES)
169
+ set(OPTIONS "${OPTIONS} --enable-gpl")
170
+ endif()
171
+
172
+ if("version3" IN_LIST FEATURES)
173
+ set(OPTIONS "${OPTIONS} --enable-version3")
174
+ endif()
175
+
176
+ if("ffmpeg" IN_LIST FEATURES)
177
+ set(OPTIONS "${OPTIONS} --enable-ffmpeg")
178
+ else()
179
+ set(OPTIONS "${OPTIONS} --disable-ffmpeg")
180
+ endif()
181
+
182
+ if("ffplay" IN_LIST FEATURES)
183
+ set(OPTIONS "${OPTIONS} --enable-ffplay")
184
+ else()
185
+ set(OPTIONS "${OPTIONS} --disable-ffplay")
186
+ endif()
187
+
188
+ if("ffprobe" IN_LIST FEATURES)
189
+ set(OPTIONS "${OPTIONS} --enable-ffprobe")
190
+ else()
191
+ set(OPTIONS "${OPTIONS} --disable-ffprobe")
192
+ endif()
193
+
194
+ if("avcodec" IN_LIST FEATURES)
195
+ set(OPTIONS "${OPTIONS} --enable-avcodec")
196
+ set(ENABLE_AVCODEC ON)
197
+ list(APPEND FFMPEG_PKGCONFIG_MODULES libavcodec)
198
+ else()
199
+ set(OPTIONS "${OPTIONS} --disable-avcodec")
200
+ set(ENABLE_AVCODEC OFF)
201
+ endif()
202
+
203
+ if("avdevice" IN_LIST FEATURES)
204
+ set(OPTIONS "${OPTIONS} --enable-avdevice")
205
+ set(ENABLE_AVDEVICE ON)
206
+ list(APPEND FFMPEG_PKGCONFIG_MODULES libavdevice)
207
+ else()
208
+ set(OPTIONS "${OPTIONS} --disable-avdevice")
209
+ set(ENABLE_AVDEVICE OFF)
210
+ endif()
211
+
212
+ if("avformat" IN_LIST FEATURES)
213
+ set(OPTIONS "${OPTIONS} --enable-avformat")
214
+ set(ENABLE_AVFORMAT ON)
215
+ list(APPEND FFMPEG_PKGCONFIG_MODULES libavformat)
216
+ else()
217
+ set(OPTIONS "${OPTIONS} --disable-avformat")
218
+ set(ENABLE_AVFORMAT OFF)
219
+ endif()
220
+
221
+ if("avfilter" IN_LIST FEATURES)
222
+ set(OPTIONS "${OPTIONS} --enable-avfilter")
223
+ set(ENABLE_AVFILTER ON)
224
+ list(APPEND FFMPEG_PKGCONFIG_MODULES libavfilter)
225
+ else()
226
+ set(OPTIONS "${OPTIONS} --disable-avfilter")
227
+ set(ENABLE_AVFILTER OFF)
228
+ endif()
229
+
230
+ if("postproc" IN_LIST FEATURES)
231
+ set(OPTIONS "${OPTIONS} --enable-postproc")
232
+ set(ENABLE_POSTPROC ON)
233
+ list(APPEND FFMPEG_PKGCONFIG_MODULES libpostproc)
234
+ else()
235
+ set(OPTIONS "${OPTIONS} --disable-postproc")
236
+ set(ENABLE_POSTPROC OFF)
237
+ endif()
238
+
239
+ if("swresample" IN_LIST FEATURES)
240
+ set(OPTIONS "${OPTIONS} --enable-swresample")
241
+ set(ENABLE_SWRESAMPLE ON)
242
+ list(APPEND FFMPEG_PKGCONFIG_MODULES libswresample)
243
+ else()
244
+ set(OPTIONS "${OPTIONS} --disable-swresample")
245
+ set(ENABLE_SWRESAMPLE OFF)
246
+ endif()
247
+
248
+ if("swscale" IN_LIST FEATURES)
249
+ set(OPTIONS "${OPTIONS} --enable-swscale")
250
+ set(ENABLE_SWSCALE ON)
251
+ list(APPEND FFMPEG_PKGCONFIG_MODULES libswscale)
252
+ else()
253
+ set(OPTIONS "${OPTIONS} --disable-swscale")
254
+ set(ENABLE_SWSCALE OFF)
255
+ endif()
256
+
257
+ set(STATIC_LINKAGE OFF)
258
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
259
+ set(STATIC_LINKAGE ON)
260
+ endif()
261
+
262
+ if ("alsa" IN_LIST FEATURES)
263
+ set(OPTIONS "${OPTIONS} --enable-alsa")
264
+ else()
265
+ set(OPTIONS "${OPTIONS} --disable-alsa")
266
+ endif()
267
+
268
+ if("amf" IN_LIST FEATURES)
269
+ set(OPTIONS "${OPTIONS} --enable-amf")
270
+ else()
271
+ set(OPTIONS "${OPTIONS} --disable-amf")
272
+ endif()
273
+
274
+ if("aom" IN_LIST FEATURES)
275
+ set(OPTIONS "${OPTIONS} --enable-libaom")
276
+ else()
277
+ set(OPTIONS "${OPTIONS} --disable-libaom")
278
+ endif()
279
+
280
+ if("ass" IN_LIST FEATURES)
281
+ set(OPTIONS "${OPTIONS} --enable-libass")
282
+ else()
283
+ set(OPTIONS "${OPTIONS} --disable-libass")
284
+ endif()
285
+
286
+ if("avisynthplus" IN_LIST FEATURES)
287
+ set(OPTIONS "${OPTIONS} --enable-avisynth")
288
+ else()
289
+ set(OPTIONS "${OPTIONS} --disable-avisynth")
290
+ endif()
291
+
292
+ if("bzip2" IN_LIST FEATURES)
293
+ set(OPTIONS "${OPTIONS} --enable-bzlib")
294
+ else()
295
+ set(OPTIONS "${OPTIONS} --disable-bzlib")
296
+ endif()
297
+
298
+ if("dav1d" IN_LIST FEATURES)
299
+ set(OPTIONS "${OPTIONS} --enable-libdav1d")
300
+ else()
301
+ set(OPTIONS "${OPTIONS} --disable-libdav1d")
302
+ endif()
303
+
304
+ if("fdk-aac" IN_LIST FEATURES)
305
+ set(OPTIONS "${OPTIONS} --enable-libfdk-aac")
306
+ else()
307
+ set(OPTIONS "${OPTIONS} --disable-libfdk-aac")
308
+ endif()
309
+
310
+ if("fontconfig" IN_LIST FEATURES)
311
+ set(OPTIONS "${OPTIONS} --enable-libfontconfig")
312
+ else()
313
+ set(OPTIONS "${OPTIONS} --disable-libfontconfig")
314
+ endif()
315
+
316
+ if("freetype" IN_LIST FEATURES)
317
+ set(OPTIONS "${OPTIONS} --enable-libfreetype")
318
+ else()
319
+ set(OPTIONS "${OPTIONS} --disable-libfreetype")
320
+ endif()
321
+
322
+ if("fribidi" IN_LIST FEATURES)
323
+ set(OPTIONS "${OPTIONS} --enable-libfribidi")
324
+ else()
325
+ set(OPTIONS "${OPTIONS} --disable-libfribidi")
326
+ endif()
327
+
328
+ if("iconv" IN_LIST FEATURES)
329
+ set(OPTIONS "${OPTIONS} --enable-iconv")
330
+ else()
331
+ set(OPTIONS "${OPTIONS} --disable-iconv")
332
+ endif()
333
+
334
+ if("ilbc" IN_LIST FEATURES)
335
+ set(OPTIONS "${OPTIONS} --enable-libilbc")
336
+ else()
337
+ set(OPTIONS "${OPTIONS} --disable-libilbc")
338
+ endif()
339
+
340
+ if("lzma" IN_LIST FEATURES)
341
+ set(OPTIONS "${OPTIONS} --enable-lzma")
342
+ else()
343
+ set(OPTIONS "${OPTIONS} --disable-lzma")
344
+ endif()
345
+
346
+ if("mp3lame" IN_LIST FEATURES)
347
+ set(OPTIONS "${OPTIONS} --enable-libmp3lame")
348
+ else()
349
+ set(OPTIONS "${OPTIONS} --disable-libmp3lame")
350
+ endif()
351
+
352
+ if("modplug" IN_LIST FEATURES)
353
+ set(OPTIONS "${OPTIONS} --enable-libmodplug")
354
+ else()
355
+ set(OPTIONS "${OPTIONS} --disable-libmodplug")
356
+ endif()
357
+
358
+ if("nvcodec" IN_LIST FEATURES)
359
+ #Note: the --enable-cuda option does not actually require the cuda sdk or toolset port dependency as ffmpeg uses runtime detection and dynamic loading
360
+ set(OPTIONS "${OPTIONS} --enable-cuda --enable-nvenc --enable-nvdec --enable-cuvid --enable-ffnvcodec")
361
+ else()
362
+ set(OPTIONS "${OPTIONS} --disable-cuda --disable-nvenc --disable-nvdec --disable-cuvid --disable-ffnvcodec")
363
+ endif()
364
+
365
+ if("opencl" IN_LIST FEATURES)
366
+ set(OPTIONS "${OPTIONS} --enable-opencl")
367
+ else()
368
+ set(OPTIONS "${OPTIONS} --disable-opencl")
369
+ endif()
370
+
371
+ if("opengl" IN_LIST FEATURES)
372
+ set(OPTIONS "${OPTIONS} --enable-opengl")
373
+ else()
374
+ set(OPTIONS "${OPTIONS} --disable-opengl")
375
+ endif()
376
+
377
+ if("openh264" IN_LIST FEATURES)
378
+ set(OPTIONS "${OPTIONS} --enable-libopenh264")
379
+ else()
380
+ set(OPTIONS "${OPTIONS} --disable-libopenh264")
381
+ endif()
382
+
383
+ if("openjpeg" IN_LIST FEATURES)
384
+ set(OPTIONS "${OPTIONS} --enable-libopenjpeg")
385
+ else()
386
+ set(OPTIONS "${OPTIONS} --disable-libopenjpeg")
387
+ endif()
388
+
389
+ if("openmpt" IN_LIST FEATURES)
390
+ set(OPTIONS "${OPTIONS} --enable-libopenmpt")
391
+ else()
392
+ set(OPTIONS "${OPTIONS} --disable-libopenmpt")
393
+ endif()
394
+
395
+ if("openssl" IN_LIST FEATURES)
396
+ set(OPTIONS "${OPTIONS} --enable-openssl")
397
+ else()
398
+ set(OPTIONS "${OPTIONS} --disable-openssl")
399
+ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_UWP)
400
+ string(APPEND OPTIONS " --enable-schannel")
401
+ elseif(VCPKG_TARGET_IS_OSX)
402
+ string(APPEND OPTIONS " --enable-securetransport")
403
+ elseif(VCPKG_TARGET_IS_IOS)
404
+ string(APPEND OPTIONS " --enable-securetransport")
405
+ endif()
406
+ endif()
407
+
408
+ if("opus" IN_LIST FEATURES)
409
+ set(OPTIONS "${OPTIONS} --enable-libopus")
410
+ else()
411
+ set(OPTIONS "${OPTIONS} --disable-libopus")
412
+ endif()
413
+
414
+ if("sdl2" IN_LIST FEATURES)
415
+ set(OPTIONS "${OPTIONS} --enable-sdl2")
416
+ else()
417
+ set(OPTIONS "${OPTIONS} --disable-sdl2")
418
+ endif()
419
+
420
+ if("snappy" IN_LIST FEATURES)
421
+ set(OPTIONS "${OPTIONS} --enable-libsnappy")
422
+ else()
423
+ set(OPTIONS "${OPTIONS} --disable-libsnappy")
424
+ endif()
425
+
426
+ if("soxr" IN_LIST FEATURES)
427
+ set(OPTIONS "${OPTIONS} --enable-libsoxr")
428
+ else()
429
+ set(OPTIONS "${OPTIONS} --disable-libsoxr")
430
+ endif()
431
+
432
+ if("speex" IN_LIST FEATURES)
433
+ set(OPTIONS "${OPTIONS} --enable-libspeex")
434
+ else()
435
+ set(OPTIONS "${OPTIONS} --disable-libspeex")
436
+ endif()
437
+
438
+ if("ssh" IN_LIST FEATURES)
439
+ set(OPTIONS "${OPTIONS} --enable-libssh")
440
+ else()
441
+ set(OPTIONS "${OPTIONS} --disable-libssh")
442
+ endif()
443
+
444
+ if("tensorflow" IN_LIST FEATURES)
445
+ set(OPTIONS "${OPTIONS} --enable-libtensorflow")
446
+ else()
447
+ set(OPTIONS "${OPTIONS} --disable-libtensorflow")
448
+ endif()
449
+
450
+ if("tesseract" IN_LIST FEATURES)
451
+ set(OPTIONS "${OPTIONS} --enable-libtesseract")
452
+ else()
453
+ set(OPTIONS "${OPTIONS} --disable-libtesseract")
454
+ endif()
455
+
456
+ if("theora" IN_LIST FEATURES)
457
+ set(OPTIONS "${OPTIONS} --enable-libtheora")
458
+ else()
459
+ set(OPTIONS "${OPTIONS} --disable-libtheora")
460
+ endif()
461
+
462
+ if("vorbis" IN_LIST FEATURES)
463
+ set(OPTIONS "${OPTIONS} --enable-libvorbis")
464
+ else()
465
+ set(OPTIONS "${OPTIONS} --disable-libvorbis")
466
+ endif()
467
+
468
+ if("vpx" IN_LIST FEATURES)
469
+ set(OPTIONS "${OPTIONS} --enable-libvpx")
470
+ else()
471
+ set(OPTIONS "${OPTIONS} --disable-libvpx")
472
+ endif()
473
+
474
+ if("webp" IN_LIST FEATURES)
475
+ set(OPTIONS "${OPTIONS} --enable-libwebp")
476
+ else()
477
+ set(OPTIONS "${OPTIONS} --disable-libwebp")
478
+ endif()
479
+
480
+ if("x264" IN_LIST FEATURES)
481
+ set(OPTIONS "${OPTIONS} --enable-libx264")
482
+ else()
483
+ set(OPTIONS "${OPTIONS} --disable-libx264")
484
+ endif()
485
+
486
+ if("x265" IN_LIST FEATURES)
487
+ set(OPTIONS "${OPTIONS} --enable-libx265")
488
+ else()
489
+ set(OPTIONS "${OPTIONS} --disable-libx265")
490
+ endif()
491
+
492
+ if("xml2" IN_LIST FEATURES)
493
+ set(OPTIONS "${OPTIONS} --enable-libxml2")
494
+ else()
495
+ set(OPTIONS "${OPTIONS} --disable-libxml2")
496
+ endif()
497
+
498
+ if("zlib" IN_LIST FEATURES)
499
+ set(OPTIONS "${OPTIONS} --enable-zlib")
500
+ else()
501
+ set(OPTIONS "${OPTIONS} --disable-zlib")
502
+ endif()
503
+
504
+ if ("srt" IN_LIST FEATURES)
505
+ set(OPTIONS "${OPTIONS} --enable-libsrt")
506
+ else()
507
+ set(OPTIONS "${OPTIONS} --disable-libsrt")
508
+ endif()
509
+
510
+ if ("qsv" IN_LIST FEATURES)
511
+ set(OPTIONS "${OPTIONS} --enable-libmfx --enable-encoder=h264_qsv --enable-decoder=h264_qsv")
512
+ else()
513
+ set(OPTIONS "${OPTIONS} --disable-libmfx")
514
+ endif()
515
+
516
+ set(OPTIONS_CROSS "--enable-cross-compile")
517
+
518
+ # ffmpeg needs --cross-prefix option to use appropriate tools for cross-compiling.
519
+ if(VCPKG_DETECTED_CMAKE_C_COMPILER MATCHES "([^\/]*-)gcc$")
520
+ string(APPEND OPTIONS_CROSS " --cross-prefix=${CMAKE_MATCH_1}")
521
+ endif()
522
+
523
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
524
+ set(BUILD_ARCH "x86_64")
525
+ else()
526
+ set(BUILD_ARCH ${VCPKG_TARGET_ARCHITECTURE})
527
+ endif()
528
+
529
+ if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
530
+ if(VCPKG_TARGET_IS_WINDOWS)
531
+ vcpkg_find_acquire_program(GASPREPROCESSOR)
532
+ foreach(GAS_PATH ${GASPREPROCESSOR})
533
+ get_filename_component(GAS_ITEM_PATH ${GAS_PATH} DIRECTORY)
534
+ vcpkg_add_to_path("${GAS_ITEM_PATH}")
535
+ endforeach(GAS_PATH)
536
+ endif()
537
+ endif()
538
+
539
+ if(VCPKG_TARGET_IS_UWP)
540
+ set(ENV{LIBPATH} "$ENV{LIBPATH};$ENV{_WKITS10}references\\windows.foundation.foundationcontract\\2.0.0.0\\;$ENV{_WKITS10}references\\windows.foundation.universalapicontract\\3.0.0.0\\")
541
+ string(APPEND OPTIONS " --disable-programs")
542
+ string(APPEND OPTIONS " --extra-cflags=-DWINAPI_FAMILY=WINAPI_FAMILY_APP --extra-cflags=-D_WIN32_WINNT=0x0A00")
543
+ string(APPEND OPTIONS " --extra-ldflags=-APPCONTAINER --extra-ldflags=WindowsApp.lib")
544
+ endif()
545
+
546
+ set(OPTIONS_DEBUG "--debug --disable-optimizations")
547
+ set(OPTIONS_RELEASE "--enable-optimizations")
548
+
549
+ set(OPTIONS "${OPTIONS} ${OPTIONS_CROSS}")
550
+
551
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
552
+ set(OPTIONS "${OPTIONS} --disable-static --enable-shared")
553
+ endif()
554
+
555
+ if(VCPKG_TARGET_IS_MINGW)
556
+ set(OPTIONS "${OPTIONS} --extra_cflags=-D_WIN32_WINNT=0x0601")
557
+ elseif(VCPKG_TARGET_IS_WINDOWS)
558
+ set(OPTIONS "${OPTIONS} --extra-cflags=-DHAVE_UNISTD_H=0")
559
+ endif()
560
+
561
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
562
+ set(OPTIONS "${OPTIONS} --pkg-config-flags=--static")
563
+ endif()
564
+
565
+ message(STATUS "Building Options: ${OPTIONS}")
566
+
567
+ # Release build
568
+ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
569
+ if (VCPKG_DETECTED_MSVC)
570
+ set(OPTIONS_RELEASE "${OPTIONS_RELEASE} --extra-ldflags=-libpath:\"${CURRENT_INSTALLED_DIR}/lib\"")
571
+ else()
572
+ set(OPTIONS_RELEASE "${OPTIONS_RELEASE} --extra-ldflags=-L\"${CURRENT_INSTALLED_DIR}/lib\"")
573
+ endif()
574
+ message(STATUS "Building Release Options: ${OPTIONS_RELEASE}")
575
+ set(ENV{PKG_CONFIG_PATH} "${CURRENT_INSTALLED_DIR}/lib/pkgconfig")
576
+ message(STATUS "Building ${PORT} for Release")
577
+ file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")
578
+ # We use response files here as the only known way to handle spaces in paths
579
+ set(crsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/cflags.rsp")
580
+ string(REGEX REPLACE "-arch [A-Za-z0-9_]+" "" VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_C_FLAGS_RELEASE}")
581
+ file(WRITE "${crsp}" "${VCPKG_COMBINED_C_FLAGS_RELEASE_SANITIZED}")
582
+ set(ldrsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/ldflags.rsp")
583
+ string(REGEX REPLACE "-arch [A-Za-z0-9_]+" "" VCPKG_COMBINED_SHARED_LINKER_FLAGS_RELEASE_SANITIZED "${VCPKG_COMBINED_SHARED_LINKER_FLAGS_RELEASE}")
584
+ file(WRITE "${ldrsp}" "${VCPKG_COMBINED_SHARED_LINKER_FLAGS_RELEASE_SANITIZED}")
585
+ set(ENV{CFLAGS} "@${crsp}")
586
+ # All tools except the msvc arm{,64} assembler accept @... as response file syntax.
587
+ # For that assembler, there is no known way to pass in flags. We must hope that not passing flags will work acceptably.
588
+ if(NOT VCPKG_DETECTED_MSVC OR NOT VCPKG_TARGET_ARCHITECTURE MATCHES "^arm")
589
+ set(ENV{ASFLAGS} "@${crsp}")
590
+ endif()
591
+ set(ENV{LDFLAGS} "@${ldrsp}")
592
+ set(ENV{ARFLAGS} "${VCPKG_COMBINED_STATIC_LINKER_FLAGS_RELEASE}")
593
+
594
+ set(BUILD_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")
595
+ set(CONFIGURE_OPTIONS "${OPTIONS} ${OPTIONS_RELEASE}")
596
+ set(INST_PREFIX "${CURRENT_PACKAGES_DIR}")
597
+
598
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/build.sh.in" "${BUILD_DIR}/build.sh" @ONLY)
599
+
600
+ vcpkg_execute_required_process(
601
+ COMMAND "${SHELL}" ./build.sh
602
+ WORKING_DIRECTORY "${BUILD_DIR}"
603
+ LOGNAME "build-${TARGET_TRIPLET}-rel"
604
+ SAVE_LOG_FILES ffbuild/config.log
605
+ )
606
+ endif()
607
+
608
+ # Debug build
609
+ if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
610
+ if (VCPKG_DETECTED_MSVC)
611
+ set(OPTIONS_DEBUG "${OPTIONS_DEBUG} --extra-ldflags=-libpath:\"${CURRENT_INSTALLED_DIR}/debug/lib\"")
612
+ else()
613
+ set(OPTIONS_DEBUG "${OPTIONS_DEBUG} --extra-ldflags=-L\"${CURRENT_INSTALLED_DIR}/debug/lib\"")
614
+ endif()
615
+ message(STATUS "Building Debug Options: ${OPTIONS_DEBUG}")
616
+ set(ENV{LDFLAGS} "${VCPKG_COMBINED_SHARED_LINKER_FLAGS_DEBUG}")
617
+ set(ENV{PKG_CONFIG_PATH} "${CURRENT_INSTALLED_DIR}/debug/lib/pkgconfig")
618
+ message(STATUS "Building ${PORT} for Debug")
619
+ file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg")
620
+ set(crsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/cflags.rsp")
621
+ string(REGEX REPLACE "-arch [A-Za-z0-9_]+" "" VCPKG_COMBINED_C_FLAGS_DEBUG_SANITIZED "${VCPKG_COMBINED_C_FLAGS_DEBUG}")
622
+ file(WRITE "${crsp}" "${VCPKG_COMBINED_C_FLAGS_DEBUG_SANITIZED}")
623
+ set(ldrsp "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/ldflags.rsp")
624
+ string(REGEX REPLACE "-arch [A-Za-z0-9_]+" "" VCPKG_COMBINED_SHARED_LINKER_FLAGS_DEBUG_SANITIZED "${VCPKG_COMBINED_SHARED_LINKER_FLAGS_DEBUG}")
625
+ file(WRITE "${ldrsp}" "${VCPKG_COMBINED_SHARED_LINKER_FLAGS_DEBUG_SANITIZED}")
626
+ set(ENV{CFLAGS} "@${crsp}")
627
+ if(NOT VCPKG_DETECTED_MSVC OR NOT VCPKG_TARGET_ARCHITECTURE MATCHES "^arm")
628
+ set(ENV{ASFLAGS} "@${crsp}")
629
+ endif()
630
+ set(ENV{LDFLAGS} "@${ldrsp}")
631
+ set(ENV{ARFLAGS} "${VCPKG_COMBINED_STATIC_LINKER_FLAGS_DEBUG}")
632
+
633
+ set(BUILD_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg")
634
+ set(CONFIGURE_OPTIONS "${OPTIONS} ${OPTIONS_DEBUG}")
635
+ set(INST_PREFIX "${CURRENT_PACKAGES_DIR}/debug")
636
+
637
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/build.sh.in" "${BUILD_DIR}/build.sh" @ONLY)
638
+
639
+ vcpkg_execute_required_process(
640
+ COMMAND "${SHELL}" ./build.sh
641
+ WORKING_DIRECTORY "${BUILD_DIR}"
642
+ LOGNAME "build-${TARGET_TRIPLET}-dbg"
643
+ SAVE_LOG_FILES ffbuild/config.log
644
+ )
645
+ endif()
646
+
647
+ if(VCPKG_TARGET_IS_WINDOWS)
648
+ file(GLOB DEF_FILES "${CURRENT_PACKAGES_DIR}/lib/*.def" "${CURRENT_PACKAGES_DIR}/debug/lib/*.def")
649
+
650
+ if(NOT VCPKG_TARGET_IS_MINGW)
651
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
652
+ set(LIB_MACHINE_ARG /machine:ARM)
653
+ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
654
+ set(LIB_MACHINE_ARG /machine:ARM64)
655
+ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
656
+ set(LIB_MACHINE_ARG /machine:x86)
657
+ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
658
+ set(LIB_MACHINE_ARG /machine:x64)
659
+ else()
660
+ message(FATAL_ERROR "Unsupported target architecture")
661
+ endif()
662
+
663
+ foreach(DEF_FILE ${DEF_FILES})
664
+ get_filename_component(DEF_FILE_DIR "${DEF_FILE}" DIRECTORY)
665
+ get_filename_component(DEF_FILE_NAME "${DEF_FILE}" NAME)
666
+ string(REGEX REPLACE "-[0-9]*\\.def" "${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" OUT_FILE_NAME "${DEF_FILE_NAME}")
667
+ file(TO_NATIVE_PATH "${DEF_FILE}" DEF_FILE_NATIVE)
668
+ file(TO_NATIVE_PATH "${DEF_FILE_DIR}/${OUT_FILE_NAME}" OUT_FILE_NATIVE)
669
+ message(STATUS "Generating ${OUT_FILE_NATIVE}")
670
+ vcpkg_execute_required_process(
671
+ COMMAND lib.exe "/def:${DEF_FILE_NATIVE}" "/out:${OUT_FILE_NATIVE}" ${LIB_MACHINE_ARG}
672
+ WORKING_DIRECTORY "${CURRENT_PACKAGES_DIR}"
673
+ LOGNAME "libconvert-${TARGET_TRIPLET}"
674
+ )
675
+ endforeach()
676
+ endif()
677
+
678
+ file(GLOB EXP_FILES "${CURRENT_PACKAGES_DIR}/lib/*.exp" "${CURRENT_PACKAGES_DIR}/debug/lib/*.exp")
679
+ file(GLOB LIB_FILES "${CURRENT_PACKAGES_DIR}/bin/*${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}" "${CURRENT_PACKAGES_DIR}/debug/bin/*${VCPKG_TARGET_STATIC_LIBRARY_SUFFIX}")
680
+ if(VCPKG_TARGET_IS_MINGW)
681
+ file(GLOB LIB_FILES_2 "${CURRENT_PACKAGES_DIR}/bin/*.lib" "${CURRENT_PACKAGES_DIR}/debug/bin/*.lib")
682
+ endif()
683
+ set(files_to_remove ${EXP_FILES} ${LIB_FILES} ${LIB_FILES_2} ${DEF_FILES})
684
+ if(files_to_remove)
685
+ file(REMOVE ${files_to_remove})
686
+ endif()
687
+ endif()
688
+
689
+ if("ffmpeg" IN_LIST FEATURES)
690
+ vcpkg_copy_tools(TOOL_NAMES ffmpeg AUTO_CLEAN)
691
+ endif()
692
+ if("ffprobe" IN_LIST FEATURES)
693
+ vcpkg_copy_tools(TOOL_NAMES ffprobe AUTO_CLEAN)
694
+ endif()
695
+ if("ffplay" IN_LIST FEATURES)
696
+ vcpkg_copy_tools(TOOL_NAMES ffplay AUTO_CLEAN)
697
+ endif()
698
+
699
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
700
+
701
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
702
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
703
+ endif()
704
+
705
+ vcpkg_copy_pdbs()
706
+
707
+ if (VCPKG_TARGET_IS_WINDOWS)
708
+ set(_dirs "/")
709
+ if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
710
+ list(APPEND _dirs "/debug/")
711
+ endif()
712
+ foreach(_debug IN LISTS _dirs)
713
+ foreach(PKGCONFIG_MODULE IN LISTS FFMPEG_PKGCONFIG_MODULES)
714
+ set(PKGCONFIG_FILE "${CURRENT_PACKAGES_DIR}${_debug}lib/pkgconfig/${PKGCONFIG_MODULE}.pc")
715
+ # remove redundant cygwin style -libpath entries
716
+ execute_process(
717
+ COMMAND "${MSYS_ROOT}/usr/bin/cygpath.exe" -u "${CURRENT_INSTALLED_DIR}"
718
+ OUTPUT_VARIABLE CYG_INSTALLED_DIR
719
+ OUTPUT_STRIP_TRAILING_WHITESPACE
720
+ )
721
+ vcpkg_replace_string("${PKGCONFIG_FILE}" "-libpath:${CYG_INSTALLED_DIR}${_debug}lib/pkgconfig/../../lib " "")
722
+ # transform libdir, includedir, and prefix paths from cygwin style to windows style
723
+ file(READ "${PKGCONFIG_FILE}" PKGCONFIG_CONTENT)
724
+ foreach(PATH_NAME prefix libdir includedir)
725
+ string(REGEX MATCH "${PATH_NAME}=[^\n]*" PATH_VALUE "${PKGCONFIG_CONTENT}")
726
+ string(REPLACE "${PATH_NAME}=" "" PATH_VALUE "${PATH_VALUE}")
727
+ if(NOT PATH_VALUE)
728
+ message(FATAL_ERROR "failed to find pkgconfig variable ${PATH_NAME}")
729
+ endif()
730
+ execute_process(
731
+ COMMAND "${MSYS_ROOT}/usr/bin/cygpath.exe" -w "${PATH_VALUE}"
732
+ OUTPUT_VARIABLE FIXED_PATH
733
+ OUTPUT_STRIP_TRAILING_WHITESPACE
734
+ )
735
+ file(TO_CMAKE_PATH "${FIXED_PATH}" FIXED_PATH)
736
+ vcpkg_replace_string("${PKGCONFIG_FILE}" "${PATH_NAME}=${PATH_VALUE}" "${PATH_NAME}=${FIXED_PATH}")
737
+ endforeach()
738
+ # list libraries with -l flag (so pkgconf knows they are libraries and not just linker flags)
739
+ foreach(LIBS_ENTRY Libs Libs.private)
740
+ string(REGEX MATCH "${LIBS_ENTRY}: [^\n]*" LIBS_VALUE "${PKGCONFIG_CONTENT}")
741
+ if(NOT LIBS_VALUE)
742
+ message(FATAL_ERROR "failed to find pkgconfig entry ${LIBS_ENTRY}")
743
+ endif()
744
+ string(REPLACE "${LIBS_ENTRY}: " "" LIBS_VALUE "${LIBS_VALUE}")
745
+ if(LIBS_VALUE)
746
+ set(LIBS_VALUE_OLD "${LIBS_VALUE}")
747
+ string(REGEX REPLACE "([^ ]+)[.]lib" "-l\\1" LIBS_VALUE "${LIBS_VALUE}")
748
+ set(LIBS_VALUE_NEW "${LIBS_VALUE}")
749
+ vcpkg_replace_string("${PKGCONFIG_FILE}" "${LIBS_ENTRY}: ${LIBS_VALUE_OLD}" "${LIBS_ENTRY}: ${LIBS_VALUE_NEW}")
750
+ endif()
751
+ endforeach()
752
+ endforeach()
753
+ endforeach()
754
+ endif()
755
+
756
+ vcpkg_fixup_pkgconfig()
757
+
758
+ # Handle dependencies
759
+
760
+ x_vcpkg_pkgconfig_get_modules(PREFIX FFMPEG_PKGCONFIG MODULES ${FFMPEG_PKGCONFIG_MODULES} LIBS)
761
+
762
+ function(append_dependencies_from_libs out)
763
+ cmake_parse_arguments(PARSE_ARGV 1 "arg" "" "LIBS" "")
764
+ string(REGEX REPLACE "[ ]+" ";" contents "${arg_LIBS}")
765
+ list(FILTER contents EXCLUDE REGEX "^-framework$")
766
+ list(FILTER contents EXCLUDE REGEX "^-L.+")
767
+ list(FILTER contents EXCLUDE REGEX "^-libpath:.+")
768
+ list(TRANSFORM contents REPLACE "^-Wl,-framework," "-l")
769
+ list(FILTER contents EXCLUDE REGEX "^-Wl,.+")
770
+ list(TRANSFORM contents REPLACE "^-l" "")
771
+ list(FILTER contents EXCLUDE REGEX "^avutil$")
772
+ list(FILTER contents EXCLUDE REGEX "^avcodec$")
773
+ list(FILTER contents EXCLUDE REGEX "^avdevice$")
774
+ list(FILTER contents EXCLUDE REGEX "^avfilter$")
775
+ list(FILTER contents EXCLUDE REGEX "^avformat$")
776
+ list(FILTER contents EXCLUDE REGEX "^postproc$")
777
+ list(FILTER contents EXCLUDE REGEX "^swresample$")
778
+ list(FILTER contents EXCLUDE REGEX "^swscale$")
779
+ if(VCPKG_TARGET_IS_WINDOWS)
780
+ list(TRANSFORM contents TOLOWER)
781
+ endif()
782
+ if(contents)
783
+ list(APPEND "${out}" "${contents}")
784
+ set("${out}" "${${out}}" PARENT_SCOPE)
785
+ endif()
786
+ endfunction()
787
+
788
+ append_dependencies_from_libs(FFMPEG_DEPENDENCIES_RELEASE LIBS "${FFMPEG_PKGCONFIG_LIBS_RELEASE}")
789
+ append_dependencies_from_libs(FFMPEG_DEPENDENCIES_DEBUG LIBS "${FFMPEG_PKGCONFIG_LIBS_DEBUG}")
790
+
791
+ # must remove duplicates from the front to respect link order so reverse first
792
+ list(REVERSE FFMPEG_DEPENDENCIES_RELEASE)
793
+ list(REVERSE FFMPEG_DEPENDENCIES_DEBUG)
794
+ list(REMOVE_DUPLICATES FFMPEG_DEPENDENCIES_RELEASE)
795
+ list(REMOVE_DUPLICATES FFMPEG_DEPENDENCIES_DEBUG)
796
+ list(REVERSE FFMPEG_DEPENDENCIES_RELEASE)
797
+ list(REVERSE FFMPEG_DEPENDENCIES_DEBUG)
798
+
799
+ message(STATUS "Dependencies (release): ${FFMPEG_DEPENDENCIES_RELEASE}")
800
+ message(STATUS "Dependencies (debug): ${FFMPEG_DEPENDENCIES_DEBUG}")
801
+
802
+ # Handle version strings
803
+
804
+ function(extract_regex_from_file out)
805
+ cmake_parse_arguments(PARSE_ARGV 1 "arg" "MAJOR" "FILE_WITHOUT_EXTENSION;REGEX" "")
806
+ file(READ "${arg_FILE_WITHOUT_EXTENSION}.h" contents)
807
+ if (contents MATCHES "${arg_REGEX}")
808
+ if(NOT CMAKE_MATCH_COUNT EQUAL 1)
809
+ message(FATAL_ERROR "Could not identify match group in regular expression \"${arg_REGEX}\"")
810
+ endif()
811
+ else()
812
+ if (arg_MAJOR)
813
+ file(READ "${arg_FILE_WITHOUT_EXTENSION}_major.h" contents)
814
+ if (contents MATCHES "${arg_REGEX}")
815
+ if(NOT CMAKE_MATCH_COUNT EQUAL 1)
816
+ message(FATAL_ERROR "Could not identify match group in regular expression \"${arg_REGEX}\"")
817
+ endif()
818
+ else()
819
+ message(WARNING "Could not find line matching \"${arg_REGEX}\" in file \"${arg_FILE_WITHOUT_EXTENSION}_major.h\"")
820
+ endif()
821
+ else()
822
+ message(WARNING "Could not find line matching \"${arg_REGEX}\" in file \"${arg_FILE_WITHOUT_EXTENSION}.h\"")
823
+ endif()
824
+ endif()
825
+ set("${out}" "${CMAKE_MATCH_1}" PARENT_SCOPE)
826
+ endfunction()
827
+
828
+ function(extract_version_from_component out)
829
+ cmake_parse_arguments(PARSE_ARGV 1 "arg" "" "COMPONENT" "")
830
+ string(TOLOWER "${arg_COMPONENT}" component_lower)
831
+ string(TOUPPER "${arg_COMPONENT}" component_upper)
832
+ extract_regex_from_file(major_version
833
+ FILE_WITHOUT_EXTENSION "${SOURCE_PATH}/${component_lower}/version"
834
+ MAJOR
835
+ REGEX "#define ${component_upper}_VERSION_MAJOR[ ]+([0-9]+)"
836
+ )
837
+ extract_regex_from_file(minor_version
838
+ FILE_WITHOUT_EXTENSION "${SOURCE_PATH}/${component_lower}/version"
839
+ REGEX "#define ${component_upper}_VERSION_MINOR[ ]+([0-9]+)"
840
+ )
841
+ extract_regex_from_file(micro_version
842
+ FILE_WITHOUT_EXTENSION "${SOURCE_PATH}/${component_lower}/version"
843
+ REGEX "#define ${component_upper}_VERSION_MICRO[ ]+([0-9]+)"
844
+ )
845
+ set("${out}" "${major_version}.${minor_version}.${micro_version}" PARENT_SCOPE)
846
+ endfunction()
847
+
848
+ extract_regex_from_file(FFMPEG_VERSION
849
+ FILE_WITHOUT_EXTENSION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/libavutil/ffversion"
850
+ REGEX "#define FFMPEG_VERSION[ ]+\"(.+)\""
851
+ )
852
+
853
+ extract_version_from_component(LIBAVUTIL_VERSION
854
+ COMPONENT libavutil)
855
+ extract_version_from_component(LIBAVCODEC_VERSION
856
+ COMPONENT libavcodec)
857
+ extract_version_from_component(LIBAVDEVICE_VERSION
858
+ COMPONENT libavdevice)
859
+ extract_version_from_component(LIBAVFILTER_VERSION
860
+ COMPONENT libavfilter)
861
+ extract_version_from_component(LIBAVFORMAT_VERSION
862
+ COMPONENT libavformat)
863
+ extract_version_from_component(LIBSWRESAMPLE_VERSION
864
+ COMPONENT libswresample)
865
+ extract_version_from_component(LIBSWSCALE_VERSION
866
+ COMPONENT libswscale)
867
+
868
+ # Handle copyright
869
+ file(STRINGS "${CURRENT_BUILDTREES_DIR}/build-${TARGET_TRIPLET}-rel-out.log" LICENSE_STRING REGEX "License: .*" LIMIT_COUNT 1)
870
+ if(LICENSE_STRING STREQUAL "License: LGPL version 2.1 or later")
871
+ set(LICENSE_FILE "COPYING.LGPLv2.1")
872
+ elseif(LICENSE_STRING STREQUAL "License: LGPL version 3 or later")
873
+ set(LICENSE_FILE "COPYING.LGPLv3")
874
+ elseif(LICENSE_STRING STREQUAL "License: GPL version 2 or later")
875
+ set(LICENSE_FILE "COPYING.GPLv2")
876
+ elseif(LICENSE_STRING STREQUAL "License: GPL version 3 or later")
877
+ set(LICENSE_FILE "COPYING.GPLv3")
878
+ elseif(LICENSE_STRING STREQUAL "License: nonfree and unredistributable")
879
+ set(LICENSE_FILE "COPYING.NONFREE")
880
+ file(WRITE "${SOURCE_PATH}/${LICENSE_FILE}" "${LICENSE_STRING}")
881
+ else()
882
+ message(FATAL_ERROR "Failed to identify license (${LICENSE_STRING})")
883
+ endif()
884
+
885
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/FindFFMPEG.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/FindFFMPEG.cmake" @ONLY)
886
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
887
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
888
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/${LICENSE_FILE}")
cc-multilingual-main/cc_net/vcpkg/ports/ffmpeg/vcpkg.json ADDED
@@ -0,0 +1,691 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ffmpeg",
3
+ "version": "6.1.1",
4
+ "port-version": 2,
5
+ "description": [
6
+ "a library to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created.",
7
+ "FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations."
8
+ ],
9
+ "homepage": "https://ffmpeg.org",
10
+ "license": null,
11
+ "dependencies": [
12
+ {
13
+ "name": "vcpkg-cmake-get-vars",
14
+ "host": true
15
+ },
16
+ {
17
+ "name": "vcpkg-pkgconfig-get-modules",
18
+ "host": true
19
+ }
20
+ ],
21
+ "default-features": [
22
+ "avcodec",
23
+ "avdevice",
24
+ "avfilter",
25
+ "avformat",
26
+ "swresample",
27
+ "swscale"
28
+ ],
29
+ "features": {
30
+ "all": {
31
+ "description": "Build with all allowed dependencies selected that are compatible with the lgpl license",
32
+ "dependencies": [
33
+ {
34
+ "name": "ffmpeg",
35
+ "default-features": false,
36
+ "features": [
37
+ "aom",
38
+ "avcodec",
39
+ "avdevice",
40
+ "avfilter",
41
+ "avformat",
42
+ "bzip2",
43
+ "freetype",
44
+ "iconv",
45
+ "lzma",
46
+ "mp3lame",
47
+ "openjpeg",
48
+ "openmpt",
49
+ "opus",
50
+ "snappy",
51
+ "soxr",
52
+ "speex",
53
+ "swresample",
54
+ "swscale",
55
+ "theora",
56
+ "vorbis",
57
+ "vpx",
58
+ "webp",
59
+ "xml2",
60
+ "zlib"
61
+ ]
62
+ },
63
+ {
64
+ "name": "ffmpeg",
65
+ "default-features": false,
66
+ "features": [
67
+ "alsa"
68
+ ],
69
+ "platform": "linux"
70
+ },
71
+ {
72
+ "name": "ffmpeg",
73
+ "default-features": false,
74
+ "features": [
75
+ "sdl2"
76
+ ],
77
+ "platform": "!osx"
78
+ },
79
+ {
80
+ "name": "ffmpeg",
81
+ "default-features": false,
82
+ "features": [
83
+ "ass"
84
+ ],
85
+ "platform": "!uwp"
86
+ },
87
+ {
88
+ "name": "ffmpeg",
89
+ "default-features": false,
90
+ "features": [
91
+ "fontconfig"
92
+ ],
93
+ "platform": "!uwp"
94
+ },
95
+ {
96
+ "name": "ffmpeg",
97
+ "default-features": false,
98
+ "features": [
99
+ "fribidi"
100
+ ],
101
+ "platform": "!uwp"
102
+ },
103
+ {
104
+ "name": "ffmpeg",
105
+ "default-features": false,
106
+ "features": [
107
+ "modplug"
108
+ ],
109
+ "platform": "!uwp"
110
+ },
111
+ {
112
+ "name": "ffmpeg",
113
+ "default-features": false,
114
+ "features": [
115
+ "opencl"
116
+ ],
117
+ "platform": "!uwp"
118
+ },
119
+ {
120
+ "name": "ffmpeg",
121
+ "default-features": false,
122
+ "features": [
123
+ "openh264"
124
+ ],
125
+ "platform": "!uwp"
126
+ },
127
+ {
128
+ "name": "ffmpeg",
129
+ "default-features": false,
130
+ "features": [
131
+ "srt"
132
+ ],
133
+ "platform": "!uwp"
134
+ },
135
+ {
136
+ "name": "ffmpeg",
137
+ "default-features": false,
138
+ "features": [
139
+ "ilbc"
140
+ ],
141
+ "platform": "!(arm & uwp)"
142
+ },
143
+ {
144
+ "name": "ffmpeg",
145
+ "default-features": false,
146
+ "features": [
147
+ "ssh"
148
+ ],
149
+ "platform": "!(uwp | arm)"
150
+ },
151
+ {
152
+ "name": "ffmpeg",
153
+ "default-features": false,
154
+ "features": [
155
+ "amf"
156
+ ],
157
+ "platform": "!osx & !uwp"
158
+ },
159
+ {
160
+ "name": "ffmpeg",
161
+ "default-features": false,
162
+ "features": [
163
+ "opengl"
164
+ ],
165
+ "platform": "!uwp & !(arm64 & windows)"
166
+ },
167
+ {
168
+ "name": "ffmpeg",
169
+ "default-features": false,
170
+ "features": [
171
+ "tensorflow"
172
+ ],
173
+ "platform": "x64 & !static & !uwp & !windows"
174
+ },
175
+ {
176
+ "name": "ffmpeg",
177
+ "default-features": false,
178
+ "features": [
179
+ "dav1d"
180
+ ],
181
+ "platform": "!(uwp | (windows & x86 & !static))"
182
+ },
183
+ {
184
+ "name": "ffmpeg",
185
+ "default-features": false,
186
+ "features": [
187
+ "tesseract"
188
+ ],
189
+ "platform": "!(windows & arm) & !static & !uwp"
190
+ },
191
+ {
192
+ "name": "ffmpeg",
193
+ "default-features": false,
194
+ "features": [
195
+ "qsv"
196
+ ],
197
+ "platform": "linux | (!osx & !uwp & !(arm & windows))"
198
+ },
199
+ {
200
+ "name": "ffmpeg",
201
+ "default-features": false,
202
+ "features": [
203
+ "nvcodec"
204
+ ],
205
+ "platform": "linux | (!osx & !uwp & !(arm64 & windows))"
206
+ }
207
+ ]
208
+ },
209
+ "all-gpl": {
210
+ "description": "Build with all allowed dependencies selected that are compatible with the gpl license",
211
+ "dependencies": [
212
+ {
213
+ "name": "ffmpeg",
214
+ "default-features": false,
215
+ "features": [
216
+ "all",
217
+ "gpl",
218
+ "postproc"
219
+ ]
220
+ },
221
+ {
222
+ "name": "ffmpeg",
223
+ "default-features": false,
224
+ "features": [
225
+ "x264"
226
+ ],
227
+ "platform": "!(arm & windows)"
228
+ },
229
+ {
230
+ "name": "ffmpeg",
231
+ "default-features": false,
232
+ "features": [
233
+ "x265"
234
+ ],
235
+ "platform": "!uwp & !(arm & windows)"
236
+ },
237
+ {
238
+ "name": "ffmpeg",
239
+ "default-features": false,
240
+ "features": [
241
+ "avisynthplus"
242
+ ],
243
+ "platform": "windows & !arm & !uwp & !static"
244
+ }
245
+ ]
246
+ },
247
+ "all-nonfree": {
248
+ "description": "Build with all allowed dependencies selected with a non-redistributable license",
249
+ "dependencies": [
250
+ {
251
+ "name": "ffmpeg",
252
+ "default-features": false,
253
+ "features": [
254
+ "all-gpl",
255
+ "fdk-aac",
256
+ "nonfree",
257
+ "openssl"
258
+ ]
259
+ }
260
+ ]
261
+ },
262
+ "alsa": {
263
+ "description": "Enable ALSA support",
264
+ "dependencies": [
265
+ "alsa"
266
+ ]
267
+ },
268
+ "amf": {
269
+ "description": "AMD AMF codec support",
270
+ "dependencies": [
271
+ "amd-amf"
272
+ ]
273
+ },
274
+ "aom": {
275
+ "description": "AV1 video encoding/decoding via libaom support in ffmpeg",
276
+ "dependencies": [
277
+ "aom"
278
+ ]
279
+ },
280
+ "ass": {
281
+ "description": "Libass subtitles rendering, needed for subtitles and ass filter support in ffmpeg",
282
+ "dependencies": [
283
+ "libass"
284
+ ]
285
+ },
286
+ "avcodec": {
287
+ "description": "Build the avcodec library"
288
+ },
289
+ "avdevice": {
290
+ "description": "Build the avdevice library",
291
+ "dependencies": [
292
+ {
293
+ "name": "ffmpeg",
294
+ "default-features": false,
295
+ "features": [
296
+ "avcodec",
297
+ "avformat"
298
+ ]
299
+ }
300
+ ]
301
+ },
302
+ "avfilter": {
303
+ "description": "Build the avfilter library"
304
+ },
305
+ "avformat": {
306
+ "description": "Build the avformat library",
307
+ "dependencies": [
308
+ {
309
+ "name": "ffmpeg",
310
+ "default-features": false,
311
+ "features": [
312
+ "avcodec"
313
+ ]
314
+ }
315
+ ]
316
+ },
317
+ "avisynthplus": {
318
+ "description": "Reading of AviSynth script files",
319
+ "supports": "windows & !static",
320
+ "dependencies": [
321
+ "avisynthplus",
322
+ {
323
+ "name": "ffmpeg",
324
+ "default-features": false,
325
+ "features": [
326
+ "gpl"
327
+ ]
328
+ }
329
+ ]
330
+ },
331
+ "avresample": {
332
+ "description": "Build the avresample library"
333
+ },
334
+ "bzip2": {
335
+ "description": "Bzip2 support",
336
+ "dependencies": [
337
+ "bzip2"
338
+ ]
339
+ },
340
+ "dav1d": {
341
+ "description": "AV1 decoding via libdav1d",
342
+ "dependencies": [
343
+ "dav1d"
344
+ ]
345
+ },
346
+ "fdk-aac": {
347
+ "description": "AAC de/encoding via libfdk-aac, **including GPL-incompatible patent-encumbered HE-AAC**. If you do not require HE-AAC, use the built-in FFmpeg AAC codec.",
348
+ "dependencies": [
349
+ {
350
+ "name": "fdk-aac",
351
+ "default-features": false,
352
+ "features": [
353
+ "he-aac"
354
+ ]
355
+ },
356
+ {
357
+ "name": "ffmpeg",
358
+ "default-features": false,
359
+ "features": [
360
+ "nonfree"
361
+ ]
362
+ }
363
+ ]
364
+ },
365
+ "ffmpeg": {
366
+ "description": "Build the ffmpeg application",
367
+ "supports": "!uwp",
368
+ "dependencies": [
369
+ {
370
+ "name": "ffmpeg",
371
+ "default-features": false,
372
+ "features": [
373
+ "avcodec",
374
+ "avfilter",
375
+ "avformat"
376
+ ]
377
+ }
378
+ ]
379
+ },
380
+ "ffplay": {
381
+ "description": "Build the ffplay application",
382
+ "supports": "!uwp",
383
+ "dependencies": [
384
+ {
385
+ "name": "ffmpeg",
386
+ "default-features": false,
387
+ "features": [
388
+ "avcodec",
389
+ "avfilter",
390
+ "avformat",
391
+ "sdl2",
392
+ "swresample",
393
+ "swscale"
394
+ ]
395
+ }
396
+ ]
397
+ },
398
+ "ffprobe": {
399
+ "description": "Build the ffprobe application",
400
+ "supports": "!uwp",
401
+ "dependencies": [
402
+ {
403
+ "name": "ffmpeg",
404
+ "default-features": false,
405
+ "features": [
406
+ "avcodec",
407
+ "avformat"
408
+ ]
409
+ }
410
+ ]
411
+ },
412
+ "fontconfig": {
413
+ "description": "Useful for drawtext filter",
414
+ "dependencies": [
415
+ "fontconfig"
416
+ ]
417
+ },
418
+ "freetype": {
419
+ "description": "Needed for drawtext filter",
420
+ "dependencies": [
421
+ "freetype"
422
+ ]
423
+ },
424
+ "fribidi": {
425
+ "description": "Improves drawtext filter",
426
+ "dependencies": [
427
+ "fribidi"
428
+ ]
429
+ },
430
+ "gpl": {
431
+ "description": "Allow use of GPL code, the resulting libs and binaries will be under GPL"
432
+ },
433
+ "iconv": {
434
+ "description": "Iconv support",
435
+ "dependencies": [
436
+ "libiconv"
437
+ ]
438
+ },
439
+ "ilbc": {
440
+ "description": "iLBC de/encoding via libilbc",
441
+ "dependencies": [
442
+ "libilbc"
443
+ ]
444
+ },
445
+ "lzma": {
446
+ "description": "lzma support",
447
+ "dependencies": [
448
+ "liblzma"
449
+ ]
450
+ },
451
+ "modplug": {
452
+ "description": "ModPlug via libmodplug",
453
+ "dependencies": [
454
+ "libmodplug"
455
+ ]
456
+ },
457
+ "mp3lame": {
458
+ "description": "MP3 encoding via libmp3lame",
459
+ "dependencies": [
460
+ "mp3lame"
461
+ ]
462
+ },
463
+ "nonfree": {
464
+ "description": "Allow use of nonfree code, the resulting libs and binaries will be unredistributable"
465
+ },
466
+ "nvcodec": {
467
+ "description": "Nvidia video decoding/encoding acceleration",
468
+ "supports": "linux | (!osx & !uwp & !(arm64 & windows))",
469
+ "dependencies": [
470
+ "ffnvcodec"
471
+ ]
472
+ },
473
+ "opencl": {
474
+ "description": "OpenCL processing",
475
+ "supports": "!uwp",
476
+ "dependencies": [
477
+ "opencl"
478
+ ]
479
+ },
480
+ "opengl": {
481
+ "description": "OpenGL rendering",
482
+ "supports": "!uwp",
483
+ "dependencies": [
484
+ "opengl",
485
+ "opengl-registry"
486
+ ]
487
+ },
488
+ "openh264": {
489
+ "description": "H.264 de/encoding via openh264",
490
+ "dependencies": [
491
+ "openh264"
492
+ ]
493
+ },
494
+ "openjpeg": {
495
+ "description": "JPEG 2000 de/encoding via OpenJPEG",
496
+ "dependencies": [
497
+ "openjpeg"
498
+ ]
499
+ },
500
+ "openmpt": {
501
+ "description": "Decoding tracked files via libopenmpt",
502
+ "dependencies": [
503
+ "libopenmpt"
504
+ ]
505
+ },
506
+ "openssl": {
507
+ "description": "Needed for https support if gnutls, libtls or mbedtls is not used",
508
+ "dependencies": [
509
+ {
510
+ "name": "ffmpeg",
511
+ "default-features": false,
512
+ "features": [
513
+ "version3"
514
+ ]
515
+ },
516
+ "openssl"
517
+ ]
518
+ },
519
+ "opus": {
520
+ "description": "Opus de/encoding via libopus",
521
+ "dependencies": [
522
+ "opus"
523
+ ]
524
+ },
525
+ "postproc": {
526
+ "description": "Build the postproc library",
527
+ "dependencies": [
528
+ {
529
+ "name": "ffmpeg",
530
+ "default-features": false,
531
+ "features": [
532
+ "gpl"
533
+ ]
534
+ }
535
+ ]
536
+ },
537
+ "qsv": {
538
+ "description": "Intel QSV Codec",
539
+ "dependencies": [
540
+ "mfx-dispatch"
541
+ ]
542
+ },
543
+ "sdl2": {
544
+ "description": "Sdl2 support",
545
+ "dependencies": [
546
+ {
547
+ "name": "sdl2",
548
+ "default-features": false,
549
+ "features": [
550
+ "x11"
551
+ ],
552
+ "platform": "linux"
553
+ },
554
+ {
555
+ "name": "sdl2",
556
+ "platform": "!linux"
557
+ }
558
+ ]
559
+ },
560
+ "snappy": {
561
+ "description": "Snappy compression, needed for hap encoding",
562
+ "dependencies": [
563
+ "snappy"
564
+ ]
565
+ },
566
+ "soxr": {
567
+ "description": "Include libsoxr resampling",
568
+ "dependencies": [
569
+ {
570
+ "name": "ffmpeg",
571
+ "default-features": false,
572
+ "features": [
573
+ "swresample"
574
+ ]
575
+ },
576
+ "soxr"
577
+ ]
578
+ },
579
+ "speex": {
580
+ "description": "Speex de/encoding via libspeex",
581
+ "dependencies": [
582
+ "speex"
583
+ ]
584
+ },
585
+ "srt": {
586
+ "description": "Haivision SRT protocol",
587
+ "supports": "!uwp",
588
+ "dependencies": [
589
+ "libsrt"
590
+ ]
591
+ },
592
+ "ssh": {
593
+ "description": "SFTP protocol via libssh",
594
+ "dependencies": [
595
+ "libssh"
596
+ ]
597
+ },
598
+ "swresample": {
599
+ "description": "Build the swresample library"
600
+ },
601
+ "swscale": {
602
+ "description": "Build the swscale library"
603
+ },
604
+ "tensorflow": {
605
+ "description": "TensorFlow as a DNN module backend for DNN based filters like sr",
606
+ "supports": "!static",
607
+ "dependencies": [
608
+ "tensorflow"
609
+ ]
610
+ },
611
+ "tesseract": {
612
+ "description": "Tesseract, needed for ocr filter",
613
+ "supports": "!static",
614
+ "dependencies": [
615
+ "tesseract"
616
+ ]
617
+ },
618
+ "theora": {
619
+ "description": "Theora encoding via libtheora",
620
+ "dependencies": [
621
+ "libtheora"
622
+ ]
623
+ },
624
+ "version3": {
625
+ "description": "Upgrade (L)GPL to version 3"
626
+ },
627
+ "vorbis": {
628
+ "description": "Vorbis en/decoding via libvorbis, native implementation exists",
629
+ "dependencies": [
630
+ "libvorbis"
631
+ ]
632
+ },
633
+ "vpx": {
634
+ "description": "VP8 and VP9 de/encoding via libvpx",
635
+ "dependencies": [
636
+ {
637
+ "name": "ffmpeg",
638
+ "default-features": false,
639
+ "features": [
640
+ "avcodec"
641
+ ]
642
+ },
643
+ "libvpx"
644
+ ]
645
+ },
646
+ "webp": {
647
+ "description": "WebP encoding via libwebp",
648
+ "dependencies": [
649
+ "libwebp"
650
+ ]
651
+ },
652
+ "x264": {
653
+ "description": "H.264 encoding via x264",
654
+ "dependencies": [
655
+ {
656
+ "name": "ffmpeg",
657
+ "default-features": false,
658
+ "features": [
659
+ "gpl"
660
+ ]
661
+ },
662
+ "x264"
663
+ ]
664
+ },
665
+ "x265": {
666
+ "description": "HEVC encoding via x265",
667
+ "dependencies": [
668
+ {
669
+ "name": "ffmpeg",
670
+ "default-features": false,
671
+ "features": [
672
+ "gpl"
673
+ ]
674
+ },
675
+ "x265"
676
+ ]
677
+ },
678
+ "xml2": {
679
+ "description": "XML parsing using the C library libxml2, needed for dash demuxing support",
680
+ "dependencies": [
681
+ "libxml2"
682
+ ]
683
+ },
684
+ "zlib": {
685
+ "description": "zlib support",
686
+ "dependencies": [
687
+ "zlib"
688
+ ]
689
+ }
690
+ }
691
+ }
cc-multilingual-main/cc_net/vcpkg/ports/gtl/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO greg7mdp/gtl
6
+ REF "v${VERSION}"
7
+ SHA512 c6ab1ae6bfdee7f4fa49ab6ea27138cfe7159b5b0fb918a65f27cc7fff74e632f2567508453d1767bc406ac6286ff3a12edeffd185b5b2acf0ef304d4175b86e
8
+ HEAD_REF main
9
+ )
10
+
11
+ # Use greg7mdp/gtl's own build process, skipping examples and tests
12
+ vcpkg_cmake_configure(
13
+ SOURCE_PATH "${SOURCE_PATH}"
14
+ OPTIONS
15
+ -DGTL_BUILD_TESTS=OFF
16
+ -DGTL_BUILD_EXAMPLES=OFF
17
+ -DGTL_BUILD_BENCHMARKS=OFF
18
+ )
19
+ vcpkg_cmake_install()
20
+
21
+ # Delete redundant directories
22
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/share/doc")
23
+
24
+ # Put the licence file where vcpkg expects it
25
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/gtl/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gtl",
3
+ "version": "1.1.8",
4
+ "description": "Greg's Template Library of useful classes.",
5
+ "homepage": "https://github.com/greg7mdp/gtl",
6
+ "license": "Apache-2.0",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ }
12
+ ]
13
+ }
cc-multilingual-main/cc_net/vcpkg/ports/lemon-parser-generator/vcpkg.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "lemon-parser-generator",
3
+ "version": "3.39.3",
4
+ "description": "The Lemon program is an LALR(1) parser generator. It takes a context free grammar and converts it into a subroutine that will parse a file using that grammar.",
5
+ "homepage": "https://www.hwaci.com/sw/lemon/index.html",
6
+ "license": "blessing",
7
+ "supports": "native",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ }
13
+ ]
14
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libgpod/portfile.cmake ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO fadingred/libgpod
4
+ REF 4a8a33ef4bc58eee1baca6793618365f75a5c3fa
5
+ SHA512 b7a120c1106c1205e8de2808de5ac4ff1cf189943017939a5ea4eded4e1ceef44557587e69a8591cc5249f8c8dbf0cbdcce1dd309d33a0e9207b0560abe3ae39
6
+ HEAD_REF master
7
+ PATCHES configure.ac.patch
8
+ )
9
+
10
+ vcpkg_execute_required_process(
11
+ COMMAND intltoolize --force --copy --automake
12
+ WORKING_DIRECTORY "${SOURCE_PATH}"
13
+ LOGNAME intltoolize-${TARGET_TRIPLET}
14
+ )
15
+ vcpkg_execute_required_process(
16
+ COMMAND gtkdocize --copy
17
+ WORKING_DIRECTORY "${SOURCE_PATH}"
18
+ LOGNAME gtkdocize-${TARGET_TRIPLET}
19
+ )
20
+ vcpkg_configure_make(
21
+ SOURCE_PATH ${SOURCE_PATH}
22
+ AUTOCONFIG
23
+ OPTIONS
24
+ --without-hal
25
+ --disable-gdk-pixbuf
26
+ --disable-pygobject
27
+ --disable-more-warnings
28
+ --disable-libxml
29
+ --disable-gtk-doc-html
30
+ )
31
+ vcpkg_install_make()
32
+ vcpkg_fixup_pkgconfig()
33
+
34
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
35
+
36
+ # Handle copyright
37
+ file(COPY ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
38
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/libgpod/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libgpod",
3
+ "version-date": "2019-08-29",
4
+ "port-version": 4,
5
+ "description": "libgpod is a library meant to abstract access to an iPod content.",
6
+ "homepage": "https://github.com/fadingred/libgpod",
7
+ "supports": "!windows & !osx",
8
+ "dependencies": [
9
+ "glib",
10
+ "libplist",
11
+ "sqlite3"
12
+ ]
13
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libimobiledevice-glue/CMakeLists.txt ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.15)
2
+ project(libimobiledevice-glue C CXX)
3
+
4
+ include(GNUInstallDirs)
5
+
6
+ file(GLOB_RECURSE LIBIMOBILEDEVICEGLUE_SOURCE src/*.c)
7
+
8
+ set(DEFINITIONS)
9
+
10
+ if(BUILD_SHARED_LIBS)
11
+ if(WIN32)
12
+ list(APPEND LIBIMOBILEDEVICEGLUE_SOURCE exports.def)
13
+ endif()
14
+ else()
15
+ list(APPEND DEFINITIONS -DLIBIMOBILEDEVICEGLUE_STATIC)
16
+ endif()
17
+
18
+ if(UNIX)
19
+ list(APPEND DEFINITIONS -DHAVE_GETIFADDRS)
20
+ endif()
21
+
22
+ if(WIN32)
23
+ list(APPEND DEFINITIONS -D_CRT_SECURE_NO_WARNINGS)
24
+ list(APPEND DEFINITIONS -DWIN32)
25
+ endif()
26
+
27
+ find_package(unofficial-libplist CONFIG REQUIRED)
28
+
29
+ add_library(libimobiledevice-glue ${LIBIMOBILEDEVICEGLUE_SOURCE})
30
+ target_include_directories(libimobiledevice-glue
31
+ PRIVATE
32
+ "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>"
33
+ PUBLIC
34
+ "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
35
+ )
36
+ target_compile_definitions(libimobiledevice-glue PRIVATE ${DEFINITIONS})
37
+ target_link_libraries(libimobiledevice-glue
38
+ PUBLIC
39
+ unofficial::libplist::libplist
40
+ )
41
+ set_target_properties(libimobiledevice-glue PROPERTIES OUTPUT_NAME imobiledevice-glue-1.0)
42
+
43
+ if(WIN32)
44
+ target_link_libraries(libimobiledevice-glue PRIVATE Ws2_32 Iphlpapi)
45
+ endif()
46
+
47
+ install(TARGETS libimobiledevice-glue EXPORT unofficial-libimobiledevice-glue)
48
+
49
+ install(
50
+ EXPORT unofficial-libimobiledevice-glue
51
+ FILE unofficial-libimobiledevice-glue-config.cmake
52
+ DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/unofficial-libimobiledevice-glue"
53
+ NAMESPACE unofficial::libimobiledevice-glue::
54
+ )
55
+
56
+ install(
57
+ DIRECTORY "${CMAKE_SOURCE_DIR}/include/libimobiledevice-glue"
58
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
59
+ )
60
+
61
+ set(LIBPLIST_VERSION 2.0)
62
+ set(PACKAGE_NAME libimobiledevice-glue)
63
+ set(PACKAGE_VERSION 1.0)
64
+ set(prefix "")
65
+ set(exec_prefix "\${prefix}")
66
+ set(libdir "\${prefix}/lib")
67
+ set(includedir "\${prefix}/include")
68
+
69
+ configure_file(
70
+ "${CMAKE_CURRENT_SOURCE_DIR}/src/libimobiledevice-glue-1.0.pc.in"
71
+ "${CMAKE_CURRENT_BINARY_DIR}/libimobiledevice-glue-1.0.pc"
72
+ @ONLY
73
+ )
74
+ install(
75
+ FILES "${CMAKE_CURRENT_BINARY_DIR}/libimobiledevice-glue-1.0.pc"
76
+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
77
+ )
cc-multilingual-main/cc_net/vcpkg/ports/libofx/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO libofx/libofx
4
+ REF 0.10.9
5
+ SHA512 be7b77f77a012fe04121c615b88f674bba11f79b5353b3c4594de395f9f787c3a9b6910693f5ba701421387fc13c13e7977ab73893e18c6a0b6e1292b7d1cfe2
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
10
+ FEATURES
11
+ "iconv" ENABLE_ICONV
12
+ "ofxdump" ENABLE_OFXDUMP
13
+ "ofx2qif" ENABLE_OFX2QIF
14
+ )
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ OPTIONS
19
+ -DENABLE_OFXCONNECT=OFF # depends on libxml++ ABI 2.6, while vcpkg ships ABI 4.0. See https://libxmlplusplus.github.io/libxmlplusplus/#abi-versions
20
+ ${FEATURE_OPTIONS}
21
+ )
22
+
23
+ vcpkg_cmake_install()
24
+ vcpkg_fixup_pkgconfig()
25
+ vcpkg_cmake_config_fixup(PACKAGE_NAME LibOFX CONFIG_PATH lib/cmake/libofx)
26
+ vcpkg_copy_pdbs()
27
+
28
+ list(REMOVE_ITEM FEATURES core iconv)
29
+ if(FEATURES)
30
+ vcpkg_copy_tools(TOOL_NAMES ${FEATURES} AUTO_CLEAN)
31
+ endif()
32
+
33
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
34
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
35
+
36
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
cc-multilingual-main/cc_net/vcpkg/ports/libuuid/CMakeLists.txt ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.0)
2
+ project(libuuid C)
3
+
4
+ configure_file(config.linux.h config.h COPYONLY)
5
+
6
+ include_directories(${CMAKE_CURRENT_BINARY_DIR})
7
+
8
+ add_library(uuid STATIC
9
+ clear.c
10
+ compare.c
11
+ copy.c
12
+ gen_uuid.c
13
+ isnull.c
14
+ pack.c
15
+ parse.c
16
+ randutils.c
17
+ unpack.c
18
+ unparse.c
19
+ uuid_time.c
20
+ )
21
+ target_compile_options(uuid PRIVATE -include "${CMAKE_CURRENT_BINARY_DIR}/config.h")
22
+ target_include_directories(uuid PUBLIC "$<INSTALL_INTERFACE:include>")
23
+
24
+ add_executable(test_uuid test_uuid.c)
25
+ target_link_libraries(test_uuid uuid)
26
+
27
+ if(CMAKE_BUILD_TYPE STREQUAL "Release")
28
+ install(FILES uuid.h DESTINATION include/uuid)
29
+ endif()
30
+
31
+ install(
32
+ TARGETS uuid
33
+ EXPORT uuid_targets
34
+ RUNTIME DESTINATION bin
35
+ LIBRARY DESTINATION lib
36
+ ARCHIVE DESTINATION lib
37
+ )
38
+
39
+ include(CMakePackageConfigHelpers)
40
+ set(PACKAGE_CONFIG_FILE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-libuuid-config.cmake")
41
+ set(INSTALL_CONFIG_DIR "${CMAKE_INSTALL_LIBDIR}/cmake/unofficial-libuuid")
42
+
43
+ configure_package_config_file(unofficial-libuuid-config.cmake.in
44
+ "${PACKAGE_CONFIG_FILE}"
45
+ INSTALL_DESTINATION "${INSTALL_CONFIG_DIR}"
46
+ )
47
+
48
+ export(EXPORT uuid_targets
49
+ NAMESPACE unofficial::UUID::
50
+ FILE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-libuuid-targets.cmake"
51
+ )
52
+
53
+ install(EXPORT uuid_targets
54
+ NAMESPACE unofficial::UUID::
55
+ FILE unofficial-libuuid-targets.cmake
56
+ DESTINATION "${INSTALL_CONFIG_DIR}"
57
+ )
58
+
59
+ install(
60
+ FILES
61
+ "${PACKAGE_CONFIG_FILE}"
62
+ DESTINATION
63
+ "${INSTALL_CONFIG_DIR}"
64
+ )
cc-multilingual-main/cc_net/vcpkg/ports/libuuid/config.linux.h ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #define HAVE_DECL__SC_HOST_NAME_MAX 1
2
+ #define HAVE_INTTYPES_H 1
3
+ #define HAVE_NETINET_IN_H 1
4
+ #define HAVE_SRANDOM 1
5
+ #define HAVE_STDINT_H 1
6
+ #define HAVE_STDLIB_H 1
7
+ #define HAVE_SYS_FILE_H 1
8
+ #define HAVE_SYS_IOCTL_H 1
9
+ #define HAVE_SYS_SOCKET_H 1
10
+ #define HAVE_SYS_TIME_H 1
11
+ #define HAVE_UNISTD_H 1
12
+ #define HAVE_USLEEP 1
13
+ #define PACKAGE_STRING "libuuid 1.0.3"
cc-multilingual-main/cc_net/vcpkg/ports/libuuid/portfile.cmake ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(LIBUUID_VERSION 1.0.3)
2
+
3
+ vcpkg_from_sourceforge(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO libuuid
6
+ FILENAME "libuuid-${LIBUUID_VERSION}.tar.gz"
7
+ SHA512 77488caccc66503f6f2ded7bdfc4d3bc2c20b24a8dc95b2051633c695e99ec27876ffbafe38269b939826e1fdb06eea328f07b796c9e0aaca12331a787175507
8
+ )
9
+
10
+ file(COPY
11
+ "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
12
+ "${CMAKE_CURRENT_LIST_DIR}/config.linux.h"
13
+ "${CMAKE_CURRENT_LIST_DIR}/unofficial-libuuid-config.cmake.in"
14
+ DESTINATION "${SOURCE_PATH}"
15
+ )
16
+
17
+ vcpkg_cmake_configure(
18
+ SOURCE_PATH "${SOURCE_PATH}"
19
+ )
20
+
21
+ vcpkg_cmake_install()
22
+
23
+ set(prefix "${CURRENT_INSTALLED_DIR}")
24
+ set(exec_prefix \$\{prefix\})
25
+ set(libdir \$\{exec_prefix\}/lib)
26
+ set(includedir \$\{prefix\}/include)
27
+ configure_file("${SOURCE_PATH}/uuid.pc.in" "${SOURCE_PATH}/uuid.pc" @ONLY)
28
+ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
29
+ file(INSTALL "${SOURCE_PATH}/uuid.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
30
+ endif()
31
+ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
32
+ file(INSTALL "${SOURCE_PATH}/uuid.pc" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
33
+ endif()
34
+
35
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/unofficial-libuuid PACKAGE_NAME unofficial-libuuid)
36
+ vcpkg_fixup_pkgconfig()
37
+
38
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
39
+
40
+ vcpkg_copy_pdbs()
cc-multilingual-main/cc_net/vcpkg/ports/libuuid/unofficial-libuuid-config.cmake.in ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ @PACKAGE_INIT@
2
+
3
+ include("${CMAKE_CURRENT_LIST_DIR}/unofficial-libuuid-targets.cmake")
cc-multilingual-main/cc_net/vcpkg/ports/libuuid/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libuuid",
3
+ "version": "1.0.3",
4
+ "port-version": 14,
5
+ "description": "Universally unique id library",
6
+ "homepage": "https://sourceforge.net/projects/libuuid",
7
+ "license": "BSD-3-Clause",
8
+ "supports": "!osx & !windows",
9
+ "dependencies": [
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ]
19
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libxmlpp/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #..\src\libxml++-5-7c4d4a4cea.clean\meson.build:278:4: ERROR: Problem encountered: Static builds are not supported by MSVC-style builds
2
+ set(LIBXMLPP_VERSION 5.0.0)
3
+
4
+ vcpkg_download_distfile(ARCHIVE
5
+ URLS "https://ftp.gnome.org/pub/GNOME/sources/libxml++/5.0/libxml++-${LIBXMLPP_VERSION}.tar.xz"
6
+ FILENAME "libxml++-${LIBXMLPP_VERSION}.tar.xz"
7
+ SHA512 ae8d7a178e7a3b48a9f0e1ea303e8a4e4d879d0d9367124ede3783d0c31e31c862b98e5d28d72edc4c0b19c6b457ead2d25664efd33d65e44fd52c5783ec3091
8
+ )
9
+
10
+ vcpkg_extract_source_archive(
11
+ SOURCE_PATH
12
+ ARCHIVE "${ARCHIVE}"
13
+ )
14
+
15
+ vcpkg_configure_meson(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ OPTIONS
18
+ -Dbuild-documentation=false
19
+ -Dvalidation=false # Validate the tutorial XML file
20
+ -Dbuild-examples=false
21
+ -Dbuild-tests=false
22
+ -Dmsvc14x-parallel-installable=false # Use separate DLL and LIB filenames for Visual Studio 2017 and 2019
23
+ -Dbuild-deprecated-api=true # Build deprecated API and include it in the library
24
+ )
25
+ vcpkg_install_meson()
26
+ vcpkg_fixup_pkgconfig()
27
+ vcpkg_copy_pdbs()
28
+
29
+ # Handle copyright and readme
30
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libxmlpp RENAME copyright)
31
+ file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/libxmlpp)
cc-multilingual-main/cc_net/vcpkg/ports/libxmlpp/vcpkg.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libxmlpp",
3
+ "version": "5.0.0",
4
+ "port-version": 3,
5
+ "description": "a C++ wrapper for the libxml XML parser library.",
6
+ "supports": "!(windows & static)",
7
+ "dependencies": [
8
+ "glibmm",
9
+ "libxml2",
10
+ {
11
+ "name": "vcpkg-tool-meson",
12
+ "host": true
13
+ }
14
+ ]
15
+ }
cc-multilingual-main/cc_net/vcpkg/ports/oatpp-mongo/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-mongo
8
+ REF ${OATPP_VERSION}
9
+ SHA512 11f4164948feb63ed3f5e8554a54348e29cd4d90333761f98c37f4eb49f129c6589955755e8e052c5c29e6b2980f1bb899657415d6480c3ae7a50fc2445afbfe
10
+ HEAD_REF master
11
+ )
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS
16
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
17
+ )
18
+
19
+ vcpkg_cmake_install()
20
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-mongo CONFIG_PATH lib/cmake/oatpp-mongo-${OATPP_VERSION})
21
+ vcpkg_copy_pdbs()
22
+
23
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
24
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/oatpp-mongo/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-mongo",
3
+ "version": "1.3.0",
4
+ "port-version": 1,
5
+ "description": "Oat++ MongoDB adapter for Oat++ ORM (native client). It contains DTO to BSON mapper plus database driver.",
6
+ "homepage": "https://github.com/oatpp/oatpp-mongo",
7
+ "license": "Apache-2.0",
8
+ "dependencies": [
9
+ "oatpp",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ]
19
+ }
cc-multilingual-main/cc_net/vcpkg/ports/openctm/CMakeLists.txt ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.19...3.23)
2
+ project(
3
+ openctm
4
+ VERSION 1.0.3
5
+ LANGUAGES C)
6
+
7
+ set(PUBLIC_HEADERS lib/openctm.h lib/openctmpp.h)
8
+
9
+ add_library(
10
+ openctm
11
+ lib/compressMG1.c
12
+ lib/compressMG2.c
13
+ lib/compressRAW.c
14
+ lib/openctm.c
15
+ lib/stream.c
16
+ lib/liblzma/Alloc.c
17
+ lib/liblzma/LzFind.c
18
+ lib/liblzma/LzmaDec.c
19
+ lib/liblzma/LzmaEnc.c
20
+ lib/liblzma/LzmaLib.c)
21
+
22
+ target_include_directories(
23
+ openctm
24
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/lib>
25
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/lib/liblzma>
26
+ $<INSTALL_INTERFACE:include>)
27
+ target_compile_definitions(openctm PRIVATE OPENCTM_BUILD LZMA_PREFIX_CTM)
28
+ if(NOT BUILD_SHARED_LIBS)
29
+ target_compile_definitions(openctm PUBLIC OPENCTM_STATIC)
30
+ endif()
31
+ target_compile_features(openctm PRIVATE c_std_99)
32
+ set_target_properties(openctm PROPERTIES C_VISIBILITY_PRESET hidden
33
+ PUBLIC_HEADER "${PUBLIC_HEADERS}")
34
+
35
+ include(GNUInstallDirs)
36
+ install(
37
+ TARGETS openctm
38
+ EXPORT unofficial-openctmConfig
39
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
40
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
41
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
42
+ PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" COMPONENT dev)
43
+
44
+ include(CMakePackageConfigHelpers)
45
+ set(VERSION_FILE_PATH "${CMAKE_CURRENT_BINARY_DIR}/unofficial-openctmConfigVersion.cmake")
46
+ write_basic_package_version_file(
47
+ "${VERSION_FILE_PATH}"
48
+ VERSION ${PROJECT_VERSION}
49
+ COMPATIBILITY SameMajorVersion)
50
+ install(FILES "${VERSION_FILE_PATH}" DESTINATION share/unofficial-openctm)
51
+
52
+ install(FILES ${PUBLIC_HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
53
+
54
+ install(
55
+ EXPORT unofficial-openctmConfig
56
+ FILE unofficial-openctmConfig.cmake
57
+ NAMESPACE unofficial::openctm::
58
+ DESTINATION share/unofficial-openctm)
59
+
60
+ export(PACKAGE openctm)
cc-multilingual-main/cc_net/vcpkg/ports/openctm/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "openctm",
3
+ "version": "1.0.3",
4
+ "description": "OpenCTM — the Open Compressed Triangle Mesh file format — is a file format, a software library and a tool set for compression of 3D triangle meshes.",
5
+ "homepage": "http://openctm.sourceforge.net/",
6
+ "license": "Zlib",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
cc-multilingual-main/cc_net/vcpkg/ports/openh264/0001-respect-default-library-option.patch ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From 328b15a962caa928373b55d85f9911f45442886e Mon Sep 17 00:00:00 2001
2
+ From: Xavier Claessens <[email protected]>
3
+ Date: Mon, 19 Oct 2020 17:03:25 -0400
4
+ Subject: [PATCH] meson: Respect default_library option
5
+
6
+ When using library() instead of shared_library() and static_library,
7
+ meson will build shared, static, or both depending on the
8
+ value of static_library option.
9
+
10
+ As far as I know extract_all_objects() was uses as workaround for Meson
11
+ bugs fixed a while ago when using not installed static libraries.
12
+ ---
13
+ meson.build | 19 +++----------------
14
+ 1 file changed, 3 insertions(+), 16 deletions(-)
15
+
16
+ diff --git a/meson.build b/meson.build
17
+ index 283413375b..65641508de 100644
18
+ --- a/meson.build
19
+ +++ b/meson.build
20
+ @@ -184,26 +184,13 @@ api_header_deps = []
21
+ subdir ('codec')
22
+ subdir ('test')
23
+
24
+ -all_objects = [
25
+ - libcommon.extract_all_objects(),
26
+ - libprocessing.extract_all_objects(),
27
+ - libencoder.extract_all_objects(),
28
+ - libdecoder.extract_all_objects()
29
+ -]
30
+ -
31
+ -libopenh264_shared = shared_library('openh264',
32
+ - objects: all_objects,
33
+ +libopenh264 = library('openh264',
34
+ + link_whole: [libcommon, libprocessing, libencoder, libdecoder],
35
+ install: true,
36
+ soversion: major_version,
37
+ - version: meson.project_version(),
38
+ vs_module_defs: 'openh264.def',
39
+ dependencies: deps)
40
+
41
+ -libopenh264_static = static_library('openh264',
42
+ - objects: all_objects,
43
+ - install: true,
44
+ - dependencies: deps)
45
+ -
46
+ pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
47
+
48
+ foreach t : ['', '-static']
49
+ @@ -235,7 +222,7 @@ foreach t : ['', '-static']
50
+ endforeach
51
+
52
+ openh264_dep = declare_dependency(
53
+ - link_with: libopenh264_shared,
54
+ + link_with: libopenh264,
55
+ include_directories: include_directories('include'),
56
+ dependencies: deps + api_header_deps)
57
+
cc-multilingual-main/cc_net/vcpkg/ports/openh264/portfile.cmake ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO cisco/openh264
4
+ REF f15f940425eebf24ce66984db2445733cf500b7b
5
+ SHA512 361003296e9cef2956aeff76ae4df7a949a585710facd84a92c1b4164c5a4522d6615fcc485ebc2e50be8a13feb942b870efdd28837307467081cb1eba1f17d2
6
+ PATCHES
7
+ 0001-respect-default-library-option.patch # https://github.com/cisco/openh264/pull/3351
8
+ )
9
+
10
+ if((VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x64"))
11
+ vcpkg_find_acquire_program(NASM)
12
+ get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
13
+ vcpkg_add_to_path(${NASM_EXE_PATH})
14
+ elseif(VCPKG_TARGET_IS_WINDOWS)
15
+ vcpkg_find_acquire_program(GASPREPROCESSOR)
16
+ foreach(GAS_PATH ${GASPREPROCESSOR})
17
+ get_filename_component(GAS_ITEM_PATH ${GAS_PATH} DIRECTORY)
18
+ vcpkg_add_to_path(${GAS_ITEM_PATH})
19
+ endforeach(GAS_PATH)
20
+ endif()
21
+
22
+ vcpkg_configure_meson(
23
+ SOURCE_PATH ${SOURCE_PATH}
24
+ OPTIONS -Dtests=disabled
25
+ )
26
+
27
+ vcpkg_install_meson()
28
+ vcpkg_copy_pdbs()
29
+ vcpkg_fixup_pkgconfig()
30
+
31
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
32
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
33
+ endif()
34
+
35
+ configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
cc-multilingual-main/cc_net/vcpkg/ports/openh264/vcpkg.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "openh264",
3
+ "version-date": "2021-03-16",
4
+ "port-version": 3,
5
+ "description": "OpenH264 is a codec library which supports H.264 encoding and decoding. It is suitable for use in real time applications such as WebRTC.",
6
+ "homepage": "https://www.openh264.org/",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-tool-meson",
11
+ "host": true
12
+ }
13
+ ]
14
+ }
cc-multilingual-main/cc_net/vcpkg/ports/qt5-activeqt/portfile.cmake ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ include("${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake")
2
+ qt_submodule_installation()
cc-multilingual-main/cc_net/vcpkg/ports/qt5-activeqt/vcpkg.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "qt5-activeqt",
3
+ "version": "5.15.13",
4
+ "port-version": 1,
5
+ "description": "Active Qt is a helper framework that enables the developer to access and use ActiveX controls and COM objects provided by any ActiveX server. It also makes it possible to make the developer's own Qt applications available as COM servers on Windows.",
6
+ "license": null,
7
+ "supports": "windows",
8
+ "dependencies": [
9
+ {
10
+ "name": "qt5-base",
11
+ "default-features": false
12
+ }
13
+ ]
14
+ }
cc-multilingual-main/cc_net/vcpkg/ports/rest-rpc/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if (EXISTS ${CURRENT_INSTALLED_DIR}/include/msgpack/pack.h)
2
+ message(FATAL_ERROR "Cannot install ${PORT} when msgpack is already installed, please remove msgpack using \"./vcpkg remove msgpack:${TARGET_TRIPLET}\"")
3
+ endif()
4
+
5
+ # header-only library
6
+ set(RESTRPC_VERSION V0.07)
7
+ set(RESTRPC_HASH 148152776c8c4f16e404c62ab3f46618e1817c0b4b186dbcc399c859efd110ed5a207bf56e961c312f80844f696f597068e0abc00e426409d50a2889d30c6d8e)
8
+ set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/rest-rpc-${RESTRPC_VERSION})
9
+
10
+ vcpkg_from_github(
11
+ OUT_SOURCE_PATH SOURCE_PATH
12
+ REPO qicosmos/rest_rpc
13
+ REF ${RESTRPC_VERSION}
14
+ SHA512 ${RESTRPC_HASH}
15
+ HEAD_REF master
16
+ )
17
+
18
+ file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
19
+ file(INSTALL ${SOURCE_PATH}/third/msgpack/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
20
+
21
+ vcpkg_replace_string(
22
+ "${CURRENT_PACKAGES_DIR}/include/rest_rpc.hpp"
23
+ "#include \"rest_rpc/rpc_server.h\""
24
+ "#define ASIO_STANDALONE\n#include \"rest_rpc/rpc_server.h\""
25
+ )
26
+
27
+ # # Handle copyright
28
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)