Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- cc-multilingual-main/cc_net/vcpkg/ports/boost-array/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-array/vcpkg.json +34 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dx/portfile.cmake +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dx/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/CMakeLists.txt +164 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/FreeImageConfig-dynamic.h +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/FreeImageConfig-static.h +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/disable-plugins-depending-on-internal-third-party-libraries.patch +89 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/fix-function-overload.patch +40 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/portfile.cmake +56 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/rawlib-build-fix.patch +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/remove_auto_ptr.patch +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-jpeg.patch +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-jxrlib.patch +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-libtiff.patch +204 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-openexr.patch +72 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-openjpeg.patch +39 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-png-zlib.patch +40 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-rawlib.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-webp.patch +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-freeimage-config-include.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-functions-to-override-libtiff-warning-error-handlers.patch +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-typedef-as-already-declared.patch +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeimage/vcpkg.json +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hps/portfile.cmake +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hps/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libnice/portfile.cmake +41 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libnice/vcpkg.json +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsoundio/fix_cmakelists.patch +58 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsoundio/portfile.cmake +42 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsoundio/vcpkg.json +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/moos-core/cmake_fix.patch +48 -0
- cc-multilingual-main/cc_net/vcpkg/ports/moos-core/include_functional.patch +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/moos-core/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/moos-core/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nanort/portfile.cmake +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nanort/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ncnn/fix_uwp.patch +42 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ncnn/portfile.cmake +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ncnn/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pipewire/portfile.cmake +93 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pipewire/vcpkg.json +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/qthttpserver/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/CMakeLists.txt +48 -0
- cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/exports.def +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/fix-issue-34.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/portfile.cmake +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/v8/V8Config-shared.cmake +111 -0
- cc-multilingual-main/cc_net/vcpkg/ports/v8/build.patch +187 -0
cc-multilingual-main/cc_net/vcpkg/ports/boost-array/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/array
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 ddc4f259b1ce6e2b856978fc7474811cbf5c1b7a808ff16c411bb5f873dac80e27b67119e2e8f1cbe05da314a04f8a57d46113b6b86598a7ff378955feb7b79b
|
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-array/vcpkg.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-array",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost array module",
|
6 |
+
"homepage": "https://github.com/boostorg/array",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-assert",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-config",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "boost-core",
|
19 |
+
"version>=": "1.84.0"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "boost-static-assert",
|
23 |
+
"version>=": "1.84.0"
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "boost-throw-exception",
|
27 |
+
"version>=": "1.84.0"
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"name": "boost-vcpkg-helpers",
|
31 |
+
"version>=": "1.84.0"
|
32 |
+
}
|
33 |
+
]
|
34 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/dx/portfile.cmake
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO sdcb/dx
|
5 |
+
REF v1.0.1
|
6 |
+
SHA512 b40eb4daf774bfdb394b207bb29652fbf44361f5d8f9b60509c7a3215cd403dbf0c10454979c0c2e97d839496ef20940070a42837375993cd67d58afacc990e0
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
file(INSTALL
|
11 |
+
${SOURCE_PATH}/dx.h
|
12 |
+
${SOURCE_PATH}/debug.h
|
13 |
+
${SOURCE_PATH}/handle.h
|
14 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include/dx
|
15 |
+
)
|
16 |
+
|
17 |
+
file(INSTALL
|
18 |
+
${SOURCE_PATH}/LICENSE
|
19 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/dx RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/dx/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dx",
|
3 |
+
"version": "1.0.1",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A modern C++ library for DirectX programming",
|
6 |
+
"homepage": "https://github.com/sdcb/dx"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/CMakeLists.txt
ADDED
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.4)
|
2 |
+
|
3 |
+
include(GNUInstallDirs)
|
4 |
+
|
5 |
+
project(FreeImage C CXX)
|
6 |
+
|
7 |
+
if(MSVC)
|
8 |
+
add_definitions("-D_CRT_SECURE_NO_WARNINGS")
|
9 |
+
set(CMAKE_CXX_FLAGS "/wd4828 ${CMAKE_CXX_FLAGS}")
|
10 |
+
endif()
|
11 |
+
|
12 |
+
find_package(ZLIB REQUIRED)
|
13 |
+
find_package(PNG REQUIRED)
|
14 |
+
find_package(JPEG REQUIRED)
|
15 |
+
find_package(TIFF REQUIRED)
|
16 |
+
find_package(OpenJPEG REQUIRED)
|
17 |
+
find_package(WebP CONFIG REQUIRED)
|
18 |
+
find_package(JXR REQUIRED)
|
19 |
+
find_package(LibRaw REQUIRED)
|
20 |
+
find_package(OpenEXR REQUIRED)
|
21 |
+
|
22 |
+
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
23 |
+
option(INSTALL_HEADERS "Install the development headers" ON)
|
24 |
+
|
25 |
+
set(REAL_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Source)
|
26 |
+
|
27 |
+
# Add a debug postfix
|
28 |
+
set(CMAKE_DEBUG_POSTFIX "d")
|
29 |
+
|
30 |
+
# List the public header files
|
31 |
+
set(PUBLIC_HEADERS ${REAL_SOURCE_DIR}/FreeImage.h)
|
32 |
+
|
33 |
+
# List the private header files
|
34 |
+
set(ROOT_PRIVATE_HEADERS ${REAL_SOURCE_DIR}/CacheFile.h
|
35 |
+
${REAL_SOURCE_DIR}/FreeImageIO.h
|
36 |
+
${REAL_SOURCE_DIR}/MapIntrospector.h
|
37 |
+
${REAL_SOURCE_DIR}/Plugin.h
|
38 |
+
${REAL_SOURCE_DIR}/Quantizers.h
|
39 |
+
${REAL_SOURCE_DIR}/ToneMapping.h
|
40 |
+
${REAL_SOURCE_DIR}/Utilities.h)
|
41 |
+
|
42 |
+
file(GLOB FREEIMAGE_PRIVATE_HEADERS ${REAL_SOURCE_DIR}/FreeImage/*.h)
|
43 |
+
file(GLOB FREEIMAGE_TOOLKIT_PRIVATE_HEADERS ${REAL_SOURCE_DIR}/FreeImageToolkit/*.h)
|
44 |
+
file(GLOB METADATA_PRIVATE_HEADERS ${REAL_SOURCE_DIR}/Metadata/*.h)
|
45 |
+
|
46 |
+
set(PRIVATE_HEADERS ${ROOT_PRIVATE_HEADERS}
|
47 |
+
${FREEIMAGE_PRIVATE_HEADERS}
|
48 |
+
${FREEIMAGE_TOOLKIT_PRIVATE_HEADERS}
|
49 |
+
${METADATA_PRIVATE_HEADERS})
|
50 |
+
|
51 |
+
# List the source files
|
52 |
+
file(GLOB DEPRECATION_SRCS ${REAL_SOURCE_DIR}/DeprecationManager/*.cpp)
|
53 |
+
file(GLOB FREEIMAGE_TOOLKIT_SRCS ${REAL_SOURCE_DIR}/FreeImageToolkit/*.cpp)
|
54 |
+
file(GLOB FREEIMAGE_SRCS ${REAL_SOURCE_DIR}/FreeImage/*.cpp)
|
55 |
+
file(GLOB METADATA_SRCS ${REAL_SOURCE_DIR}/Metadata/*.cpp)
|
56 |
+
|
57 |
+
# The G3 plugin is disabled because it require the private copy of tiff
|
58 |
+
list(REMOVE_ITEM FREEIMAGE_SRCS ${REAL_SOURCE_DIR}/FreeImage/PluginG3.cpp)
|
59 |
+
|
60 |
+
# The JPEGTransform plugin is disable because it requires a private copy of jpeg
|
61 |
+
list(REMOVE_ITEM FREEIMAGE_TOOLKIT_SRCS ${REAL_SOURCE_DIR}/FreeImageToolkit/JPEGTransform.cpp)
|
62 |
+
|
63 |
+
|
64 |
+
set(SRCS ${DEPRECATION_SRCS}
|
65 |
+
${FREEIMAGE_SRCS}
|
66 |
+
${FREEIMAGE_TOOLKIT_SRCS}
|
67 |
+
${METADATA_SRCS}
|
68 |
+
)
|
69 |
+
|
70 |
+
# If FreeImage is used as a static library, FREEIMAGE_LIB
|
71 |
+
# needs to be defined (at the C preprocessor level) to correctly
|
72 |
+
# define (to nothing instead of _declspec(dllimport) ) the DLL_API macro.
|
73 |
+
# For this purpouse we include (depending on the BUILD_SHARED_LIBS )
|
74 |
+
# the appropriate FreeImageConfig.h .
|
75 |
+
if(BUILD_SHARED_LIBS)
|
76 |
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/FreeImageConfig-dynamic.h ${CMAKE_CURRENT_BINARY_DIR}/FreeImageConfig.h)
|
77 |
+
else()
|
78 |
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/FreeImageConfig-static.h ${CMAKE_CURRENT_BINARY_DIR}/FreeImageConfig.h)
|
79 |
+
endif()
|
80 |
+
list(APPEND PUBLIC_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/FreeImageConfig.h)
|
81 |
+
|
82 |
+
add_library(FreeImage ${SRCS} ${PRIVATE_HEADERS} ${PUBLIC_HEADERS} ${CMAKE_CURRENT_SOURCE_DIR}/FreeImage.rc)
|
83 |
+
|
84 |
+
if(BUILD_SHARED_LIBS)
|
85 |
+
target_compile_definitions(FreeImage PRIVATE -DFREEIMAGE_EXPORTS)
|
86 |
+
else()
|
87 |
+
target_compile_definitions(FreeImage PRIVATE -DFREEIMAGE_LIB)
|
88 |
+
endif()
|
89 |
+
|
90 |
+
target_include_directories(FreeImage PRIVATE ${REAL_SOURCE_DIR}
|
91 |
+
${ZLIB_INCLUDE_DIRS}
|
92 |
+
${JPEG_INCLUDE_DIRS}
|
93 |
+
${TIFF_INCLUDE_DIRS}
|
94 |
+
${PNG_INCLUDE_DIRS}
|
95 |
+
${OPENJPEG_INCLUDE_DIRS}
|
96 |
+
${JXR_INCLUDE_DIRS}
|
97 |
+
${LibRaw_INCLUDE_DIRS}
|
98 |
+
${CMAKE_CURRENT_BINARY_DIR}
|
99 |
+
PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
100 |
+
|
101 |
+
|
102 |
+
target_link_libraries(FreeImage ${ZLIB_LIBRARIES}
|
103 |
+
${JPEG_LIBRARIES}
|
104 |
+
${TIFF_LIBRARIES}
|
105 |
+
${PNG_LIBRARIES}
|
106 |
+
${OPENJPEG_LIBRARIES}
|
107 |
+
WebP::webp WebP::webpdemux WebP::libwebpmux WebP::webpdecoder
|
108 |
+
${JXR_LIBRARIES}
|
109 |
+
${LibRaw_LIBRARIES}
|
110 |
+
OpenEXR::OpenEXR
|
111 |
+
Imath::Imath)
|
112 |
+
|
113 |
+
target_compile_definitions(FreeImage PRIVATE ${PNG_DEFINITIONS})
|
114 |
+
|
115 |
+
# FreeImagePlus
|
116 |
+
file(GLOB FREEIMAGEPLUS_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Wrapper/FreeImagePlus/src/*.cpp)
|
117 |
+
add_library(FreeImagePlus
|
118 |
+
${FREEIMAGEPLUS_SOURCES}
|
119 |
+
${CMAKE_CURRENT_SOURCE_DIR}/Wrapper/FreeImagePlus/FreeImagePlus.h
|
120 |
+
${CMAKE_CURRENT_SOURCE_DIR}/Wrapper/FreeImagePlus/FreeImagePlus.rc)
|
121 |
+
|
122 |
+
if(BUILD_SHARED_LIBS)
|
123 |
+
target_compile_definitions(FreeImagePlus PRIVATE -DFIP_EXPORTS)
|
124 |
+
else()
|
125 |
+
target_compile_definitions(FreeImagePlus PRIVATE -DFREEIMAGE_LIB)
|
126 |
+
endif()
|
127 |
+
|
128 |
+
target_include_directories(FreeImagePlus PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Wrapper/FreeImagePlus
|
129 |
+
${CMAKE_CURRENT_BINARY_DIR}
|
130 |
+
${REAL_SOURCE_DIR}
|
131 |
+
PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
132 |
+
|
133 |
+
target_link_libraries(FreeImagePlus PUBLIC FreeImage)
|
134 |
+
|
135 |
+
list(APPEND PUBLIC_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/Wrapper/FreeImagePlus/FreeImagePlus.h)
|
136 |
+
|
137 |
+
install(TARGETS FreeImage FreeImagePlus
|
138 |
+
EXPORT freeimage-targets
|
139 |
+
COMPONENT runtime
|
140 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
141 |
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
142 |
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
143 |
+
|
144 |
+
install(EXPORT freeimage-targets NAMESPACE freeimage:: DESTINATION share/freeimage)
|
145 |
+
|
146 |
+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/freeimage-config.cmake"
|
147 |
+
"include(CMakeFindDependencyMacro)
|
148 |
+
find_dependency(ZLIB)
|
149 |
+
find_dependency(PNG)
|
150 |
+
find_dependency(JPEG)
|
151 |
+
find_dependency(TIFF)
|
152 |
+
find_dependency(OpenJPEG)
|
153 |
+
find_dependency(WebP CONFIG)
|
154 |
+
find_dependency(JXR)
|
155 |
+
find_dependency(LibRaw)
|
156 |
+
find_dependency(OpenEXR)
|
157 |
+
find_dependency(Imath)
|
158 |
+
include(\"\${CMAKE_CURRENT_LIST_DIR}/freeimage-targets.cmake\")
|
159 |
+
")
|
160 |
+
|
161 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freeimage-config.cmake DESTINATION share/freeimage)
|
162 |
+
if(INSTALL_HEADERS)
|
163 |
+
install(FILES ${PUBLIC_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
164 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/FreeImageConfig-dynamic.h
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifndef FREEIMAGE_CONFIG_H
|
2 |
+
#define FREEIMAGE_CONFIG_H
|
3 |
+
|
4 |
+
#undef FREEIMAGE_LIB
|
5 |
+
|
6 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/FreeImageConfig-static.h
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifndef FREEIMAGE_CONFIG_H
|
2 |
+
#define FREEIMAGE_CONFIG_H
|
3 |
+
|
4 |
+
#define FREEIMAGE_LIB
|
5 |
+
|
6 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/disable-plugins-depending-on-internal-third-party-libraries.patch
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage.h b/Source/FreeImage.h
|
2 |
+
index 12182cd..ebd0453 100644
|
3 |
+
--- a/Source/FreeImage.h
|
4 |
+
+++ b/Source/FreeImage.h
|
5 |
+
@@ -410,16 +410,20 @@ FI_ENUM(FREE_IMAGE_FORMAT) {
|
6 |
+
FIF_DDS = 24,
|
7 |
+
FIF_GIF = 25,
|
8 |
+
FIF_HDR = 26,
|
9 |
+
- FIF_FAXG3 = 27,
|
10 |
+
- FIF_SGI = 28,
|
11 |
+
- FIF_EXR = 29,
|
12 |
+
- FIF_J2K = 30,
|
13 |
+
- FIF_JP2 = 31,
|
14 |
+
- FIF_PFM = 32,
|
15 |
+
- FIF_PICT = 33,
|
16 |
+
- FIF_RAW = 34,
|
17 |
+
- FIF_WEBP = 35,
|
18 |
+
- FIF_JXR = 36
|
19 |
+
+/* vcpkg: The G3 fax format plugin is deliberately disabled in our build of
|
20 |
+
+ FreeImage, since it requires usage of the vendored copy of libtiff. */
|
21 |
+
+#if 0
|
22 |
+
+ FIF_FAXG3 = 27,
|
23 |
+
+#endif
|
24 |
+
+ FIF_SGI = 27,
|
25 |
+
+ FIF_EXR = 28,
|
26 |
+
+ FIF_J2K = 29,
|
27 |
+
+ FIF_JP2 = 30,
|
28 |
+
+ FIF_PFM = 31,
|
29 |
+
+ FIF_PICT = 32,
|
30 |
+
+ FIF_RAW = 33,
|
31 |
+
+ FIF_WEBP = 34,
|
32 |
+
+ FIF_JXR = 35
|
33 |
+
};
|
34 |
+
|
35 |
+
/** Image type used in FreeImage.
|
36 |
+
@@ -476,6 +480,9 @@ FI_ENUM(FREE_IMAGE_DITHER) {
|
37 |
+
/** Lossless JPEG transformations
|
38 |
+
Constants used in FreeImage_JPEGTransform
|
39 |
+
*/
|
40 |
+
+/* vcpkg: The JPEGTransform functions are deliberately disabled in our build
|
41 |
+
+ of FreeImage, since they require usage of the vendored copy of libjpeg. */
|
42 |
+
+#if 0
|
43 |
+
FI_ENUM(FREE_IMAGE_JPEG_OPERATION) {
|
44 |
+
FIJPEG_OP_NONE = 0, //! no transformation
|
45 |
+
FIJPEG_OP_FLIP_H = 1, //! horizontal flip
|
46 |
+
@@ -486,6 +493,7 @@ FI_ENUM(FREE_IMAGE_JPEG_OPERATION) {
|
47 |
+
FIJPEG_OP_ROTATE_180 = 6, //! 180-degree rotation
|
48 |
+
FIJPEG_OP_ROTATE_270 = 7 //! 270-degree clockwise (or 90 ccw)
|
49 |
+
};
|
50 |
+
+#endif
|
51 |
+
|
52 |
+
/** Tone mapping operators.
|
53 |
+
Constants used in FreeImage_ToneMapping.
|
54 |
+
@@ -1089,6 +1097,9 @@ DLL_API const char* DLL_CALLCONV FreeImage_TagToString(FREE_IMAGE_MDMODEL model,
|
55 |
+
// JPEG lossless transformation routines
|
56 |
+
// --------------------------------------------------------------------------
|
57 |
+
|
58 |
+
+/* vcpkg: The JPEGTransform functions are deliberately disabled in our build
|
59 |
+
+ of FreeImage, since they require usage of the vendored copy of libjpeg. */
|
60 |
+
+#if 0
|
61 |
+
DLL_API BOOL DLL_CALLCONV FreeImage_JPEGTransform(const char *src_file, const char *dst_file, FREE_IMAGE_JPEG_OPERATION operation, BOOL perfect FI_DEFAULT(TRUE));
|
62 |
+
DLL_API BOOL DLL_CALLCONV FreeImage_JPEGTransformU(const wchar_t *src_file, const wchar_t *dst_file, FREE_IMAGE_JPEG_OPERATION operation, BOOL perfect FI_DEFAULT(TRUE));
|
63 |
+
DLL_API BOOL DLL_CALLCONV FreeImage_JPEGCrop(const char *src_file, const char *dst_file, int left, int top, int right, int bottom);
|
64 |
+
@@ -1097,7 +1108,7 @@ DLL_API BOOL DLL_CALLCONV FreeImage_JPEGTransformFromHandle(FreeImageIO* src_io,
|
65 |
+
DLL_API BOOL DLL_CALLCONV FreeImage_JPEGTransformCombined(const char *src_file, const char *dst_file, FREE_IMAGE_JPEG_OPERATION operation, int* left, int* top, int* right, int* bottom, BOOL perfect FI_DEFAULT(TRUE));
|
66 |
+
DLL_API BOOL DLL_CALLCONV FreeImage_JPEGTransformCombinedU(const wchar_t *src_file, const wchar_t *dst_file, FREE_IMAGE_JPEG_OPERATION operation, int* left, int* top, int* right, int* bottom, BOOL perfect FI_DEFAULT(TRUE));
|
67 |
+
DLL_API BOOL DLL_CALLCONV FreeImage_JPEGTransformCombinedFromMemory(FIMEMORY* src_stream, FIMEMORY* dst_stream, FREE_IMAGE_JPEG_OPERATION operation, int* left, int* top, int* right, int* bottom, BOOL perfect FI_DEFAULT(TRUE));
|
68 |
+
-
|
69 |
+
+#endif
|
70 |
+
|
71 |
+
// --------------------------------------------------------------------------
|
72 |
+
// Image manipulation toolkit
|
73 |
+
diff --git a/Source/FreeImage/Plugin.cpp b/Source/FreeImage/Plugin.cpp
|
74 |
+
index 11e7294..0119ba7 100644
|
75 |
+
--- a/Source/FreeImage/Plugin.cpp
|
76 |
+
+++ b/Source/FreeImage/Plugin.cpp
|
77 |
+
@@ -263,7 +263,11 @@ FreeImage_Initialise(BOOL load_local_plugins_only) {
|
78 |
+
s_plugins->AddNode(InitDDS);
|
79 |
+
s_plugins->AddNode(InitGIF);
|
80 |
+
s_plugins->AddNode(InitHDR);
|
81 |
+
- s_plugins->AddNode(InitG3);
|
82 |
+
+/* vcpkg: The G3 fax format plugin is deliberately disabled in our build of FreeImage
|
83 |
+
++ since it requires usage of the vendored copy of libtiff. */
|
84 |
+
+#if 0
|
85 |
+
+ s_plugins->AddNode(InitG3);
|
86 |
+
+#endif
|
87 |
+
s_plugins->AddNode(InitSGI);
|
88 |
+
s_plugins->AddNode(InitEXR);
|
89 |
+
s_plugins->AddNode(InitJ2K);
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/fix-function-overload.patch
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginJPEG.cpp b/Source/FreeImage/PluginJPEG.cpp
|
2 |
+
index 8db177d..efa2c4e 100644
|
3 |
+
--- a/Source/FreeImage/PluginJPEG.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginJPEG.cpp
|
5 |
+
@@ -503,7 +503,7 @@ marker_is_icc(jpeg_saved_marker_ptr marker) {
|
6 |
+
return FALSE. You might want to issue an error message instead.
|
7 |
+
*/
|
8 |
+
static BOOL
|
9 |
+
-jpeg_read_icc_profile(j_decompress_ptr cinfo, JOCTET **icc_data_ptr, unsigned *icc_data_len) {
|
10 |
+
+jpeg_read_icc_profile_(j_decompress_ptr cinfo, JOCTET **icc_data_ptr, unsigned *icc_data_len) {
|
11 |
+
jpeg_saved_marker_ptr marker;
|
12 |
+
int num_markers = 0;
|
13 |
+
int seq_no;
|
14 |
+
@@ -745,7 +745,7 @@ read_markers(j_decompress_ptr cinfo, FIBITMAP *dib) {
|
15 |
+
BYTE *icc_profile = NULL;
|
16 |
+
unsigned icc_length = 0;
|
17 |
+
|
18 |
+
- if( jpeg_read_icc_profile(cinfo, &icc_profile, &icc_length) ) {
|
19 |
+
+ if( jpeg_read_icc_profile_(cinfo, &icc_profile, &icc_length) ) {
|
20 |
+
// copy ICC profile data
|
21 |
+
FreeImage_CreateICCProfile(dib, icc_profile, icc_length);
|
22 |
+
// clean up
|
23 |
+
@@ -785,7 +785,7 @@ jpeg_write_comment(j_compress_ptr cinfo, FIBITMAP *dib) {
|
24 |
+
Write JPEG_APP2 marker (ICC profile)
|
25 |
+
*/
|
26 |
+
static BOOL
|
27 |
+
-jpeg_write_icc_profile(j_compress_ptr cinfo, FIBITMAP *dib) {
|
28 |
+
+jpeg_write_icc_profile_(j_compress_ptr cinfo, FIBITMAP *dib) {
|
29 |
+
// marker identifying string "ICC_PROFILE" (null-terminated)
|
30 |
+
BYTE icc_signature[12] = { 0x49, 0x43, 0x43, 0x5F, 0x50, 0x52, 0x4F, 0x46, 0x49, 0x4C, 0x45, 0x00 };
|
31 |
+
|
32 |
+
@@ -1038,7 +1038,7 @@ write_markers(j_compress_ptr cinfo, FIBITMAP *dib) {
|
33 |
+
jpeg_write_comment(cinfo, dib);
|
34 |
+
|
35 |
+
// write ICC profile
|
36 |
+
- jpeg_write_icc_profile(cinfo, dib);
|
37 |
+
+ jpeg_write_icc_profile_(cinfo, dib);
|
38 |
+
|
39 |
+
// write IPTC profile
|
40 |
+
jpeg_write_iptc_profile(cinfo, dib);
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/portfile.cmake
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_sourceforge(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO freeimage/Source%20Distribution
|
4 |
+
REF 3.18.0
|
5 |
+
FILENAME "FreeImage3180.zip"
|
6 |
+
SHA512 9d9cc7e2d57552c3115e277aeb036e0455204d389026b17a3f513da5be1fd595421655488bb1ec2f76faebed66049119ca55e26e2a6d37024b3fb7ef36ad4818
|
7 |
+
PATCHES
|
8 |
+
disable-plugins-depending-on-internal-third-party-libraries.patch
|
9 |
+
use-external-jpeg.patch
|
10 |
+
use-external-jxrlib.patch
|
11 |
+
use-external-libtiff.patch
|
12 |
+
use-external-openjpeg.patch
|
13 |
+
use-external-png-zlib.patch
|
14 |
+
use-external-rawlib.patch
|
15 |
+
use-external-webp.patch
|
16 |
+
use-external-openexr.patch
|
17 |
+
use-freeimage-config-include.patch
|
18 |
+
fix-function-overload.patch
|
19 |
+
use-typedef-as-already-declared.patch
|
20 |
+
use-functions-to-override-libtiff-warning-error-handlers.patch
|
21 |
+
remove_auto_ptr.patch
|
22 |
+
rawlib-build-fix.patch
|
23 |
+
)
|
24 |
+
|
25 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
26 |
+
"${CMAKE_CURRENT_LIST_DIR}/FreeImageConfig-static.h"
|
27 |
+
"${CMAKE_CURRENT_LIST_DIR}/FreeImageConfig-dynamic.h"
|
28 |
+
DESTINATION "${SOURCE_PATH}"
|
29 |
+
)
|
30 |
+
|
31 |
+
# This is not strictly necessary, but to make sure
|
32 |
+
# that no "internal" libraries are used we remove them
|
33 |
+
file(REMOVE_RECURSE
|
34 |
+
"${SOURCE_PATH}/Source/LibJPEG"
|
35 |
+
"${SOURCE_PATH}/Source/LibPNG"
|
36 |
+
"${SOURCE_PATH}/Source/LibTIFF4"
|
37 |
+
"${SOURCE_PATH}/Source/ZLib"
|
38 |
+
"${SOURCE_PATH}/Source/LibOpenJPEG"
|
39 |
+
"${SOURCE_PATH}/Source/LibJXR"
|
40 |
+
"${SOURCE_PATH}/Source/LibWebP"
|
41 |
+
"${SOURCE_PATH}/Source/LibRawLite"
|
42 |
+
"${SOURCE_PATH}/Source/OpenEXR"
|
43 |
+
)
|
44 |
+
|
45 |
+
vcpkg_cmake_configure(
|
46 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
47 |
+
OPTIONS_DEBUG
|
48 |
+
-DINSTALL_HEADERS=OFF
|
49 |
+
)
|
50 |
+
|
51 |
+
vcpkg_cmake_install()
|
52 |
+
vcpkg_cmake_config_fixup()
|
53 |
+
|
54 |
+
vcpkg_copy_pdbs()
|
55 |
+
|
56 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license-fi.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/rawlib-build-fix.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginRAW.cpp b/Source/FreeImage/PluginRAW.cpp
|
2 |
+
index c7f8758a..a57fd5f1 100644
|
3 |
+
--- a/Source/FreeImage/PluginRAW.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginRAW.cpp
|
5 |
+
@@ -46,6 +46,14 @@ private:
|
6 |
+
long _eof;
|
7 |
+
INT64 _fsize;
|
8 |
+
|
9 |
+
+ // Minimal change to make version 3.18.0 of FreeImage compile with
|
10 |
+
+ // LibRaw 0.20 and later versions.
|
11 |
+
+ // Once the port of FreeImage has been updated to a version greater
|
12 |
+
+ // than 3.18.0, this patch should be removed as it will not be needed.
|
13 |
+
+#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 20)
|
14 |
+
+ LibRaw_abstract_datastream * const substream = nullptr;
|
15 |
+
+#endif
|
16 |
+
+
|
17 |
+
public:
|
18 |
+
LibRaw_freeimage_datastream(FreeImageIO *io, fi_handle handle) : _io(io), _handle(handle) {
|
19 |
+
long start_pos = io->tell_proc(handle);
|
20 |
+
@@ -694,7 +702,11 @@ Load(FreeImageIO *io, fi_handle handle, int page, int flags, void *data) {
|
21 |
+
// --------------------------------------------
|
22 |
+
|
23 |
+
// (-s [0..N-1]) Select one raw image from input file
|
24 |
+
+#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 20)
|
25 |
+
+ RawProcessor->imgdata.rawparams.shot_select = 0;
|
26 |
+
+#else
|
27 |
+
RawProcessor->imgdata.params.shot_select = 0;
|
28 |
+
+#endif
|
29 |
+
// (-w) Use camera white balance, if possible (otherwise, fallback to auto_wb)
|
30 |
+
RawProcessor->imgdata.params.use_camera_wb = 1;
|
31 |
+
// (-M) Use any color matrix from the camera metadata. This option only affects Olympus, Leaf, and Phase One cameras.
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/remove_auto_ptr.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/MultiPage.cpp b/Source/FreeImage/MultiPage.cpp
|
2 |
+
index 4f2605188..8af384aff 100644
|
3 |
+
--- a/Source/FreeImage/MultiPage.cpp
|
4 |
+
+++ b/Source/FreeImage/MultiPage.cpp
|
5 |
+
@@ -31,6 +31,8 @@
|
6 |
+
#pragma warning (disable : 4786) // identifier was truncated to 'number' characters
|
7 |
+
#endif
|
8 |
+
|
9 |
+
+#include <memory>
|
10 |
+
+
|
11 |
+
#include "CacheFile.h"
|
12 |
+
#include "FreeImageIO.h"
|
13 |
+
#include "Plugin.h"
|
14 |
+
@@ -271,8 +273,8 @@ FreeImage_OpenMultiBitmap(FREE_IMAGE_FORMAT fif, const char *filename, BOOL crea
|
15 |
+
}
|
16 |
+
}
|
17 |
+
|
18 |
+
- std::auto_ptr<FIMULTIBITMAP> bitmap (new FIMULTIBITMAP);
|
19 |
+
- std::auto_ptr<MULTIBITMAPHEADER> header (new MULTIBITMAPHEADER);
|
20 |
+
+ std::unique_ptr<FIMULTIBITMAP> bitmap (new FIMULTIBITMAP);
|
21 |
+
+ std::unique_ptr<MULTIBITMAPHEADER> header (new MULTIBITMAPHEADER);
|
22 |
+
header->m_filename = filename;
|
23 |
+
// io is default
|
24 |
+
header->node = node;
|
25 |
+
@@ -337,8 +339,8 @@ FreeImage_OpenMultiBitmapFromHandle(FREE_IMAGE_FORMAT fif, FreeImageIO *io, fi_h
|
26 |
+
PluginNode *node = list->FindNodeFromFIF(fif);
|
27 |
+
|
28 |
+
if (node) {
|
29 |
+
- std::auto_ptr<FIMULTIBITMAP> bitmap (new FIMULTIBITMAP);
|
30 |
+
- std::auto_ptr<MULTIBITMAPHEADER> header (new MULTIBITMAPHEADER);
|
31 |
+
+ std::unique_ptr<FIMULTIBITMAP> bitmap (new FIMULTIBITMAP);
|
32 |
+
+ std::unique_ptr<MULTIBITMAPHEADER> header (new MULTIBITMAPHEADER);
|
33 |
+
header->io = *io;
|
34 |
+
header->node = node;
|
35 |
+
header->fif = fif;
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-jpeg.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginJPEG.cpp b/Source/FreeImage/PluginJPEG.cpp
|
2 |
+
index 573989c..aaeefa4 100644
|
3 |
+
--- a/Source/FreeImage/PluginJPEG.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginJPEG.cpp
|
5 |
+
@@ -35,9 +35,9 @@ extern "C" {
|
6 |
+
#undef FAR
|
7 |
+
#include <setjmp.h>
|
8 |
+
|
9 |
+
-#include "../LibJPEG/jinclude.h"
|
10 |
+
-#include "../LibJPEG/jpeglib.h"
|
11 |
+
-#include "../LibJPEG/jerror.h"
|
12 |
+
+#include <stdio.h>
|
13 |
+
+#include <jpeglib.h>
|
14 |
+
+#include <jerror.h>
|
15 |
+
}
|
16 |
+
|
17 |
+
#include "FreeImage.h"
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-jxrlib.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginJXR.cpp b/Source/FreeImage/PluginJXR.cpp
|
2 |
+
index 0e14e09..8eb9d5d 100644
|
3 |
+
--- a/Source/FreeImage/PluginJXR.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginJXR.cpp
|
5 |
+
@@ -23,7 +23,8 @@
|
6 |
+
#include "Utilities.h"
|
7 |
+
#include "../Metadata/FreeImageTag.h"
|
8 |
+
|
9 |
+
-#include "../LibJXR/jxrgluelib/JXRGlue.h"
|
10 |
+
+#define INITGUID
|
11 |
+
+#include <JXRGlue.h>
|
12 |
+
|
13 |
+
// ==========================================================
|
14 |
+
// Plugin Interface
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-libtiff.patch
ADDED
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginTIFF.cpp b/Source/FreeImage/PluginTIFF.cpp
|
2 |
+
index 5068d94..8947b03 100644
|
3 |
+
--- a/Source/FreeImage/PluginTIFF.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginTIFF.cpp
|
5 |
+
@@ -37,9 +37,9 @@
|
6 |
+
|
7 |
+
#include "FreeImage.h"
|
8 |
+
#include "Utilities.h"
|
9 |
+
-#include "../LibTIFF4/tiffiop.h"
|
10 |
+
+#include <tiffio.h>
|
11 |
+
#include "../Metadata/FreeImageTag.h"
|
12 |
+
#include "../OpenEXR/Half/half.h"
|
13 |
+
|
14 |
+
#include "FreeImageIO.h"
|
15 |
+
#include "PSDParser.h"
|
16 |
+
@@ -199,15 +199,18 @@ Open a TIFF file for reading or writing
|
17 |
+
@param name
|
18 |
+
@param mode
|
19 |
+
*/
|
20 |
+
+/*
|
21 |
+
TIFF*
|
22 |
+
TIFFOpen(const char* name, const char* mode) {
|
23 |
+
return 0;
|
24 |
+
}
|
25 |
+
+*/
|
26 |
+
|
27 |
+
// ----------------------------------------------------------
|
28 |
+
// TIFF library FreeImage-specific routines.
|
29 |
+
// ----------------------------------------------------------
|
30 |
+
|
31 |
+
+/*
|
32 |
+
void*
|
33 |
+
_TIFFmalloc(tmsize_t s) {
|
34 |
+
return malloc(s);
|
35 |
+
@@ -245,6 +248,7 @@ int
|
36 |
+
_TIFFmemcmp(const void* p1, const void* p2, tmsize_t c) {
|
37 |
+
return (memcmp(p1, p2, (size_t) c));
|
38 |
+
}
|
39 |
+
+*/
|
40 |
+
|
41 |
+
// ----------------------------------------------------------
|
42 |
+
// in FreeImage warnings and errors are disabled
|
43 |
+
|
44 |
+
diff --git a/Source/Metadata/XTIFF.cpp b/Source/Metadata/XTIFF.cpp
|
45 |
+
index d5be902..8dbcd5d 100644
|
46 |
+
--- a/Source/Metadata/XTIFF.cpp
|
47 |
+
+++ b/Source/Metadata/XTIFF.cpp
|
48 |
+
@@ -29,7 +29,7 @@
|
49 |
+
#pragma warning (disable : 4786) // identifier was truncated to 'number' characters
|
50 |
+
#endif
|
51 |
+
|
52 |
+
-#include "../LibTIFF4/tiffiop.h"
|
53 |
+
+#include <tiffio.h>
|
54 |
+
|
55 |
+
#include "FreeImage.h"
|
56 |
+
#include "Utilities.h"
|
57 |
+
@@ -40,6 +40,43 @@
|
58 |
+
// Extended TIFF Directory GEO Tag Support
|
59 |
+
// ----------------------------------------------------------
|
60 |
+
|
61 |
+
+// vcpkg: function imported from libtiff/tif_dirinfo.c, in which it is not exported
|
62 |
+
+/*
|
63 |
+
+ * Return size of TIFFDataType in bytes.
|
64 |
+
+ *
|
65 |
+
+ * XXX: We need a separate function to determine the space needed
|
66 |
+
+ * to store the value. For TIFF_RATIONAL values TIFFDataWidth() returns 8,
|
67 |
+
+ * but we use 4-byte float to represent rationals.
|
68 |
+
+ */
|
69 |
+
+int
|
70 |
+
+FreeImage_TIFFDataSize(TIFFDataType type)
|
71 |
+
+{
|
72 |
+
+ switch (type)
|
73 |
+
+ {
|
74 |
+
+ case TIFF_BYTE:
|
75 |
+
+ case TIFF_SBYTE:
|
76 |
+
+ case TIFF_ASCII:
|
77 |
+
+ case TIFF_UNDEFINED:
|
78 |
+
+ return 1;
|
79 |
+
+ case TIFF_SHORT:
|
80 |
+
+ case TIFF_SSHORT:
|
81 |
+
+ return 2;
|
82 |
+
+ case TIFF_LONG:
|
83 |
+
+ case TIFF_SLONG:
|
84 |
+
+ case TIFF_FLOAT:
|
85 |
+
+ case TIFF_IFD:
|
86 |
+
+ case TIFF_RATIONAL:
|
87 |
+
+ case TIFF_SRATIONAL:
|
88 |
+
+ return 4;
|
89 |
+
+ case TIFF_DOUBLE:
|
90 |
+
+ case TIFF_LONG8:
|
91 |
+
+ case TIFF_SLONG8:
|
92 |
+
+ case TIFF_IFD8:
|
93 |
+
+ return 8;
|
94 |
+
+ default:
|
95 |
+
+ return 0;
|
96 |
+
+ }
|
97 |
+
+}
|
98 |
+
/**
|
99 |
+
Tiff info structure.
|
100 |
+
Entry format:
|
101 |
+
@@ -224,6 +261,33 @@ tiff_write_geotiff_profile(TIFF *tif, FIBITMAP *dib) {
|
102 |
+
// TIFF EXIF tag reading & writing
|
103 |
+
// ----------------------------------------------------------
|
104 |
+
|
105 |
+
+static uint32 exif_tag_ids[] = {
|
106 |
+
+ EXIFTAG_EXPOSURETIME, EXIFTAG_FNUMBER, EXIFTAG_EXPOSUREPROGRAM,
|
107 |
+
+ EXIFTAG_SPECTRALSENSITIVITY, EXIFTAG_ISOSPEEDRATINGS, EXIFTAG_OECF,
|
108 |
+
+ EXIFTAG_EXIFVERSION, EXIFTAG_DATETIMEORIGINAL, EXIFTAG_DATETIMEDIGITIZED,
|
109 |
+
+ EXIFTAG_COMPONENTSCONFIGURATION, EXIFTAG_COMPRESSEDBITSPERPIXEL,
|
110 |
+
+ EXIFTAG_SHUTTERSPEEDVALUE, EXIFTAG_APERTUREVALUE,
|
111 |
+
+ EXIFTAG_BRIGHTNESSVALUE, EXIFTAG_EXPOSUREBIASVALUE,
|
112 |
+
+ EXIFTAG_MAXAPERTUREVALUE, EXIFTAG_SUBJECTDISTANCE, EXIFTAG_METERINGMODE,
|
113 |
+
+ EXIFTAG_LIGHTSOURCE, EXIFTAG_FLASH, EXIFTAG_FOCALLENGTH,
|
114 |
+
+ EXIFTAG_SUBJECTAREA, EXIFTAG_MAKERNOTE, EXIFTAG_USERCOMMENT,
|
115 |
+
+ EXIFTAG_SUBSECTIME, EXIFTAG_SUBSECTIMEORIGINAL,
|
116 |
+
+ EXIFTAG_SUBSECTIMEDIGITIZED, EXIFTAG_FLASHPIXVERSION, EXIFTAG_COLORSPACE,
|
117 |
+
+ EXIFTAG_PIXELXDIMENSION, EXIFTAG_PIXELYDIMENSION,
|
118 |
+
+ EXIFTAG_RELATEDSOUNDFILE, EXIFTAG_FLASHENERGY,
|
119 |
+
+ EXIFTAG_SPATIALFREQUENCYRESPONSE, EXIFTAG_FOCALPLANEXRESOLUTION,
|
120 |
+
+ EXIFTAG_FOCALPLANEYRESOLUTION, EXIFTAG_FOCALPLANERESOLUTIONUNIT,
|
121 |
+
+ EXIFTAG_SUBJECTLOCATION, EXIFTAG_EXPOSUREINDEX, EXIFTAG_SENSINGMETHOD,
|
122 |
+
+ EXIFTAG_FILESOURCE, EXIFTAG_SCENETYPE, EXIFTAG_CFAPATTERN,
|
123 |
+
+ EXIFTAG_CUSTOMRENDERED, EXIFTAG_EXPOSUREMODE, EXIFTAG_WHITEBALANCE,
|
124 |
+
+ EXIFTAG_DIGITALZOOMRATIO, EXIFTAG_FOCALLENGTHIN35MMFILM,
|
125 |
+
+ EXIFTAG_SCENECAPTURETYPE, EXIFTAG_GAINCONTROL, EXIFTAG_CONTRAST,
|
126 |
+
+ EXIFTAG_SATURATION, EXIFTAG_SHARPNESS, EXIFTAG_DEVICESETTINGDESCRIPTION,
|
127 |
+
+ EXIFTAG_SUBJECTDISTANCERANGE, EXIFTAG_GAINCONTROL, EXIFTAG_GAINCONTROL,
|
128 |
+
+ EXIFTAG_IMAGEUNIQUEID
|
129 |
+
+};
|
130 |
+
+static int nExifTags = sizeof(exif_tag_ids) / sizeof(exif_tag_ids[0]);
|
131 |
+
+
|
132 |
+
/**
|
133 |
+
Read a single Exif tag
|
134 |
+
|
135 |
+
@@ -575,43 +639,10 @@ tiff_read_exif_tags(TIFF *tif, TagLib::MDMODEL md_model, FIBITMAP *dib) {
|
136 |
+
|
137 |
+
// loop over all Core Directory Tags
|
138 |
+
// ### uses private data, but there is no other way
|
139 |
+
+ // -> vcpkg: Best we can do without private headers is to hard-code a list of known EXIF tags and read those
|
140 |
+
if(md_model == TagLib::EXIF_MAIN) {
|
141 |
+
- const TIFFDirectory *td = &tif->tif_dir;
|
142 |
+
-
|
143 |
+
- uint32 lastTag = 0; //<- used to prevent reading some tags twice (as stored in tif_fieldinfo)
|
144 |
+
-
|
145 |
+
- for (int fi = 0, nfi = (int)tif->tif_nfields; nfi > 0; nfi--, fi++) {
|
146 |
+
- const TIFFField *fld = tif->tif_fields[fi];
|
147 |
+
-
|
148 |
+
- const uint32 tag_id = TIFFFieldTag(fld);
|
149 |
+
-
|
150 |
+
- if(tag_id == lastTag) {
|
151 |
+
- continue;
|
152 |
+
- }
|
153 |
+
-
|
154 |
+
- // test if tag value is set
|
155 |
+
- // (lifted directly from LibTiff _TIFFWriteDirectory)
|
156 |
+
-
|
157 |
+
- if( fld->field_bit == FIELD_CUSTOM ) {
|
158 |
+
- int is_set = FALSE;
|
159 |
+
-
|
160 |
+
- for(int ci = 0; ci < td->td_customValueCount; ci++ ) {
|
161 |
+
- is_set |= (td->td_customValues[ci].info == fld);
|
162 |
+
- }
|
163 |
+
-
|
164 |
+
- if( !is_set ) {
|
165 |
+
- continue;
|
166 |
+
- }
|
167 |
+
-
|
168 |
+
- } else if(!TIFFFieldSet(tif, fld->field_bit)) {
|
169 |
+
- continue;
|
170 |
+
- }
|
171 |
+
-
|
172 |
+
- // process *all* other tags (some will be ignored)
|
173 |
+
-
|
174 |
+
- tiff_read_exif_tag(tif, tag_id, dib, md_model);
|
175 |
+
-
|
176 |
+
- lastTag = tag_id;
|
177 |
+
+ for (int i = 0; i < nExifTags; ++i) {
|
178 |
+
+ tiff_read_exif_tag(tif, exif_tag_ids[i], dib, md_model);
|
179 |
+
}
|
180 |
+
|
181 |
+
}
|
182 |
+
@@ -723,10 +754,9 @@ tiff_write_exif_tags(TIFF *tif, TagLib::MDMODEL md_model, FIBITMAP *dib) {
|
183 |
+
|
184 |
+
TagLib& tag_lib = TagLib::instance();
|
185 |
+
|
186 |
+
- for (int fi = 0, nfi = (int)tif->tif_nfields; nfi > 0; nfi--, fi++) {
|
187 |
+
- const TIFFField *fld = tif->tif_fields[fi];
|
188 |
+
-
|
189 |
+
- const uint32 tag_id = TIFFFieldTag(fld);
|
190 |
+
+ for (int fi = 0, nfi = nExifTags; nfi > 0; nfi--, fi++) {
|
191 |
+
+ const uint32 tag_id = exif_tag_ids[fi];
|
192 |
+
+ const TIFFField *fld = TIFFFieldWithTag(tif, tag_id);
|
193 |
+
|
194 |
+
if(skip_write_field(tif, tag_id)) {
|
195 |
+
// skip tags that are already handled by the LibTIFF writing process
|
196 |
+
@@ -749,7 +779,7 @@ tiff_write_exif_tags(TIFF *tif, TagLib::MDMODEL md_model, FIBITMAP *dib) {
|
197 |
+
continue;
|
198 |
+
}
|
199 |
+
// type of storage may differ (e.g. rationnal array vs float array type)
|
200 |
+
- if((unsigned)_TIFFDataSize(tif_tag_type) != FreeImage_TagDataWidth(tag_type)) {
|
201 |
+
+ if((unsigned)FreeImage_TIFFDataSize(tif_tag_type) != FreeImage_TagDataWidth(tag_type)) {
|
202 |
+
// skip tag or _TIFFmemcpy will fail
|
203 |
+
continue;
|
204 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-openexr.patch
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginEXR.cpp b/Source/FreeImage/PluginEXR.cpp
|
2 |
+
index b286430..82b3b72 100644
|
3 |
+
--- a/Source/FreeImage/PluginEXR.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginEXR.cpp
|
5 |
+
@@ -28,16 +28,16 @@
|
6 |
+
#pragma warning (disable : 4800) // ImfVersion.h - 'const int' : forcing value to bool 'true' or 'false' (performance warning)
|
7 |
+
#endif
|
8 |
+
|
9 |
+
-#include "../OpenEXR/IlmImf/ImfIO.h"
|
10 |
+
-#include "../OpenEXR/Iex/Iex.h"
|
11 |
+
-#include "../OpenEXR/IlmImf/ImfOutputFile.h"
|
12 |
+
-#include "../OpenEXR/IlmImf/ImfInputFile.h"
|
13 |
+
-#include "../OpenEXR/IlmImf/ImfRgbaFile.h"
|
14 |
+
-#include "../OpenEXR/IlmImf/ImfChannelList.h"
|
15 |
+
-#include "../OpenEXR/IlmImf/ImfRgba.h"
|
16 |
+
-#include "../OpenEXR/IlmImf/ImfArray.h"
|
17 |
+
-#include "../OpenEXR/IlmImf/ImfPreviewImage.h"
|
18 |
+
-#include "../OpenEXR/Half/half.h"
|
19 |
+
+#include <OpenEXR/ImfIO.h>
|
20 |
+
+#include <OpenEXR/Iex.h>
|
21 |
+
+#include <OpenEXR/ImfOutputFile.h>
|
22 |
+
+#include <OpenEXR/ImfInputFile.h>
|
23 |
+
+#include <OpenEXR/ImfRgbaFile.h>
|
24 |
+
+#include <OpenEXR/ImfChannelList.h>
|
25 |
+
+#include <OpenEXR/ImfRgba.h>
|
26 |
+
+#include <OpenEXR/ImfArray.h>
|
27 |
+
+#include <OpenEXR/ImfPreviewImage.h>
|
28 |
+
+#include <Imath/half.h>
|
29 |
+
|
30 |
+
|
31 |
+
// ==========================================================
|
32 |
+
@@ -66,11 +66,11 @@ public:
|
33 |
+
return ((unsigned)n != _io->read_proc(c, 1, n, _handle));
|
34 |
+
}
|
35 |
+
|
36 |
+
- virtual Imath::Int64 tellg() {
|
37 |
+
+ virtual uint64_t tellg() {
|
38 |
+
return _io->tell_proc(_handle);
|
39 |
+
}
|
40 |
+
|
41 |
+
- virtual void seekg(Imath::Int64 pos) {
|
42 |
+
+ virtual void seekg(uint64_t pos) {
|
43 |
+
_io->seek_proc(_handle, (unsigned)pos, SEEK_SET);
|
44 |
+
}
|
45 |
+
|
46 |
+
@@ -100,11 +100,11 @@ public:
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
- virtual Imath::Int64 tellp() {
|
51 |
+
+ virtual uint64_t tellp() {
|
52 |
+
return _io->tell_proc(_handle);
|
53 |
+
}
|
54 |
+
|
55 |
+
- virtual void seekp(Imath::Int64 pos) {
|
56 |
+
+ virtual void seekp(uint64_t pos) {
|
57 |
+
_io->seek_proc(_handle, (unsigned)pos, SEEK_SET);
|
58 |
+
}
|
59 |
+
};
|
60 |
+
diff --git a/Source/FreeImage/PluginTIFF.cpp b/Source/FreeImage/PluginTIFF.cpp
|
61 |
+
index 562fdd7..ce12649 100644
|
62 |
+
--- a/Source/FreeImage/PluginTIFF.cpp
|
63 |
+
+++ b/Source/FreeImage/PluginTIFF.cpp
|
64 |
+
@@ -39,7 +39,7 @@
|
65 |
+
#include "Utilities.h"
|
66 |
+
#include <tiffio.h>
|
67 |
+
#include "../Metadata/FreeImageTag.h"
|
68 |
+
-#include "../OpenEXR/Half/half.h"
|
69 |
+
+#include <Imath/half.h>
|
70 |
+
|
71 |
+
#include "FreeImageIO.h"
|
72 |
+
#include "PSDParser.h"
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-openjpeg.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/J2KHelper.cpp b/Source/FreeImage/J2KHelper.cpp
|
2 |
+
index 1776c3b..538f1c5 100644
|
3 |
+
--- a/Source/FreeImage/J2KHelper.cpp
|
4 |
+
+++ b/Source/FreeImage/J2KHelper.cpp
|
5 |
+
@@ -21,7 +21,7 @@
|
6 |
+
|
7 |
+
#include "FreeImage.h"
|
8 |
+
#include "Utilities.h"
|
9 |
+
-#include "../LibOpenJPEG/openjpeg.h"
|
10 |
+
+#include <openjpeg.h>
|
11 |
+
#include "J2KHelper.h"
|
12 |
+
|
13 |
+
// --------------------------------------------------------------------------
|
14 |
+
diff --git a/Source/FreeImage/PluginJ2K.cpp b/Source/FreeImage/PluginJ2K.cpp
|
15 |
+
index b8bcfc8..621a903 100644
|
16 |
+
--- a/Source/FreeImage/PluginJ2K.cpp
|
17 |
+
+++ b/Source/FreeImage/PluginJ2K.cpp
|
18 |
+
@@ -21,7 +21,7 @@
|
19 |
+
|
20 |
+
#include "FreeImage.h"
|
21 |
+
#include "Utilities.h"
|
22 |
+
-#include "../LibOpenJPEG/openjpeg.h"
|
23 |
+
+#include <openjpeg.h>
|
24 |
+
#include "J2KHelper.h"
|
25 |
+
|
26 |
+
// ==========================================================
|
27 |
+
diff --git a/Source/FreeImage/PluginJP2.cpp b/Source/FreeImage/PluginJP2.cpp
|
28 |
+
index 742fe2c..c57f626 100644
|
29 |
+
--- a/Source/FreeImage/PluginJP2.cpp
|
30 |
+
+++ b/Source/FreeImage/PluginJP2.cpp
|
31 |
+
@@ -21,7 +21,7 @@
|
32 |
+
|
33 |
+
#include "FreeImage.h"
|
34 |
+
#include "Utilities.h"
|
35 |
+
-#include "../LibOpenJPEG/openjpeg.h"
|
36 |
+
+#include <openjpeg.h>
|
37 |
+
#include "J2KHelper.h"
|
38 |
+
|
39 |
+
// ==========================================================
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-png-zlib.patch
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginPNG.cpp b/Source/FreeImage/PluginPNG.cpp
|
2 |
+
index ba2ef17..c3c5cd6 100644
|
3 |
+
--- a/Source/FreeImage/PluginPNG.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginPNG.cpp
|
5 |
+
@@ -40,8 +40,8 @@
|
6 |
+
|
7 |
+
// ----------------------------------------------------------
|
8 |
+
|
9 |
+
-#include "../ZLib/zlib.h"
|
10 |
+
-#include "../LibPNG/png.h"
|
11 |
+
+#include <zlib.h>
|
12 |
+
+#include <libpng16/png.h>
|
13 |
+
|
14 |
+
// ----------------------------------------------------------
|
15 |
+
|
16 |
+
diff --git a/Source/FreeImage/ZLibInterface.cpp b/Source/FreeImage/ZLibInterface.cpp
|
17 |
+
index 3ab6d32..725618b 100644
|
18 |
+
--- a/Source/FreeImage/ZLibInterface.cpp
|
19 |
+
+++ b/Source/FreeImage/ZLibInterface.cpp
|
20 |
+
@@ -19,10 +19,9 @@
|
21 |
+
// Use at your own risk!
|
22 |
+
// ==========================================================
|
23 |
+
|
24 |
+
-#include "../ZLib/zlib.h"
|
25 |
+
+#include <zlib.h>
|
26 |
+
#include "FreeImage.h"
|
27 |
+
#include "Utilities.h"
|
28 |
+
-#include "../ZLib/zutil.h" /* must be the last header because of error C3163 in VS2008 (_vsnprintf defined in stdio.h) */
|
29 |
+
|
30 |
+
/**
|
31 |
+
Compresses a source buffer into a target buffer, using the ZLib library.
|
32 |
+
@@ -115,7 +114,7 @@ FreeImage_ZLibGZip(BYTE *target, DWORD target_size, BYTE *source, DWORD source_s
|
33 |
+
return 0;
|
34 |
+
case Z_OK: {
|
35 |
+
// patch header, setup crc and length (stolen from mod_trace_output)
|
36 |
+
- BYTE *p = target + 8; *p++ = 2; *p = OS_CODE; // xflags, os_code
|
37 |
+
+ BYTE *p = target + 8; *p++ = 2; *p = 0x03; // xflags, os_code
|
38 |
+
crc = crc32(crc, source, source_size);
|
39 |
+
memcpy(target + 4 + dest_len, &crc, 4);
|
40 |
+
memcpy(target + 8 + dest_len, &source_size, 4);
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-rawlib.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginRAW.cpp b/Source/FreeImage/PluginRAW.cpp
|
2 |
+
index e9bd5bf..c7f8758 100644
|
3 |
+
--- a/Source/FreeImage/PluginRAW.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginRAW.cpp
|
5 |
+
@@ -19,7 +19,7 @@
|
6 |
+
// Use at your own risk!
|
7 |
+
// ==========================================================
|
8 |
+
|
9 |
+
-#include "../LibRawLite/libraw/libraw.h"
|
10 |
+
+#include <libraw/libraw.h>
|
11 |
+
|
12 |
+
#include "FreeImage.h"
|
13 |
+
#include "Utilities.h"
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-external-webp.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginWebP.cpp b/Source/FreeImage/PluginWebP.cpp
|
2 |
+
index 7c9f62f..c401447 100644
|
3 |
+
--- a/Source/FreeImage/PluginWebP.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginWebP.cpp
|
5 |
+
@@ -24,9 +24,9 @@
|
6 |
+
|
7 |
+
#include "../Metadata/FreeImageTag.h"
|
8 |
+
|
9 |
+
-#include "../LibWebP/src/webp/decode.h"
|
10 |
+
-#include "../LibWebP/src/webp/encode.h"
|
11 |
+
-#include "../LibWebP/src/webp/mux.h"
|
12 |
+
+#include <webp/decode.h>
|
13 |
+
+#include <webp/encode.h>
|
14 |
+
+#include <webp/mux.h>
|
15 |
+
|
16 |
+
// ==========================================================
|
17 |
+
// Plugin Interface
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-freeimage-config-include.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage.h b/Source/FreeImage.h
|
2 |
+
index 12182cd..86a1e68 100644
|
3 |
+
--- a/Source/FreeImage.h
|
4 |
+
+++ b/Source/FreeImage.h
|
5 |
+
@@ -32,6 +32,11 @@
|
6 |
+
#define FREEIMAGE_MINOR_VERSION 18
|
7 |
+
#define FREEIMAGE_RELEASE_SERIAL 0
|
8 |
+
|
9 |
+
+// vcpkg specific includes --------------------------------------------------
|
10 |
+
+// Include FreeImageConfig.h to define FREEIMAGE_LIB in static builds,
|
11 |
+
+// or do not define it in dynamic builds
|
12 |
+
+#include "FreeImageConfig.h"
|
13 |
+
+
|
14 |
+
// Compiler options ---------------------------------------------------------
|
15 |
+
|
16 |
+
#include <wchar.h> // needed for UNICODE functions
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-functions-to-override-libtiff-warning-error-handlers.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage/PluginTIFF.cpp b/Source/FreeImage/PluginTIFF.cpp
|
2 |
+
index a9fcf0e..b1f7b32 100644
|
3 |
+
--- a/Source/FreeImage/PluginTIFF.cpp
|
4 |
+
+++ b/Source/FreeImage/PluginTIFF.cpp
|
5 |
+
@@ -258,7 +258,7 @@ static void
|
6 |
+
msdosWarningHandler(const char* module, const char* fmt, va_list ap) {
|
7 |
+
}
|
8 |
+
|
9 |
+
-TIFFErrorHandler _TIFFwarningHandler = msdosWarningHandler;
|
10 |
+
+//TIFFErrorHandler _TIFFwarningHandler = msdosWarningHandler;
|
11 |
+
|
12 |
+
static void
|
13 |
+
msdosErrorHandler(const char* module, const char* fmt, va_list ap) {
|
14 |
+
@@ -273,7 +273,7 @@ msdosErrorHandler(const char* module, const char* fmt, va_list ap) {
|
15 |
+
*/
|
16 |
+
}
|
17 |
+
|
18 |
+
-TIFFErrorHandler _TIFFerrorHandler = msdosErrorHandler;
|
19 |
+
+//TIFFErrorHandler _TIFFerrorHandler = msdosErrorHandler;
|
20 |
+
|
21 |
+
// ----------------------------------------------------------
|
22 |
+
|
23 |
+
@@ -2659,6 +2659,8 @@ InitTIFF(Plugin *plugin, int format_id) {
|
24 |
+
// Set up the callback for extended TIFF directory tag support (see XTIFF.cpp)
|
25 |
+
// Must be called before using libtiff
|
26 |
+
XTIFFInitialize();
|
27 |
+
+ TIFFSetWarningHandler(msdosWarningHandler);
|
28 |
+
+ TIFFSetErrorHandler(msdosErrorHandler);
|
29 |
+
|
30 |
+
plugin->format_proc = Format;
|
31 |
+
plugin->description_proc = Description;
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/use-typedef-as-already-declared.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Source/FreeImage.h b/Source/FreeImage.h
|
2 |
+
index 1fd9c2f..59de277 100644
|
3 |
+
--- a/Source/FreeImage.h
|
4 |
+
+++ b/Source/FreeImage.h
|
5 |
+
@@ -160,8 +160,8 @@ typedef uint8_t BYTE;
|
6 |
+
typedef uint16_t WORD;
|
7 |
+
typedef uint32_t DWORD;
|
8 |
+
typedef int32_t LONG;
|
9 |
+
-typedef int64_t INT64;
|
10 |
+
-typedef uint64_t UINT64;
|
11 |
+
+typedef long long int INT64;
|
12 |
+
+typedef long long unsigned int UINT64;
|
13 |
+
#else
|
14 |
+
// MS is not C99 ISO compliant
|
15 |
+
typedef long BOOL;
|
cc-multilingual-main/cc_net/vcpkg/ports/freeimage/vcpkg.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "freeimage",
|
3 |
+
"version": "3.18.0",
|
4 |
+
"port-version": 25,
|
5 |
+
"description": "Support library for graphics image formats",
|
6 |
+
"homepage": "https://sourceforge.net/projects/freeimage/",
|
7 |
+
"license": "GPL-2.0-only OR GPL-3.0-only OR FreeImage",
|
8 |
+
"dependencies": [
|
9 |
+
"imath",
|
10 |
+
"jxrlib",
|
11 |
+
"libjpeg-turbo",
|
12 |
+
"libpng",
|
13 |
+
"libraw",
|
14 |
+
{
|
15 |
+
"name": "libwebp",
|
16 |
+
"platform": "!uwp"
|
17 |
+
},
|
18 |
+
"openexr",
|
19 |
+
"openjpeg",
|
20 |
+
"tiff",
|
21 |
+
{
|
22 |
+
"name": "vcpkg-cmake",
|
23 |
+
"host": true
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "vcpkg-cmake-config",
|
27 |
+
"host": true
|
28 |
+
},
|
29 |
+
"zlib"
|
30 |
+
]
|
31 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/hps/portfile.cmake
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jl2922/hps
|
4 |
+
REF 8d1403697a2fad6ddf02c7afb190596ca68b2105
|
5 |
+
SHA512 e0c22de8a684891a5b6faa968c72782ffb44c5359ce53a4cbd74abf5e1b6d5d1ff30ce96a4fc4c38fc7a0222d6874eab47b76c5a87fce1c43285a915d0f55814
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
# Install header files
|
10 |
+
file(INSTALL
|
11 |
+
DIRECTORY
|
12 |
+
"${SOURCE_PATH}/src/"
|
13 |
+
DESTINATION
|
14 |
+
"${CURRENT_PACKAGES_DIR}/include/${PORT}"
|
15 |
+
FILES_MATCHING PATTERN "*.h" )
|
16 |
+
|
17 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/${PORT}/benchmark")
|
18 |
+
|
19 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
20 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/hps/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package hps is header only and can be used from CMake via:
|
2 |
+
|
3 |
+
find_path(HPS_INCLUDE_DIRS "hps/hps.h")
|
4 |
+
target_include_directories(main PRIVATE ${HPS_INCLUDE_DIRS})
|
cc-multilingual-main/cc_net/vcpkg/ports/libnice/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.freedesktop.org
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO libnice/libnice
|
5 |
+
REF 0.1.21
|
6 |
+
SHA512 8808523d663da5974e81ffeef10812b758792b1f762edc1f3713d09962598a8a30d17ac1985438361d2a284b9bc82b5ba1e8d73c6e1ca86c93901bc06b634e9a
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_meson(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
OPTIONS
|
13 |
+
-Dgtk_doc=disabled #Enable generating the API reference (depends on GTK-Doc)
|
14 |
+
-Dintrospection=disabled #Enable GObject Introspection (depends on GObject)'
|
15 |
+
-Dtests=disabled
|
16 |
+
-Dexamples=disabled
|
17 |
+
-Dgstreamer=disabled
|
18 |
+
-Dcrypto-library=openssl
|
19 |
+
ADDITIONAL_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
20 |
+
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
21 |
+
)
|
22 |
+
|
23 |
+
# Could be features:
|
24 |
+
# option('gupnp', type: 'feature', value: 'auto',
|
25 |
+
# description: 'Enable or disable GUPnP IGD support')
|
26 |
+
# option('ignored-network-interface-prefix', type: 'array', value: ['docker', 'veth', 'virbr', 'vnet'],
|
27 |
+
# description: 'Ignore network interfaces whose name starts with a string from this list in the ICE connection check algorithm. For example, "virbr" to ignore virtual bridge interfaces added by virtd, which do not help in finding connectivity.')
|
28 |
+
# option('crypto-library', type: 'combo', choices : ['auto', 'gnutls', 'openssl'], value : 'auto')
|
29 |
+
|
30 |
+
vcpkg_install_meson()
|
31 |
+
|
32 |
+
vcpkg_copy_pdbs()
|
33 |
+
vcpkg_copy_tools(TOOL_NAMES stunbdc stund AUTO_CLEAN)
|
34 |
+
vcpkg_fixup_pkgconfig()
|
35 |
+
|
36 |
+
vcpkg_install_copyright(
|
37 |
+
FILE_LIST
|
38 |
+
"${SOURCE_PATH}/COPYING"
|
39 |
+
"${SOURCE_PATH}/COPYING.LGPL"
|
40 |
+
"${SOURCE_PATH}/COPYING.MPL"
|
41 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/libnice/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libnice",
|
3 |
+
"version": "0.1.21",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Libnice is an implementation of the IETF's Interactive Connectivity Establishment (ICE) standard (RFC 5245) and the Session Traversal Utilities for NAT (STUN) standard (RFC 5389).",
|
6 |
+
"homepage": "https://nice.freedesktop.org",
|
7 |
+
"license": "LGPL-2.1-only AND MPL-1.1",
|
8 |
+
"supports": "!xbox",
|
9 |
+
"dependencies": [
|
10 |
+
"glib",
|
11 |
+
{
|
12 |
+
"name": "glib",
|
13 |
+
"host": true,
|
14 |
+
"default-features": false
|
15 |
+
},
|
16 |
+
"openssl",
|
17 |
+
{
|
18 |
+
"name": "vcpkg-tool-meson",
|
19 |
+
"host": true
|
20 |
+
}
|
21 |
+
]
|
22 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libsoundio/fix_cmakelists.patch
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6541f1b..e81bdce 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,4 +1,5 @@
|
6 |
+
-cmake_minimum_required(VERSION 2.8.5)
|
7 |
+
+cmake_minimum_required(VERSION 3.14)
|
8 |
+
+cmake_policy(SET CMP0022 NEW)
|
9 |
+
project(libsoundio C)
|
10 |
+
set(CMAKE_MODULE_PATH ${libsoundio_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
|
11 |
+
|
12 |
+
@@ -233,7 +234,8 @@ if(BUILD_DYNAMIC_LIBS)
|
13 |
+
LINKER_LANGUAGE C
|
14 |
+
)
|
15 |
+
target_link_libraries(libsoundio_shared LINK_PUBLIC ${LIBSOUNDIO_LIBS})
|
16 |
+
- install(TARGETS libsoundio_shared DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
17 |
+
+ target_include_directories(libsoundio_shared PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
18 |
+
+ install(TARGETS libsoundio_shared EXPORT libsoundio-export)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
if(BUILD_STATIC_LIBS)
|
22 |
+
@@ -204,8 +206,7 @@ if(MSVC)
|
23 |
+
set(EXAMPLE_CFLAGS "/W4")
|
24 |
+
set(TEST_CFLAGS "${LIB_CFLAGS}")
|
25 |
+
set(TEST_LDFLAGS " ")
|
26 |
+
set(LIBM " ")
|
27 |
+
else()
|
28 |
+
- set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror -pedantic")
|
29 |
+
set(LIB_CFLAGS "-std=c11 -fvisibility=hidden -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L -Wno-missing-braces")
|
30 |
+
set(EXAMPLE_CFLAGS "-std=c99 -Wall")
|
31 |
+
@@ -243,9 +244,26 @@ if(BUILD_STATIC_LIBS)
|
32 |
+
COMPILE_FLAGS ${LIB_CFLAGS}
|
33 |
+
LINKER_LANGUAGE C
|
34 |
+
)
|
35 |
+
- install(TARGETS libsoundio_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
36 |
+
+ target_link_libraries(libsoundio_static PUBLIC ${LIBSOUNDIO_LIBS})
|
37 |
+
+ target_include_directories(libsoundio_static PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
|
38 |
+
+ install(TARGETS libsoundio_static EXPORT libsoundio-export)
|
39 |
+
endif()
|
40 |
+
|
41 |
+
+add_library(libsoundio INTERFACE)
|
42 |
+
+if(BUILD_DYNAMIC_LIBS)
|
43 |
+
+ target_link_libraries(libsoundio INTERFACE libsoundio_shared)
|
44 |
+
+else()
|
45 |
+
+ target_link_libraries(libsoundio INTERFACE libsoundio_static)
|
46 |
+
+endif()
|
47 |
+
+install(TARGETS libsoundio EXPORT libsoundio-export)
|
48 |
+
+install(
|
49 |
+
+ EXPORT libsoundio-export
|
50 |
+
+ FILE libsoundio-config.cmake
|
51 |
+
+ DESTINATION share/libsoundio/
|
52 |
+
+ NAMESPACE ${PROJECT_NAME}::
|
53 |
+
+ EXPORT_LINK_INTERFACE_LIBRARIES
|
54 |
+
+)
|
55 |
+
+
|
56 |
+
install(FILES
|
57 |
+
${LIBSOUNDIO_HEADERS}
|
58 |
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/soundio")
|
cc-multilingual-main/cc_net/vcpkg/ports/libsoundio/portfile.cmake
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO andrewrk/libsoundio
|
4 |
+
REF 2.0.0
|
5 |
+
SHA512 347a9be1789a41e778ea8d0efa1d00e03e725a4ab65e3aaf6c71e49138643f08a50a81bd60087d86a3b4d63beaeec617e47ba6b81f829ece8a3ac17418eb5309
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix_cmakelists.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_DYNAMIC_LIBS)
|
12 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
|
13 |
+
|
14 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
FEATURES
|
16 |
+
alsa ENABLE_ALSA
|
17 |
+
jack ENABLE_JACK
|
18 |
+
pulseaudio ENABLE_PULSEAUDIO
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
OPTIONS
|
24 |
+
-DBUILD_DYNAMIC_LIBS=${BUILD_DYNAMIC_LIBS}
|
25 |
+
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
|
26 |
+
-DBUILD_EXAMPLE_PROGRAMS=OFF
|
27 |
+
-DBUILD_TESTS=OFF
|
28 |
+
${FEATURE_OPTIONS}
|
29 |
+
-DENABLE_COREAUDIO=${VCPKG_TARGET_IS_OSX}
|
30 |
+
-DENABLE_WASAPI=${VCPKG_TARGET_IS_WINDOWS}
|
31 |
+
)
|
32 |
+
|
33 |
+
vcpkg_cmake_install()
|
34 |
+
vcpkg_cmake_config_fixup()
|
35 |
+
vcpkg_copy_pdbs()
|
36 |
+
|
37 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
40 |
+
endif()
|
41 |
+
|
42 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/libsoundio/vcpkg.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsoundio",
|
3 |
+
"version": "2.0.0",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "libsoundio is C library providing cross-platform audio input and output.",
|
6 |
+
"homepage": "http://libsound.io/",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"alsa": {
|
20 |
+
"description": "ALSA backend for libsoundio"
|
21 |
+
},
|
22 |
+
"jack": {
|
23 |
+
"description": "JACK backend for libsoundio",
|
24 |
+
"dependencies": [
|
25 |
+
"jack2"
|
26 |
+
]
|
27 |
+
},
|
28 |
+
"pulseaudio": {
|
29 |
+
"description": "PulseAudio backend for libsoundio"
|
30 |
+
}
|
31 |
+
}
|
32 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/moos-core/cmake_fix.patch
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 75f367f..6ef3dc2 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -190,7 +190,7 @@ add_subdirectory(Core)
|
6 |
+
export(
|
7 |
+
TARGETS MOOS
|
8 |
+
NAMESPACE MOOS::
|
9 |
+
- FILE UseMOOS.cmake
|
10 |
+
+ FILE UseMOOSTargets.cmake
|
11 |
+
)
|
12 |
+
|
13 |
+
# Support existing projects that expect to find MOOS_LIBRARIES and
|
14 |
+
@@ -222,7 +222,7 @@ set(PROJECT_CONFIG_PATH "lib/cmake/MOOS")
|
15 |
+
install(
|
16 |
+
EXPORT MOOS
|
17 |
+
NAMESPACE MOOS::
|
18 |
+
- FILE UseMOOS.cmake
|
19 |
+
+ FILE UseMOOSTargets.cmake
|
20 |
+
DESTINATION ${PROJECT_CONFIG_PATH}
|
21 |
+
)
|
22 |
+
|
23 |
+
diff --git a/Core/libMOOS/CMakeLists.txt b/Core/libMOOS/CMakeLists.txt
|
24 |
+
index b74a30f..492df50 100644
|
25 |
+
--- a/Core/libMOOS/CMakeLists.txt
|
26 |
+
+++ b/Core/libMOOS/CMakeLists.txt
|
27 |
+
@@ -196,7 +196,7 @@ mark_as_advanced(TIME_WARP_AGGLOMERATION_CONSTANT)
|
28 |
+
install(
|
29 |
+
DIRECTORY ${INCLUDE_ROOTS}
|
30 |
+
DESTINATION .
|
31 |
+
- FILES_MATCHING PATTERN "*.h" PATTERN "*.hxx"
|
32 |
+
+ FILES_MATCHING PATTERN "*.h" PATTERN "*.hxx" PATTERN "*.hpp"
|
33 |
+
)
|
34 |
+
|
35 |
+
# install libraries
|
36 |
+
diff --git a/MOOSConfig.cmake.in b/MOOSConfig.cmake.in
|
37 |
+
index 10af599..dff769a 100644
|
38 |
+
--- a/MOOSConfig.cmake.in
|
39 |
+
+++ b/MOOSConfig.cmake.in
|
40 |
+
@@ -2,7 +2,7 @@
|
41 |
+
|
42 |
+
# Pick up the auto-generated file which knows how to add the imported library
|
43 |
+
# targets for the libraries that MOOS exports.
|
44 |
+
-set(exports_file "${CMAKE_CURRENT_LIST_DIR}/UseMOOS.cmake")
|
45 |
+
+set(exports_file "${CMAKE_CURRENT_LIST_DIR}/UseMOOSTargets.cmake")
|
46 |
+
include(${exports_file})
|
47 |
+
|
48 |
+
include(FindPackageHandleStandardArgs)
|
cc-multilingual-main/cc_net/vcpkg/ports/moos-core/include_functional.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp b/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp
|
2 |
+
index 9d4473f..3f91018 100644
|
3 |
+
--- a/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp
|
4 |
+
+++ b/Core/libMOOS/Utils/MOOSUtilityFunctions.cpp
|
5 |
+
@@ -47,6 +47,7 @@
|
6 |
+
#include <time.h>
|
7 |
+
#include <stdarg.h>
|
8 |
+
#include <math.h>
|
9 |
+
+#include <functional>
|
10 |
+
|
11 |
+
#ifndef _WIN32
|
12 |
+
#include <unistd.h>
|
cc-multilingual-main/cc_net/vcpkg/ports/moos-core/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO themoos/core-moos
|
6 |
+
REF "v${VERSION}"
|
7 |
+
SHA512 8a82074bd219bbedbe56c2187afe74a55a252b0654a675c64d1f75e62353b0874e7b405d9f677fadb297e955d11aea50a07e8f5f3546be3c4ddab76fe356a51e
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
cmake_fix.patch
|
11 |
+
include_functional.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
DISABLE_PARALLEL_CONFIGURE
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/MOOS)
|
22 |
+
|
23 |
+
# Stage tools
|
24 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools")
|
25 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
|
28 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Core/GPLCore.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/moos-core/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "moos-core",
|
3 |
+
"version": "10.4.0",
|
4 |
+
"port-version": 10,
|
5 |
+
"description": "A very light weight, easy to use middleware.",
|
6 |
+
"homepage": "https://sites.google.com/site/moossoftware/",
|
7 |
+
"license": "GPL-2.0-or-later",
|
8 |
+
"supports": "!xbox & !uwp",
|
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/nanort/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO lighttransport/nanort
|
4 |
+
REF c85fe7a10be5baf8242c81288718c244f25d0183
|
5 |
+
SHA512 0917ffdc51db9d5f936fc79d5b3d1886c5163470e650a2613200417a9e7a344b75c76c115f64160877d6a3480f7eda7884f3097927eb371267cc6d3c30afed37
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY ${SOURCE_PATH}/nanort.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
10 |
+
|
11 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
cc-multilingual-main/cc_net/vcpkg/ports/nanort/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nanort",
|
3 |
+
"version-date": "2019-08-20",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Single header only modern ray tracing kernel",
|
6 |
+
"homepage": "https://github.com/lighttransport/nanort"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/ncnn/fix_uwp.patch
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/cpu.cpp b/src/cpu.cpp
|
2 |
+
index e56cd67..3ca1189 100644
|
3 |
+
--- a/src/cpu.cpp
|
4 |
+
+++ b/src/cpu.cpp
|
5 |
+
@@ -184,6 +184,13 @@ static int g_cpu_is_arm_a53_a55;
|
6 |
+
#endif // defined __ANDROID__ || defined __linux__
|
7 |
+
|
8 |
+
#if defined _WIN32
|
9 |
+
+#if WINAPI_FAMILY == WINAPI_FAMILY_APP
|
10 |
+
+static int detectisa(const void* /*some_inst*/)
|
11 |
+
+{
|
12 |
+
+ // uwp does not support seh :(
|
13 |
+
+ return 0;
|
14 |
+
+}
|
15 |
+
+#else // WINAPI_FAMILY == WINAPI_FAMILY_APP
|
16 |
+
static int g_sigill_caught = 0;
|
17 |
+
static jmp_buf g_jmpbuf;
|
18 |
+
|
19 |
+
@@ -213,6 +220,7 @@ static int detectisa(const void* some_inst)
|
20 |
+
|
21 |
+
return g_sigill_caught ? 0 : 1;
|
22 |
+
}
|
23 |
+
+#endif // WINAPI_FAMILY == WINAPI_FAMILY_APP
|
24 |
+
|
25 |
+
#if defined(__i386__) || defined(__x86_64__) || defined(_M_IX86) || defined(_M_X64)
|
26 |
+
#ifdef _MSC_VER
|
27 |
+
@@ -1966,12 +1974,12 @@ static void initialize_global_cpu_info()
|
28 |
+
|
29 |
+
#if defined _WIN32
|
30 |
+
#if __arm__
|
31 |
+
- g_cpu_support_arm_neon = detectisa(some_neon);
|
32 |
+
+ g_cpu_support_arm_neon = 1; // all modern windows arm devices have neon
|
33 |
+
g_cpu_support_arm_vfpv4 = detectisa(some_vfpv4);
|
34 |
+
#if __aarch64__
|
35 |
+
g_cpu_support_arm_cpuid = detectisa(some_cpuid);
|
36 |
+
- g_cpu_support_arm_asimdhp = detectisa(some_asimdhp);
|
37 |
+
- g_cpu_support_arm_asimddp = detectisa(some_asimddp);
|
38 |
+
+ g_cpu_support_arm_asimdhp = detectisa(some_asimdhp) || IsProcessorFeaturePresent(43); // dp implies hp
|
39 |
+
+ g_cpu_support_arm_asimddp = detectisa(some_asimddp) || IsProcessorFeaturePresent(43); // 43 is PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE
|
40 |
+
g_cpu_support_arm_asimdfhm = detectisa(some_asimdfhm);
|
41 |
+
g_cpu_support_arm_bf16 = detectisa(some_bf16);
|
42 |
+
g_cpu_support_arm_i8mm = detectisa(some_i8mm);
|
cc-multilingual-main/cc_net/vcpkg/ports/ncnn/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Tencent/ncnn
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 31bc3c2f461a00241fb8f69ca6ea8cc590af6618856b1b84a048bde924e4b474fd883ad5d54dbfbdd1e5b59015889e15ffc4fbafccb3e42e052a02071f2017b1
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix_uwp.patch #https://github.com/Tencent/ncnn/pull/5328
|
9 |
+
)
|
10 |
+
|
11 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DNCNN_BUILD_TOOLS=OFF
|
17 |
+
-DNCNN_BUILD_EXAMPLES=OFF
|
18 |
+
-DNCNN_BUILD_BENCHMARK=OFF
|
19 |
+
-DNCNN_SHARED_LIB=${BUILD_SHARED}
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
|
24 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ncnn)
|
25 |
+
vcpkg_copy_pdbs()
|
26 |
+
vcpkg_fixup_pkgconfig()
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
30 |
+
|
31 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/ncnn/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ncnn",
|
3 |
+
"version": "20240102",
|
4 |
+
"description": "ncnn is a high-performance neural network inference computing framework.",
|
5 |
+
"homepage": "https://github.com/Tencent/ncnn",
|
6 |
+
"license": "BSD-3-Clause",
|
7 |
+
"supports": "!(windows & arm)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/pipewire/portfile.cmake
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.freedesktop.org/
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO pipewire/pipewire
|
5 |
+
REF "${VERSION}"
|
6 |
+
SHA512 3884a64ce4d467665d34ee39e84ab394e4fe7c24bc006efe1f6ba78649e9fe3693c65f2173a4b0bf0979786309a5b12bc8b90aab3f6cbc223db596c44d00f4cc
|
7 |
+
HEAD_REF master # branch name
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_meson(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
OPTIONS
|
13 |
+
-Dalsa=disabled
|
14 |
+
-Daudioconvert=enabled
|
15 |
+
-Daudiomixer=disabled
|
16 |
+
-Daudiotestsrc=disabled
|
17 |
+
-Davahi=disabled
|
18 |
+
-Dbluez5-backend-hfp-native=disabled
|
19 |
+
-Dbluez5-backend-hsp-native=disabled
|
20 |
+
-Dbluez5-backend-hsphfpd=disabled
|
21 |
+
-Dbluez5-backend-ofono=disabled
|
22 |
+
-Dbluez5-codec-aac=disabled
|
23 |
+
-Dbluez5-codec-aptx=disabled
|
24 |
+
-Dbluez5-codec-lc3plus=disabled
|
25 |
+
-Dbluez5-codec-ldac=disabled
|
26 |
+
-Dbluez5=disabled
|
27 |
+
-Dcontrol=disabled
|
28 |
+
-Ddbus=disabled
|
29 |
+
-Ddocs=disabled
|
30 |
+
-Decho-cancel-webrtc=disabled
|
31 |
+
-Devl=disabled
|
32 |
+
-Dexamples=disabled
|
33 |
+
-Dffmpeg=disabled
|
34 |
+
-Dgstreamer-device-provider=disabled
|
35 |
+
-Dgstreamer=disabled
|
36 |
+
-Dinstalled_tests=disabled
|
37 |
+
-Djack-devel=false
|
38 |
+
-Djack=disabled
|
39 |
+
-Dlegacy-rtkit=false
|
40 |
+
-Dlibcamera=disabled
|
41 |
+
-Dlibcanberra=disabled
|
42 |
+
-Dlibpulse=disabled
|
43 |
+
-Dlibusb=disabled
|
44 |
+
-Dlv2=disabled
|
45 |
+
-Dman=disabled
|
46 |
+
-Dpipewire-alsa=disabled
|
47 |
+
-Dpipewire-jack=disabled
|
48 |
+
-Dpipewire-v4l2=disabled
|
49 |
+
-Dpw-cat=disabled
|
50 |
+
-Draop=disabled
|
51 |
+
-Droc=disabled
|
52 |
+
-Dsdl2=disabled
|
53 |
+
-Dsndfile=disabled
|
54 |
+
-Dspa-plugins=enabled # This one must be enabled or the resulting build won't be able to connect to pipewire daemon
|
55 |
+
-Dsupport=enabled # This one must be enabled or the resulting build won't be able to connect to pipewire daemon
|
56 |
+
-Dsystemd-system-service=disabled
|
57 |
+
-Dsystemd-system-unit-dir=disabled
|
58 |
+
-Dsystemd-user-service=disabled
|
59 |
+
-Dsystemd-user-unit-dir=disabled
|
60 |
+
-Dsystemd=disabled
|
61 |
+
-Dtest=disabled
|
62 |
+
-Dtests=disabled
|
63 |
+
-Dudev=disabled
|
64 |
+
-Dudevrulesdir=disabled
|
65 |
+
-Dv4l2=disabled
|
66 |
+
-Dvideoconvert=disabled
|
67 |
+
-Dvideotestsrc=disabled
|
68 |
+
-Dvolume=disabled
|
69 |
+
-Dvulkan=disabled
|
70 |
+
-Dx11-xfixes=disabled
|
71 |
+
-Dx11=disabled
|
72 |
+
-Dsession-managers=[]
|
73 |
+
)
|
74 |
+
vcpkg_install_meson()
|
75 |
+
vcpkg_copy_pdbs()
|
76 |
+
vcpkg_fixup_pkgconfig()
|
77 |
+
|
78 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
79 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
80 |
+
|
81 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
82 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
83 |
+
endif()
|
84 |
+
|
85 |
+
# remove absolute paths
|
86 |
+
file(GLOB config_files "${CURRENT_PACKAGES_DIR}/share/${PORT}/*.conf")
|
87 |
+
foreach(file ${config_files})
|
88 |
+
vcpkg_replace_string("${file}" "in ${CURRENT_PACKAGES_DIR}/etc/pipewire for system-wide changes\n# or" "")
|
89 |
+
cmake_path(GET file FILENAME filename)
|
90 |
+
vcpkg_replace_string("${file}" "# ${CURRENT_PACKAGES_DIR}/etc/pipewire/${filename}.d/ for system-wide changes or in" "")
|
91 |
+
endforeach()
|
92 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/pipewire/pipewire.conf" "${CURRENT_PACKAGES_DIR}/bin" "")
|
93 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/pipewire/minimal.conf" "${CURRENT_PACKAGES_DIR}/bin" "")
|
cc-multilingual-main/cc_net/vcpkg/ports/pipewire/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "pipewire",
|
3 |
+
"version": "1.0.3",
|
4 |
+
"description": "Low-latency audio/video router and processor. This port only builds the client library, not the server.",
|
5 |
+
"homepage": "https://pipewire.org",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "linux",
|
8 |
+
"dependencies": [
|
9 |
+
"glib",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-tool-meson",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/qthttpserver/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "qthttpserver",
|
3 |
+
"version": "6.6.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Qt HTTP Server supports building HTTP server functionality into an application.",
|
6 |
+
"homepage": "https://www.qt.io/",
|
7 |
+
"license": null,
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "qtbase",
|
11 |
+
"default-features": false,
|
12 |
+
"features": [
|
13 |
+
"concurrent",
|
14 |
+
"network"
|
15 |
+
]
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/CMakeLists.txt
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
project(tinyexpr LANGUAGES C)
|
4 |
+
|
5 |
+
include(CheckSymbolExists)
|
6 |
+
include(GNUInstallDirs)
|
7 |
+
|
8 |
+
if(WIN32 AND BUILD_SHARED_LIBS)
|
9 |
+
add_library(tinyexpr tinyexpr.c exports.def)
|
10 |
+
else()
|
11 |
+
add_library(tinyexpr tinyexpr.c)
|
12 |
+
endif()
|
13 |
+
|
14 |
+
target_include_directories(
|
15 |
+
tinyexpr
|
16 |
+
PUBLIC
|
17 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
18 |
+
)
|
19 |
+
|
20 |
+
# https://stackoverflow.com/questions/32816646/can-cmake-detect-if-i-need-to-link-to-libm-when-using-pow-in-c
|
21 |
+
if(NOT POW_FUNCTION_EXISTS AND NOT NEED_LINKING_AGAINST_LIBM)
|
22 |
+
check_symbol_exists(pow "math.h" POW_FUNCTION_EXISTS)
|
23 |
+
if(NOT POW_FUNCTION_EXISTS)
|
24 |
+
unset(POW_FUNCTION_EXISTS CACHE)
|
25 |
+
list(APPEND CMAKE_REQUIRED_LIBRARIES m)
|
26 |
+
check_symbol_exists(pow "math.h" POW_FUNCTION_EXISTS)
|
27 |
+
if(POW_FUNCTION_EXISTS)
|
28 |
+
set(NEED_LINKING_AGAINST_LIBM True CACHE BOOL "" FORCE)
|
29 |
+
else()
|
30 |
+
message(FATAL_ERROR "Failed making the pow() function available")
|
31 |
+
endif()
|
32 |
+
endif()
|
33 |
+
endif()
|
34 |
+
|
35 |
+
if(NEED_LINKING_AGAINST_LIBM)
|
36 |
+
target_link_libraries(tinyexpr PUBLIC m)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
set_target_properties(tinyexpr PROPERTIES PUBLIC_HEADER tinyexpr.h)
|
40 |
+
|
41 |
+
install(TARGETS tinyexpr EXPORT unofficial-tinyexpr-config)
|
42 |
+
|
43 |
+
install(
|
44 |
+
EXPORT unofficial-tinyexpr-config
|
45 |
+
NAMESPACE unofficial::tinyexpr::
|
46 |
+
DESTINATION share/unofficial-tinyexpr
|
47 |
+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
48 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/exports.def
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
te_compile
|
3 |
+
te_eval
|
4 |
+
te_free
|
5 |
+
te_interp
|
6 |
+
te_print
|
cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/fix-issue-34.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/tinyexpr.c b/tinyexpr.c
|
2 |
+
index 90ed8fc..570f2fd 100755
|
3 |
+
--- a/tinyexpr.c
|
4 |
+
+++ b/tinyexpr.c
|
5 |
+
@@ -49,6 +49,11 @@ For log = natural log uncomment the next line. */
|
6 |
+
#define INFINITY (1.0/0.0)
|
7 |
+
#endif
|
8 |
+
|
9 |
+
+/* https://github.com/codeplea/tinyexpr/issues/34 */
|
10 |
+
+#ifdef _MSC_VER
|
11 |
+
+#pragma function(ceil)
|
12 |
+
+#pragma function(floor)
|
13 |
+
+#endif
|
14 |
+
|
15 |
+
typedef double (*te_fun2)(double, double);
|
16 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO codeplea/tinyexpr
|
4 |
+
REF ffb0d41b13e5f8d318db95feb071c220c134fe70
|
5 |
+
SHA512 fe4975f8b444a50d7ba8135450a42007a81f1545eebd7775f92307b87b72bc9abee4591e56ddeb76ec9e5aa41f0852ba98c99881d671f47a58caca8bd1ca9999
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-issue-34.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/exports.def" DESTINATION "${SOURCE_PATH}")
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
25 |
+
|
26 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/tinyexpr/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "tinyexpr",
|
3 |
+
"version-date": "2020-09-25",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Tiny recursive descent parser and evaluation engine in C",
|
6 |
+
"homepage": "https://codeplea.com/tinyexpr",
|
7 |
+
"license": "Zlib",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/v8/V8Config-shared.cmake
ADDED
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
2 |
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
3 |
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
4 |
+
if(_IMPORT_PREFIX STREQUAL "/")
|
5 |
+
set(_IMPORT_PREFIX "")
|
6 |
+
endif()
|
7 |
+
|
8 |
+
include(SelectLibraryConfigurations)
|
9 |
+
|
10 |
+
find_path(V8_INCLUDE_DIR NAMES v8.h PATH_SUFFIXES include)
|
11 |
+
|
12 |
+
if(EXISTS ${_IMPORT_PREFIX}/bin/snapshot_blob.bin)
|
13 |
+
set(V8_SNAPSHOT_BLOB_RELEASE ${_IMPORT_PREFIX}/bin/snapshot_blob.bin CACHE FILEPATH "Release version of V8 snapshot blob location")
|
14 |
+
endif()
|
15 |
+
if(EXISTS ${_IMPORT_PREFIX}/debug/bin/snapshot_blob.bin)
|
16 |
+
set(V8_SNAPSHOT_BLOB_DEBUG ${_IMPORT_PREFIX}/debug/bin/snapshot_blob.bin CACHE FILEPATH "Debug version of V8 snapshot blob location")
|
17 |
+
endif()
|
18 |
+
set(V8_SNAPSHOT_BLOB "$<IF:$<CONFIG:Debug>,${V8_SNAPSHOT_BLOB_DEBUG},${V8_SNAPSHOT_BLOB_RELEASE}>")
|
19 |
+
|
20 |
+
if(EXISTS "${_IMPORT_PREFIX}/lib/v8${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
21 |
+
set(V8_LIBRARY_RELEASE "${_IMPORT_PREFIX}/lib/v8${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE FILEPATH "Release version of the V8 library location")
|
22 |
+
endif()
|
23 |
+
if(EXISTS "${_IMPORT_PREFIX}/debug/lib/v8${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
24 |
+
set(V8_LIBRARY_DEBUG "${_IMPORT_PREFIX}/debug/lib/v8${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE FILEPATH "Debug version of the V8 library location")
|
25 |
+
endif()
|
26 |
+
select_library_configurations(V8)
|
27 |
+
|
28 |
+
if(EXISTS "${_IMPORT_PREFIX}/lib/v8_libbase${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
29 |
+
set(V8LIBBASE_LIBRARY_RELEASE "${_IMPORT_PREFIX}/lib/v8_libbase${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE FILEPATH "Release version of the V8 libbase library location")
|
30 |
+
endif()
|
31 |
+
if(EXISTS "${_IMPORT_PREFIX}/debug/lib/v8_libbase${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
32 |
+
set(V8LIBBASE_LIBRARY_DEBUG "${_IMPORT_PREFIX}/debug/lib/v8_libbase${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE FILEPATH "Debug version of the V8 libbase library location")
|
33 |
+
endif()
|
34 |
+
select_library_configurations(V8LIBBASE)
|
35 |
+
|
36 |
+
if(EXISTS "${_IMPORT_PREFIX}/lib/v8_libplatform${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
37 |
+
set(V8LIBPLATFORM_LIBRARY_RELEASE "${_IMPORT_PREFIX}/lib/v8_libplatform${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE FILEPATH "Release version of the V8 libplatform library location")
|
38 |
+
endif()
|
39 |
+
if(EXISTS "${_IMPORT_PREFIX}/debug/lib/v8_libplatform${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
40 |
+
set(V8LIBPLATFORM_LIBRARY_DEBUG "${_IMPORT_PREFIX}/debug/lib/v8_libplatform${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}" CACHE FILEPATH "Delete version of the V8 libplatform library location")
|
41 |
+
endif()
|
42 |
+
select_library_configurations(V8LIBPLATFORM)
|
43 |
+
|
44 |
+
mark_as_advanced(V8_INCLUDE_DIR)
|
45 |
+
|
46 |
+
if(V8_INCLUDE_DIR AND EXISTS "${V8_INCLUDE_DIR}/v8-version.h")
|
47 |
+
file(STRINGS "${V8_INCLUDE_DIR}/v8-version.h" V8_MAJOR_VERSION REGEX "^#define V8_MAJOR_VERSION [0-9]+.*$")
|
48 |
+
string(REGEX REPLACE "^#define V8_MAJOR_VERSION ([0-9]+).*$" "\\1" V8_MAJOR_VERSION "${V8_MAJOR_VERSION}")
|
49 |
+
file(STRINGS "${V8_INCLUDE_DIR}/v8-version.h" V8_MINOR_VERSION REGEX "^#define V8_MINOR_VERSION [0-9]+.*$")
|
50 |
+
string(REGEX REPLACE "^#define V8_MINOR_VERSION ([0-9]+).*$" "\\1" V8_MINOR_VERSION "${V8_MINOR_VERSION}")
|
51 |
+
file(STRINGS "${V8_INCLUDE_DIR}/v8-version.h" V8_BUILD_NUMBER REGEX "^#define V8_BUILD_NUMBER [0-9]+.*$")
|
52 |
+
string(REGEX REPLACE "^#define V8_BUILD_NUMBER ([0-9]+).*$" "\\1" V8_BUILD_NUMBER "${V8_BUILD_NUMBER}")
|
53 |
+
file(STRINGS "${V8_INCLUDE_DIR}/v8-version.h" V8_PATCH_LEVEL REGEX "^#define V8_PATCH_LEVEL [0-9]+.*$")
|
54 |
+
string(REGEX REPLACE "^#define V8_PATCH_LEVEL ([0-9]+).*$" "\\1" V8_PATCH_LEVEL "${V8_PATCH_LEVEL}")
|
55 |
+
set(V8_VERSION_STRING "${V8_MAJOR_VERSION}.${V8_MINOR_VERSION}.${V8_BUILD_NUMBER}.${V8_PATCH_LEVEL}")
|
56 |
+
endif()
|
57 |
+
|
58 |
+
|
59 |
+
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
60 |
+
set(V8_COMPILE_DEFINITIONS "V8_COMPRESS_POINTERS;V8_31BIT_SMIS_ON_64BIT_ARCH")
|
61 |
+
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
62 |
+
set(V8_COMPILE_DEFINITIONS " ")
|
63 |
+
endif()
|
64 |
+
|
65 |
+
mark_as_advanced(V8_COMPILE_DEFINITIONS)
|
66 |
+
|
67 |
+
include(FindPackageHandleStandardArgs)
|
68 |
+
|
69 |
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(V8 REQUIRED_VARS V8_LIBRARY V8LIBBASE_LIBRARY V8LIBPLATFORM_LIBRARY V8_INCLUDE_DIR V8_COMPILE_DEFINITIONS
|
70 |
+
VERSION_VAR V8_VERSION_STRING)
|
71 |
+
set(V8_LIBRARIES ${V8_LIBRARY} ${V8LIBBASE_LIBRARY} ${V8LIBPLATFORM_LIBRARY})
|
72 |
+
|
73 |
+
mark_as_advanced(V8_LIBRARIES)
|
74 |
+
|
75 |
+
if(NOT TARGET V8::V8)
|
76 |
+
add_library(V8::V8 SHARED IMPORTED)
|
77 |
+
set_target_properties(V8::V8 PROPERTIES
|
78 |
+
INTERFACE_INCLUDE_DIRECTORIES "${V8_INCLUDE_DIR}"
|
79 |
+
INTERFACE_COMPILE_DEFINITIONS "${V8_COMPILE_DEFINITIONS}")
|
80 |
+
|
81 |
+
if(V8_LIBRARY_RELEASE)
|
82 |
+
set_property(TARGET V8::V8 APPEND PROPERTY
|
83 |
+
IMPORTED_CONFIGURATIONS RELEASE)
|
84 |
+
set_target_properties(V8::V8 PROPERTIES
|
85 |
+
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/v8${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
86 |
+
IMPORTED_IMPLIB_RELEASE "${V8_LIBRARY_RELEASE}"
|
87 |
+
)
|
88 |
+
set_target_properties(V8::V8 PROPERTIES
|
89 |
+
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE
|
90 |
+
"${V8LIBBASE_LIBRARY_RELEASE};${V8LIBPLATFORM_LIBRARY_RELEASE}")
|
91 |
+
endif()
|
92 |
+
|
93 |
+
if(V8_LIBRARY_DEBUG)
|
94 |
+
set_property(TARGET V8::V8 APPEND PROPERTY
|
95 |
+
IMPORTED_CONFIGURATIONS DEBUG)
|
96 |
+
set_target_properties(V8::V8 PROPERTIES
|
97 |
+
IMPORTED_LOCATION_DEBUG "${_IMPORT_PREFIX}/debug/bin/v8${CMAKE_SHARED_LIBRARY_SUFFIX}${CMAKE_STATIC_LIBRARY_SUFFIX}"
|
98 |
+
IMPORTED_IMPLIB_DEBUG "${V8_LIBRARY_DEBUG}")
|
99 |
+
set_target_properties(V8::V8 PROPERTIES
|
100 |
+
IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG
|
101 |
+
"${V8LIBBASE_LIBRARY_DEBUG};${V8LIBPLATFORM_LIBRARY_DEBUG}")
|
102 |
+
endif()
|
103 |
+
|
104 |
+
if(NOT V8_LIBRARY_RELEASE AND NOT V8_LIBRARY_DEBUG)
|
105 |
+
set_property(TARGET V8::V8 APPEND PROPERTY
|
106 |
+
IMPORTED_IMPLIB "${V8_LIBRARY}")
|
107 |
+
set_target_properties(V8::V8 PROPERTIES
|
108 |
+
IMPORTED_LINK_INTERFACE_LIBRARIES
|
109 |
+
"${V8LIBBASE_LIBRARY};${V8LIBPLATFORM_LIBRARY}")
|
110 |
+
endif()
|
111 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/v8/build.patch
ADDED
@@ -0,0 +1,187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/config/compiler/BUILD.gn b/config/compiler/BUILD.gn
|
2 |
+
index 1904a2559..e66586c88 100644
|
3 |
+
--- a/config/compiler/BUILD.gn
|
4 |
+
+++ b/config/compiler/BUILD.gn
|
5 |
+
@@ -1571,6 +1571,7 @@ config("default_warnings") {
|
6 |
+
# Disables.
|
7 |
+
"-Wno-missing-field-initializers", # "struct foo f = {0};"
|
8 |
+
"-Wno-unused-parameter", # Unused function parameters.
|
9 |
+
+ "-Wno-invalid-offsetof", # Use of "conditionally-supported" offsetof in c++17
|
10 |
+
]
|
11 |
+
}
|
12 |
+
|
13 |
+
@@ -1987,8 +1988,17 @@ config("no_incompatible_pointer_warnings") {
|
14 |
+
# Shared settings for both "optimize" and "optimize_max" configs.
|
15 |
+
# IMPORTANT: On Windows "/O1" and "/O2" must go before the common flags.
|
16 |
+
if (is_win) {
|
17 |
+
- common_optimize_on_cflags = [
|
18 |
+
- "/Ob2", # Both explicit and auto inlining.
|
19 |
+
+ common_optimize_on_cflags = []
|
20 |
+
+ if(is_clang) {
|
21 |
+
+ common_optimize_on_cflags += [
|
22 |
+
+ "/Ob2", # Both explicit and auto inlining.
|
23 |
+
+ ]
|
24 |
+
+ } else {
|
25 |
+
+ common_optimize_on_cflags += [
|
26 |
+
+ "/Ob3", # Both explicit and auto inlining.
|
27 |
+
+ ]
|
28 |
+
+ }
|
29 |
+
+ common_optimize_on_cflags += [
|
30 |
+
"/Oy-", # Disable omitting frame pointers, must be after /O2.
|
31 |
+
"/Zc:inline", # Remove unreferenced COMDAT (faster links).
|
32 |
+
]
|
33 |
+
diff --git a/config/linux/pkg-config.py b/config/linux/pkg-config.py
|
34 |
+
index 5adf70cc3..dab159f98 100755
|
35 |
+
--- a/config/linux/pkg-config.py
|
36 |
+
+++ b/config/linux/pkg-config.py
|
37 |
+
@@ -41,6 +41,11 @@ from optparse import OptionParser
|
38 |
+
# Additionally, you can specify the option --atleast-version. This will skip
|
39 |
+
# the normal outputting of a dictionary and instead print true or false,
|
40 |
+
# depending on the return value of pkg-config for the given package.
|
41 |
+
+#
|
42 |
+
+# --pkg_config_libdir=<path> allows direct override
|
43 |
+
+# of the PKG_CONFIG_LIBDIR environment library.
|
44 |
+
+#
|
45 |
+
+# --full-path-libs causes lib names to include their full path.
|
46 |
+
|
47 |
+
|
48 |
+
def SetConfigPath(options):
|
49 |
+
@@ -105,11 +110,32 @@ def RewritePath(path, strip_prefix, sysroot):
|
50 |
+
return path
|
51 |
+
|
52 |
+
|
53 |
+
+flag_regex = re.compile("(-.)(.+)")
|
54 |
+
+
|
55 |
+
+
|
56 |
+
+def FlagReplace(matchobj):
|
57 |
+
+ if matchobj.group(1) == '-I':
|
58 |
+
+ return matchobj.group(1) + subprocess.check_output([u'cygpath',u'-w',matchobj.group(2)]).strip().decode("utf-8")
|
59 |
+
+ if matchobj.group(1) == '-L':
|
60 |
+
+ return matchobj.group(1) + subprocess.check_output([u'cygpath',u'-w',matchobj.group(2)]).strip().decode("utf-8")
|
61 |
+
+ if matchobj.group(1) == '-l':
|
62 |
+
+ return matchobj.group(1) + matchobj.group(2) + '.lib'
|
63 |
+
+ return matchobj.group(0)
|
64 |
+
+
|
65 |
+
+
|
66 |
+
+def ConvertGCCToMSVC(flags):
|
67 |
+
+ """Rewrites GCC flags into MSVC flags."""
|
68 |
+
+ # need a better way to determine mingw vs msvc build
|
69 |
+
+ if 'win32' not in sys.platform or "GCC" in sys.version:
|
70 |
+
+ return flags
|
71 |
+
+ return [ flag_regex.sub(FlagReplace,flag) for flag in flags]
|
72 |
+
+
|
73 |
+
+
|
74 |
+
def main():
|
75 |
+
# If this is run on non-Linux platforms, just return nothing and indicate
|
76 |
+
# success. This allows us to "kind of emulate" a Linux build from other
|
77 |
+
# platforms.
|
78 |
+
- if "linux" not in sys.platform:
|
79 |
+
+ if "linux" not in sys.platform and 'win32' not in sys.platform:
|
80 |
+
print("[[],[],[],[],[]]")
|
81 |
+
return 0
|
82 |
+
|
83 |
+
@@ -128,6 +154,9 @@ def main():
|
84 |
+
parser.add_option('--dridriverdir', action='store_true', dest='dridriverdir')
|
85 |
+
parser.add_option('--version-as-components', action='store_true',
|
86 |
+
dest='version_as_components')
|
87 |
+
+ parser.add_option('--pkg_config_libdir', action='store', dest='pkg_config_libdir',
|
88 |
+
+ type='string')
|
89 |
+
+ parser.add_option('--full-path-libs', action='store_true', dest='full_path_libs')
|
90 |
+
(options, args) = parser.parse_args()
|
91 |
+
|
92 |
+
# Make a list of regular expressions to strip out.
|
93 |
+
@@ -144,6 +173,10 @@ def main():
|
94 |
+
else:
|
95 |
+
prefix = ''
|
96 |
+
|
97 |
+
+ # Override PKG_CONFIG_LIBDIR
|
98 |
+
+ if options.pkg_config_libdir:
|
99 |
+
+ os.environ['PKG_CONFIG_LIBDIR'] = options.pkg_config_libdir
|
100 |
+
+
|
101 |
+
if options.atleast_version:
|
102 |
+
# When asking for the return value, just run pkg-config and print the return
|
103 |
+
# value, no need to do other work.
|
104 |
+
@@ -203,7 +236,7 @@ def main():
|
105 |
+
# For now just split on spaces to get the args out. This will break if
|
106 |
+
# pkgconfig returns quoted things with spaces in them, but that doesn't seem
|
107 |
+
# to happen in practice.
|
108 |
+
- all_flags = flag_string.strip().split(' ')
|
109 |
+
+ all_flags = ConvertGCCToMSVC(flag_string.strip().split(' '))
|
110 |
+
|
111 |
+
|
112 |
+
sysroot = options.sysroot
|
113 |
+
@@ -220,7 +253,10 @@ def main():
|
114 |
+
continue;
|
115 |
+
|
116 |
+
if flag[:2] == '-l':
|
117 |
+
- libs.append(RewritePath(flag[2:], prefix, sysroot))
|
118 |
+
+ library = RewritePath(flag[2:], prefix, sysroot)
|
119 |
+
+ # Skip math library on MSVC
|
120 |
+
+ if library != 'm.lib':
|
121 |
+
+ libs.append(library)
|
122 |
+
elif flag[:2] == '-L':
|
123 |
+
lib_dirs.append(RewritePath(flag[2:], prefix, sysroot))
|
124 |
+
elif flag[:2] == '-I':
|
125 |
+
@@ -237,6 +273,14 @@ def main():
|
126 |
+
else:
|
127 |
+
cflags.append(flag)
|
128 |
+
|
129 |
+
+ if options.full_path_libs:
|
130 |
+
+ full_path_libs = []
|
131 |
+
+ for lib_dir in lib_dirs:
|
132 |
+
+ for lib in libs:
|
133 |
+
+ if os.path.isfile(lib_dir+"/"+lib):
|
134 |
+
+ full_path_libs.append(lib_dir+"/"+lib)
|
135 |
+
+ libs = full_path_libs
|
136 |
+
+
|
137 |
+
# Output a GN array, the first one is the cflags, the second are the libs. The
|
138 |
+
# JSON formatter prints GN compatible lists when everything is a list of
|
139 |
+
# strings.
|
140 |
+
diff --git a/config/linux/pkg_config.gni b/config/linux/pkg_config.gni
|
141 |
+
index 428e44ac0..a0d2175ee 100644
|
142 |
+
--- a/config/linux/pkg_config.gni
|
143 |
+
+++ b/config/linux/pkg_config.gni
|
144 |
+
@@ -45,6 +45,9 @@ declare_args() {
|
145 |
+
# in similar fashion by setting the `system_libdir` variable in the build's
|
146 |
+
# args.gn file to 'lib' or 'lib64' as appropriate for the target architecture.
|
147 |
+
system_libdir = "lib"
|
148 |
+
+
|
149 |
+
+ # Allow directly overriding the PKG_CONFIG_LIBDIR enviroment variable
|
150 |
+
+ pkg_config_libdir = ""
|
151 |
+
}
|
152 |
+
|
153 |
+
pkg_config_script = "//build/config/linux/pkg-config.py"
|
154 |
+
@@ -87,6 +90,17 @@ if (host_pkg_config != "") {
|
155 |
+
host_pkg_config_args = pkg_config_args
|
156 |
+
}
|
157 |
+
|
158 |
+
+if (pkg_config_libdir != "") {
|
159 |
+
+ pkg_config_args += [
|
160 |
+
+ "--pkg_config_libdir",
|
161 |
+
+ pkg_config_libdir,
|
162 |
+
+ ]
|
163 |
+
+ host_pkg_config_args += [
|
164 |
+
+ "--pkg_config_libdir",
|
165 |
+
+ pkg_config_libdir,
|
166 |
+
+ ]
|
167 |
+
+}
|
168 |
+
+
|
169 |
+
template("pkg_config") {
|
170 |
+
assert(defined(invoker.packages),
|
171 |
+
"Variable |packages| must be defined to be a list in pkg_config.")
|
172 |
+
diff --git a/util/lastchange.py b/util/lastchange.py
|
173 |
+
index 02a36642b..78934f1b0 100755
|
174 |
+
--- a/util/lastchange.py
|
175 |
+
+++ b/util/lastchange.py
|
176 |
+
@@ -192,7 +192,10 @@ def GetGitTopDirectory(source_dir):
|
177 |
+
Returns:
|
178 |
+
The output of "git rev-parse --show-toplevel" as a string
|
179 |
+
"""
|
180 |
+
- return _RunGitCommand(source_dir, ['rev-parse', '--show-toplevel'])
|
181 |
+
+ directory = _RunGitCommand(source_dir, ['rev-parse', '--show-toplevel'])
|
182 |
+
+ if "GCC" in sys.version and sys.platform=='win32':
|
183 |
+
+ return subprocess.check_output(["cygpath", "-w", directory]).strip(b"\n").decode()
|
184 |
+
+ return directory
|
185 |
+
|
186 |
+
|
187 |
+
def WriteIfChanged(file_name, contents):
|