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/aws-sdk-cpp/lock-curl-http-and-tls-settings.patch +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aws-sdk-cpp/vcpkg.in.json +38 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-bimap/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-bimap/vcpkg.json +66 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/chromium-baseConfig.cmake.in +81 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/portfile.cmake +152 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/0002-build.patch +144 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/BUILD.gn +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/fontconfig/BUILD.gn +1 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/gclient_args.gni +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/icu/BUILD.gn +2 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/icu/config.gni +3 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/libfuzzer/fuzzer_test.gni +1 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/tools/win/DebugVisualizers/BUILD.gn +1 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/tools/win/DebugVisualizers/chrome.natvis +0 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freealut/cmake_builds.patch +114 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freealut/portfile.cmake +36 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freealut/unix_headers.patch +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freealut/vcpkg.json +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/icu/darwin-rpath.patch +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/icu/disable-escapestr-tool.patch +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/icu/disable-static-prefix.patch +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/icu/fix-win-build.patch +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/icu/fix_parallel_build_on_windows.patch +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/icu/mingw-dll-install.patch +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/icu/remove-MD-from-configure.patch +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/icu/vcpkg-cross-data.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/icu/vcpkg.json +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kissfft/fix-install-dirs.patch +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kissfft/fix-linkage.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kissfft/portfile.cmake +90 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kissfft/usage +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kissfft/vcpkg.json +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsmacker/CMakeLists.txt +43 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsmacker/portfile.cmake +38 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsmacker/smacker.def +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsmacker/vcpkg.json +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mujs/CMakeLists.txt +61 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mujs/mujs.pc +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mujs/portfile.cmake +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mujs/usage +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mujs/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/opencascade/dependencies.patch +113 -0
- cc-multilingual-main/cc_net/vcpkg/ports/opencascade/drop-bin-letter-d.patch +45 -0
- cc-multilingual-main/cc_net/vcpkg/ports/opencascade/fix-pdb-find.patch +33 -0
- cc-multilingual-main/cc_net/vcpkg/ports/opencascade/install-include-dir.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/opencascade/portfile.cmake +79 -0
- cc-multilingual-main/cc_net/vcpkg/ports/skia/disable-dev-test.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/skia/disable-msvc-env-setup.patch +12 -0
cc-multilingual-main/cc_net/vcpkg/ports/aws-sdk-cpp/lock-curl-http-and-tls-settings.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/aws-cpp-sdk-core/CMakeLists.txt b/src/aws-cpp-sdk-core/CMakeLists.txt
|
2 |
+
index c44546b0e..b66888362 100644
|
3 |
+
--- a/src/aws-cpp-sdk-core/CMakeLists.txt
|
4 |
+
+++ b/src/aws-cpp-sdk-core/CMakeLists.txt
|
5 |
+
@@ -113,13 +113,8 @@ if(ENABLE_CURL_CLIENT)
|
6 |
+
int main() {
|
7 |
+
CURL* handle = curl_easy_init();
|
8 |
+
return curl_easy_setopt(handle, CURLOPT_PROXY_SSLCERT, \"client.pem\"); }")
|
9 |
+
- if (CMAKE_CROSSCOMPILING)
|
10 |
+
- check_c_source_compiles("${CHECK_CURL_HAS_H2}" CURL_HAS_H2)
|
11 |
+
- check_c_source_compiles("${CHECK_CURL_HAS_TLS_PROXY}" CURL_HAS_TLS_PROXY)
|
12 |
+
- else()
|
13 |
+
- check_c_source_runs("${CHECK_CURL_HAS_H2}" CURL_HAS_H2)
|
14 |
+
- check_c_source_runs("${CHECK_CURL_HAS_TLS_PROXY}" CURL_HAS_TLS_PROXY)
|
15 |
+
- endif()
|
16 |
+
+ set(CURL_HAS_H2 OFF)
|
17 |
+
+ set(CURL_HAS_TLS_PROXY ON)
|
18 |
+
elseif(ENABLE_WINDOWS_CLIENT)
|
19 |
+
# NOTE: HTTP/2 is not supported when using IXML_HTTP_REQUEST_2
|
20 |
+
if(USE_IXML_HTTP_REQUEST_2)
|
cc-multilingual-main/cc_net/vcpkg/ports/aws-sdk-cpp/vcpkg.in.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "aws-sdk-cpp",
|
3 |
+
"version": "1.11.215",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "AWS SDK for C++",
|
6 |
+
"homepage": "https://github.com/aws/aws-sdk-cpp",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"supports": "!(windows & arm) & !uwp",
|
9 |
+
"dependencies": [
|
10 |
+
"aws-crt-cpp",
|
11 |
+
{
|
12 |
+
"name": "curl",
|
13 |
+
"default-features": false,
|
14 |
+
"features": [
|
15 |
+
"ssl"
|
16 |
+
],
|
17 |
+
"platform": "!uwp & !windows"
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "openssl",
|
21 |
+
"platform": "!uwp & !windows"
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"name": "vcpkg-cmake",
|
25 |
+
"host": true
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"name": "vcpkg-cmake-config",
|
29 |
+
"host": true
|
30 |
+
},
|
31 |
+
"zlib"
|
32 |
+
],
|
33 |
+
"default-features": [
|
34 |
+
"dynamodb",
|
35 |
+
"kinesis",
|
36 |
+
"s3"
|
37 |
+
]
|
38 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-bimap/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/bimap
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 967e150589746762ce0816c208166b62956a0c44a896194610cb3d8a947310b6b814d6ef8ef190540fb36c9ab9664748e166fade5e11df32f7862c378677b402
|
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-bimap/vcpkg.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-bimap",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost bimap module",
|
6 |
+
"homepage": "https://github.com/boostorg/bimap",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-concept-check",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-config",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "boost-container-hash",
|
19 |
+
"version>=": "1.84.0"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "boost-core",
|
23 |
+
"version>=": "1.84.0"
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "boost-iterator",
|
27 |
+
"version>=": "1.84.0"
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"name": "boost-lambda",
|
31 |
+
"version>=": "1.84.0"
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"name": "boost-mpl",
|
35 |
+
"version>=": "1.84.0"
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"name": "boost-multi-index",
|
39 |
+
"version>=": "1.84.0"
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"name": "boost-preprocessor",
|
43 |
+
"version>=": "1.84.0"
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"name": "boost-static-assert",
|
47 |
+
"version>=": "1.84.0"
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"name": "boost-throw-exception",
|
51 |
+
"version>=": "1.84.0"
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"name": "boost-type-traits",
|
55 |
+
"version>=": "1.84.0"
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"name": "boost-utility",
|
59 |
+
"version>=": "1.84.0"
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"name": "boost-vcpkg-helpers",
|
63 |
+
"version>=": "1.84.0"
|
64 |
+
}
|
65 |
+
]
|
66 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/chromium-baseConfig.cmake.in
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(TARGET chromium-base)
|
2 |
+
return()
|
3 |
+
endif()
|
4 |
+
|
5 |
+
set(DEFINITIONS_DBG @DEFINITIONS_DBG@)
|
6 |
+
set(DEFINITIONS_REL @DEFINITIONS_DBG@)
|
7 |
+
|
8 |
+
# Compute the installation prefix relative to this file.
|
9 |
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
10 |
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
11 |
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
12 |
+
if(_IMPORT_PREFIX STREQUAL "/")
|
13 |
+
set(_IMPORT_PREFIX "")
|
14 |
+
endif()
|
15 |
+
|
16 |
+
add_library(chromium-base INTERFACE IMPORTED GLOBAL)
|
17 |
+
add_library(chromium-base::chromium-base ALIAS chromium-base)
|
18 |
+
|
19 |
+
set(LIBRARIES_ chromium_base chromium_base_static dynamic_annotations double_conversion)
|
20 |
+
|
21 |
+
if(WIN32)
|
22 |
+
list(APPEND LIBRARIES_
|
23 |
+
cfgmgr32
|
24 |
+
powrprof
|
25 |
+
propsys
|
26 |
+
setupapi
|
27 |
+
userenv
|
28 |
+
wbemuuid
|
29 |
+
winmm
|
30 |
+
advapi32
|
31 |
+
comdlg32
|
32 |
+
dbghelp
|
33 |
+
dnsapi
|
34 |
+
gdi32
|
35 |
+
msimg32
|
36 |
+
odbc32
|
37 |
+
odbccp32
|
38 |
+
oleaut32
|
39 |
+
shell32
|
40 |
+
shlwapi
|
41 |
+
user32
|
42 |
+
usp10
|
43 |
+
uuid
|
44 |
+
version
|
45 |
+
wininet
|
46 |
+
winspool
|
47 |
+
ws2_32
|
48 |
+
delayimp
|
49 |
+
kernel32
|
50 |
+
ole32)
|
51 |
+
elseif(APPLE)
|
52 |
+
list(APPEND LIBRARIES_
|
53 |
+
ApplicationServices
|
54 |
+
AppKit
|
55 |
+
CoreFoundation
|
56 |
+
IOKit
|
57 |
+
OpenDirectory
|
58 |
+
Security
|
59 |
+
bsm
|
60 |
+
pmenergy
|
61 |
+
pmsample)
|
62 |
+
endif()
|
63 |
+
|
64 |
+
foreach(LIB_NAME ${LIBRARIES_})
|
65 |
+
find_library(_LIB NAMES ${LIB_NAME} ${LIB_NAME}.dll)
|
66 |
+
target_link_libraries(chromium-base INTERFACE ${_LIB})
|
67 |
+
unset(_LIB CACHE)
|
68 |
+
endforeach()
|
69 |
+
|
70 |
+
if(UNIX AND NOT APPLE)
|
71 |
+
target_link_libraries(chromium-base INTERFACE -ldl -latomic -lpthread)
|
72 |
+
endif()
|
73 |
+
|
74 |
+
target_include_directories(chromium-base
|
75 |
+
INTERFACE ${_IMPORT_PREFIX}/include/chromium-base)
|
76 |
+
|
77 |
+
target_compile_definitions(chromium-base INTERFACE
|
78 |
+
$<$<CONFIG:Debug>:${DEFINITIONS_DBG}>
|
79 |
+
$<$<CONFIG:Release>:${DEFINITIONS_REL}>)
|
80 |
+
|
81 |
+
target_compile_features(chromium-base INTERFACE cxx_std_14)
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/portfile.cmake
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Patches may be provided at the end
|
2 |
+
function(checkout_in_path PATH URL REF)
|
3 |
+
if(EXISTS "${PATH}")
|
4 |
+
file(GLOB FILES "${PATH}")
|
5 |
+
list(LENGTH FILES COUNT)
|
6 |
+
if(COUNT GREATER 0)
|
7 |
+
return()
|
8 |
+
endif()
|
9 |
+
file(REMOVE_RECURSE "${PATH}")
|
10 |
+
endif()
|
11 |
+
|
12 |
+
vcpkg_from_git(
|
13 |
+
OUT_SOURCE_PATH DEP_SOURCE_PATH
|
14 |
+
URL "${URL}"
|
15 |
+
REF "${REF}"
|
16 |
+
PATCHES "${ARGN}"
|
17 |
+
)
|
18 |
+
file(RENAME "${DEP_SOURCE_PATH}" "${PATH}")
|
19 |
+
file(REMOVE_RECURSE "${DEP_SOURCE_PATH}")
|
20 |
+
endfunction()
|
21 |
+
|
22 |
+
# Commits are based on https://chromium.googlesource.com/chromium/src/+/refs/tags/86.0.4199.1
|
23 |
+
set(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src/25ce732")
|
24 |
+
file(MAKE_DIRECTORY "${SOURCE_PATH}/third_party")
|
25 |
+
|
26 |
+
set(CHROMIUM_GIT "https://chromium.googlesource.com/chromium/src")
|
27 |
+
checkout_in_path(
|
28 |
+
"${SOURCE_PATH}/base"
|
29 |
+
"${CHROMIUM_GIT}/base"
|
30 |
+
"25ce73258703a5ac018da0e203fb3d4a98c2136e"
|
31 |
+
res/0001-base.patch)
|
32 |
+
checkout_in_path(
|
33 |
+
"${SOURCE_PATH}/build"
|
34 |
+
"${CHROMIUM_GIT}/build"
|
35 |
+
"312532ee66abdacbe58afb5df7ddf05e3a6399f9"
|
36 |
+
res/0002-build.patch)
|
37 |
+
checkout_in_path(
|
38 |
+
"${SOURCE_PATH}/third_party/apple_apsl"
|
39 |
+
"${CHROMIUM_GIT}/third_party/apple_apsl"
|
40 |
+
"4cc25bbf65194f6726f7f10da0a885818e35d53e")
|
41 |
+
checkout_in_path(
|
42 |
+
"${SOURCE_PATH}/third_party/ced"
|
43 |
+
"${CHROMIUM_GIT}/third_party/ced"
|
44 |
+
"4cd87a44674edd9fe1f01c4cb5f1b73907ce4236")
|
45 |
+
checkout_in_path(
|
46 |
+
"${SOURCE_PATH}/third_party/modp_b64"
|
47 |
+
"${CHROMIUM_GIT}/third_party/modp_b64"
|
48 |
+
"509f005fa65e652dc4a6f636da6fa1002b6dce16")
|
49 |
+
|
50 |
+
set(RES "${CMAKE_CURRENT_LIST_DIR}/res")
|
51 |
+
file(COPY "${RES}/.gn" DESTINATION "${SOURCE_PATH}")
|
52 |
+
file(COPY "${RES}/BUILD.gn" DESTINATION "${SOURCE_PATH}")
|
53 |
+
file(COPY "${RES}/build_overrides" DESTINATION "${SOURCE_PATH}")
|
54 |
+
file(COPY "${RES}/testing" DESTINATION "${SOURCE_PATH}")
|
55 |
+
file(COPY "${RES}/tools" DESTINATION "${SOURCE_PATH}")
|
56 |
+
file(COPY "${RES}/gclient_args.gni" DESTINATION "${SOURCE_PATH}/build/config")
|
57 |
+
file(COPY "${RES}/LASTCHANGE.committime" DESTINATION "${SOURCE_PATH}/build/util")
|
58 |
+
file(COPY "${RES}/icu" DESTINATION "${SOURCE_PATH}/third_party")
|
59 |
+
file(COPY "${RES}/libxml" DESTINATION "${SOURCE_PATH}/third_party")
|
60 |
+
file(COPY "${RES}/protobuf" DESTINATION "${SOURCE_PATH}/third_party")
|
61 |
+
file(COPY "${RES}/fontconfig" DESTINATION "${SOURCE_PATH}/third_party")
|
62 |
+
file(COPY "${RES}/test_fonts" DESTINATION "${SOURCE_PATH}/third_party")
|
63 |
+
|
64 |
+
set(OPTIONS "\
|
65 |
+
use_custom_libcxx=false \
|
66 |
+
clang_use_chrome_plugins=false \
|
67 |
+
forbid_non_component_debug_builds=false \
|
68 |
+
treat_warnings_as_errors=false")
|
69 |
+
set(DEFINITIONS "")
|
70 |
+
|
71 |
+
if(WIN32)
|
72 |
+
# Windows 10 SDK >= (10.0.19041.0) is required
|
73 |
+
# https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
|
74 |
+
SET(VCPKG_POLICY_SKIP_ARCHITECTURE_CHECK enabled)
|
75 |
+
set(ENV{DEPOT_TOOLS_WIN_TOOLCHAIN} 0)
|
76 |
+
set(OPTIONS "${OPTIONS} use_lld=false")
|
77 |
+
endif()
|
78 |
+
|
79 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL Linux)
|
80 |
+
set(OPTIONS "${OPTIONS} use_allocator=\"none\" use_sysroot=false use_glib=false")
|
81 |
+
endif()
|
82 |
+
|
83 |
+
# Find the directory that contains "bin/clang"
|
84 |
+
# Note: Only clang-cl is supported on Windows, see https://crbug.com/988071
|
85 |
+
vcpkg_find_acquire_program(CLANG)
|
86 |
+
if(CLANG MATCHES "-NOTFOUND")
|
87 |
+
message(FATAL_ERROR "Clang is required.")
|
88 |
+
endif()
|
89 |
+
get_filename_component(CLANG "${CLANG}" DIRECTORY)
|
90 |
+
get_filename_component(CLANG "${CLANG}" DIRECTORY)
|
91 |
+
if((WIN32 AND NOT EXISTS "${CLANG}/bin/clang-cl.exe") OR
|
92 |
+
(APPLE AND NOT EXISTS "${CLANG}/bin/clang"))
|
93 |
+
message(FATAL_ERROR "Clang needs to be inside a bin directory.")
|
94 |
+
endif()
|
95 |
+
set(OPTIONS "${OPTIONS} clang_base_path=\"${CLANG}\"")
|
96 |
+
|
97 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
98 |
+
set(OPTIONS "${OPTIONS} is_component_build=true")
|
99 |
+
list(APPEND DEFINITIONS COMPONENT_BUILD)
|
100 |
+
else()
|
101 |
+
set(OPTIONS "${OPTIONS} is_component_build=false")
|
102 |
+
endif()
|
103 |
+
|
104 |
+
if(APPLE)
|
105 |
+
set(OPTIONS "${OPTIONS} enable_dsyms=true")
|
106 |
+
endif()
|
107 |
+
|
108 |
+
set(OPTIONS_DBG "${OPTIONS} is_debug=true symbol_level=2")
|
109 |
+
set(OPTIONS_REL "${OPTIONS} is_debug=false symbol_level=0")
|
110 |
+
set(DEFINITIONS_DBG ${DEFINITIONS})
|
111 |
+
set(DEFINITIONS_REL ${DEFINITIONS})
|
112 |
+
|
113 |
+
vcpkg_gn_configure(
|
114 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
115 |
+
OPTIONS_DEBUG "${OPTIONS_DBG}"
|
116 |
+
OPTIONS_RELEASE "${OPTIONS_REL}"
|
117 |
+
)
|
118 |
+
|
119 |
+
# Prevent a ninja re-config loop
|
120 |
+
set(NINJA_REBUILD "build build.ninja: gn\n generator = 1\n depfile = build.ninja.d")
|
121 |
+
vcpkg_replace_string("${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/build.ninja" "${NINJA_REBUILD}" "")
|
122 |
+
vcpkg_replace_string("${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/build.ninja" "${NINJA_REBUILD}" "")
|
123 |
+
|
124 |
+
set(TARGETS
|
125 |
+
base base:base_static
|
126 |
+
base/third_party/dynamic_annotations
|
127 |
+
base/third_party/double_conversion)
|
128 |
+
|
129 |
+
if(WIN32)
|
130 |
+
list(APPEND TARGETS base/win:pe_image)
|
131 |
+
endif()
|
132 |
+
|
133 |
+
vcpkg_gn_install(
|
134 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
135 |
+
TARGETS ${TARGETS}
|
136 |
+
)
|
137 |
+
|
138 |
+
# Install includes
|
139 |
+
set(PACKAGES_INCLUDE_DIR "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
140 |
+
file(GLOB_RECURSE INCLUDE_FILES LIST_DIRECTORIES false RELATIVE "${SOURCE_PATH}" "${SOURCE_PATH}/*.h")
|
141 |
+
foreach(file_ ${INCLUDE_FILES})
|
142 |
+
configure_file("${SOURCE_PATH}/${file_}" "${PACKAGES_INCLUDE_DIR}/${file_}" COPYONLY)
|
143 |
+
endforeach()
|
144 |
+
|
145 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/chromium-baseConfig.cmake.in"
|
146 |
+
"${CURRENT_PACKAGES_DIR}/share/${PORT}/chromium-baseConfig.cmake" @ONLY)
|
147 |
+
|
148 |
+
vcpkg_copy_pdbs()
|
149 |
+
|
150 |
+
file(INSTALL "${SOURCE_PATH}/third_party/ced/LICENSE"
|
151 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
152 |
+
RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/0002-build.patch
ADDED
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/config/BUILDCONFIG.gn b/config/BUILDCONFIG.gn
|
2 |
+
index 4cc6bfc..9ea83a9 100644
|
3 |
+
--- a/config/BUILDCONFIG.gn
|
4 |
+
+++ b/config/BUILDCONFIG.gn
|
5 |
+
@@ -657,6 +657,7 @@ template("component") {
|
6 |
+
# See http://crbug.com/594610
|
7 |
+
forward_variables_from(invoker, [ "visibility" ])
|
8 |
+
forward_variables_from(invoker, "*", [ "visibility" ])
|
9 |
+
+ not_needed("*")
|
10 |
+
}
|
11 |
+
}
|
12 |
+
|
13 |
+
diff --git a/config/clang/BUILD.gn b/config/clang/BUILD.gn
|
14 |
+
index 960726e..87886dc 100644
|
15 |
+
--- a/config/clang/BUILD.gn
|
16 |
+
+++ b/config/clang/BUILD.gn
|
17 |
+
@@ -38,5 +38,7 @@ config("extra_warnings") {
|
18 |
+
"-Wstring-conversion",
|
19 |
+
|
20 |
+
"-Wtautological-overlap-compare",
|
21 |
+
+ "-Wno-unknown-warning-option",
|
22 |
+
+ "-Wno-unknown-pragmas"
|
23 |
+
]
|
24 |
+
}
|
25 |
+
diff --git a/config/mac/sdk_info.py b/config/mac/sdk_info.py
|
26 |
+
index 1ad11d3..99b21f9 100644
|
27 |
+
--- a/config/mac/sdk_info.py
|
28 |
+
+++ b/config/mac/sdk_info.py
|
29 |
+
@@ -61,10 +61,15 @@ def FillXcodeVersion(settings, developer_dir):
|
30 |
+
settings['xcode_build'] = version_plist['ProductBuildVersion']
|
31 |
+
return
|
32 |
+
|
33 |
+
- lines = subprocess.check_output(['xcodebuild', '-version']).splitlines()
|
34 |
+
- settings['xcode_version'] = FormatVersion(lines[0].split()[-1])
|
35 |
+
- settings['xcode_version_int'] = int(settings['xcode_version'], 10)
|
36 |
+
- settings['xcode_build'] = lines[-1].split()[-1]
|
37 |
+
+ try:
|
38 |
+
+ lines = subprocess.check_output(['xcodebuild', '-version']).splitlines()
|
39 |
+
+ settings['xcode_version'] = FormatVersion(lines[0].split()[-1])
|
40 |
+
+ settings['xcode_version_int'] = int(settings['xcode_version'], 10)
|
41 |
+
+ settings['xcode_build'] = lines[-1].split()[-1]
|
42 |
+
+ except:
|
43 |
+
+ settings['xcode_version'] = ""
|
44 |
+
+ settings['xcode_version_int'] = 0
|
45 |
+
+ settings['xcode_build'] = ""
|
46 |
+
|
47 |
+
|
48 |
+
def FillMachineOSBuild(settings):
|
49 |
+
diff --git a/mac/find_sdk.py b/mac/find_sdk.py
|
50 |
+
index 58362bf..a6069b6 100755
|
51 |
+
--- a/mac/find_sdk.py
|
52 |
+
+++ b/mac/find_sdk.py
|
53 |
+
@@ -68,6 +68,8 @@ def main():
|
54 |
+
dev_dir = out.rstrip()
|
55 |
+
sdk_dir = os.path.join(
|
56 |
+
dev_dir, 'Platforms/MacOSX.platform/Developer/SDKs')
|
57 |
+
+ if not os.path.isdir(sdk_dir):
|
58 |
+
+ sdk_dir = os.path.join(dev_dir, 'SDKs')
|
59 |
+
|
60 |
+
if not os.path.isdir(sdk_dir):
|
61 |
+
raise SdkError('Install Xcode, launch it, accept the license ' +
|
62 |
+
@@ -87,7 +89,10 @@ def main():
|
63 |
+
|
64 |
+
if options.print_bin_path:
|
65 |
+
bin_path = 'Toolchains/XcodeDefault.xctoolchain/usr/bin/'
|
66 |
+
- print(os.path.join(dev_dir, bin_path))
|
67 |
+
+ if os.path.isdir(os.path.join(dev_dir, bin_path)):
|
68 |
+
+ print(os.path.join(dev_dir, bin_path))
|
69 |
+
+ else:
|
70 |
+
+ print(os.path.join(dev_dir, 'usr/bin/'))
|
71 |
+
|
72 |
+
return best_sdk
|
73 |
+
|
74 |
+
diff --git a/toolchain/mac/BUILD.gn b/toolchain/mac/BUILD.gn
|
75 |
+
index 8fdada0..8d5e6b7 100644
|
76 |
+
--- a/toolchain/mac/BUILD.gn
|
77 |
+
+++ b/toolchain/mac/BUILD.gn
|
78 |
+
@@ -184,9 +184,9 @@ template("mac_toolchain") {
|
79 |
+
# If dSYMs are enabled, this flag will be added to the link tools.
|
80 |
+
if (_enable_dsyms) {
|
81 |
+
dsym_switch = " -Wcrl,dsym,{{root_out_dir}} "
|
82 |
+
- dsym_switch += "-Wcrl,dsymutilpath," +
|
83 |
+
- rebase_path("//tools/clang/dsymutil/bin/dsymutil",
|
84 |
+
- root_build_dir) + " "
|
85 |
+
+ # dsym_switch += "-Wcrl,dsymutilpath," +
|
86 |
+
+ # rebase_path("//tools/clang/dsymutil/bin/dsymutil",
|
87 |
+
+ # root_build_dir) + " "
|
88 |
+
|
89 |
+
dsym_output_dir =
|
90 |
+
"{{root_out_dir}}/{{target_output_name}}{{output_extension}}.dSYM"
|
91 |
+
diff --git a/toolchain/win/BUILD.gn b/toolchain/win/BUILD.gn
|
92 |
+
index be08930..04fb374 100644
|
93 |
+
--- a/toolchain/win/BUILD.gn
|
94 |
+
+++ b/toolchain/win/BUILD.gn
|
95 |
+
@@ -98,7 +98,7 @@ template("msvc_toolchain") {
|
96 |
+
} else {
|
97 |
+
lld_link = "lld-link"
|
98 |
+
}
|
99 |
+
- prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
100 |
+
+ prefix = "$clang_base_path/bin"
|
101 |
+
|
102 |
+
# lld-link includes a replacement for lib.exe that can produce thin
|
103 |
+
# archives and understands bitcode (for lto builds).
|
104 |
+
@@ -190,7 +190,7 @@ template("msvc_toolchain") {
|
105 |
+
# amount of data to parse and store in .ninja_deps. We do this on non-Windows too,
|
106 |
+
# and already make sure rebuilds after win sdk / libc++ / clang header updates happen via
|
107 |
+
# changing commandline flags.
|
108 |
+
- show_includes = "/showIncludes:user"
|
109 |
+
+ show_includes = ""
|
110 |
+
} else {
|
111 |
+
show_includes = "/showIncludes"
|
112 |
+
}
|
113 |
+
@@ -235,7 +235,7 @@ template("msvc_toolchain") {
|
114 |
+
|
115 |
+
if (toolchain_args.current_cpu == "arm64") {
|
116 |
+
if (is_clang) {
|
117 |
+
- prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
118 |
+
+ prefix = "$clang_base_path/bin"
|
119 |
+
ml = "${clang_prefix}${prefix}/${clang_cl} --target=arm64-windows"
|
120 |
+
if (host_os == "win") {
|
121 |
+
# Flip the slashes so that copy/paste of the command works.
|
122 |
+
@@ -444,11 +444,9 @@ template("win_toolchains") {
|
123 |
+
|
124 |
+
msvc_toolchain("win_clang_" + target_name) {
|
125 |
+
environment = "environment." + toolchain_arch
|
126 |
+
- prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
127 |
+
+ prefix = "$clang_base_path/bin"
|
128 |
+
cl = "${clang_prefix}$prefix/${clang_cl}"
|
129 |
+
- _clang_lib_dir =
|
130 |
+
- rebase_path("$clang_base_path/lib/clang/$clang_version/lib/windows",
|
131 |
+
- root_build_dir)
|
132 |
+
+ _clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib/windows"
|
133 |
+
if (host_os == "win") {
|
134 |
+
# Flip the slashes so that copy/paste of the command works.
|
135 |
+
cl = string_replace(cl, "/", "\\")
|
136 |
+
@@ -459,7 +457,7 @@ template("win_toolchains") {
|
137 |
+
|
138 |
+
sys_include_flags = "${win_toolchain_data.include_flags_imsvc}"
|
139 |
+
sys_lib_flags =
|
140 |
+
- "-libpath:$_clang_lib_dir ${win_toolchain_data.libpath_flags}"
|
141 |
+
+ "-libpath:\"$_clang_lib_dir\" ${win_toolchain_data.libpath_flags}"
|
142 |
+
|
143 |
+
toolchain_args = {
|
144 |
+
if (defined(invoker.toolchain_args)) {
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/BUILD.gn
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
static_library("chromium-base") {
|
2 |
+
deps = [
|
3 |
+
"//base",
|
4 |
+
]
|
5 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/fontconfig/BUILD.gn
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
component("fontconfig") {}
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/gclient_args.gni
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
build_with_chromium = true
|
2 |
+
checkout_android = false
|
3 |
+
checkout_android_native_support = false
|
4 |
+
checkout_ios_webkit = false
|
5 |
+
checkout_nacl = false
|
6 |
+
checkout_oculus_sdk = false
|
7 |
+
checkout_openxr = false
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/icu/BUILD.gn
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
component("icuuc") {}
|
2 |
+
component("icu") {}
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/icu/config.gni
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
declare_args() {
|
2 |
+
icu_use_data_file = false
|
3 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/testing/libfuzzer/fuzzer_test.gni
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import("//testing/test.gni")
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/tools/win/DebugVisualizers/BUILD.gn
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
config("chrome") {}
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/res/tools/win/DebugVisualizers/chrome.natvis
ADDED
File without changes
|
cc-multilingual-main/cc_net/vcpkg/ports/chromium-base/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chromium-base",
|
3 |
+
"version": "86.0.4199.1",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.",
|
6 |
+
"homepage": "https://chromium.googlesource.com/chromium/src",
|
7 |
+
"license": "BSD-3-Clause",
|
8 |
+
"supports": "x64 & (osx | windows | linux) & !uwp",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-gn",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-tool-gn",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/freealut/cmake_builds.patch
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 963c530..656ce14 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,6 +1,6 @@
|
6 |
+
# cmake project file by Prakash Punnoor
|
7 |
+
# improved by Ryan Pavlik
|
8 |
+
-cmake_minimum_required(VERSION 2.6)
|
9 |
+
+cmake_minimum_required(VERSION 2.8.12)
|
10 |
+
|
11 |
+
project(Alut C)
|
12 |
+
|
13 |
+
@@ -27,7 +27,6 @@ include_directories(${Alut_SOURCE_DIR}/include)
|
14 |
+
|
15 |
+
# What to build?
|
16 |
+
option(BUILD_EXAMPLES "build example applications" ON)
|
17 |
+
-option(BUILD_STATIC "build static library too" OFF)
|
18 |
+
option(BUILD_TESTS "build the test-suite" ON)
|
19 |
+
|
20 |
+
# How to build it?
|
21 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
22 |
+
index b72d1a1..5fc6cdc 100644
|
23 |
+
--- a/src/CMakeLists.txt
|
24 |
+
+++ b/src/CMakeLists.txt
|
25 |
+
@@ -39,35 +39,7 @@ set(ALUT_HEADERS
|
26 |
+
../include/AL/alut.h)
|
27 |
+
source_group(APIHeader FILES ${ALUT_HEADERS})
|
28 |
+
|
29 |
+
-
|
30 |
+
-if(BUILD_STATIC)
|
31 |
+
- # we can't create a static library with the same name
|
32 |
+
- # as the shared one, so we copy it over after creation
|
33 |
+
- add_library(alut_static STATIC ${ALUT_SOURCES} ${ALUT_INTERNAL_HEADERS} ${ALUT_HEADERS})
|
34 |
+
- target_link_libraries(alut_static ${OPENAL_LIBRARY} ${ADD_LIBS})
|
35 |
+
- if(UNIX)
|
36 |
+
- target_link_libraries(alut_static m)
|
37 |
+
- endif()
|
38 |
+
- if(NOT WIN32)
|
39 |
+
- # TODO this is an inelegant hack...
|
40 |
+
- add_custom_command(TARGET
|
41 |
+
- alut_static
|
42 |
+
- POST_BUILD
|
43 |
+
- COMMAND
|
44 |
+
- ${CMAKE_COMMAND}
|
45 |
+
- ARGS
|
46 |
+
- -E
|
47 |
+
- copy
|
48 |
+
- ${CMAKE_BINARY_DIR}/src/${CMAKE_STATIC_LIBRARY_PREFIX}alut_static${CMAKE_STATIC_LIBRARY_SUFFIX}
|
49 |
+
- ${CMAKE_BINARY_DIR}/src/${CMAKE_STATIC_LIBRARY_PREFIX}alut${CMAKE_STATIC_LIBRARY_SUFFIX})
|
50 |
+
- install_files(/lib${LIB_SUFFIX}
|
51 |
+
- FILES
|
52 |
+
- ${CMAKE_STATIC_LIBRARY_PREFIX}alut${CMAKE_STATIC_LIBRARY_SUFFIX})
|
53 |
+
- endif()
|
54 |
+
-endif()
|
55 |
+
-
|
56 |
+
-
|
57 |
+
-add_library(alut SHARED ${ALUT_SOURCES} ${ALUT_INTERNAL_HEADERS} ${ALUT_HEADERS})
|
58 |
+
+add_library(alut ${ALUT_SOURCES} ${ALUT_INTERNAL_HEADERS} ${ALUT_HEADERS})
|
59 |
+
set_property(TARGET
|
60 |
+
alut
|
61 |
+
PROPERTY
|
62 |
+
@@ -80,12 +52,40 @@ set_target_properties(alut
|
63 |
+
SOVERSION
|
64 |
+
${MAJOR_VERSION})
|
65 |
+
target_link_libraries(alut ${OPENAL_LIBRARY})
|
66 |
+
+target_include_directories(alut PUBLIC ${OPENAL_INCLUDE_DIR})
|
67 |
+
if(UNIX)
|
68 |
+
target_link_libraries(alut m)
|
69 |
+
endif()
|
70 |
+
+if(NOT BUILD_SHARED_LIBS)
|
71 |
+
+ target_compile_definitions(alut PUBLIC ALUT_BUILD_STATIC)
|
72 |
+
+endif()
|
73 |
+
|
74 |
+
install(TARGETS alut
|
75 |
+
+ EXPORT "FreeALUTTargets"
|
76 |
+
LIBRARY DESTINATION lib${LIB_SUFFIX}
|
77 |
+
ARCHIVE DESTINATION lib${LIB_SUFFIX}
|
78 |
+
RUNTIME DESTINATION bin
|
79 |
+
- PUBLIC_HEADER DESTINATION include/AL)
|
80 |
+
+ PUBLIC_HEADER DESTINATION include/AL
|
81 |
+
+ )
|
82 |
+
+
|
83 |
+
+include(CMakePackageConfigHelpers)
|
84 |
+
+
|
85 |
+
+set(version_config "${CMAKE_CURRENT_BINARY_DIR}/temp/FreeALUTConfigVersion.cmake")
|
86 |
+
+set(project_config "${CMAKE_CURRENT_BINARY_DIR}/temp/FreeALUTConfig.cmake")
|
87 |
+
+set(namespace "FreeALUT::")
|
88 |
+
+
|
89 |
+
+write_basic_package_version_file("${version_config}"
|
90 |
+
+ COMPATIBILITY SameMajorVersion
|
91 |
+
+ VERSION ${PACKAGE_VERSION})
|
92 |
+
+
|
93 |
+
+configure_package_config_file("Config.cmake.in"
|
94 |
+
+ "${project_config}"
|
95 |
+
+ INSTALL_DESTINATION
|
96 |
+
+ lib${LIB_SUFFIX}/cmake/freealut)
|
97 |
+
+
|
98 |
+
+install(FILES "${project_config}" "${version_config}"
|
99 |
+
+ DESTINATION lib${LIB_SUFFIX}/cmake/freealut)
|
100 |
+
+
|
101 |
+
+install(EXPORT "FreeALUTTargets"
|
102 |
+
+ NAMESPACE "${namespace}"
|
103 |
+
+ DESTINATION lib${LIB_SUFFIX}/cmake/freealut)
|
104 |
+
diff --git a/src/Config.cmake.in b/src/Config.cmake.in
|
105 |
+
new file mode 100644
|
106 |
+
index 0000000..2a20f59
|
107 |
+
--- /dev/null
|
108 |
+
+++ b/src/Config.cmake.in
|
109 |
+
@@ -0,0 +1,5 @@
|
110 |
+
+
|
111 |
+
+@PACKAGE_INIT@
|
112 |
+
+
|
113 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/FreeALUTTargets.cmake")
|
114 |
+
+check_required_components("FreeALUT")
|
cc-multilingual-main/cc_net/vcpkg/ports/freealut/portfile.cmake
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO vancegroup/freealut
|
4 |
+
REF fc814e316c2bfa6e05b723b8cc9cb276da141aae
|
5 |
+
SHA512 046990cc13822ca6eea0b8e412aa95a994b881429e0b15cefee379f08bd9636d4a4598292a8d46b30c3cd06814bfaeae3298e8ef4087a46eede344f3880e9fed
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
cmake_builds.patch
|
9 |
+
unix_headers.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
DISABLE_PARALLEL_CONFIGURE
|
15 |
+
OPTIONS
|
16 |
+
-DBUILD_EXAMPLES=OFF
|
17 |
+
-DBUILD_TESTS=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
22 |
+
vcpkg_fixup_pkgconfig()
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
|
26 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
27 |
+
)
|
28 |
+
|
29 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/freealut-config")
|
30 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/freealut-config")
|
31 |
+
|
32 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
34 |
+
endif()
|
35 |
+
|
36 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/freealut/unix_headers.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/AL/alut.h b/include/AL/alut.h
|
2 |
+
index 4b05a3c..1084604 100644
|
3 |
+
--- a/include/AL/alut.h
|
4 |
+
+++ b/include/AL/alut.h
|
5 |
+
@@ -1,24 +1,18 @@
|
6 |
+
#if !defined(AL_ALUT_H)
|
7 |
+
#define AL_ALUT_H
|
8 |
+
|
9 |
+
-#if defined(_MSC_VER)
|
10 |
+
#include <alc.h>
|
11 |
+
#include <al.h>
|
12 |
+
-#elif defined(__APPLE__)
|
13 |
+
-#include <OpenAL/alc.h>
|
14 |
+
-#include <OpenAL/al.h>
|
15 |
+
-#else
|
16 |
+
-#include <AL/al.h>
|
17 |
+
-#include <AL/alc.h>
|
18 |
+
-#endif
|
19 |
+
|
20 |
+
#if defined(__cplusplus)
|
21 |
+
extern "C" {
|
22 |
+
#endif
|
23 |
+
|
24 |
+
#if defined(_WIN32) && !defined(_XBOX)
|
25 |
+
- #if defined (ALUT_BUILD_LIBRARY)
|
26 |
+
+ #if defined(ALUT_BUILD_LIBRARY)
|
27 |
+
#define ALUT_API __declspec(dllexport)
|
28 |
+
+ #elif defined(ALUT_BUILD_STATIC)
|
29 |
+
+ #define ALUT_API extern
|
30 |
+
#else
|
31 |
+
#define ALUT_API __declspec(dllimport)
|
32 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/freealut/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "freealut",
|
3 |
+
"version": "1.1.0",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": [
|
6 |
+
"FreeALUT is a free implementation of OpenAL's ALUT standard.",
|
7 |
+
"ALUT is a set of portable functions which remove the annoying details of getting an audio application started. It is the OpenAL counterpart of what GLUT is for OpenGL. "
|
8 |
+
],
|
9 |
+
"homepage": "https://github.com/vancegroup/freealut",
|
10 |
+
"license": "LGPL-2.0-only",
|
11 |
+
"supports": "!uwp & !xbox",
|
12 |
+
"dependencies": [
|
13 |
+
"openal-soft",
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "vcpkg-cmake-config",
|
20 |
+
"host": true
|
21 |
+
}
|
22 |
+
]
|
23 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/icu/darwin-rpath.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/source/config/mh-darwin b/source/config/mh-darwin
|
2 |
+
index 7b15709..e2cdbdb 100644
|
3 |
+
--- a/source/config/mh-darwin
|
4 |
+
+++ b/source/config/mh-darwin
|
5 |
+
@@ -31,7 +31,8 @@ SHLIB.cc= $(CXX) -dynamiclib -dynamic $(CXXFLAGS) $(LDFLAGS) $(LD_SOOPTIONS)
|
6 |
+
|
7 |
+
## Compiler switches to embed a library name and version information
|
8 |
+
ifeq ($(ENABLE_RPATH),YES)
|
9 |
+
-LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(libdir)/$(notdir $(MIDDLE_SO_TARGET))
|
10 |
+
+ID_PREFIX = @rpath
|
11 |
+
+LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(ID_PREFIX)/$(notdir $(MIDDLE_SO_TARGET))
|
12 |
+
else
|
13 |
+
LD_SONAME = -Wl,-compatibility_version -Wl,$(SO_TARGET_VERSION_MAJOR) -Wl,-current_version -Wl,$(SO_TARGET_VERSION) -install_name $(notdir $(MIDDLE_SO_TARGET)) $(PKGDATA_TRAILING_SPACE)
|
14 |
+
endif
|
cc-multilingual-main/cc_net/vcpkg/ports/icu/disable-escapestr-tool.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/source/tools/Makefile.in b/source/tools/Makefile.in
|
2 |
+
index e0896f1..5ead980 100644
|
3 |
+
--- a/source/tools/Makefile.in
|
4 |
+
+++ b/source/tools/Makefile.in
|
5 |
+
@@ -19,9 +19,9 @@ SUBDIRS = toolutil ctestfw makeconv genrb genbrk \
|
6 |
+
gencnval gensprep icuinfo genccode gencmn icupkg pkgdata \
|
7 |
+
gentest gennorm2 gencfu gendict icuexportdata
|
8 |
+
|
9 |
+
-ifneq (@platform_make_fragment_name@,mh-cygwin-msvc)
|
10 |
+
-SUBDIRS += escapesrc
|
11 |
+
-endif
|
12 |
+
+#ifneq (@platform_make_fragment_name@,mh-cygwin-msvc)
|
13 |
+
+#SUBDIRS += escapesrc
|
14 |
+
+#endif
|
15 |
+
|
16 |
+
## List of phony targets
|
17 |
+
.PHONY : all all-local all-recursive install install-local \
|
cc-multilingual-main/cc_net/vcpkg/ports/icu/disable-static-prefix.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/source/icudefs.mk.in b/source/icudefs.mk.in
|
2 |
+
index 24bd97a..33169de 100644
|
3 |
+
--- a/source/icudefs.mk.in
|
4 |
+
+++ b/source/icudefs.mk.in
|
5 |
+
@@ -213,13 +213,13 @@ LIBICU = $(LIBPREFIX)$(ICUPREFIX)
|
6 |
+
|
7 |
+
## If we can't use the shared libraries, use the static libraries
|
8 |
+
ifneq ($(ENABLE_SHARED),YES)
|
9 |
+
-STATIC_PREFIX_WHEN_USED = s
|
10 |
+
+STATIC_PREFIX_WHEN_USED =
|
11 |
+
else
|
12 |
+
STATIC_PREFIX_WHEN_USED =
|
13 |
+
endif
|
14 |
+
|
15 |
+
# Static library prefix and file extension
|
16 |
+
-STATIC_PREFIX = s
|
17 |
+
+STATIC_PREFIX =
|
18 |
+
LIBSICU = $(LIBPREFIX)$(STATIC_PREFIX)$(ICUPREFIX)
|
19 |
+
A = a
|
20 |
+
SOBJ = $(SO)
|
cc-multilingual-main/cc_net/vcpkg/ports/icu/fix-win-build.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/source/configure.ac b/source/configure.ac
|
2 |
+
index 425fdc7..97210f8 100644
|
3 |
+
--- a/source/configure.ac
|
4 |
+
+++ b/source/configure.ac
|
5 |
+
@@ -114,6 +114,15 @@ AC_ARG_ENABLE([icu-config],
|
6 |
+
esac], [enable_icu_config=true])
|
7 |
+
AC_SUBST(INSTALL_ICU_CONFIG, [$enable_icu_config])
|
8 |
+
|
9 |
+
+AC_ARG_ENABLE([icu-build-win],
|
10 |
+
+ AS_HELP_STRING([--enable-icu-build-win], [install icu-build-win]),
|
11 |
+
+ [case "${enableval}" in
|
12 |
+
+ yes) enable_icu_build_win=true ;;
|
13 |
+
+ no) enable_icu_build_win=false ;;
|
14 |
+
+ *) AC_MSG_ERROR([bad value '${enableval}' for --enable-icu-build-win]) ;;
|
15 |
+
+ esac], [enable_icu_build_win=true])
|
16 |
+
+AC_SUBST(INSTALL_ICU_BUILD_WIN, [$enable_icu_build_win])
|
17 |
+
+
|
18 |
+
# Check whether to build debug libraries
|
19 |
+
AC_MSG_CHECKING([whether to build debug libraries])
|
20 |
+
enabled=no
|
21 |
+
@@ -263,12 +272,14 @@ ICU_CHECK_MH_FRAG
|
22 |
+
# Checks for libraries and other host specific stuff
|
23 |
+
# On HP/UX, don't link to -lm from a shared lib because it isn't
|
24 |
+
# PIC (at least on 10.2)
|
25 |
+
+if test "$enable_icu_build_win" = no; then
|
26 |
+
case "${host}" in
|
27 |
+
*-*-hpux*) AC_CHECK_LIB(m, floor, LIB_M="-lm") ;;
|
28 |
+
|
29 |
+
*) AC_CHECK_LIB(m, floor)
|
30 |
+
LIB_M="" ;;
|
31 |
+
esac
|
32 |
+
+fi
|
33 |
+
AC_SUBST(LIB_M)
|
34 |
+
|
35 |
+
# Check whether to build shared libraries
|
cc-multilingual-main/cc_net/vcpkg/ports/icu/fix_parallel_build_on_windows.patch
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --urN a/source/data/Makefile.in b/source/data/Makefile.in
|
2 |
+
--- a/source/data/Makefile.in
|
3 |
+
+++ b/source/data/Makefile.in
|
4 |
+
@@ -236,11 +236,12 @@
|
5 |
+
## Include the main build rules for data files
|
6 |
+
include $(top_builddir)/$(subdir)/rules.mk
|
7 |
+
|
8 |
+
+PKGDATA_LIST = $(TMP_DIR)/icudata.lst
|
9 |
+
|
10 |
+
ifeq ($(ENABLE_SO_VERSION_DATA),1)
|
11 |
+
ifeq ($(PKGDATA_MODE),dll)
|
12 |
+
SO_VERSION_DATA = $(OUTTMPDIR)/icudata.res
|
13 |
+
-$(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc | $(TMP_DIR)/dirs.timestamp
|
14 |
+
+$(SO_VERSION_DATA) : $(MISCSRCDIR)/icudata.rc $(PKGDATA_LIST)
|
15 |
+
ifeq ($(MSYS_RC_MODE),1)
|
16 |
+
rc.exe -i$(srcdir)/../common -i$(top_builddir)/common -fo$@ $(CPPFLAGS) $<
|
17 |
+
else
|
18 |
+
@@ -249,7 +250,6 @@
|
19 |
+
endif
|
20 |
+
endif
|
21 |
+
|
22 |
+
-PKGDATA_LIST = $(TMP_DIR)/icudata.lst
|
23 |
+
|
24 |
+
|
25 |
+
#####################################################
|
cc-multilingual-main/cc_net/vcpkg/ports/icu/mingw-dll-install.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/source/config/mh-mingw b/source/config/mh-mingw
|
2 |
+
index 30f6e5be81..b6364551ea 100644
|
3 |
+
--- a/source/config/mh-mingw
|
4 |
+
+++ b/source/config/mh-mingw
|
5 |
+
@@ -13,7 +13,7 @@
|
6 |
+
# On Windows we generally have the DLLs in the bin directory rather than the lib directory.
|
7 |
+
# This setting moves the ICU DLLs into the bin folder for MinGW/MSYS2 when "make install" is run.
|
8 |
+
# If you prefer to have the DLLs in the lib folder, then set this to NO instead.
|
9 |
+
-MINGW_MOVEDLLSTOBINDIR = YES
|
10 |
+
+MINGW_MOVEDLLSTOBINDIR = NO
|
11 |
+
|
12 |
+
# We install sbin tools into the same bin directory because
|
13 |
+
# pkgdata needs some of the tools in sbin, and we can't always depend on
|
14 |
+
diff --git a/source/config/mh-mingw64 b/source/config/mh-mingw64
|
15 |
+
index fb64c56260..a43cc4dd71 100644
|
16 |
+
--- a/source/config/mh-mingw64
|
17 |
+
+++ b/source/config/mh-mingw64
|
18 |
+
@@ -10,7 +10,7 @@
|
19 |
+
# On Windows we generally have the DLLs in the bin directory rather than the lib directory.
|
20 |
+
# This setting moves the ICU DLLs into the bin folder for MinGW/MSYS2 when "make install" is run.
|
21 |
+
# If you prefer to have the DLLs in the lib folder, then set this to NO instead.
|
22 |
+
-MINGW_MOVEDLLSTOBINDIR = YES
|
23 |
+
+MINGW_MOVEDLLSTOBINDIR = NO
|
24 |
+
|
25 |
+
# This file is similar to mh-mingw
|
26 |
+
# Any changes made here may also need to be made in mh-mingw
|
cc-multilingual-main/cc_net/vcpkg/ports/icu/remove-MD-from-configure.patch
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -urN a/source/runConfigureICU b/source/runConfigureICU
|
2 |
+
--- a/source/runConfigureICU 2018-03-26 21:38:44.000000000 +0800
|
3 |
+
+++ b/source/runConfigureICU 2018-08-26 09:04:53.197454400 +0800
|
4 |
+
@@ -322,10 +322,10 @@
|
5 |
+
THE_COMP="Microsoft Visual C++"
|
6 |
+
CC=cl; export CC
|
7 |
+
CXX=cl; export CXX
|
8 |
+
- RELEASE_CFLAGS='-Gy -MD'
|
9 |
+
- RELEASE_CXXFLAGS='-Gy -MD'
|
10 |
+
- DEBUG_CFLAGS='-FS -Zi -MDd'
|
11 |
+
- DEBUG_CXXFLAGS='-FS -Zi -MDd'
|
12 |
+
+ RELEASE_CFLAGS='-Gy'
|
13 |
+
+ RELEASE_CXXFLAGS='-Gy'
|
14 |
+
+ DEBUG_CFLAGS='-FS -Zi'
|
15 |
+
+ DEBUG_CXXFLAGS='-FS -Zi'
|
16 |
+
DEBUG_LDFLAGS='-DEBUG'
|
17 |
+
;;
|
18 |
+
*BSD)
|
cc-multilingual-main/cc_net/vcpkg/ports/icu/vcpkg-cross-data.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/source/configure.ac b/source/configure.ac
|
2 |
+
index 1bd5871..c508f48 100644
|
3 |
+
--- a/source/configure.ac
|
4 |
+
+++ b/source/configure.ac
|
5 |
+
@@ -1151,7 +1151,7 @@ AC_ARG_ENABLE(fuzzer,
|
6 |
+
fuzzer=false)
|
7 |
+
ICU_CONDITIONAL(FUZZER, test "$fuzzer" = true)
|
8 |
+
|
9 |
+
-ICU_CONDITIONAL(DATA, test "$tools" = true || test "$cross_compiling" = "yes")
|
10 |
+
+ICU_CONDITIONAL(DATA, test "$tools" = true || test "$cross_compiling" = "yes" || test -n "$cross_buildroot")
|
11 |
+
|
12 |
+
AC_ARG_WITH(data-packaging,
|
13 |
+
[ --with-data-packaging specify how to package ICU data. Possible values:
|
cc-multilingual-main/cc_net/vcpkg/ports/icu/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "icu",
|
3 |
+
"version": "74.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Mature and widely used Unicode and localization library.",
|
6 |
+
"homepage": "https://icu.unicode.org/home",
|
7 |
+
"license": "ICU",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "icu",
|
11 |
+
"host": true,
|
12 |
+
"features": [
|
13 |
+
"tools"
|
14 |
+
]
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"tools": {
|
19 |
+
"description": "Build tools",
|
20 |
+
"supports": "!uwp"
|
21 |
+
}
|
22 |
+
}
|
23 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/kissfft/fix-install-dirs.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 0213798..c4d7d3e 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -105,9 +105,7 @@ endif()
|
6 |
+
# Add GNUInstallDirs for GNU infrastructure before target)include_directories
|
7 |
+
#
|
8 |
+
|
9 |
+
-if(CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$" AND NOT CMAKE_CROSSCOMPILING)
|
10 |
+
- include(GNUInstallDirs)
|
11 |
+
-endif()
|
12 |
+
+include(GNUInstallDirs)
|
13 |
+
|
14 |
+
#
|
15 |
+
# Declare PKGINCLUDEDIR for kissfft include path
|
cc-multilingual-main/cc_net/vcpkg/ports/kissfft/fix-linkage.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/kissfft-config.cmake.in b/kissfft-config.cmake.in
|
2 |
+
index cd7139a..c387fe6 100644
|
3 |
+
--- a/kissfft-config.cmake.in
|
4 |
+
+++ b/kissfft-config.cmake.in
|
5 |
+
@@ -28,7 +28,7 @@ cmake_minimum_required(VERSION 3.3)
|
6 |
+
|
7 |
+
# Set include glob of config files using SHARED/static component, BUILD_SHARED_LIBS by default
|
8 |
+
set(_kissfft_shared_detected OFF)
|
9 |
+
-set(_kissfft_shared ${BUILD_SHARED_LIBS})
|
10 |
+
+set(_kissfft_shared @BUILD_SHARED_LIBS@)
|
11 |
+
if("SHARED" IN_LIST kissfft_FIND_COMPONENTS)
|
12 |
+
set(_kissfft_shared_detected ON)
|
13 |
+
set(_kissfft_shared ON)
|
cc-multilingual-main/cc_net/vcpkg/ports/kissfft/portfile.cmake
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mborgerding/kissfft
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 bd715868ce0e93a291a0592fb1f8b960e832fc64efe863755e52b67d5addff9bcb444a1bf2570d1914c52b41dad1023d0d86400f5ea30c9fb84cd6b4f7210708
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-install-dirs.patch
|
9 |
+
fix-linkage.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" KISSFFT_STATIC)
|
13 |
+
|
14 |
+
vcpkg_check_features(
|
15 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
16 |
+
FEATURES
|
17 |
+
openmp KISSFFT_OPENMP
|
18 |
+
tools KISSFFT_TOOLS
|
19 |
+
)
|
20 |
+
|
21 |
+
if("tools" IN_LIST FEATURES)
|
22 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
set(datatypes float double int16_t int32_t)
|
26 |
+
|
27 |
+
foreach(datatype IN LISTS datatypes)
|
28 |
+
vcpkg_cmake_configure(
|
29 |
+
SOURCE_PATH ${SOURCE_PATH}
|
30 |
+
OPTIONS
|
31 |
+
-DKISSFFT_DATATYPE=${datatype}
|
32 |
+
-DKISSFFT_PKGCONFIG=ON
|
33 |
+
-DKISSFFT_TEST=OFF
|
34 |
+
-DKISSFFT_STATIC=${KISSFFT_STATIC}
|
35 |
+
${FEATURE_OPTIONS}
|
36 |
+
LOGFILE_BASE "config-${TARGET_TRIPLET}-${datatype}"
|
37 |
+
)
|
38 |
+
|
39 |
+
vcpkg_cmake_build(
|
40 |
+
LOGFILE_BASE "install-${TARGET_TRIPLET}-${datatype}"
|
41 |
+
TARGET install
|
42 |
+
)
|
43 |
+
|
44 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/kissfft")
|
45 |
+
|
46 |
+
vcpkg_copy_pdbs()
|
47 |
+
endforeach()
|
48 |
+
|
49 |
+
vcpkg_fixup_pkgconfig()
|
50 |
+
|
51 |
+
if("tools" IN_LIST FEATURES)
|
52 |
+
set(tool_names)
|
53 |
+
|
54 |
+
foreach(datatype IN LISTS datatypes)
|
55 |
+
if("openmp" IN_LIST FEATURES)
|
56 |
+
list(APPEND tool_names
|
57 |
+
"fastconv-${datatype}-openmp"
|
58 |
+
"fastconvr-${datatype}-openmp"
|
59 |
+
"fft-${datatype}-openmp"
|
60 |
+
"psdpng-${datatype}-openmp"
|
61 |
+
)
|
62 |
+
else()
|
63 |
+
list(APPEND tool_names
|
64 |
+
"fastconv-${datatype}"
|
65 |
+
"fastconvr-${datatype}"
|
66 |
+
"fft-${datatype}"
|
67 |
+
"psdpng-${datatype}"
|
68 |
+
)
|
69 |
+
endif()
|
70 |
+
endforeach()
|
71 |
+
|
72 |
+
vcpkg_copy_tools(
|
73 |
+
TOOL_NAMES ${tool_names}
|
74 |
+
AUTO_CLEAN
|
75 |
+
)
|
76 |
+
endif()
|
77 |
+
|
78 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
79 |
+
|
80 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
81 |
+
vcpkg_replace_string(
|
82 |
+
"${CURRENT_PACKAGES_DIR}/include/kissfft/kiss_fft.h"
|
83 |
+
"#ifdef KISS_FFT_SHARED"
|
84 |
+
"#if 1 //#ifdef KISS_FFT_SHARED"
|
85 |
+
)
|
86 |
+
endif()
|
87 |
+
|
88 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/kissfft")
|
89 |
+
|
90 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
cc-multilingual-main/cc_net/vcpkg/ports/kissfft/usage
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
kissfft provides CMake targets:
|
2 |
+
|
3 |
+
# Using distinct targets
|
4 |
+
find_package(kissfft CONFIG REQUIRED)
|
5 |
+
target_link_libraries(main PRIVATE kissfft::kissfft-float)
|
6 |
+
# Alternative targets: kissfft::kissfft-double, kissfft::int16_t, kissfft::int32_t
|
7 |
+
|
8 |
+
# Using a distinct package component
|
9 |
+
find_package(kissfft CONFIG REQUIRED COMPONENTS float)
|
10 |
+
target_link_libraries(main PRIVATE kissfft::kissfft)
|
11 |
+
# Alternative components: double, int16_t, int32_t
|
cc-multilingual-main/cc_net/vcpkg/ports/kissfft/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "kissfft",
|
3 |
+
"version": "131.1.0",
|
4 |
+
"description": "A Fast Fourier Transform (FFT) library that tries to Keep it Simple, Stupid",
|
5 |
+
"homepage": "https://github.com/mborgerding/kissfft",
|
6 |
+
"license": "BSD-3-Clause",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"openmp": {
|
19 |
+
"description": "Build kissfft with OpenMP support",
|
20 |
+
"supports": "!windows"
|
21 |
+
},
|
22 |
+
"tools": {
|
23 |
+
"description": "Build kissfft tools",
|
24 |
+
"supports": "linux | osx",
|
25 |
+
"dependencies": [
|
26 |
+
"libpng"
|
27 |
+
]
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libsmacker/CMakeLists.txt
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.20)
|
2 |
+
project(libsmacker C)
|
3 |
+
|
4 |
+
option(LIBSMACKER_BUILD_TOOLS "Build smk2avi and driver executables" OFF)
|
5 |
+
|
6 |
+
add_library(libsmacker smacker.c)
|
7 |
+
|
8 |
+
if(WIN32 AND BUILD_SHARED_LIBS)
|
9 |
+
target_sources(libsmacker PRIVATE smacker.def)
|
10 |
+
endif()
|
11 |
+
|
12 |
+
if(MSVC)
|
13 |
+
target_compile_definitions(libsmacker PRIVATE -D_CRT_SECURE_NO_WARNINGS)
|
14 |
+
endif()
|
15 |
+
|
16 |
+
target_include_directories(libsmacker PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)
|
17 |
+
set_target_properties(libsmacker PROPERTIES PUBLIC_HEADER "smacker.h")
|
18 |
+
|
19 |
+
install(TARGETS libsmacker
|
20 |
+
EXPORT libsmackerTargets
|
21 |
+
PUBLIC_HEADER DESTINATION include
|
22 |
+
RUNTIME DESTINATION bin
|
23 |
+
LIBRARY DESTINATION lib
|
24 |
+
ARCHIVE DESTINATION lib
|
25 |
+
)
|
26 |
+
|
27 |
+
install(EXPORT libsmackerTargets
|
28 |
+
FILE unofficial-libsmacker-config.cmake
|
29 |
+
NAMESPACE unofficial::libsmacker::
|
30 |
+
DESTINATION share/unofficial-libsmacker
|
31 |
+
)
|
32 |
+
|
33 |
+
if(LIBSMACKER_BUILD_TOOLS)
|
34 |
+
add_executable(driver driver.c)
|
35 |
+
target_include_directories(driver PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
|
36 |
+
target_link_libraries(driver libsmacker)
|
37 |
+
install(TARGETS driver RUNTIME DESTINATION bin)
|
38 |
+
|
39 |
+
add_executable(smk2avi smk2avi.c)
|
40 |
+
target_include_directories(driver PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
|
41 |
+
target_link_libraries(smk2avi libsmacker)
|
42 |
+
install(TARGETS smk2avi RUNTIME DESTINATION bin)
|
43 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libsmacker/portfile.cmake
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_sourceforge(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libsmacker
|
4 |
+
REF libsmacker-1.2
|
5 |
+
FILENAME "libsmacker-1.2.0r43.tar.gz"
|
6 |
+
SHA512 1785b000884a6f93b621c1503adef100ac9b8c6e7ed5ef4d85b9ea4819715c40f9af3d930490b33ca079f531103acc69de2a800756ed7678c820ff155f86aaeb
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
10 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/smacker.def" DESTINATION "${SOURCE_PATH}")
|
11 |
+
|
12 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
tools LIBSMACKER_BUILD_TOOLS
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
OPTIONS
|
20 |
+
${FEATURE_OPTIONS}
|
21 |
+
OPTIONS_DEBUG
|
22 |
+
-DLIBSMACKER_BUILD_TOOLS=OFF
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-libsmacker)
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE
|
30 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
31 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
32 |
+
)
|
33 |
+
|
34 |
+
if("tools" IN_LIST FEATURES)
|
35 |
+
vcpkg_copy_tools(TOOL_NAMES driver smk2avi AUTO_CLEAN)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
cc-multilingual-main/cc_net/vcpkg/ports/libsmacker/smacker.def
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
LIBRARY libsmacker
|
2 |
+
EXPORTS
|
3 |
+
smk_open_file
|
4 |
+
smk_open_filepointer
|
5 |
+
smk_open_memory
|
6 |
+
smk_close
|
7 |
+
smk_info_all
|
8 |
+
smk_info_video
|
9 |
+
smk_info_audio
|
10 |
+
smk_enable_all
|
11 |
+
smk_enable_video
|
12 |
+
smk_enable_audio
|
13 |
+
smk_get_palette
|
14 |
+
smk_get_video
|
15 |
+
smk_get_audio
|
16 |
+
smk_get_audio_size
|
17 |
+
smk_first
|
18 |
+
smk_next
|
19 |
+
smk_seek_keyframe
|
cc-multilingual-main/cc_net/vcpkg/ports/libsmacker/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsmacker",
|
3 |
+
"version": "1.2.0",
|
4 |
+
"description": "libsmacker is a cross-platform C library which can be used for decoding Smacker Video files produced by RAD Game Tools",
|
5 |
+
"homepage": "https://libsmacker.sourceforge.net",
|
6 |
+
"license": "LGPL-2.1-or-later",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"tools": {
|
19 |
+
"description": "Build driver (dump tool) and smk2avi"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/mujs/CMakeLists.txt
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.25)
|
2 |
+
project(mujs C)
|
3 |
+
|
4 |
+
set(LINK_LIBRARIES "")
|
5 |
+
set(PC_LIBS_PRIVATE "")
|
6 |
+
|
7 |
+
if(MSVC)
|
8 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
9 |
+
else()
|
10 |
+
find_library(HAVE_LIBM NAMES m)
|
11 |
+
if(HAVE_LIBM)
|
12 |
+
list(APPEND LINK_LIBRARIES m)
|
13 |
+
string(APPEND PC_LIBS_PRIVATE " -lm")
|
14 |
+
endif()
|
15 |
+
endif()
|
16 |
+
|
17 |
+
file(GLOB mujs_sources js*.c utf*.c regexp.c)
|
18 |
+
|
19 |
+
add_library(mujs ${mujs_sources})
|
20 |
+
|
21 |
+
target_include_directories(mujs
|
22 |
+
PUBLIC
|
23 |
+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
|
24 |
+
"$<INSTALL_INTERFACE:include>"
|
25 |
+
)
|
26 |
+
|
27 |
+
target_link_libraries(mujs PRIVATE ${LINK_LIBRARIES})
|
28 |
+
|
29 |
+
install(
|
30 |
+
TARGETS mujs
|
31 |
+
EXPORT unofficial-mujs-targets
|
32 |
+
RUNTIME DESTINATION bin
|
33 |
+
LIBRARY DESTINATION lib
|
34 |
+
ARCHIVE DESTINATION lib
|
35 |
+
)
|
36 |
+
install(
|
37 |
+
EXPORT unofficial-mujs-targets
|
38 |
+
FILE unofficial-mujs-config.cmake
|
39 |
+
NAMESPACE unofficial::mujs::
|
40 |
+
DESTINATION "share/unofficial-mujs"
|
41 |
+
)
|
42 |
+
|
43 |
+
include(CMakePackageConfigHelpers)
|
44 |
+
write_basic_package_version_file(unofficial-mujs-config-version.cmake
|
45 |
+
VERSION ${PACKAGE_VERSION}
|
46 |
+
COMPATIBILITY AnyNewerVersion
|
47 |
+
)
|
48 |
+
install(
|
49 |
+
FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-mujs-config-version.cmake"
|
50 |
+
DESTINATION "share/unofficial-mujs"
|
51 |
+
)
|
52 |
+
|
53 |
+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/mujs.pc" "${CMAKE_CURRENT_BINARY_DIR}/mujs.pc" @ONLY)
|
54 |
+
install(
|
55 |
+
FILES "${CMAKE_CURRENT_BINARY_DIR}/mujs.pc"
|
56 |
+
DESTINATION "lib/pkgconfig"
|
57 |
+
)
|
58 |
+
|
59 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
60 |
+
install(FILES mujs.h DESTINATION include)
|
61 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/mujs/mujs.pc
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
prefix=${pcfiledir}/../..
|
2 |
+
exec_prefix=${prefix}
|
3 |
+
libdir=${exec_prefix}/lib
|
4 |
+
includedir=${prefix}/include
|
5 |
+
|
6 |
+
Name: mujs
|
7 |
+
Description: MuJS embeddable Javascript interpreter
|
8 |
+
Version: @PACKAGE_VERSION@
|
9 |
+
Cflags: -I${includedir}
|
10 |
+
Libs: -L${libdir} -lmujs
|
11 |
+
Libs.private: @PC_LIBS_PRIVATE@
|
cc-multilingual-main/cc_net/vcpkg/ports/mujs/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO ccxvii/mujs
|
8 |
+
REF "${VERSION}"
|
9 |
+
SHA512 0806684be5e6dc3cb7305355ab7c7babbfd3fd5bbd22515659a88a82c25f3f4b6af14f7ca07bacd154823b19110b749bba68311c9f317dd684e0fd5628ece573
|
10 |
+
HEAD_REF master
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/mujs.pc" DESTINATION "${SOURCE_PATH}")
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
"-DPACKAGE_VERSION=${VERSION}"
|
20 |
+
OPTIONS_DEBUG
|
21 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
vcpkg_fixup_pkgconfig()
|
26 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-mujs)
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
30 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
cc-multilingual-main/cc_net/vcpkg/ports/mujs/usage
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
mujs can be imported via CMake FindPkgConfig module:
|
2 |
+
|
3 |
+
find_package(PkgConfig)
|
4 |
+
pkg_check_modules(MUJS REQUIRED IMPORTED_TARGET mujs)
|
5 |
+
|
6 |
+
target_link_libraries(main PRIVATE PkgConfig::MUJS)
|
cc-multilingual-main/cc_net/vcpkg/ports/mujs/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mujs",
|
3 |
+
"version": "1.3.4",
|
4 |
+
"description": "An embeddable Javascript interpreter in C",
|
5 |
+
"homepage": "https://github.com/ccxvii/mujs",
|
6 |
+
"license": "ISC",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/opencascade/dependencies.patch
ADDED
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 8690528..834ca79 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -605,7 +605,8 @@ if (CAN_USE_FREETYPE)
|
6 |
+
if (USE_FREETYPE)
|
7 |
+
message (STATUS "Info: FreeType is used by OCCT")
|
8 |
+
add_definitions (-DHAVE_FREETYPE)
|
9 |
+
- OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/freetype")
|
10 |
+
+ find_package(Freetype MODULE REQUIRED)
|
11 |
+
+ set(CSF_FREETYPE Freetype::Freetype)
|
12 |
+
else()
|
13 |
+
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_FREETYPE")
|
14 |
+
OCCT_CHECK_AND_UNSET ("3RDPARTY_FREETYPE_INCLUDE_DIR_freetype2")
|
15 |
+
@@ -622,7 +623,9 @@ endif()
|
16 |
+
if (USE_VTK)
|
17 |
+
add_definitions (-DHAVE_VTK)
|
18 |
+
set (OCCT_VTK_USED_TARGETS "" CACHE INTERNAL "" FORCE)
|
19 |
+
- OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/vtk")
|
20 |
+
+ find_package(VTK REQUIRED)
|
21 |
+
+ set(CSF_VTK VTK::CommonCore)
|
22 |
+
+ set(IS_VTK_9XX 1)
|
23 |
+
else()
|
24 |
+
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_VTK")
|
25 |
+
|
26 |
+
@@ -638,7 +641,8 @@ endif()
|
27 |
+
if (CAN_USE_FREEIMAGE)
|
28 |
+
if (USE_FREEIMAGE)
|
29 |
+
add_definitions (-DHAVE_FREEIMAGE)
|
30 |
+
- OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/freeimage")
|
31 |
+
+ find_package(freeimage CONFIG REQUIRED)
|
32 |
+
+ set(CSF_FreeImagePlus freeimage::FreeImagePlus)
|
33 |
+
else()
|
34 |
+
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_FREEIMAGE")
|
35 |
+
OCCT_CHECK_AND_UNSET ("INSTALL_FREEIMAGE")
|
36 |
+
@@ -739,7 +743,8 @@ endif()
|
37 |
+
if (NOT DEFINED ANDROID AND CAN_USE_TBB)
|
38 |
+
if (USE_TBB)
|
39 |
+
add_definitions (-DHAVE_TBB)
|
40 |
+
- OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/tbb")
|
41 |
+
+ find_package(TBB CONFIG REQUIRED)
|
42 |
+
+ set(CSF_TBB TBB::tbb TBB::tbbmalloc)
|
43 |
+
else()
|
44 |
+
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_TBB")
|
45 |
+
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_TBBMALLOC")
|
46 |
+
@@ -759,7 +764,8 @@ OCCT_IS_PRODUCT_REQUIRED (CSF_RapidJSON CAN_USE_RAPIDJSON)
|
47 |
+
if (CAN_USE_RAPIDJSON)
|
48 |
+
if (USE_RAPIDJSON)
|
49 |
+
add_definitions (-DHAVE_RAPIDJSON)
|
50 |
+
- OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/rapidjson")
|
51 |
+
+ find_package(RapidJSON CONFIG REQUIRED)
|
52 |
+
+ set(CSF_RapidJSON rapidjson)
|
53 |
+
else()
|
54 |
+
OCCT_CHECK_AND_UNSET_GROUP ("3RDPARTY_RAPIDJSON")
|
55 |
+
OCCT_CHECK_AND_UNSET ("INSTALL_RAPIDJSON")
|
56 |
+
diff --git a/adm/cmake/occt_toolkit.cmake b/adm/cmake/occt_toolkit.cmake
|
57 |
+
index c939915..f707e00 100644
|
58 |
+
--- a/adm/cmake/occt_toolkit.cmake
|
59 |
+
+++ b/adm/cmake/occt_toolkit.cmake
|
60 |
+
@@ -475,11 +475,11 @@ else()
|
61 |
+
endif()
|
62 |
+
endif()
|
63 |
+
|
64 |
+
-if (BUILD_SHARED_LIBS OR EXECUTABLE_PROJECT)
|
65 |
+
+if (1)
|
66 |
+
if(IS_VTK_9XX)
|
67 |
+
string (REGEX REPLACE "vtk" "VTK::" USED_TOOLKITS_BY_CURRENT_PROJECT "${USED_TOOLKITS_BY_CURRENT_PROJECT}")
|
68 |
+
endif()
|
69 |
+
- target_link_libraries (${PROJECT_NAME} ${USED_TOOLKITS_BY_CURRENT_PROJECT} ${USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT})
|
70 |
+
+ target_link_libraries (${PROJECT_NAME} PRIVATE ${USED_TOOLKITS_BY_CURRENT_PROJECT} ${USED_EXTERNAL_LIBS_BY_CURRENT_PROJECT})
|
71 |
+
endif()
|
72 |
+
|
73 |
+
if (USE_QT)
|
74 |
+
diff --git a/adm/templates/OpenCASCADEConfig.cmake.in b/adm/templates/OpenCASCADEConfig.cmake.in
|
75 |
+
index e391ddf..9cc3d49 100644
|
76 |
+
--- a/adm/templates/OpenCASCADEConfig.cmake.in
|
77 |
+
+++ b/adm/templates/OpenCASCADEConfig.cmake.in
|
78 |
+
@@ -5,6 +5,23 @@
|
79 |
+
# This file is configured by OpenCASCADE.
|
80 |
+
#
|
81 |
+
|
82 |
+
+include(CMakeFindDependencyMacro)
|
83 |
+
+if("@USE_FREEIMAGE@")
|
84 |
+
+ find_dependency(freeimage CONFIG)
|
85 |
+
+endif()
|
86 |
+
+if("@USE_FREETYPE@")
|
87 |
+
+ find_dependency(Freetype MODULE)
|
88 |
+
+endif()
|
89 |
+
+if("@USE_RAPIDJSON@")
|
90 |
+
+ find_package(RapidJSON CONFIG REQUIRED)
|
91 |
+
+endif()
|
92 |
+
+if("@USE_TBB@")
|
93 |
+
+ find_dependency(TBB CONFIG)
|
94 |
+
+endif()
|
95 |
+
+if("@USE_VTK@")
|
96 |
+
+ find_dependency(VTK REQUIRED)
|
97 |
+
+endif()
|
98 |
+
+
|
99 |
+
if(OpenCASCADE_ALREADY_INCLUDED)
|
100 |
+
return()
|
101 |
+
endif()
|
102 |
+
diff --git a/src/Image/Image_AlienPixMap.cxx b/src/Image/Image_AlienPixMap.cxx
|
103 |
+
index f869e8f..538d5b9 100644
|
104 |
+
--- a/src/Image/Image_AlienPixMap.cxx
|
105 |
+
+++ b/src/Image/Image_AlienPixMap.cxx
|
106 |
+
@@ -21,7 +21,6 @@
|
107 |
+
#include <FreeImage.h>
|
108 |
+
|
109 |
+
#ifdef _MSC_VER
|
110 |
+
- #pragma comment( lib, "FreeImage.lib" )
|
111 |
+
#endif
|
112 |
+
#elif defined(HAVE_WINCODEC)
|
113 |
+
#include <wincodec.h>
|
cc-multilingual-main/cc_net/vcpkg/ports/opencascade/drop-bin-letter-d.patch
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index d2c4e570..8eac318c 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -244,7 +244,6 @@ set (CMAKE_INSTALL_PREFIX "${INSTALL_DIR}" CACHE INTERNAL "" FORCE)
|
6 |
+
|
7 |
+
set (BIN_LETTER "")
|
8 |
+
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
9 |
+
- set (BIN_LETTER "d")
|
10 |
+
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
|
11 |
+
set (BIN_LETTER "i")
|
12 |
+
endif()
|
13 |
+
@@ -917,6 +916,7 @@ if (WIN32)
|
14 |
+
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE "${CMAKE_BINARY_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
|
15 |
+
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELWITHDEBINFO "${CMAKE_BINARY_DIR}/${OS_WITH_BIT}/${COMPILER}/bini")
|
16 |
+
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/${OS_WITH_BIT}/${COMPILER}/bind")
|
17 |
+
+ set (CMAKE_PDB_OUTPUT_DIRECTORY_DEBUG "${CMAKE_BINARY_DIR}/${OS_WITH_BIT}/${COMPILER}/bin")
|
18 |
+
endif()
|
19 |
+
|
20 |
+
string(TIMESTAMP CURRENT_TIME "%H:%M:%S")
|
21 |
+
diff --git a/adm/cmake/occt_macros.cmake b/adm/cmake/occt_macros.cmake
|
22 |
+
index 9fd3ec4c..dc9ff18b 100644
|
23 |
+
--- a/adm/cmake/occt_macros.cmake
|
24 |
+
+++ b/adm/cmake/occt_macros.cmake
|
25 |
+
@@ -609,7 +609,7 @@ macro (OCCT_INSERT_CODE_FOR_TARGET)
|
26 |
+
elseif (\"\${CMAKE_INSTALL_CONFIG_NAME}\" MATCHES \"^([Rr][Ee][Ll][Ww][Ii][Tt][Hh][Dd][Ee][Bb][Ii][Nn][Ff][Oo])$\")
|
27 |
+
set (OCCT_INSTALL_BIN_LETTER \"i\")
|
28 |
+
elseif (\"\${CMAKE_INSTALL_CONFIG_NAME}\" MATCHES \"^([Dd][Ee][Bb][Uu][Gg])$\")
|
29 |
+
- set (OCCT_INSTALL_BIN_LETTER \"d\")
|
30 |
+
+ set (OCCT_INSTALL_BIN_LETTER \"\")
|
31 |
+
endif()")
|
32 |
+
endmacro()
|
33 |
+
|
34 |
+
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
|
35 |
+
index beb934f7..95cec74a 100644
|
36 |
+
--- a/tools/CMakeLists.txt
|
37 |
+
+++ b/tools/CMakeLists.txt
|
38 |
+
@@ -172,7 +172,6 @@ set (CMAKE_INSTALL_PREFIX "${INSTALL_DIR}" CACHE INTERNAL "" FORCE)
|
39 |
+
|
40 |
+
set (BIN_LETTER "")
|
41 |
+
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
42 |
+
- set (BIN_LETTER "d")
|
43 |
+
elseif ("${CMAKE_BUILD_TYPE}" STREQUAL "RelWithDebInfo")
|
44 |
+
set (BIN_LETTER "i")
|
45 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/opencascade/fix-pdb-find.patch
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/adm/cmake/cotire.cmake b/adm/cmake/cotire.cmake
|
2 |
+
index acdca71a9f..aa41f2c8b8 100644
|
3 |
+
--- a/adm/cmake/cotire.cmake
|
4 |
+
+++ b/adm/cmake/cotire.cmake
|
5 |
+
@@ -3291,6 +3291,7 @@ function (cotire_setup_unity_build_target _languages _configurations _target)
|
6 |
+
OSX_ARCHITECTURES OSX_ARCHITECTURES_<CONFIG> PRIVATE_HEADER PUBLIC_HEADER RESOURCE XCTEST
|
7 |
+
IOS_INSTALL_COMBINED XCODE_EXPLICIT_FILE_TYPE XCODE_PRODUCT_TYPE)
|
8 |
+
# copy Windows platform specific stuff
|
9 |
+
+ if (BUILD_SHARED_LIBS)
|
10 |
+
cotire_copy_set_properties("${_configurations}" TARGET ${_target} ${_unityTargetName}
|
11 |
+
GNUtoMS
|
12 |
+
COMPILE_PDB_NAME COMPILE_PDB_NAME_<CONFIG>
|
13 |
+
@@ -3306,6 +3307,7 @@ function (cotire_setup_unity_build_target _languages _configurations _target)
|
14 |
+
WIN32_EXECUTABLE WINDOWS_EXPORT_ALL_SYMBOLS
|
15 |
+
DEPLOYMENT_REMOTE_DIRECTORY VS_CONFIGURATION_TYPE
|
16 |
+
VS_SDK_REFERENCES VS_USER_PROPS VS_DEBUGGER_WORKING_DIRECTORY)
|
17 |
+
+ endif()
|
18 |
+
# copy Android platform specific stuff
|
19 |
+
cotire_copy_set_properties("${_configurations}" TARGET ${_target} ${_unityTargetName}
|
20 |
+
ANDROID_API ANDROID_API_MIN ANDROID_GUI
|
21 |
+
diff --git a/adm/cmake/occt_toolkit.cmake b/adm/cmake/occt_toolkit.cmake
|
22 |
+
index c9399159f1..ce74b918df 100644
|
23 |
+
--- a/adm/cmake/occt_toolkit.cmake
|
24 |
+
+++ b/adm/cmake/occt_toolkit.cmake
|
25 |
+
@@ -278,7 +278,7 @@ else()
|
26 |
+
# endif()
|
27 |
+
endif()
|
28 |
+
|
29 |
+
- if (MSVC)
|
30 |
+
+ if (MSVC AND BUILD_SHARED_LIBS)
|
31 |
+
if (BUILD_FORCE_RelWithDebInfo)
|
32 |
+
set (aReleasePdbConf "Release")
|
33 |
+
else()
|
cc-multilingual-main/cc_net/vcpkg/ports/opencascade/install-include-dir.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index a80e39e6..bb6ab2db 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1273,6 +1273,11 @@ foreach (OCCT_MODULE ${OCCT_MODULES})
|
6 |
+
endforeach()
|
7 |
+
set (OCCT_MODULES_ENABLED ${OCCT_MODULES_ENABLED_SORTED})
|
8 |
+
|
9 |
+
+foreach (OCCT_LIBRARY IN LISTS OCCT_LIBRARIES)
|
10 |
+
+ target_include_directories(${OCCT_LIBRARY} INTERFACE $<INSTALL_INTERFACE:include/opencascade>) # OpenCASCADE_INCLUDE_DIR
|
11 |
+
+ target_include_directories(${OCCT_LIBRARY} INTERFACE $<INSTALL_INTERFACE:include>) # vcpkg lock-in
|
12 |
+
+endforeach()
|
13 |
+
+
|
14 |
+
# Add all targets to the build-tree export set
|
15 |
+
export (TARGETS ${OCCT_LIBRARIES} FILE "${CMAKE_BINARY_DIR}/OpenCASCADETargets.cmake")
|
16 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/opencascade/portfile.cmake
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
string(REPLACE "." "_" VERSION_STR "V${VERSION}")
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO Open-Cascade-SAS/OCCT
|
5 |
+
REF "${VERSION_STR}"
|
6 |
+
SHA512 af176cbd105c49949282c16bb6e30f69167bc6c00a50e0ae69aea555815d47ac3c4540c233e596c5add7cb846c2b33d7be267d8e02472286e758b662b4a652ab
|
7 |
+
HEAD_REF master
|
8 |
+
PATCHES
|
9 |
+
dependencies.patch
|
10 |
+
drop-bin-letter-d.patch
|
11 |
+
fix-pdb-find.patch
|
12 |
+
fix-install-prefix-path.patch
|
13 |
+
install-include-dir.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
17 |
+
set(BUILD_TYPE "Shared")
|
18 |
+
else()
|
19 |
+
set(BUILD_TYPE "Static")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
23 |
+
FEATURES
|
24 |
+
freeimage USE_FREEIMAGE
|
25 |
+
freetype USE_FREETYPE
|
26 |
+
rapidjson USE_RAPIDJSON
|
27 |
+
samples INSTALL_SAMPLES
|
28 |
+
tbb USE_TBB
|
29 |
+
vtk USE_VTK
|
30 |
+
)
|
31 |
+
|
32 |
+
# We turn off BUILD_MODULE_Draw as it requires TCL 8.6 and TK 8.6 specifically which conflicts with vcpkg only having TCL 9.0
|
33 |
+
# And pre-built ActiveTCL binaries are behind a marketing wall :(
|
34 |
+
# We use the Unix install layout for Windows as it matches vcpkg
|
35 |
+
vcpkg_cmake_configure(
|
36 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
37 |
+
OPTIONS
|
38 |
+
${FEATURE_OPTIONS}
|
39 |
+
-DBUILD_LIBRARY_TYPE=${BUILD_TYPE}
|
40 |
+
-DBUILD_MODULE_Draw=OFF
|
41 |
+
-DBUILD_DOC_Overview=OFF
|
42 |
+
-DBUILD_MODULE_DETools=OFF
|
43 |
+
-DINSTALL_DIR_LAYOUT=Unix
|
44 |
+
-DINSTALL_DIR_DOC=share/trash
|
45 |
+
-DINSTALL_DIR_SCRIPT=share/trash # not relocatable
|
46 |
+
-DINSTALL_TEST_CASES=OFF
|
47 |
+
-DUSE_TK=OFF
|
48 |
+
OPTIONS_DEBUG
|
49 |
+
-DINSTALL_SAMPLES=OFF
|
50 |
+
)
|
51 |
+
|
52 |
+
vcpkg_cmake_install()
|
53 |
+
|
54 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/opencascade)
|
55 |
+
|
56 |
+
#make occt includes relative to source_file
|
57 |
+
file(GLOB extra_headers
|
58 |
+
LIST_DIRECTORIES false
|
59 |
+
RELATIVE "${CURRENT_PACKAGES_DIR}/include/opencascade"
|
60 |
+
"${CURRENT_PACKAGES_DIR}/include/opencascade/*.h"
|
61 |
+
)
|
62 |
+
list(JOIN extra_headers "|" extra_headers)
|
63 |
+
file(GLOB files "${CURRENT_PACKAGES_DIR}/include/opencascade/*.[hgl]xx")
|
64 |
+
foreach(file_name IN LISTS files)
|
65 |
+
file(READ "${file_name}" filedata)
|
66 |
+
string(REGEX REPLACE "(# *include) <([a-zA-Z0-9_]*[.][hgl]xx|${extra_headers})>" [[\1 "\2"]] filedata "${filedata}")
|
67 |
+
file(WRITE "${file_name}" "${filedata}")
|
68 |
+
endforeach()
|
69 |
+
|
70 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
71 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
72 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/opencascade/samples/qt")
|
73 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/trash")
|
74 |
+
|
75 |
+
vcpkg_install_copyright(
|
76 |
+
FILE_LIST
|
77 |
+
"${SOURCE_PATH}/LICENSE_LGPL_21.txt"
|
78 |
+
"${SOURCE_PATH}/OCCT_LGPL_EXCEPTION.txt"
|
79 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/skia/disable-dev-test.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/BUILD.gn b/BUILD.gn
|
2 |
+
index 3691123..8682b8e 100644
|
3 |
+
--- a/BUILD.gn
|
4 |
+
+++ b/BUILD.gn
|
5 |
+
@@ -97,7 +97,7 @@ config("skia_private") {
|
6 |
+
if (is_skia_dev_build && !is_wasm) {
|
7 |
+
defines += [
|
8 |
+
"SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=1",
|
9 |
+
- "GR_TEST_UTILS=1",
|
10 |
+
+ "GR_TEST_UTILS=0",
|
11 |
+
]
|
12 |
+
if (skia_enable_graphite) {
|
13 |
+
defines += [ "GRAPHITE_TEST_UTILS=1" ]
|
cc-multilingual-main/cc_net/vcpkg/ports/skia/disable-msvc-env-setup.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gn/toolchain/BUILD.gn b/gn/toolchain/BUILD.gn
|
2 |
+
index ba85c3d..901ba99 100644
|
3 |
+
--- a/gn/toolchain/BUILD.gn
|
4 |
+
+++ b/gn/toolchain/BUILD.gn
|
5 |
+
@@ -94,6 +94,7 @@ toolchain("msvc") {
|
6 |
+
# ARM64 compiler is incomplete - it relies on DLLs located in the host toolchain directory.
|
7 |
+
env_setup = "$shell set \"PATH=%PATH%;$win_vc\\Tools\\MSVC\\$win_toolchain_version\\bin\\HostX64\\x64\" && "
|
8 |
+
}
|
9 |
+
+ env_setup = "" # overwrite
|
10 |
+
|
11 |
+
cl_m32_flag = ""
|
12 |
+
|