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/bext-sml2/portfile.cmake +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/bext-sml2/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cld3/fix-build.patch +83 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cld3/portfile.cmake +34 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cld3/unofficial-cld3Config.cmake +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cld3/unofficial-export.patch +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cld3/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/coinutils/coinutils.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/coinutils/coinutils2.patch +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/coinutils/portfile.cmake +47 -0
- cc-multilingual-main/cc_net/vcpkg/ports/coinutils/vcpkg.json +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cppxaml/portfile.cmake +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cppxaml/vcpkg.json +9 -0
- cc-multilingual-main/cc_net/vcpkg/ports/crow/portfile.cmake +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/crow/vcpkg.json +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dirent/portfile.cmake +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dirent/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ed25519/portfile.cmake +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/highfive/fix-error-C1128.patch +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/highfive/portfile.cmake +58 -0
- cc-multilingual-main/cc_net/vcpkg/ports/highfive/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/highfive/vcpkg.json +50 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jbig2dec/CMakeLists.txt +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jbig2dec/portfile.cmake +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jbig2dec/vcpkg.json +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/json-rpc-cxx/fix-config.patch +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/json-rpc-cxx/portfile.cmake +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/json-rpc-cxx/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/json-rpc-cxx/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/klein/usage +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libgme/disable-player-and-demo.patch +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libgme/disable-static-zlib-hack.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libgme/portfile.cmake +66 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libgme/vcpkg.json +63 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsnoretoast/include_fix.patch +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libspnav/portfile.cmake +43 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libspnav/vcpkg.json +8 -0
- cc-multilingual-main/cc_net/vcpkg/ports/loguru/CMakeLists.txt +55 -0
- cc-multilingual-main/cc_net/vcpkg/ports/loguru/copyright +3 -0
- cc-multilingual-main/cc_net/vcpkg/ports/loguru/loguruConfig.cmake.in +9 -0
- cc-multilingual-main/cc_net/vcpkg/ports/loguru/portfile.cmake +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/loguru/vcpkg.json +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lunarg-vulkantools/portfile.cmake +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lunarg-vulkantools/vcpkg.json +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mtlt/portfile.cmake +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mtlt/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mtlt/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/oatpp/fix-target.patch +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/oatpp/portfile.cmake +33 -0
- cc-multilingual-main/cc_net/vcpkg/ports/oatpp/vcpkg.json +18 -0
cc-multilingual-main/cc_net/vcpkg/ports/bext-sml2/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO boost-ext/sml2
|
5 |
+
REF df727871ec119343e68881d47a24ce69f9bbd841
|
6 |
+
SHA512 5a1ce9a6a6afb9504049a3e681d920c8b32394c5ffb6d635763488b8916dbcaf3390063ff0bae671729216f4eaea0f799bba7037aa922a1fc77ca9b0b1ac3a5b
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
file(INSTALL "${SOURCE_PATH}/sml2"
|
11 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include/boost"
|
12 |
+
)
|
13 |
+
|
14 |
+
# Handle copyright
|
15 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
cc-multilingual-main/cc_net/vcpkg/ports/bext-sml2/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bext-sml2",
|
3 |
+
"version-date": "2024-02-02",
|
4 |
+
"description": "Your scalable C++20 one header only State Machine Library with no dependencies",
|
5 |
+
"homepage": "https://github.com/boost-ext/sml2",
|
6 |
+
"license": "BSL-1.0"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cld3/fix-build.patch
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 2fa3908..37e9944 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,11 +1,11 @@
|
6 |
+
# This cmake scripts only builds a static cld3 lib and the unittests.
|
7 |
+
|
8 |
+
-project(cld3)
|
9 |
+
|
10 |
+
# Old versions of cmake dont search/find protobuf lite
|
11 |
+
cmake_minimum_required(VERSION 3.9)
|
12 |
+
+project(cld3)
|
13 |
+
|
14 |
+
-find_package(Protobuf REQUIRED)
|
15 |
+
+find_package(Protobuf CONFIG REQUIRED)
|
16 |
+
message(STATUS "Protobuf_FOUND= ${Protobuf_FOUND}")
|
17 |
+
message(STATUS "Protobuf_VERSION= ${Protobuf_VERSION}")
|
18 |
+
message(WARNING "Protobuf 2.5 and CLD3 seems happy together. This script does NOT check if your verison of protobuf is compatible.")
|
19 |
+
@@ -20,9 +20,6 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/misc/myprotobuf.cmake)
|
20 |
+
my_protobuf_generate_cpp(cld_3/protos PROTO_SRCS PROTO_HDRS src/feature_extractor.proto src/sentence.proto src/task_spec.proto)
|
21 |
+
message(STATUS "PROTO_HDRS= ${PROTO_HDRS}")
|
22 |
+
|
23 |
+
-add_definitions(-fPIC) # Position Independant Code
|
24 |
+
-add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
|
25 |
+
-add_definitions(-std=c++11) # Needed for std::to_string(), ...
|
26 |
+
|
27 |
+
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${Protobuf_INCLUDE_DIRS}) # needed to include generated pb headers
|
28 |
+
|
29 |
+
@@ -58,6 +55,10 @@ add_library(${PROJECT_NAME}
|
30 |
+
src/script_span/fixunicodevalue.cc
|
31 |
+
)
|
32 |
+
|
33 |
+
+target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
34 |
+
+target_link_libraries(${PROJECT_NAME} PUBLIC protobuf::libprotobuf-lite)
|
35 |
+
+
|
36 |
+
+if(BUILD_TESTS)
|
37 |
+
# unit tests exec:
|
38 |
+
add_executable(language_identifier_main src/language_identifier_main.cc)
|
39 |
+
target_link_libraries(language_identifier_main cld3 ${Protobuf_LITE_LIBRARIES})
|
40 |
+
@@ -67,3 +68,4 @@ target_link_libraries(getonescriptspan_test cld3 ${Protobuf_LITE_LIBRARIES})
|
41 |
+
|
42 |
+
add_executable(language_identifier_features_test src/language_identifier_features_test.cc)
|
43 |
+
target_link_libraries(language_identifier_features_test cld3 ${Protobuf_LITE_LIBRARIES})
|
44 |
+
+endif()
|
45 |
+
diff --git a/src/base.h b/src/base.h
|
46 |
+
index 20189e2..3c610e3 100644
|
47 |
+
--- a/src/base.h
|
48 |
+
+++ b/src/base.h
|
49 |
+
@@ -71,7 +71,7 @@ typedef unsigned short uint16; // NOLINT
|
50 |
+
typedef signed int char32;
|
51 |
+
#endif // SWIG
|
52 |
+
|
53 |
+
-#ifdef COMPILER_MSVC
|
54 |
+
+#ifdef _MSC_VER
|
55 |
+
typedef __int64 int64;
|
56 |
+
#else
|
57 |
+
typedef long long int64; // NOLINT
|
58 |
+
diff --git a/src/script_span/utf8statetable.cc b/src/script_span/utf8statetable.cc
|
59 |
+
index 8fcfb1e..87da972 100644
|
60 |
+
--- a/src/script_span/utf8statetable.cc
|
61 |
+
+++ b/src/script_span/utf8statetable.cc
|
62 |
+
@@ -17,7 +17,7 @@
|
63 |
+
// 32- or 16-bit Unicode values.
|
64 |
+
//
|
65 |
+
|
66 |
+
-#ifdef COMPILER_MSVC
|
67 |
+
+#ifdef _MSC_VER
|
68 |
+
// MSVC warns: warning C4309: 'initializing' : truncation of constant value
|
69 |
+
// But the value is in fact not truncated. 0xFF still comes out 0xFF at
|
70 |
+
// runtime.
|
71 |
+
diff --git a/src/sentence_features.h b/src/sentence_features.h
|
72 |
+
index cc0be88..e2e27d2 100644
|
73 |
+
--- a/src/sentence_features.h
|
74 |
+
+++ b/src/sentence_features.h
|
75 |
+
@@ -34,7 +34,7 @@ using WholeSentenceExtractor = FeatureExtractor<Sentence>;
|
76 |
+
// for clang's -Wundefined-var-template. However, MSVC has a bug which treats
|
77 |
+
// this declaration as a definition, leading to multiple definition errors, so
|
78 |
+
// omit this on MSVC.
|
79 |
+
-#if !defined(COMPILER_MSVC)
|
80 |
+
+#if !defined(_MSC_VER)
|
81 |
+
template <>
|
82 |
+
WholeSentenceFeature::Registry
|
83 |
+
*RegisterableClass<WholeSentenceFeature>::registry_;
|
cc-multilingual-main/cc_net/vcpkg/ports/cld3/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 google/cld3
|
8 |
+
REF b48dc46512566f5a2d41118c8c1116c4f96dc661
|
9 |
+
SHA512 c3650ffbf5855aaf04d03930f01c6efd76e1f2b2d47365348721f16531a14653ae5b3aff8fefa8e5fa1c769fdf1a9b441a88bc687f97f8c579b84f17c6984c9e
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
fix-build.patch
|
13 |
+
unofficial-export.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
vcpkg_copy_pdbs()
|
22 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-cld3Config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-cld3")
|
23 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/unofficial-cld3 PACKAGE_NAME unofficial-cld3)
|
24 |
+
|
25 |
+
file(GLOB PUBLIC_HEADER_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/src/*.h")
|
26 |
+
file(INSTALL ${PUBLIC_HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/cld3")
|
27 |
+
|
28 |
+
file(GLOB HEADERS_SCRIPT_SPAN_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/src/script_span/*.h")
|
29 |
+
file(INSTALL ${HEADERS_SCRIPT_SPAN_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/cld3/script_span")
|
30 |
+
|
31 |
+
file(GLOB HEADERS_PROTO_FILES LIST_DIRECTORIES false "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/cld_3/protos/*.h")
|
32 |
+
file(INSTALL ${HEADERS_PROTO_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/cld_3/protos")
|
33 |
+
|
34 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/cld3/unofficial-cld3Config.cmake
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include(CMakeFindDependencyMacro)
|
2 |
+
find_dependency(Protobuf)
|
3 |
+
|
4 |
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-cld3-targets.cmake")
|
cc-multilingual-main/cc_net/vcpkg/ports/cld3/unofficial-export.patch
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 37e9944..fb27632 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -57,6 +57,19 @@ add_library(${PROJECT_NAME}
|
6 |
+
|
7 |
+
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
|
8 |
+
target_link_libraries(${PROJECT_NAME} PUBLIC protobuf::libprotobuf-lite)
|
9 |
+
+target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:include>)
|
10 |
+
+
|
11 |
+
+install(TARGETS ${PROJECT_NAME}
|
12 |
+
+ EXPORT unofficial-cld3-targets
|
13 |
+
+ RUNTIME DESTINATION bin
|
14 |
+
+ LIBRARY DESTINATION lib
|
15 |
+
+ ARCHIVE DESTINATION lib
|
16 |
+
+)
|
17 |
+
+
|
18 |
+
+install(EXPORT unofficial-cld3-targets
|
19 |
+
+ NAMESPACE unofficial::cld3::
|
20 |
+
+ DESTINATION share/unofficial-cld3
|
21 |
+
+)
|
22 |
+
|
23 |
+
if(BUILD_TESTS)
|
24 |
+
# unit tests exec:
|
cc-multilingual-main/cc_net/vcpkg/ports/cld3/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cld3",
|
3 |
+
"version": "3.0.14",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Compact Language Detector v3",
|
6 |
+
"homepage": "https://github.com/google/cld3",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"dependencies": [
|
9 |
+
"protobuf",
|
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/coinutils/coinutils.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index f35c22949..8787a1c0b 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -10,6 +10,8 @@
|
6 |
+
|
7 |
+
AC_INIT([CoinUtils],[devel],[https://github.com/coin-or/CoinUtils/issues/new],[coin-or-coinutils],[https://github.com/coin-or/CoinUtils])
|
8 |
+
|
9 |
+
+AC_CONFIG_MACRO_DIR([m4])
|
10 |
+
+
|
11 |
+
AC_COPYRIGHT([
|
12 |
+
Copyright 2006 International Business Machines and others.
|
13 |
+
All Rights Reserved.
|
cc-multilingual-main/cc_net/vcpkg/ports/coinutils/coinutils2.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index 8787a1c0b..504019b78 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -96,8 +96,8 @@ AC_COINUTILS_MEMPOOL(4096,no)
|
6 |
+
# Collect information required to use component libraries.
|
7 |
+
|
8 |
+
AC_COIN_CHK_LAPACK(CoinUtilsLib)
|
9 |
+
-AC_COIN_CHK_PKG(Glpk,[CoinUtilsLib CoinUtilsTest],[coinglpk])
|
10 |
+
-AC_COIN_CHK_PKG(ASL,[CoinUtilsLib],[coinasl])
|
11 |
+
+AC_COIN_CHK_PKG(Glpk,[CoinUtilsLib CoinUtilsTest],[glpk])
|
12 |
+
+AC_COIN_CHK_PKG(ASL,[CoinUtilsLib],[asl])
|
13 |
+
AC_COIN_CHK_PKG(Sample,[],[coindatasample],[],dataonly)
|
14 |
+
AC_COIN_CHK_PKG(Netlib,[],[coindatanetlib],[],dataonly)
|
15 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/coinutils/portfile.cmake
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO coin-or/CoinUtils
|
4 |
+
REF aae9b0b807a920c41d7782d7bf2775afb17a12c6 # I don't trust the release tags. They seem to point to a different fork with an outdates file structure?
|
5 |
+
SHA512 a515e62846698bcc3df15aabcce89d9052e30dffe2112ab5eb54c0c5def199140bd25435ef17e453c873239ab63fd03dd4cee5e4c4bfae5521f549917e025efe
|
6 |
+
PATCHES coinutils.patch coinutils2.patch
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/share/coin-or-buildtools/" DESTINATION "${SOURCE_PATH}")
|
10 |
+
|
11 |
+
set(ENV{ACLOCAL} "aclocal -I \"${SOURCE_PATH}/BuildTools\"")
|
12 |
+
|
13 |
+
#--enable-msvc
|
14 |
+
set(options "")
|
15 |
+
if("glpk" IN_LIST FEATURES)
|
16 |
+
list(APPEND options "--with-glpk")
|
17 |
+
else()
|
18 |
+
list(APPEND options "--without-glpk")
|
19 |
+
endif()
|
20 |
+
|
21 |
+
vcpkg_configure_make(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
AUTOCONFIG
|
24 |
+
OPTIONS
|
25 |
+
${options}
|
26 |
+
--with-lapack
|
27 |
+
--without-netlib
|
28 |
+
--without-sample
|
29 |
+
--without-asl
|
30 |
+
#--enable-coinutils-threads # only with -lrt
|
31 |
+
#--enable-coinutils-bigindex # only for x64
|
32 |
+
--enable-relocatable
|
33 |
+
--disable-readline
|
34 |
+
)
|
35 |
+
|
36 |
+
vcpkg_install_make()
|
37 |
+
vcpkg_copy_pdbs()
|
38 |
+
vcpkg_fixup_pkgconfig()
|
39 |
+
|
40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
41 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
42 |
+
|
43 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/coin-or/CoinMpsIO.hpp" "\"glpk.h\"" "\"../glpk.h\"")
|
44 |
+
|
45 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/coinutils" RENAME copyright)
|
46 |
+
|
47 |
+
file(COPY "${SOURCE_PATH}/m4" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/coinutils/vcpkg.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "coinutils",
|
3 |
+
"version-date": "2023-02-02",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "CoinUtils (Coin-or Utilities) is an open-source collection of classes and functions that are generally useful to more than one COIN-OR project",
|
6 |
+
"homepage": "https://www.coin-or.org/",
|
7 |
+
"license": "EPL-2.0",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
"bzip2",
|
11 |
+
"coin-or-buildtools",
|
12 |
+
"lapack",
|
13 |
+
"zlib"
|
14 |
+
],
|
15 |
+
"features": {
|
16 |
+
"glpk": {
|
17 |
+
"description": "Build with Glpk",
|
18 |
+
"dependencies": [
|
19 |
+
{
|
20 |
+
"name": "glpk",
|
21 |
+
"default-features": false
|
22 |
+
}
|
23 |
+
]
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cppxaml/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO asklar/xaml-islands
|
5 |
+
REF 0.0.16
|
6 |
+
SHA512 30fba1ef9264bf2eeaf0e48898c6b138adef9ee98d758ac91bcc7f2c90e50f00ec35925705347c3fc5c84b97652caeece7b3854be5b468a02e51fed23eda8007
|
7 |
+
HEAD_REF main
|
8 |
+
)
|
9 |
+
|
10 |
+
file(INSTALL "${SOURCE_PATH}/inc/cppxaml" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
11 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/cppxaml/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cppxaml",
|
3 |
+
"version": "0.0.16",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "CppXaml is a library to facilitate usage of the XAML UI framework in C++ Windows apps.",
|
6 |
+
"homepage": "https://asklar.github.io/xaml-islands",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "windows & !xbox"
|
9 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/crow/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO CrowCpp/crow
|
4 |
+
REF edf12f699ec3bf6f751cf73cb97f32919e48ca6e # v1.0+5
|
5 |
+
SHA512 615a12d39198f2b3e48d795a65590050e8416a0c36b8b54fadea57e447393c4328f3c3ae04f9a7ce5a769efcf000ab2aa5057d6431569a6ec2ffa5f19055d743
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DCROW_BUILD_EXAMPLES=OFF
|
13 |
+
-DCROW_BUILD_TESTS=OFF
|
14 |
+
)
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Crow)
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
20 |
+
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/crow/vcpkg.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "crow",
|
3 |
+
"version": "1.0-5",
|
4 |
+
"description": "Very fast and easy to use C++ micro web framework",
|
5 |
+
"homepage": "https://github.com/CrowCpp/crow",
|
6 |
+
"license": "BSD-3-Clause",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-algorithm",
|
9 |
+
"boost-array",
|
10 |
+
"boost-asio",
|
11 |
+
"boost-date-time",
|
12 |
+
"boost-functional",
|
13 |
+
"boost-lexical-cast",
|
14 |
+
"boost-optional",
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake",
|
17 |
+
"host": true
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake-config",
|
21 |
+
"host": true
|
22 |
+
}
|
23 |
+
]
|
24 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/dirent/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
3 |
+
return()
|
4 |
+
endif()
|
5 |
+
|
6 |
+
vcpkg_from_github(
|
7 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
8 |
+
REPO tronkko/dirent
|
9 |
+
REF "${VERSION}"
|
10 |
+
SHA512 bdfc5cd41034719a7bcb3b04ad1c821b73e8ab37768b831362bdd36dceb2bab832ecb56ed6e99db145d38b15e295c0971496320b0482cb339dc973a9870bb72d
|
11 |
+
HEAD_REF master
|
12 |
+
)
|
13 |
+
file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
14 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
15 |
+
vcpkg_copy_pdbs()
|
16 |
+
|
17 |
+
set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)
|
cc-multilingual-main/cc_net/vcpkg/ports/dirent/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dirent",
|
3 |
+
"version": "1.24",
|
4 |
+
"description": "Dirent is a C/C++ programming interface that allows programmers to retrieve information about files and directories under Linux/UNIX. This project provides Linux compatible Dirent interface for Microsoft Windows.",
|
5 |
+
"homepage": "https://github.com/tronkko/dirent",
|
6 |
+
"license": "MIT"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/ed25519/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(WIN32)
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO orlp/${PORT}
|
8 |
+
REF b1f19fab4aebe607805620d25a5e42566ce46a0e
|
9 |
+
SHA512 fcbeba58591543304dd93ae7c1b62a720d89c80c4c07c323eabb6e1f41b93562660181973bda345976e5361e925f243ba9abaec19fc8a05235011957367c6e7e
|
10 |
+
HEAD_REF master
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
14 |
+
DESTINATION "${SOURCE_PATH}")
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
"-DVERSION=${VERSION}"
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
|
24 |
+
|
25 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" "Zlib")
|
26 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage"
|
27 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
|
30 |
+
"${CURRENT_PACKAGES_DIR}/debug/include")
|
cc-multilingual-main/cc_net/vcpkg/ports/highfive/fix-error-C1128.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 9d42b6e..e6d9f18 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -41,6 +41,10 @@ option(HIGHFIVE_BUILD_DOCS "Enable documentation building" ON)
|
6 |
+
option(HIGHFIVE_USE_INSTALL_DEPS "End applications by default use detected dependencies here" OFF)
|
7 |
+
mark_as_advanced(HIGHFIVE_USE_INSTALL_DEPS)
|
8 |
+
|
9 |
+
+# Allow big object
|
10 |
+
+if(MSVC)
|
11 |
+
+ add_compile_options(/bigobj)
|
12 |
+
+endif()
|
13 |
+
|
14 |
+
# Check compiler cxx_std requirements
|
15 |
+
# -----------------------------------
|
cc-multilingual-main/cc_net/vcpkg/ports/highfive/portfile.cmake
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO BlueBrain/HighFive
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 568fb58956ce8d218fd33a6fe5b519436ce296cdcf87b5620eb2af224b9e39f8f99008f3baff9a7024bbdb4052e5c47bb514091d2afd652abd28949e9096b6f1
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-error-C1128.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(
|
12 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
boost HIGHFIVE_USE_BOOST
|
15 |
+
tests HIGHFIVE_UNIT_TESTS
|
16 |
+
xtensor HIGHFIVE_USE_XTENSOR
|
17 |
+
eigen3 HIGHFIVE_USE_EIGEN
|
18 |
+
)
|
19 |
+
|
20 |
+
if(HDF5_WITH_PARALLEL)
|
21 |
+
message(STATUS "${HDF5_WITH_PARALLEL} Enabling HIGHFIVE_PARALLEL_HDF5.")
|
22 |
+
list(APPEND FEATURE_OPTIONS "-DHIGHFIVE_PARALLEL_HDF5=ON")
|
23 |
+
endif()
|
24 |
+
|
25 |
+
vcpkg_cmake_configure(
|
26 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
27 |
+
DISABLE_PARALLEL_CONFIGURE
|
28 |
+
OPTIONS
|
29 |
+
${FEATURE_OPTIONS}
|
30 |
+
-DHIGHFIVE_EXAMPLES=OFF
|
31 |
+
-DHIGHFIVE_BUILD_DOCS=OFF
|
32 |
+
-DCMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE=PRE_TEST
|
33 |
+
MAYBE_UNUSED_VARIABLES
|
34 |
+
CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE
|
35 |
+
)
|
36 |
+
|
37 |
+
vcpkg_cmake_install()
|
38 |
+
|
39 |
+
if("tests" IN_LIST FEATURES)
|
40 |
+
vcpkg_copy_tools(
|
41 |
+
TOOL_NAMES
|
42 |
+
tests_high_five_base
|
43 |
+
tests_high_five_easy
|
44 |
+
tests_high_five_multi_dims
|
45 |
+
SEARCH_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/tests/unit" # Tools are not installed so release version tools are manually copied
|
46 |
+
)
|
47 |
+
endif()
|
48 |
+
|
49 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/HighFive/CMake)
|
50 |
+
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/share/HighFive/HighFiveConfig.cmake")
|
51 |
+
# left over with mixed case
|
52 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/HighFive")
|
53 |
+
endif()
|
54 |
+
|
55 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
56 |
+
|
57 |
+
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
58 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/highfive/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
highfive provides CMake targets:
|
2 |
+
|
3 |
+
find_package(HighFive CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE HighFive)
|
cc-multilingual-main/cc_net/vcpkg/ports/highfive/vcpkg.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "highfive",
|
3 |
+
"version": "2.9.0",
|
4 |
+
"description": "HighFive is a modern header-only C++/C++11 friendly interface for libhdf5",
|
5 |
+
"homepage": "https://github.com/BlueBrain/HighFive",
|
6 |
+
"license": "BSL-1.0",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "hdf5",
|
10 |
+
"default-features": false
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
],
|
21 |
+
"features": {
|
22 |
+
"boost": {
|
23 |
+
"description": "Enables Boost support",
|
24 |
+
"dependencies": [
|
25 |
+
"boost-multi-array",
|
26 |
+
"boost-serialization",
|
27 |
+
"boost-system",
|
28 |
+
"boost-ublas"
|
29 |
+
]
|
30 |
+
},
|
31 |
+
"eigen3": {
|
32 |
+
"description": "Enable Eigen testing",
|
33 |
+
"dependencies": [
|
34 |
+
"eigen3"
|
35 |
+
]
|
36 |
+
},
|
37 |
+
"tests": {
|
38 |
+
"description": "Build unit tests",
|
39 |
+
"dependencies": [
|
40 |
+
"catch2"
|
41 |
+
]
|
42 |
+
},
|
43 |
+
"xtensor": {
|
44 |
+
"description": "Enable xtensor testing",
|
45 |
+
"dependencies": [
|
46 |
+
"xtensor"
|
47 |
+
]
|
48 |
+
}
|
49 |
+
}
|
50 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/jbig2dec/CMakeLists.txt
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.9)
|
2 |
+
project(jbig2dec C)
|
3 |
+
|
4 |
+
set(CMAKE_DEBUG_POSTFIX d)
|
5 |
+
|
6 |
+
file(GLOB SOURCES jbig2*.c)
|
7 |
+
list(REMOVE_ITEM SOURCES
|
8 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/jbig2dec.c"
|
9 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/jbig2_image_png.c"
|
10 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/jbig2_image_pbm.c"
|
11 |
+
)
|
12 |
+
|
13 |
+
add_library(jbig2dec ${SOURCES})
|
14 |
+
|
15 |
+
install(TARGETS jbig2dec
|
16 |
+
RUNTIME DESTINATION bin
|
17 |
+
LIBRARY DESTINATION lib
|
18 |
+
ARCHIVE DESTINATION lib
|
19 |
+
)
|
20 |
+
|
21 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
22 |
+
install(FILES jbig2.h DESTINATION include)
|
23 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/jbig2dec/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO ArtifexSoftware/jbig2dec
|
6 |
+
REF "${VERSION}"
|
7 |
+
SHA512 8b8a28b93b23e4284ca229e6c8935fd161ce5c597f7470a46ec06a3241d0ac23cf921aecdd4e0c1bd3c904591409054236f2ce25b6d8ae40db742559c7f4dbe9
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS_DEBUG
|
16 |
+
-DDISABLE_INSTALL_HEADERS=1
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
# Handle copyright
|
22 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/jbig2dec/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "jbig2dec",
|
3 |
+
"version": "0.20",
|
4 |
+
"description": "a decoder library and example utility implementing the JBIG2 bi-level image compression spec. Also known as ITU T.88 and ISO IEC 14492, and included by reference in Adobe's PDF version 1.4 and later.",
|
5 |
+
"homepage": "https://github.com/ArtifexSoftware/jbig2dec",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
}
|
11 |
+
]
|
12 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/json-rpc-cxx/fix-config.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index a362ea4..9c23acf 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -10,8 +10,16 @@ option(CODE_COVERAGE "Enable coverage reporting" OFF)
|
6 |
+
include(GNUInstallDirs)
|
7 |
+
|
8 |
+
add_library(json-rpc-cxx INTERFACE)
|
9 |
+
-target_include_directories(json-rpc-cxx INTERFACE include)
|
10 |
+
+target_include_directories(json-rpc-cxx INTERFACE
|
11 |
+
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
|
12 |
+
+ $<INSTALL_INTERFACE:include>
|
13 |
+
+ )
|
14 |
+
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
15 |
+
+install (TARGETS json-rpc-cxx EXPORT unofficial-json-rpc-cxx-config)
|
16 |
+
+install (EXPORT unofficial-json-rpc-cxx-config
|
17 |
+
+ NAMESPACE unofficial::json-rpc-cxx::
|
18 |
+
+ DESTINATION share/unofficial-json-rpc-cxx
|
19 |
+
+ )
|
20 |
+
|
21 |
+
add_library(coverage_config INTERFACE)
|
22 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/json-rpc-cxx/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jsonrpcx/json-rpc-cxx
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 0b8f2b1c8ff95bee14585f6b363f6aa4bf046e3905f7a65cf2e562e5c9181a3ba882baded36fab4d3ff9ac5b2f3245eeb54260f2163491af7fba264ff547f6d8
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-config.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
set(VCPKG_BUILD_TYPE release) # header-only port
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DCOMPILE_TESTS=OFF
|
17 |
+
-DCOMPILE_EXAMPLES=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
|
22 |
+
file(READ "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}/unofficial-${PORT}-config.cmake" JSON_RPC_CXX_CONFIG)
|
23 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}/unofficial-${PORT}-config.cmake" "
|
24 |
+
include(CMakeFindDependencyMacro)
|
25 |
+
find_dependency(nlohmann_json)
|
26 |
+
${JSON_RPC_CXX_CONFIG}
|
27 |
+
")
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
30 |
+
|
31 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
32 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/json-rpc-cxx/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
json-rpc-cxx provides CMake targets:
|
2 |
+
|
3 |
+
find_package(unofficial-json-rpc-cxx CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE unofficial::json-rpc-cxx::json-rpc-cxx)
|
cc-multilingual-main/cc_net/vcpkg/ports/json-rpc-cxx/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "json-rpc-cxx",
|
3 |
+
"version": "0.3.1",
|
4 |
+
"description": "A JSON-RPC 2.0 framework implemented in C++17 using the nlohmann's json for modern C++.",
|
5 |
+
"homepage": "https://github.com/jsonrpcx/json-rpc-cxx",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
"nlohmann-json",
|
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/klein/usage
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package klein:x64-windows provides CMake targets:
|
2 |
+
|
3 |
+
find_package(klein CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE klein::klein)
|
5 |
+
|
6 |
+
# Or use the C++ 11 version
|
7 |
+
target_link_libraries(main PRIVATE klein::klein_cxx11)
|
8 |
+
|
9 |
+
# Or use the SSE4.1 version
|
10 |
+
target_link_libraries(main PRIVATE klein::klein_sse42)
|
cc-multilingual-main/cc_net/vcpkg/ports/libgme/disable-player-and-demo.patch
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6b352102db48f265448a35b731cb712b8e112d39..62349bd48ddd3d6c44e6ee68243605781814de2f 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -102,5 +102,3 @@ endif ()
|
6 |
+
add_subdirectory(gme)
|
7 |
+
|
8 |
+
# EXCLUDE_FROM_ALL adds build rules but keeps it out of default build
|
9 |
+
-add_subdirectory(player EXCLUDE_FROM_ALL)
|
10 |
+
-add_subdirectory(demo EXCLUDE_FROM_ALL)
|
cc-multilingual-main/cc_net/vcpkg/ports/libgme/disable-static-zlib-hack.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gme/CMakeLists.txt b/gme/CMakeLists.txt
|
2 |
+
index b1b2bf0aee0d79dbeb76fd46756ad9709af57ae3..aacb5a8067f77cfeac560d65cc1538dd75008c9b 100644
|
3 |
+
--- a/gme/CMakeLists.txt
|
4 |
+
+++ b/gme/CMakeLists.txt
|
5 |
+
@@ -17,7 +17,7 @@ set(libgme_SRCS Blip_Buffer.cpp
|
6 |
+
# static builds need to find static zlib (and static forms of other needed
|
7 |
+
# libraries. Ensure CMake looks only for static libs if we're doing a static
|
8 |
+
# build. See https://stackoverflow.com/a/44738756
|
9 |
+
-if(NOT BUILD_SHARED_LIBS)
|
10 |
+
+if(0)
|
11 |
+
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
12 |
+
endif()
|
13 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/libgme/portfile.cmake
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_bitbucket(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mpyne/game-music-emu
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 3d5e0dafb7ba239fb1c4cebf47c7e195a350bfe7a43606deff1ecff1ab21a0aac47343205004c0aba06ae249a0e186122c1b7dec06fc52272d4baaea9a480796
|
6 |
+
PATCHES
|
7 |
+
disable-player-and-demo.patch
|
8 |
+
disable-static-zlib-hack.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
# This file is generated during the CMake build
|
12 |
+
file(REMOVE "${SOURCE_PATH}/gme/gme_types.h")
|
13 |
+
|
14 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
FEATURES
|
16 |
+
ay USE_GME_AY
|
17 |
+
gbs USE_GME_GBS
|
18 |
+
gym USE_GME_GYM
|
19 |
+
hes USE_GME_HES
|
20 |
+
kss USE_GME_KSS
|
21 |
+
nsf USE_GME_NSF
|
22 |
+
nsfe USE_GME_NSFE
|
23 |
+
sap USE_GME_SAP
|
24 |
+
spc USE_GME_SPC
|
25 |
+
vgm USE_GME_VGM
|
26 |
+
spc-isolated-echo-buffer GME_SPC_ISOLATED_ECHO_BUFFER
|
27 |
+
)
|
28 |
+
|
29 |
+
set(CMAKE_DISABLE_FIND_PACKAGE_ZLIB ON)
|
30 |
+
set(CMAKE_REQUIRE_FIND_PACKAGE_ZLIB OFF)
|
31 |
+
if("vgm" IN_LIST FEATURES)
|
32 |
+
set(CMAKE_DISABLE_FIND_PACKAGE_ZLIB OFF)
|
33 |
+
set(CMAKE_REQUIRE_FIND_PACKAGE_ZLIB ON)
|
34 |
+
endif()
|
35 |
+
|
36 |
+
if("vgm" IN_LIST FEATURES OR "gym" IN_LIST FEATURES)
|
37 |
+
set(GME_YM2612_EMU Nuked)
|
38 |
+
message(STATUS "This version of libgme uses the Nuked YM2612 emulator. To use the MAME or GENS instead, create an overlay port of this with GME_YM2612_EMU set to \"MAME\" or \"GENS\" accordingly.")
|
39 |
+
message(STATUS "This recipe is at ${CMAKE_CURRENT_LIST_DIR}")
|
40 |
+
message(STATUS "See the overlay ports documentation at https://github.com/microsoft/vcpkg/blob/master/docs/specifications/ports-overlay.md")
|
41 |
+
endif()
|
42 |
+
|
43 |
+
vcpkg_cmake_configure(
|
44 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
45 |
+
OPTIONS
|
46 |
+
${FEATURE_OPTIONS}
|
47 |
+
-DGME_YM2612_EMU=${GME_YM2612_EMU}
|
48 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_ZLIB=${CMAKE_DISABLE_FIND_PACKAGE_ZLIB}
|
49 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_ZLIB=${CMAKE_REQUIRE_FIND_PACKAGE_ZLIB}
|
50 |
+
-DENABLE_UBSAN=OFF
|
51 |
+
MAYBE_UNUSED_VARIABLES
|
52 |
+
GME_YM2612_EMU
|
53 |
+
GME_SPC_ISOLATED_ECHO_BUFFER
|
54 |
+
)
|
55 |
+
|
56 |
+
vcpkg_cmake_install()
|
57 |
+
vcpkg_fixup_pkgconfig()
|
58 |
+
|
59 |
+
vcpkg_copy_pdbs()
|
60 |
+
|
61 |
+
file(REMOVE_RECURSE
|
62 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
63 |
+
)
|
64 |
+
|
65 |
+
file(GLOB LICENSE_FILES "${SOURCE_PATH}/license*")
|
66 |
+
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
|
cc-multilingual-main/cc_net/vcpkg/ports/libgme/vcpkg.json
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgme",
|
3 |
+
"version": "0.6.3",
|
4 |
+
"description": "Video game music file emulation/playback library",
|
5 |
+
"homepage": "https://bitbucket.org/mpyne/game-music-emu/wiki/Home",
|
6 |
+
"license": "LGPL-2.1-or-later OR GPL-2.0-or-later",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
],
|
13 |
+
"default-features": [
|
14 |
+
"ay",
|
15 |
+
"gbs",
|
16 |
+
"gym",
|
17 |
+
"hes",
|
18 |
+
"kss",
|
19 |
+
"nsf",
|
20 |
+
"nsfe",
|
21 |
+
"sap",
|
22 |
+
"spc",
|
23 |
+
"vgm"
|
24 |
+
],
|
25 |
+
"features": {
|
26 |
+
"ay": {
|
27 |
+
"description": "Enable Spectrum ZX music emulation"
|
28 |
+
},
|
29 |
+
"gbs": {
|
30 |
+
"description": "Enable Game Boy music emulation"
|
31 |
+
},
|
32 |
+
"gym": {
|
33 |
+
"description": "Enable Sega MegaDrive/Genesis music emulation"
|
34 |
+
},
|
35 |
+
"hes": {
|
36 |
+
"description": "Enable PC Engine/TurboGrafx-16 music emulation"
|
37 |
+
},
|
38 |
+
"kss": {
|
39 |
+
"description": "Enable MSX or other Z80 systems music emulation"
|
40 |
+
},
|
41 |
+
"nsf": {
|
42 |
+
"description": "Enable NES NSF music emulation"
|
43 |
+
},
|
44 |
+
"nsfe": {
|
45 |
+
"description": "Enable NES NSFE and NSF music emulation"
|
46 |
+
},
|
47 |
+
"sap": {
|
48 |
+
"description": "Enable Atari SAP music emulation"
|
49 |
+
},
|
50 |
+
"spc": {
|
51 |
+
"description": "Enable SNES SPC music emulation"
|
52 |
+
},
|
53 |
+
"spc-isolated-echo-buffer": {
|
54 |
+
"description": "Enable isolated echo buffer on SPC emulator to allow correct playing of \"dodgy\" SPC files made for various ROM hacks ran on ZSNES"
|
55 |
+
},
|
56 |
+
"vgm": {
|
57 |
+
"description": "Enable Sega VGM/VGZ music emulation",
|
58 |
+
"dependencies": [
|
59 |
+
"zlib"
|
60 |
+
]
|
61 |
+
}
|
62 |
+
}
|
63 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libsnoretoast/include_fix.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 7564823f8f0bc4d647bf3470ab7a2d8612418f32 Mon Sep 17 00:00:00 2001
|
2 |
+
From: =?UTF-8?q?Dawid=20Wr=C3=B3bel?= <[email protected]>
|
3 |
+
Date: Fri, 17 Sep 2021 12:30:41 +0000
|
4 |
+
Subject: [PATCH] Use relative INTERFACE_INCLUDE location
|
5 |
+
|
6 |
+
Using ${CMAKE_INSTALL_PREFIX} hardcodes the installation location,
|
7 |
+
instead of having CMake
|
8 |
+
use ${_IMPORT_PREFIX}
|
9 |
+
---
|
10 |
+
src/CMakeLists.txt | 2 +-
|
11 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
12 |
+
|
13 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
14 |
+
index eef57f7..6c35b71 100644
|
15 |
+
--- a/src/CMakeLists.txt
|
16 |
+
+++ b/src/CMakeLists.txt
|
17 |
+
@@ -1,7 +1,7 @@
|
18 |
+
add_library(SnoreToastActions INTERFACE)
|
19 |
+
target_include_directories(SnoreToastActions INTERFACE
|
20 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
21 |
+
- $<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include/snoretoast>
|
22 |
+
+ $<INSTALL_INTERFACE:include/snoretoast>
|
23 |
+
)
|
24 |
+
add_library(SnoreToast::SnoreToastActions ALIAS SnoreToastActions)
|
25 |
+
|
26 |
+
--
|
27 |
+
GitLab
|
28 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/libspnav/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO FreeSpacenav/libspnav
|
4 |
+
REF libspnav-0.2.3 # v0.2.3 seems to be outdated. libspnav-0.2.3 is the same as 0.2.3 on their sourceforge
|
5 |
+
SHA512 6c06344813ddf7e2bc7981932b4a901334de2b91d8c3abb23828869070dc73ed1c19c5bf7ff9338cc673c8f0dc7394608652afd0cdae093149c0a24460f0a8fb
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_make(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
OPTIONS_DEBUG "--enable-debug"
|
12 |
+
OPTIONS_RELEASE "--disable-debug"
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_install_make()
|
16 |
+
|
17 |
+
macro(CLEANUP WHERE)
|
18 |
+
set(WORKDIR ${CURRENT_PACKAGES_DIR}/${WHERE})
|
19 |
+
if ("${WHERE}" STREQUAL "debug")
|
20 |
+
file(REMOVE_RECURSE ${WORKDIR}/include)
|
21 |
+
endif ()
|
22 |
+
file(REMOVE ${WORKDIR}/lib/libspnav.so)
|
23 |
+
file(REMOVE ${WORKDIR}/lib/libspnav.so.0)
|
24 |
+
file(RENAME ${WORKDIR}/lib/libspnav.so.0.1 ${WORKDIR}/lib/libspnav.so)
|
25 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
26 |
+
file(REMOVE ${WORKDIR}/lib/libspnav.so)
|
27 |
+
else ()
|
28 |
+
file(REMOVE ${WORKDIR}/lib/libspnav.a)
|
29 |
+
endif ()
|
30 |
+
endmacro()
|
31 |
+
|
32 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
33 |
+
cleanup("")
|
34 |
+
endif ()
|
35 |
+
|
36 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
37 |
+
cleanup("debug")
|
38 |
+
endif ()
|
39 |
+
|
40 |
+
file(INSTALL ${SOURCE_PATH}/README
|
41 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
42 |
+
RENAME copyright
|
43 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/libspnav/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libspnav",
|
3 |
+
"version": "0.2.3",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Library for communicating with spacenavd or 3dxsrv to get input from 6-dof devices.",
|
6 |
+
"homepage": "https://github.com/FreeSpacenav/libspnav",
|
7 |
+
"supports": "linux"
|
8 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/loguru/CMakeLists.txt
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.12)
|
2 |
+
|
3 |
+
project(loguru CXX)
|
4 |
+
set(CMAKE_CXX_STANDARD 11)
|
5 |
+
|
6 |
+
option(INSTALL_HEADERS "Install header files" ON)
|
7 |
+
option(BUILD_WITH_FMT "Build with fmt support" OFF)
|
8 |
+
|
9 |
+
set(loguru_headers
|
10 |
+
loguru.hpp
|
11 |
+
)
|
12 |
+
set(loguru_sources
|
13 |
+
loguru.cpp
|
14 |
+
)
|
15 |
+
|
16 |
+
add_library(loguru ${loguru_sources})
|
17 |
+
target_include_directories(loguru PUBLIC
|
18 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
19 |
+
$<INSTALL_INTERFACE:include/loguru>)
|
20 |
+
|
21 |
+
if(BUILD_WITH_FMT)
|
22 |
+
target_compile_definitions(loguru PRIVATE LOGURU_USE_FMTLIB=1)
|
23 |
+
find_package(fmt CONFIG REQUIRED)
|
24 |
+
target_link_libraries(loguru PUBLIC fmt::fmt)
|
25 |
+
endif()
|
26 |
+
|
27 |
+
if(UNIX)
|
28 |
+
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
29 |
+
find_package(Threads REQUIRED)
|
30 |
+
target_link_libraries(loguru PUBLIC Threads::Threads ${CMAKE_DL_LIBS})
|
31 |
+
endif()
|
32 |
+
|
33 |
+
set(LOGURU_INCLUDE_INSTALL_DIR include/loguru CACHE PATH "Install directory for headers")
|
34 |
+
if(INSTALL_HEADERS)
|
35 |
+
install(FILES ${loguru_headers} DESTINATION ${LOGURU_INCLUDE_INSTALL_DIR})
|
36 |
+
endif()
|
37 |
+
|
38 |
+
set(INCLUDE_INSTALL_DIR ${LOGURU_INCLUDE_INSTALL_DIR})
|
39 |
+
|
40 |
+
include(CMakePackageConfigHelpers)
|
41 |
+
configure_package_config_file(loguruConfig.cmake.in
|
42 |
+
${CMAKE_CURRENT_BINARY_DIR}/loguruConfig.cmake
|
43 |
+
INSTALL_DESTINATION share/loguru
|
44 |
+
NO_CHECK_REQUIRED_COMPONENTS_MACRO
|
45 |
+
PATH_VARS INCLUDE_INSTALL_DIR)
|
46 |
+
|
47 |
+
install(TARGETS loguru
|
48 |
+
EXPORT loguruTargets
|
49 |
+
RUNTIME DESTINATION bin
|
50 |
+
LIBRARY DESTINATION lib
|
51 |
+
ARCHIVE DESTINATION lib
|
52 |
+
)
|
53 |
+
|
54 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/loguruConfig.cmake DESTINATION share/loguru)
|
55 |
+
install(EXPORT loguruTargets DESTINATION share/loguru)
|
cc-multilingual-main/cc_net/vcpkg/ports/loguru/copyright
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
This software is in the public domain. Where that dedication is not recognized, you are granted a perpetual, irrevocable license to copy, modify and distribute it as you see fit.
|
2 |
+
|
3 |
+
That being said, I would appreciate credit! If you find Loguru useful, tweet me at @ernerfeldt mail me at [email protected].
|
cc-multilingual-main/cc_net/vcpkg/ports/loguru/loguruConfig.cmake.in
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
if(UNIX)
|
4 |
+
include(CMakeFindDependencyMacro)
|
5 |
+
find_dependency(Threads)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
set_and_check(loguru_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
|
9 |
+
include("${CMAKE_CURRENT_LIST_DIR}/loguruTargets.cmake")
|
cc-multilingual-main/cc_net/vcpkg/ports/loguru/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO emilk/loguru
|
4 |
+
REF 9c2fea0d4530657f23259be4132f8101c98b579e #v2.1.0
|
5 |
+
SHA512 49eebf8648f9d29273af76dca0a4e49155daa3664e98979df005e64eb0fa9f4eeb4228245327d469772c51076571acbe39a644eba531444d8676d9709a7e3914
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
10 |
+
file(INSTALL ${SOURCE_PATH}/loguru.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/loguru)
|
11 |
+
file(INSTALL ${SOURCE_PATH}/loguru.cpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/loguru)
|
12 |
+
endif()
|
13 |
+
|
14 |
+
if(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
|
15 |
+
configure_file(${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY)
|
16 |
+
configure_file(${CMAKE_CURRENT_LIST_DIR}/loguruConfig.cmake.in ${SOURCE_PATH}/loguruConfig.cmake.in COPYONLY)
|
17 |
+
|
18 |
+
vcpkg_check_features(
|
19 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
20 |
+
FEATURES
|
21 |
+
fmt BUILD_WITH_FMT
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_configure(
|
25 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
26 |
+
OPTIONS_DEBUG
|
27 |
+
-DINSTALL_HEADERS=OFF
|
28 |
+
OPTIONS
|
29 |
+
${FEATURE_OPTIONS}
|
30 |
+
)
|
31 |
+
|
32 |
+
vcpkg_cmake_install()
|
33 |
+
vcpkg_cmake_config_fixup()
|
34 |
+
vcpkg_copy_pdbs()
|
35 |
+
endif()
|
36 |
+
|
37 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
cc-multilingual-main/cc_net/vcpkg/ports/loguru/vcpkg.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "loguru",
|
3 |
+
"version": "2.1.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A lightweight and flexible C++ logging library",
|
6 |
+
"homepage": "https://github.com/emilk/loguru",
|
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 |
+
"fmt": {
|
19 |
+
"description": "Build with fmt support in non-header-only mode",
|
20 |
+
"dependencies": [
|
21 |
+
"fmt"
|
22 |
+
]
|
23 |
+
}
|
24 |
+
}
|
25 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/lunarg-vulkantools/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO LunarG/VulkanTools
|
6 |
+
REF "vulkan-sdk-${VERSION}"
|
7 |
+
SHA512 fcaa25375caad32800dbf015672bb9cb23ad90469fc63a259e43789bbe82e460d94f0d8e87f8bc4b624974dc2511af19e04da763483aea1cf34e6f78818b2383
|
8 |
+
HEAD_REF main
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_replace_string("${SOURCE_PATH}/via/CMakeLists.txt" "jsoncpp_static" "JsonCpp::JsonCpp")
|
12 |
+
|
13 |
+
x_vcpkg_get_python_packages(PYTHON_VERSION "3" PACKAGES jsonschema OUT_PYTHON_VAR PYTHON3)
|
14 |
+
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
15 |
+
vcpkg_add_to_path("${PYTHON3_DIR}")
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
OPTIONS
|
20 |
+
-DVULKAN_HEADERS_INSTALL_DIR=${CURRENT_INSTALLED_DIR}
|
21 |
+
-DBUILD_TESTS:BOOL=OFF
|
22 |
+
OPTIONS_RELEASE
|
23 |
+
-DVULKAN_LOADER_INSTALL_DIR=${CURRENT_INSTALLED_DIR}
|
24 |
+
OPTIONS_DEBUG
|
25 |
+
-DVULKAN_LOADER_INSTALL_DIR=${CURRENT_INSTALLED_DIR}/debug
|
26 |
+
|
27 |
+
)
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
31 |
+
|
32 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
33 |
+
|
34 |
+
vcpkg_copy_tools(TOOL_NAMES vkvia vkconfig AUTO_CLEAN )
|
35 |
+
|
36 |
+
set(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled)
|
37 |
+
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
cc-multilingual-main/cc_net/vcpkg/ports/lunarg-vulkantools/vcpkg.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "lunarg-vulkantools",
|
3 |
+
"version": "1.3.275.0",
|
4 |
+
"description": "Tools to aid in Vulkan development",
|
5 |
+
"homepage": "https://github.com/LunarG/VulkanTools",
|
6 |
+
"license": null,
|
7 |
+
"supports": "!osx & !staticcrt",
|
8 |
+
"dependencies": [
|
9 |
+
"jsoncpp",
|
10 |
+
"qt5-base",
|
11 |
+
"valijson",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"name": "vcpkg-get-python-packages",
|
22 |
+
"host": true
|
23 |
+
},
|
24 |
+
"vulkan-loader",
|
25 |
+
"vulkan-utility-libraries"
|
26 |
+
]
|
27 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/mtlt/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VCPKG_BUILD_TYPE release) # Header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO tonitaga/MTLT
|
6 |
+
REF 8e30e6636b06ad008082e22f37e0d79873142e1b
|
7 |
+
SHA512 2addaa4f84037a14431b20734fe5ca1ea11c4d9d1a0ddf82a16b9efaacbbac3873038bd16f93ba94288559585ae76d12884166931c91a214a3e3ed0cecea6b3b
|
8 |
+
HEAD_REF main
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME "mtlt" CONFIG_PATH "lib/cmake/mtlt")
|
17 |
+
vcpkg_fixup_pkgconfig()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
21 |
+
|
22 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
23 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/mtlt/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package mtlt provides CMake targets:
|
2 |
+
|
3 |
+
find_package(mtlt REQUIRED)
|
4 |
+
target_link_libraries(${PROJECT_NAME} PRIVATE mtlt::mtlt)
|
cc-multilingual-main/cc_net/vcpkg/ports/mtlt/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mtlt",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "Tonitaga 2024. MTLT is a header-only math matrix library that allows you to do compile-time calculations, perform atomic operations, and contains all the basic operations on matrices. The library is written in STL style, supports joint work with STL algorithms. Since C++11",
|
5 |
+
"homepage": "https://github.com/tonitaga/MTLT",
|
6 |
+
"license": "MIT",
|
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/oatpp/fix-target.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index 13cccc2c..c4a3fe44 100644
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -301,6 +301,7 @@ set_target_properties(oatpp PROPERTIES
|
6 |
+
CXX_EXTENSIONS OFF
|
7 |
+
CXX_STANDARD_REQUIRED ON
|
8 |
+
)
|
9 |
+
+target_compile_features(oatpp PUBLIC cxx_std_11)
|
10 |
+
if (MSVC)
|
11 |
+
target_compile_options(oatpp PRIVATE /permissive-)
|
12 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/oatpp/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(OATPP_VERSION "1.3.0")
|
2 |
+
|
3 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO oatpp/oatpp
|
8 |
+
REF ${OATPP_VERSION}
|
9 |
+
SHA512 4fe8587efe1b4ecae14554ec8edb209e5558a3e4a4e6ff49bbfaaf06d2cc12f2cc306c5edc43b8dafc465aff53098ad4bebb9971694761b91a553730d5acb59a
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
fix-target.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
if (VCPKG_CRT_LINKAGE STREQUAL "static")
|
16 |
+
set(OATPP_MSVC_LINK_STATIC_RUNTIME TRUE)
|
17 |
+
else()
|
18 |
+
set(OATPP_MSVC_LINK_STATIC_RUNTIME FALSE)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
OPTIONS
|
24 |
+
"-DOATPP_BUILD_TESTS:BOOL=OFF"
|
25 |
+
"-DOATPP_MSVC_LINK_STATIC_RUNTIME=${OATPP_MSVC_LINK_STATIC_RUNTIME}"
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp CONFIG_PATH lib/cmake/oatpp-${OATPP_VERSION})
|
30 |
+
vcpkg_copy_pdbs()
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
33 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/oatpp/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "oatpp",
|
3 |
+
"version": "1.3.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Modern web framework.",
|
6 |
+
"homepage": "https://github.com/oatpp/oatpp",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|