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/ada-url/no-cpm.patch +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ada-url/portfile.cmake +40 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ada-url/vcpkg.json +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/arsenalgear/portfile.cmake +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/arsenalgear/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/audiofile/fix-cmakeLists.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/audiofile/portfile.cmake +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/audiofile/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-date-time/portfile.cmake +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-date-time/vcpkg.json +88 -0
- cc-multilingual-main/cc_net/vcpkg/ports/capstone/001-silence-windows-crt-secure-warnings.patch +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/capstone/portfile.cmake +52 -0
- cc-multilingual-main/cc_net/vcpkg/ports/capstone/vcpkg.json +73 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cityhash/CMakeLists.txt +62 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cityhash/config.h +118 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cityhash/portfile.cmake +43 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cityhash/vcpkg.json +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/directx-headers/portfile.cmake +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/directx-headers/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/directx-headers/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/edflib/CMakeLists.txt +75 -0
- cc-multilingual-main/cc_net/vcpkg/ports/edflib/portfile.cmake +49 -0
- cc-multilingual-main/cc_net/vcpkg/ports/edflib/vcpkg.json +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/efsw/portfile.cmake +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/efsw/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/esaxx/portfile.cmake +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/esaxx/vcpkg.json +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/usage +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hfsm2/portfile.cmake +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hfsm2/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hfsm2/vcpkg.json +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/itsy-bitsy/fix-cmake-install.patch +55 -0
- cc-multilingual-main/cc_net/vcpkg/ports/itsy-bitsy/portfile.cmake +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/itsy-bitsy/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/CMakeLists.txt +109 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/fix-mingw.patch +51 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/vcpkg-cmake-wrapper.cmake +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kaitai-struct-cpp-stl-runtime/portfile.cmake +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kaitai-struct-cpp-stl-runtime/vcpkg.json +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxfixes/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxfixes/vcpkg.json +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/p-ranav-csv/portfile.cmake +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/p-ranav-csv/vcpkg.json +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pffft/copyright +52 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pffft/portfile.cmake +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/phnt/vcpkg.json +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/quill/portfile.cmake +41 -0
- cc-multilingual-main/cc_net/vcpkg/ports/quill/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/sdl2-image/fix-findwebp.patch +26 -0
cc-multilingual-main/cc_net/vcpkg/ports/ada-url/no-cpm.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index b206edb6..1db4099d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -30,7 +30,6 @@ option(ADA_TESTING "Build tests" ${BUILD_TESTING})
|
6 |
+
# errors due to CPM, so this is here to support disabling all the testing
|
7 |
+
# and tooling for ada if one only wishes to use the ada library.
|
8 |
+
if(ADA_TESTING OR ADA_BENCHMARKS OR ADA_TOOLS)
|
9 |
+
- include(cmake/CPM.cmake)
|
10 |
+
# CPM requires git as an implicit dependency
|
11 |
+
find_package(Git QUIET)
|
12 |
+
# We use googletest in the tests
|
13 |
+
diff --git a/tools/cli/CMakeLists.txt b/tools/cli/CMakeLists.txt
|
14 |
+
index ff57220b..a6d90f29 100644
|
15 |
+
--- a/tools/cli/CMakeLists.txt
|
16 |
+
+++ b/tools/cli/CMakeLists.txt
|
17 |
+
@@ -8,12 +8,8 @@ if(MSVC AND BUILD_SHARED_LIBS)
|
18 |
+
"$<TARGET_FILE:ada>" # <--this is in-file
|
19 |
+
"$<TARGET_FILE_DIR:adaparse>") # <--this is out-file path
|
20 |
+
endif()
|
21 |
+
-CPMAddPackage("gh:fmtlib/fmt#7.1.3")
|
22 |
+
-CPMAddPackage(
|
23 |
+
- GITHUB_REPOSITORY jarro2783/cxxopts
|
24 |
+
- VERSION 3.1.1
|
25 |
+
- OPTIONS "CXXOPTS_BUILD_EXAMPLES NO" "CXXOPTS_BUILD_TESTS NO" "CXXOPTS_ENABLE_INSTALL YES"
|
26 |
+
-)
|
27 |
+
+find_package(fmt CONFIG REQUIRED)
|
28 |
+
+find_package(cxxopts CONFIG REQUIRED)
|
29 |
+
target_link_libraries(adaparse PRIVATE cxxopts::cxxopts fmt::fmt)
|
30 |
+
|
31 |
+
if(MSVC OR MINGW)
|
cc-multilingual-main/cc_net/vcpkg/ports/ada-url/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO ada-url/ada
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 941b522f8aec7959557a1238b23a48b7d3e4ff4035b0897d23fc7dba26cc227b2b3e48d8ecd03431c871041d52870015361ff6a595fa4872a640943b55c62617
|
6 |
+
HEAD_REF main
|
7 |
+
PATCHES
|
8 |
+
no-cpm.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(
|
12 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
tools ADA_TOOLS
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
OPTIONS
|
20 |
+
-DADA_BENCHMARKS=OFF
|
21 |
+
-DBUILD_TESTING=OFF
|
22 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Python3=ON
|
23 |
+
${FEATURE_OPTIONS}
|
24 |
+
OPTIONS_DEBUG
|
25 |
+
-DADA_TOOLS=OFF
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
|
30 |
+
vcpkg_copy_pdbs()
|
31 |
+
|
32 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME ada CONFIG_PATH "lib/cmake/ada")
|
33 |
+
|
34 |
+
if("tools" IN_LIST FEATURES)
|
35 |
+
vcpkg_copy_tools(TOOL_NAMES adaparse AUTO_CLEAN)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
39 |
+
|
40 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE" "${SOURCE_PATH}/LICENSE-MIT")
|
cc-multilingual-main/cc_net/vcpkg/ports/ada-url/vcpkg.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ada-url",
|
3 |
+
"version": "2.7.6",
|
4 |
+
"description": "WHATWG-compliant and fast URL parser written in modern C++",
|
5 |
+
"homepage": "https://ada-url.com/",
|
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 |
+
"features": {
|
18 |
+
"tools": {
|
19 |
+
"description": "Build CLI tools (adaparse)",
|
20 |
+
"supports": "!uwp",
|
21 |
+
"dependencies": [
|
22 |
+
"cxxopts",
|
23 |
+
"fmt"
|
24 |
+
]
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/arsenalgear/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Github config
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO JustWhit3/arsenalgear-cpp
|
5 |
+
REF "v${VERSION}"
|
6 |
+
SHA512 27f2979da2d75851d5f8a63868d49b2f5b82064477a1c816667aaf0283e87f854712ab4aa473a3ef36c6ff895bb781c3b095ff617bf134051531aee9b8f03fd3
|
7 |
+
HEAD_REF main
|
8 |
+
)
|
9 |
+
|
10 |
+
# Main commands
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DARSENALGEAR_TESTS=OFF
|
15 |
+
)
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
# Move cmake configs
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/arsenalgear)
|
20 |
+
|
21 |
+
# Remove duplicate files
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
23 |
+
|
24 |
+
# Install license
|
25 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/arsenalgear/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "arsenalgear",
|
3 |
+
"version": "2.1.0",
|
4 |
+
"description": "A library containing general purpose C++ utils.",
|
5 |
+
"homepage": "https://github.com/JustWhit3/arsenalgear-cpp",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/audiofile/fix-cmakeLists.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt
|
2 |
+
+++ b/CMakeLists.txt
|
3 |
+
@@ -42,3 +42,10 @@ endif ()
|
4 |
+
|
5 |
+
#===============================================================================
|
6 |
+
set (CMAKE_SUPPRESS_REGENERATION true)
|
7 |
+
+
|
8 |
+
+#install and export targets
|
9 |
+
+install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Config)
|
10 |
+
+export(TARGETS ${PROJECT_NAME} FILE ${PROJECT_NAME}Config.cmake)
|
11 |
+
+install(EXPORT ${PROJECT_NAME}Config DESTINATION share/AudioFile FILE ${PROJECT_NAME}Config.cmake)
|
12 |
+
+#install headers
|
13 |
+
+install(FILES AudioFile.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
cc-multilingual-main/cc_net/vcpkg/ports/audiofile/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO adamstark/AudioFile
|
6 |
+
REF "${VERSION}"
|
7 |
+
SHA512 b0612e6d6c440e52a168f27410d6ac14f7fcef2ba183e8a80e03f924e6fc778c01e4f46b40cab10dd73c48f8f10dc4112c58f602728fdeec0bc3e143852fc95e
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-cmakeLists.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DBUILD_EXAMPLES=OFF
|
17 |
+
-DBUILD_TESTS=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
|
22 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME AudioFile)
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
25 |
+
|
26 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/audiofile/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "audiofile",
|
3 |
+
"version": "1.1.1",
|
4 |
+
"description": "A simple header-only C++ library for reading and writing audio files.",
|
5 |
+
"homepage": "https://github.com/adamstark/AudioFile",
|
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/boost-date-time/portfile.cmake
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/date_time
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 bd1b2dee1c8153c00d71d7c9edb3965575615c0dd886b01a3d2755f513b3d27cf099f76a6c81d35ef1d961d29863563faece943aef3bba5410fab4d7e0be43fb
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
12 |
+
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
|
13 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
14 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-date-time/vcpkg.json
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-date-time",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost date_time module",
|
6 |
+
"homepage": "https://github.com/boostorg/date_time",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-algorithm",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-assert",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "boost-build",
|
19 |
+
"host": true,
|
20 |
+
"version>=": "1.84.0"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "boost-config",
|
24 |
+
"version>=": "1.84.0"
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"name": "boost-core",
|
28 |
+
"version>=": "1.84.0"
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"name": "boost-io",
|
32 |
+
"version>=": "1.84.0"
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"name": "boost-lexical-cast",
|
36 |
+
"version>=": "1.84.0"
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"name": "boost-modular-build-helper",
|
40 |
+
"host": true,
|
41 |
+
"version>=": "1.84.0"
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"name": "boost-numeric-conversion",
|
45 |
+
"version>=": "1.84.0"
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"name": "boost-range",
|
49 |
+
"version>=": "1.84.0"
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"name": "boost-smart-ptr",
|
53 |
+
"version>=": "1.84.0"
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"name": "boost-static-assert",
|
57 |
+
"version>=": "1.84.0"
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"name": "boost-throw-exception",
|
61 |
+
"version>=": "1.84.0"
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"name": "boost-tokenizer",
|
65 |
+
"version>=": "1.84.0"
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"name": "boost-type-traits",
|
69 |
+
"version>=": "1.84.0"
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"name": "boost-utility",
|
73 |
+
"version>=": "1.84.0"
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"name": "boost-vcpkg-helpers",
|
77 |
+
"version>=": "1.84.0"
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"name": "boost-winapi",
|
81 |
+
"version>=": "1.84.0"
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"name": "vcpkg-cmake",
|
85 |
+
"host": true
|
86 |
+
}
|
87 |
+
]
|
88 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/capstone/001-silence-windows-crt-secure-warnings.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f5f4448..5e5cc7e 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -87,6 +87,10 @@ if(CAPSTONE_BUILD_STATIC_RUNTIME)
|
6 |
+
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
7 |
+
endif()
|
8 |
+
|
9 |
+
+if(WIN32)
|
10 |
+
+ add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
|
11 |
+
+endif()
|
12 |
+
+
|
13 |
+
## sources
|
14 |
+
set(SOURCES_ENGINE
|
15 |
+
cs.c
|
cc-multilingual-main/cc_net/vcpkg/ports/capstone/portfile.cmake
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO "capstone-engine/capstone"
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 350aba77ce2d96b5c25764913591ba80e4497177ae0a8b2c820c6755ee8310848fbfc54e7ccac27fafc2dbc6778118ad92c53d1b5cb601d4fa146dec7d7e11e5
|
6 |
+
HEAD_REF next
|
7 |
+
PATCHES
|
8 |
+
001-silence-windows-crt-secure-warnings.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
FEATURES
|
15 |
+
"arm" CAPSTONE_ARM_SUPPORT
|
16 |
+
"arm64" CAPSTONE_ARM64_SUPPORT
|
17 |
+
"evm" CAPSTONE_EVM_SUPPORT
|
18 |
+
"m680x" CAPSTONE_M680X_SUPPORT
|
19 |
+
"m68k" CAPSTONE_M68K_SUPPORT
|
20 |
+
"mips" CAPSTONE_MIPS_SUPPORT
|
21 |
+
"ppc" CAPSTONE_PPC_SUPPORT
|
22 |
+
"sparc" CAPSTONE_SPARC_SUPPORT
|
23 |
+
"sysz" CAPSTONE_SYSZ_SUPPORT
|
24 |
+
"tms320c64x" CAPSTONE_TMS320C64X_SUPPORT
|
25 |
+
"x86" CAPSTONE_X86_SUPPORT
|
26 |
+
"xcore" CAPSTONE_XCORE_SUPPORT
|
27 |
+
"mos65xx" CAPSTONE_MOS65XX_SUPPORT
|
28 |
+
"tricore" CAPSTONE_TRICORE_SUPPORT
|
29 |
+
"wasm" CAPSTONE_WASM_SUPPORT
|
30 |
+
"bpf" CAPSTONE_BPF_SUPPORT
|
31 |
+
"riscv" CAPSTONE_RISCV_SUPPORT
|
32 |
+
"diet" CAPSTONE_BUILD_DIET
|
33 |
+
)
|
34 |
+
|
35 |
+
vcpkg_cmake_configure(
|
36 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
37 |
+
OPTIONS
|
38 |
+
-DCAPSTONE_ARCHITECTURE_DEFAULT=OFF
|
39 |
+
-DCAPSTONE_BUILD_TESTS=OFF
|
40 |
+
-DCAPSTONE_BUILD_CSTOOL=OFF
|
41 |
+
-DCAPSTONE_BUILD_STATIC_RUNTIME=${STATIC_CRT}
|
42 |
+
${FEATURE_OPTIONS}
|
43 |
+
)
|
44 |
+
|
45 |
+
vcpkg_cmake_install()
|
46 |
+
vcpkg_copy_pdbs()
|
47 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
48 |
+
vcpkg_fixup_pkgconfig()
|
49 |
+
|
50 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
51 |
+
|
52 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/capstone/vcpkg.json
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "capstone",
|
3 |
+
"version": "5.0.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Multi-architecture disassembly framework",
|
6 |
+
"homepage": "https://github.com/capstone-engine/capstone",
|
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 |
+
"arm": {
|
19 |
+
"description": "Capstone disassembly support for ARM"
|
20 |
+
},
|
21 |
+
"arm64": {
|
22 |
+
"description": "Capstone disassembly support for ARM64"
|
23 |
+
},
|
24 |
+
"bpf": {
|
25 |
+
"description": "Capstone disassembly support for BPF"
|
26 |
+
},
|
27 |
+
"diet": {
|
28 |
+
"description": "Build Capstone in diet mode (reduced features for smaller size)"
|
29 |
+
},
|
30 |
+
"evm": {
|
31 |
+
"description": "Capstone disassembly support for EVM"
|
32 |
+
},
|
33 |
+
"m680x": {
|
34 |
+
"description": "Capstone disassembly support for M680X"
|
35 |
+
},
|
36 |
+
"m68k": {
|
37 |
+
"description": "Capstone disassembly support for M68k"
|
38 |
+
},
|
39 |
+
"mips": {
|
40 |
+
"description": "Capstone disassembly support for MIPS"
|
41 |
+
},
|
42 |
+
"mos65xx": {
|
43 |
+
"description": "Capstone disassembly support for MOS65XX"
|
44 |
+
},
|
45 |
+
"ppc": {
|
46 |
+
"description": "Capstone disassembly support for PowerPC"
|
47 |
+
},
|
48 |
+
"riscv": {
|
49 |
+
"description": "Capstone disassembly support for RISC-V"
|
50 |
+
},
|
51 |
+
"sparc": {
|
52 |
+
"description": "Capstone disassembly support for SPARC"
|
53 |
+
},
|
54 |
+
"sysz": {
|
55 |
+
"description": "Capstone disassembly support for SysZ"
|
56 |
+
},
|
57 |
+
"tms320c64x": {
|
58 |
+
"description": "Capstone disassembly support for TMS320C64X"
|
59 |
+
},
|
60 |
+
"tricore": {
|
61 |
+
"description": "Capstone disassembly support for TriCore"
|
62 |
+
},
|
63 |
+
"wasm": {
|
64 |
+
"description": "Capstone disassembly support for WebAssembly"
|
65 |
+
},
|
66 |
+
"x86": {
|
67 |
+
"description": "Capstone disassembly support for x86"
|
68 |
+
},
|
69 |
+
"xcore": {
|
70 |
+
"description": "Capstone disassembly support for XCore"
|
71 |
+
}
|
72 |
+
}
|
73 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cityhash/CMakeLists.txt
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.13)
|
2 |
+
project(cityhash CXX)
|
3 |
+
|
4 |
+
option(ENABLE_SSE "Build CityHash variants that depend on the _mm_crc32_u64 intrinsic." OFF)
|
5 |
+
|
6 |
+
set(CMAKE_CXX_STANDARD 11)
|
7 |
+
|
8 |
+
if (ENABLE_SSE)
|
9 |
+
include (CMakePushCheckState)
|
10 |
+
cmake_push_check_state()
|
11 |
+
if (MSVC)
|
12 |
+
include(CheckCXXSourceCompiles)
|
13 |
+
|
14 |
+
check_cxx_source_compiles(
|
15 |
+
"#include <nmmintrin.h>
|
16 |
+
int main() {
|
17 |
+
_mm_crc32_u64(0, 0);
|
18 |
+
return 0;
|
19 |
+
}"
|
20 |
+
USE_SSE)
|
21 |
+
else()
|
22 |
+
include(CheckCXXCompilerFlag)
|
23 |
+
check_cxx_compiler_flag ("-msse4.2" USE_SSE)
|
24 |
+
if (USE_SSE)
|
25 |
+
set (SSE2_FLAG "-msse4.2")
|
26 |
+
endif()
|
27 |
+
endif()
|
28 |
+
|
29 |
+
cmake_pop_check_state()
|
30 |
+
|
31 |
+
if (NOT USE_SSE)
|
32 |
+
message(FATAL_ERROR "This platform doesn't support feature SSE4.2")
|
33 |
+
endif()
|
34 |
+
else()
|
35 |
+
set(USE_SSE OFF)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
add_library(cityhash STATIC src/city.cc)
|
39 |
+
|
40 |
+
list(APPEND CITY_HEADERS src/city.h)
|
41 |
+
if (USE_SSE)
|
42 |
+
list(APPEND CITY_HEADERS src/citycrc.h)
|
43 |
+
|
44 |
+
target_compile_options(cityhash PRIVATE ${SSE2_FLAG})
|
45 |
+
if (MSVC)
|
46 |
+
target_compile_definitions(cityhash PRIVATE __SSE4_2__)
|
47 |
+
endif()
|
48 |
+
endif()
|
49 |
+
|
50 |
+
target_include_directories(cityhash PUBLIC
|
51 |
+
$<INSTALL_INTERFACE:include>
|
52 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
53 |
+
)
|
54 |
+
|
55 |
+
install(TARGETS cityhash EXPORT cityhash-config
|
56 |
+
RUNTIME DESTINATION bin
|
57 |
+
ARCHIVE DESTINATION lib
|
58 |
+
LIBRARY DESTINATION lib
|
59 |
+
)
|
60 |
+
|
61 |
+
install(EXPORT cityhash-config DESTINATION share/cmake/cityhash)
|
62 |
+
install(FILES ${CITY_HEADERS} DESTINATION include)
|
cc-multilingual-main/cc_net/vcpkg/ports/cityhash/config.h
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* config.h. Generated from config.h.in by configure. */
|
2 |
+
/* config.h.in. Generated from configure.ac by autoheader. */
|
3 |
+
|
4 |
+
/* Define if building universal (internal helper macro) */
|
5 |
+
/* #undef AC_APPLE_UNIVERSAL_BUILD */
|
6 |
+
|
7 |
+
/* Define to 1 if the compiler supports __builtin_expect. */
|
8 |
+
#if WIN32 || WIN64
|
9 |
+
# define HAVE_BUILTIN_EXPECT 0
|
10 |
+
#else
|
11 |
+
# define HAVE_BUILTIN_EXPECT 1
|
12 |
+
#endif
|
13 |
+
|
14 |
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
15 |
+
#define HAVE_DLFCN_H 1
|
16 |
+
|
17 |
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
18 |
+
#define HAVE_INTTYPES_H 1
|
19 |
+
|
20 |
+
/* Define to 1 if you have the <memory.h> header file. */
|
21 |
+
#define HAVE_MEMORY_H 1
|
22 |
+
|
23 |
+
/* Define to 1 if you have the <stdint.h> header file. */
|
24 |
+
#define HAVE_STDINT_H 1
|
25 |
+
|
26 |
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
27 |
+
#define HAVE_STDLIB_H 1
|
28 |
+
|
29 |
+
/* Define to 1 if you have the <strings.h> header file. */
|
30 |
+
#define HAVE_STRINGS_H 1
|
31 |
+
|
32 |
+
/* Define to 1 if you have the <string.h> header file. */
|
33 |
+
#define HAVE_STRING_H 1
|
34 |
+
|
35 |
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
36 |
+
#define HAVE_SYS_STAT_H 1
|
37 |
+
|
38 |
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
39 |
+
#define HAVE_SYS_TYPES_H 1
|
40 |
+
|
41 |
+
/* Define to 1 if you have the <unistd.h> header file. */
|
42 |
+
#define HAVE_UNISTD_H 1
|
43 |
+
|
44 |
+
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
45 |
+
*/
|
46 |
+
#define LT_OBJDIR ".libs/"
|
47 |
+
|
48 |
+
/* Define to the address where bug reports for this package should be sent. */
|
49 |
+
#define PACKAGE_BUGREPORT "[email protected]"
|
50 |
+
|
51 |
+
/* Define to the full name of this package. */
|
52 |
+
#define PACKAGE_NAME "CityHash"
|
53 |
+
|
54 |
+
/* Define to the full name and version of this package. */
|
55 |
+
#define PACKAGE_STRING "CityHash 1.1.1"
|
56 |
+
|
57 |
+
/* Define to the one symbol short name of this package. */
|
58 |
+
#define PACKAGE_TARNAME "cityhash"
|
59 |
+
|
60 |
+
/* Define to the home page for this package. */
|
61 |
+
#define PACKAGE_URL ""
|
62 |
+
|
63 |
+
/* Define to the version of this package. */
|
64 |
+
#define PACKAGE_VERSION "1.1.1"
|
65 |
+
|
66 |
+
/* Define to 1 if you have the ANSI C header files. */
|
67 |
+
#define STDC_HEADERS 1
|
68 |
+
|
69 |
+
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
70 |
+
significant byte first (like Motorola and SPARC, unlike Intel). */
|
71 |
+
#if defined AC_APPLE_UNIVERSAL_BUILD
|
72 |
+
# if defined __BIG_ENDIAN__
|
73 |
+
# define WORDS_BIGENDIAN 1
|
74 |
+
# endif
|
75 |
+
#else
|
76 |
+
# ifndef WORDS_BIGENDIAN
|
77 |
+
/* # undef WORDS_BIGENDIAN */
|
78 |
+
# endif
|
79 |
+
#endif
|
80 |
+
|
81 |
+
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
|
82 |
+
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
|
83 |
+
#define below would cause a syntax error. */
|
84 |
+
/* #undef _UINT32_T */
|
85 |
+
|
86 |
+
/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
|
87 |
+
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
|
88 |
+
#define below would cause a syntax error. */
|
89 |
+
/* #undef _UINT64_T */
|
90 |
+
|
91 |
+
/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
|
92 |
+
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
|
93 |
+
#define below would cause a syntax error. */
|
94 |
+
/* #undef _UINT8_T */
|
95 |
+
|
96 |
+
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
97 |
+
calls it, or to nothing if 'inline' is not supported under any name. */
|
98 |
+
#ifndef __cplusplus
|
99 |
+
/* #undef inline */
|
100 |
+
#endif
|
101 |
+
|
102 |
+
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
103 |
+
/* #undef size_t */
|
104 |
+
|
105 |
+
/* Define to `int' if <sys/types.h> does not define. */
|
106 |
+
/* #undef ssize_t */
|
107 |
+
|
108 |
+
/* Define to the type of an unsigned integer type of width exactly 32 bits if
|
109 |
+
such a type exists and the standard includes do not define it. */
|
110 |
+
/* #undef uint32_t */
|
111 |
+
|
112 |
+
/* Define to the type of an unsigned integer type of width exactly 64 bits if
|
113 |
+
such a type exists and the standard includes do not define it. */
|
114 |
+
/* #undef uint64_t */
|
115 |
+
|
116 |
+
/* Define to the type of an unsigned integer type of width exactly 8 bits if
|
117 |
+
such a type exists and the standard includes do not define it. */
|
118 |
+
/* #undef uint8_t */
|
cc-multilingual-main/cc_net/vcpkg/ports/cityhash/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO google/cityhash
|
6 |
+
REF 8af9b8c2b889d80c22d6bc26ba0df1afb79a30db
|
7 |
+
SHA512 5878a6a4f8ee99593412d446d96c05be1f89fa7771eca49ff4a52ce181de8199ba558170930996d36f6df80a65889d93c81ab2611868b015d8db913e2ecd2eb9
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
|
13 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/config.h" DESTINATION "${SOURCE_PATH}/src")
|
15 |
+
else()
|
16 |
+
file(MAKE_DIRECTORY "${SOURCE_PATH}/out")
|
17 |
+
vcpkg_execute_required_process(
|
18 |
+
COMMAND "${SOURCE_PATH}/configure"
|
19 |
+
WORKING_DIRECTORY "${SOURCE_PATH}/out"
|
20 |
+
LOGNAME configure-${TARGET_TRIPLET}
|
21 |
+
)
|
22 |
+
file(COPY "${SOURCE_PATH}/out/config.h" DESTINATION "${SOURCE_PATH}/src")
|
23 |
+
endif()
|
24 |
+
|
25 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
26 |
+
FEATURES
|
27 |
+
"sse" ENABLE_SSE
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_cmake_configure(
|
31 |
+
SOURCE_PATH ${SOURCE_PATH}
|
32 |
+
OPTIONS
|
33 |
+
${FEATURE_OPTIONS}
|
34 |
+
)
|
35 |
+
|
36 |
+
vcpkg_cmake_install()
|
37 |
+
vcpkg_copy_pdbs()
|
38 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/cityhash)
|
39 |
+
|
40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
41 |
+
"${CURRENT_PACKAGES_DIR}/debug/share")
|
42 |
+
|
43 |
+
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/cityhash/copyright" COPYONLY)
|
cc-multilingual-main/cc_net/vcpkg/ports/cityhash/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cityhash",
|
3 |
+
"version-date": "2013-01-08",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "CityHash, a family of hash functions for strings.",
|
6 |
+
"homepage": "https://github.com/google/cityhash",
|
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 |
+
"sse": {
|
19 |
+
"description": "Build CityHash variants that depend on the _mm_crc32_u64 intrinsic.",
|
20 |
+
"supports": "x64 | (x86 & !windows)"
|
21 |
+
}
|
22 |
+
}
|
23 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/directx-headers/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Microsoft/DirectX-Headers
|
4 |
+
REF v${VERSION}
|
5 |
+
SHA512 2a87d52d34720555eaff0e983afe80149649de5c82535411a2c3f61b83f49d9ce27976b20d65f2b348cd9933ec5ed93aa3716f9b831ed664116158418e26fb44
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
OPTIONS -DDXHEADERS_INSTALL=ON -DDXHEADERS_BUILD_TEST=OFF -DDXHEADERS_BUILD_GOOGLE_TEST=OFF
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
vcpkg_fixup_pkgconfig()
|
16 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/directx-headers/cmake)
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
19 |
+
|
20 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
21 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/directx-headers/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The DirectX Headers package provides CMake targets:
|
2 |
+
|
3 |
+
find_package(directx-headers CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE Microsoft::DirectX-Headers)
|
cc-multilingual-main/cc_net/vcpkg/ports/directx-headers/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "directx-headers",
|
3 |
+
"version": "1.613.0",
|
4 |
+
"description": "Official DirectX 12 Headers",
|
5 |
+
"homepage": "https://devblogs.microsoft.com/directx/",
|
6 |
+
"documentation": "https://devblogs.microsoft.com/directx/gettingstarted-dx12agility/",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "(windows & !xbox) | linux",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/edflib/CMakeLists.txt
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5)
|
2 |
+
|
3 |
+
project(EDFlib LANGUAGES C)
|
4 |
+
|
5 |
+
option(BUILD_TOOLS "Build EDFlib tools." OFF)
|
6 |
+
|
7 |
+
include(GNUInstallDirs)
|
8 |
+
|
9 |
+
set(sources edflib.h edflib.c)
|
10 |
+
|
11 |
+
add_library(EDFlib ${sources})
|
12 |
+
|
13 |
+
if(BUILD_SHARED_LIBS)
|
14 |
+
target_compile_definitions(EDFlib
|
15 |
+
PUBLIC
|
16 |
+
EDFLIB_SO_DLL
|
17 |
+
PRIVATE
|
18 |
+
$<BUILD_INTERFACE:EDFLIB_BUILD>
|
19 |
+
)
|
20 |
+
endif()
|
21 |
+
|
22 |
+
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
23 |
+
target_compile_definitions(EDFlib PRIVATE _LARGEFILE64_SOURCE _LARGEFILE_SOURCE)
|
24 |
+
target_compile_options(EDFlib PRIVATE -Wall -Wextra -Wshadow -Wformat-nonliteral -Wformat-security)
|
25 |
+
endif()
|
26 |
+
|
27 |
+
set_target_properties(EDFlib PROPERTIES PUBLIC_HEADER edflib.h)
|
28 |
+
|
29 |
+
install(TARGETS EDFlib
|
30 |
+
EXPORT EDFlibTargets
|
31 |
+
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
32 |
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
33 |
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
34 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
35 |
+
INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
36 |
+
)
|
37 |
+
|
38 |
+
install(EXPORT EDFlibTargets
|
39 |
+
FILE unofficial-EDFlibConfig.cmake
|
40 |
+
DESTINATION "share/unofficial-EDFlib"
|
41 |
+
)
|
42 |
+
|
43 |
+
if(BUILD_TOOLS)
|
44 |
+
include(CheckSymbolExists)
|
45 |
+
|
46 |
+
# https://stackoverflow.com/questions/32816646/can-cmake-detect-if-i-need-to-link-to-libm-when-using-pow-in-c
|
47 |
+
if(NOT POW_FUNCTION_EXISTS AND NOT NEED_LINKING_AGAINST_LIBM)
|
48 |
+
check_symbol_exists(pow "math.h" POW_FUNCTION_EXISTS)
|
49 |
+
if(NOT POW_FUNCTION_EXISTS)
|
50 |
+
unset(POW_FUNCTION_EXISTS CACHE)
|
51 |
+
list(APPEND CMAKE_REQUIRED_LIBRARIES m)
|
52 |
+
check_symbol_exists(pow "math.h" POW_FUNCTION_EXISTS)
|
53 |
+
if(POW_FUNCTION_EXISTS)
|
54 |
+
set(NEED_LINKING_AGAINST_LIBM True CACHE BOOL "" FORCE)
|
55 |
+
else()
|
56 |
+
message(FATAL_ERROR "Failed making the pow() function available")
|
57 |
+
endif()
|
58 |
+
endif()
|
59 |
+
endif()
|
60 |
+
|
61 |
+
add_executable(sine_generator sine_generator.c)
|
62 |
+
target_link_libraries(sine_generator PRIVATE EDFlib)
|
63 |
+
|
64 |
+
add_executable(sweep_generator sweep_generator.c)
|
65 |
+
target_link_libraries(sweep_generator PRIVATE EDFlib)
|
66 |
+
|
67 |
+
if(NEED_LINKING_AGAINST_LIBM)
|
68 |
+
target_link_libraries(sine_generator PRIVATE m)
|
69 |
+
target_link_libraries(sweep_generator PRIVATE m)
|
70 |
+
endif()
|
71 |
+
|
72 |
+
install(TARGETS sine_generator sweep_generator
|
73 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
74 |
+
)
|
75 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/edflib/portfile.cmake
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.com
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO Teuniz/EDFlib
|
5 |
+
REF "v${VERSION}"
|
6 |
+
SHA512 7784f3076ce83631cf702d90bf4d690aab2aa3a2977cf98abec5bd00d22a33a6be1167ceae24d55ebf206581e7164a8a48ccd0bf2343bf38367ff3c4bc258aee
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
11 |
+
|
12 |
+
vcpkg_check_features(
|
13 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
FEATURES
|
15 |
+
tools BUILD_TOOLS
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
OPTIONS
|
21 |
+
${FEATURE_OPTIONS}
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
|
26 |
+
vcpkg_copy_pdbs()
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
29 |
+
|
30 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
31 |
+
vcpkg_replace_string(
|
32 |
+
"${CURRENT_PACKAGES_DIR}/include/edflib.h"
|
33 |
+
"#if defined(EDFLIB_SO_DLL)"
|
34 |
+
"#if 1 // defined(EDFLIB_SO_DLL)"
|
35 |
+
)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-EDFlib)
|
39 |
+
|
40 |
+
if ("tools" IN_LIST FEATURES)
|
41 |
+
vcpkg_copy_tools(
|
42 |
+
TOOL_NAMES
|
43 |
+
sine_generator
|
44 |
+
sweep_generator
|
45 |
+
AUTO_CLEAN
|
46 |
+
)
|
47 |
+
endif()
|
48 |
+
|
49 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/edflib/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "edflib",
|
3 |
+
"version": "1.25",
|
4 |
+
"description": "A C library to read/write EDF/EDF+/BDF/BDF+ files",
|
5 |
+
"homepage": "https://www.teuniz.net/edflib/",
|
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 |
+
"tools": {
|
19 |
+
"description": "Build tools"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/efsw/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO SpartanJ/efsw
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 f9503a17ff5b6bdb4770b24c69f8015689ee3bc589428696437d887510e0ab38fddd85cc8e75b6f256d2a6362911ded1cb6a37ab33bd38de51bd779dbdbc8321
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
OPTIONS
|
12 |
+
-DVERBOSE=OFF
|
13 |
+
-DBUILD_TEST_APP=OFF
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/efsw)
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/efsw/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "efsw",
|
3 |
+
"version": "1.3.1",
|
4 |
+
"description": "efsw is a C++ cross-platform file system watcher and notifier.",
|
5 |
+
"homepage": "https://github.com/SpartanJ/efsw",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/esaxx/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO hillbig/esaxx
|
5 |
+
REF ca7cb332011ec37a8436487f210f396b84bd8273
|
6 |
+
SHA512 8346fc93498f7979fd422db527d0e2db73080b2c372263a72a887ddc8328a29391bce6def5845f4500a180f5c2e641105d0ce108092e6eac9020c6bd67fb46df
|
7 |
+
)
|
8 |
+
|
9 |
+
file(INSTALL
|
10 |
+
${SOURCE_PATH}/esa.hxx
|
11 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
12 |
+
)
|
13 |
+
|
14 |
+
# Handle copyright/readme/package files
|
15 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/esaxx RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/esaxx/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "esaxx",
|
3 |
+
"version-string": "ca7cb332011ec37",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "This library provides the implementation of enhanced suffix array."
|
6 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package fluidsynth provides CMake targets:
|
2 |
+
|
3 |
+
find_package(FluidSynth CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE FluidSynth::libfluidsynth)
|
5 |
+
add_custom_command(OUTPUT result COMMAND FluidSynth::fluidsynth ARGS ...)
|
cc-multilingual-main/cc_net/vcpkg/ports/hfsm2/portfile.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO andrew-gresyk/HFSM2
|
4 |
+
REF 1_10_1
|
5 |
+
SHA512 49ae09a3e4052c7a70390510d128d4d0a41f3c2b6bb9cf2c0b36d272ca1a2524c1d2b544e4c36655681255ce6a5e2f3f90f8c4e9957e8c49e49a62927134a718
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
# Install include directory
|
10 |
+
file(INSTALL "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
|
11 |
+
|
12 |
+
# Handle copyright
|
13 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
14 |
+
|
15 |
+
# Copy usage file
|
16 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/hfsm2/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package hfsm2 is header only and can be used from CMake via:
|
2 |
+
|
3 |
+
find_path(HFSM2_INCLUDE_DIRS "hfsm2/machine.hpp")
|
4 |
+
target_include_directories(main PRIVATE ${HFSM2_INCLUDE_DIRS})
|
cc-multilingual-main/cc_net/vcpkg/ports/hfsm2/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "hfsm2",
|
3 |
+
"version": "1.10.1",
|
4 |
+
"description": "Header-only heriarchical FSM framework in C++14, with fully statically-defined structure (no dynamic allocations), built with variadic templates.",
|
5 |
+
"homepage": "https://github.com/andrew-gresyk/HFSM2"
|
6 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/itsy-bitsy/fix-cmake-install.patch
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index c7b2e2a..9219be1 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -31,6 +31,8 @@ project(itsy.bitsy
|
6 |
+
DESCRIPTION "Standard bit utilities to supplement the C and C++ standard libraries."
|
7 |
+
LANGUAGES C CXX)
|
8 |
+
|
9 |
+
+include(CMakePackageConfigHelpers)
|
10 |
+
+include(GNUInstallDirs)
|
11 |
+
# # Pre-dependencies
|
12 |
+
# this is for all the deps we may or may not need before-hand to make things right
|
13 |
+
if(ITSY_BITSY_READTHEDOCS)
|
14 |
+
@@ -100,10 +102,7 @@ option(ITSY_BITSY_EXAMPLES "Enable build of examples" OFF)
|
15 |
+
|
16 |
+
# # Dependencies
|
17 |
+
# ztd.idk
|
18 |
+
-FetchContent_Declare(ztd.idk
|
19 |
+
- GIT_REPOSITORY https://github.com/soasis/idk.git
|
20 |
+
- GIT_TAG main)
|
21 |
+
-FetchContent_MakeAvailable(ztd.idk)
|
22 |
+
+find_package(ztd.idk CONFIG REQUIRED)
|
23 |
+
|
24 |
+
# # itsy.bitsy Target
|
25 |
+
# Build Target
|
26 |
+
@@ -136,6 +135,10 @@ export(TARGETS itsy.bitsy FILE "${CMAKE_CURRENT_BINARY_DIR}/cmake/itsy.bitsy-tar
|
27 |
+
|
28 |
+
install(TARGETS itsy.bitsy
|
29 |
+
EXPORT itsy.bitsy)
|
30 |
+
+install(EXPORT itsy.bitsy
|
31 |
+
+ FILE itsy.bitsy-targets.cmake
|
32 |
+
+ DESTINATION lib/cmake/itsy.bitsy
|
33 |
+
+)
|
34 |
+
|
35 |
+
install(DIRECTORY include/itsy
|
36 |
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
37 |
+
diff --git a/cmake/itsy.bitsy-config.cmake.in b/cmake/itsy.bitsy-config.cmake.in
|
38 |
+
index 9f87935..6e18425 100644
|
39 |
+
--- a/cmake/itsy.bitsy-config.cmake.in
|
40 |
+
+++ b/cmake/itsy.bitsy-config.cmake.in
|
41 |
+
@@ -9,10 +9,13 @@
|
42 |
+
# See https://github.com/ThePhD/itsy_bitsy#using-the-library for documentation.
|
43 |
+
|
44 |
+
@PACKAGE_INIT@
|
45 |
+
+include(CMakeFindDependencyMacro)
|
46 |
+
+find_dependency(ztd.idk CONFIG)
|
47 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/itsy.bitsy-targets.cmake")
|
48 |
+
|
49 |
+
-include("${CMAKE_CURRENT_LIST_DIR}/sol2-targets.cmake")
|
50 |
+
|
51 |
+
MESSAGE(STATUS ${CMAKE_CURRENT_LIST_DIR})
|
52 |
+
+add_library(itsy::bitsy ALIAS itsy.bitsy)
|
53 |
+
|
54 |
+
if (TARGET sol2)
|
55 |
+
get_target_property(SOL2_INCLUDE_DIRS
|
cc-multilingual-main/cc_net/vcpkg/ports/itsy-bitsy/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO ThePhD/itsy_bitsy
|
4 |
+
REF d5b6bf9509bb2dff6235452d427f0b1c349d5f8b
|
5 |
+
SHA512 06489e46ad55a7fa55ddf88290509b157cf53518a8d9532d5a56e9907e5efaa298cb8946807e497461d322f62b4bad9b16864ef0def527edc8503f7a7884b8e1
|
6 |
+
HEAD_REF main
|
7 |
+
PATCHES fix-cmake-install.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
set(VCPKG_BUILD_TYPE release) # header-only
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS
|
15 |
+
-DFETCHCONTENT_FULLY_DISCONNECTED=ON
|
16 |
+
-DITSY_BITSY_SINGLE=OFF
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME itsy.bitsy CONFIG_PATH "lib/cmake/itsy.bitsy")
|
22 |
+
|
23 |
+
vcpkg_fixup_pkgconfig()
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
26 |
+
|
27 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/itsy-bitsy/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "itsy-bitsy",
|
3 |
+
"version-date": "2022-08-02",
|
4 |
+
"description": "Bit containers, sequences, and views for everyone. ",
|
5 |
+
"homepage": "https://github.com/ThePhD/itsy_bitsy",
|
6 |
+
"license": "BSL-1.0",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
"ztd-idk"
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/CMakeLists.txt
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright Mathieu Malaterre <[email protected]>
|
2 |
+
# BSD (Same as jxrlib)
|
3 |
+
# Based on https://jxrlib.codeplex.com/discussions/440294
|
4 |
+
# and modified for vcpkg packaging
|
5 |
+
cmake_minimum_required(VERSION 2.8)
|
6 |
+
project(jxrlib C)
|
7 |
+
|
8 |
+
# Need shared libs for ABI
|
9 |
+
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
10 |
+
|
11 |
+
# Add a debug postfix
|
12 |
+
set(CMAKE_DEBUG_POSTFIX "d")
|
13 |
+
|
14 |
+
# helper macro to preserve original Makefile convention
|
15 |
+
macro(JXR_MAKE_OBJ SET_NAME)
|
16 |
+
foreach(src ${SRC_${SET_NAME}})
|
17 |
+
list(APPEND OBJ_${SET_NAME} ${DIR_${SET_NAME}}/${src})
|
18 |
+
endforeach()
|
19 |
+
endmacro()
|
20 |
+
|
21 |
+
if(NOT WIN32)
|
22 |
+
add_definitions(-D__ANSI__)
|
23 |
+
endif()
|
24 |
+
if(NOT MSVC)
|
25 |
+
add_compile_options(-Wno-error=implicit-function-declaration -Wno-endif-labels)
|
26 |
+
endif()
|
27 |
+
|
28 |
+
include(TestBigEndian)
|
29 |
+
test_big_endian(ISBIGENDIAN)
|
30 |
+
if(ISBIGENDIAN)
|
31 |
+
set(DEF_ENDIAN _BIG__ENDIAN_)
|
32 |
+
endif()
|
33 |
+
|
34 |
+
set(DIR_SYS image/sys)
|
35 |
+
set(DIR_DEC image/decode)
|
36 |
+
set(DIR_ENC image/encode)
|
37 |
+
|
38 |
+
set(DIR_GLUE jxrgluelib)
|
39 |
+
set(DIR_TEST jxrtestlib)
|
40 |
+
set(DIR_EXEC jxrencoderdecoder)
|
41 |
+
|
42 |
+
if(NOT JXRLIB_INSTALL_BIN_DIR)
|
43 |
+
set(JXRLIB_INSTALL_BIN_DIR "bin")
|
44 |
+
endif()
|
45 |
+
|
46 |
+
if(NOT JXRLIB_INSTALL_LIB_DIR)
|
47 |
+
set(JXRLIB_INSTALL_LIB_DIR "lib")
|
48 |
+
endif()
|
49 |
+
|
50 |
+
if(NOT JXRLIB_INSTALL_INCLUDE_DIR)
|
51 |
+
set(JXRLIB_INSTALL_INCLUDE_DIR "include/jxrlib")
|
52 |
+
endif()
|
53 |
+
|
54 |
+
include_directories(
|
55 |
+
common/include
|
56 |
+
${DIR_SYS}
|
57 |
+
${DIR_GLUE}
|
58 |
+
${DIR_TEST}
|
59 |
+
)
|
60 |
+
|
61 |
+
|
62 |
+
# JPEG-XR
|
63 |
+
set(SRC_SYS adapthuff.c image.c strcodec.c strPredQuant.c strTransform.c perfTimerANSI.c)
|
64 |
+
JXR_MAKE_OBJ(SYS)
|
65 |
+
set(SRC_DEC decode.c postprocess.c segdec.c strdec.c strInvTransform.c strPredQuantDec.c JXRTranscode.c)
|
66 |
+
JXR_MAKE_OBJ(DEC)
|
67 |
+
set(SRC_ENC encode.c segenc.c strenc.c strFwdTransform.c strPredQuantEnc.c)
|
68 |
+
JXR_MAKE_OBJ(ENC)
|
69 |
+
|
70 |
+
add_library(jpegxr ${OBJ_ENC} ${OBJ_DEC} ${OBJ_SYS})
|
71 |
+
set_property(TARGET jpegxr
|
72 |
+
PROPERTY COMPILE_DEFINITIONS DISABLE_PERF_MEASUREMENT ${DEF_ENDIAN}
|
73 |
+
)
|
74 |
+
set_property(TARGET jpegxr PROPERTY LINK_INTERFACE_LIBRARIES "")
|
75 |
+
install(TARGETS jpegxr
|
76 |
+
EXPORT JXRLibTargets
|
77 |
+
RUNTIME DESTINATION ${JXRLIB_INSTALL_BIN_DIR}
|
78 |
+
LIBRARY DESTINATION ${JXRLIB_INSTALL_LIB_DIR}
|
79 |
+
ARCHIVE DESTINATION ${JXRLIB_INSTALL_LIB_DIR}
|
80 |
+
)
|
81 |
+
|
82 |
+
# JXR-GLUE
|
83 |
+
set(SRC_GLUE JXRGlue.c JXRMeta.c JXRGluePFC.c JXRGlueJxr.c)
|
84 |
+
JXR_MAKE_OBJ(GLUE)
|
85 |
+
set(SRC_TEST JXRTest.c JXRTestBmp.c JXRTestHdr.c JXRTestPnm.c JXRTestTif.c JXRTestYUV.c)
|
86 |
+
JXR_MAKE_OBJ(TEST)
|
87 |
+
|
88 |
+
add_library(jxrglue ${OBJ_GLUE} ${OBJ_TEST})
|
89 |
+
set_property(TARGET jxrglue
|
90 |
+
PROPERTY COMPILE_DEFINITIONS DISABLE_PERF_MEASUREMENT ${DEF_ENDIAN}
|
91 |
+
)
|
92 |
+
set_property(TARGET jxrglue PROPERTY LINK_INTERFACE_LIBRARIES "")
|
93 |
+
install(TARGETS jxrglue
|
94 |
+
EXPORT JXRLibTargets
|
95 |
+
RUNTIME DESTINATION ${JXRLIB_INSTALL_BIN_DIR}
|
96 |
+
LIBRARY DESTINATION ${JXRLIB_INSTALL_LIB_DIR}
|
97 |
+
ARCHIVE DESTINATION ${JXRLIB_INSTALL_LIB_DIR}
|
98 |
+
)
|
99 |
+
|
100 |
+
target_link_libraries(jxrglue jpegxr)
|
101 |
+
|
102 |
+
# install rules
|
103 |
+
install(FILES jxrgluelib/JXRGlue.h jxrgluelib/JXRMeta.h jxrtestlib/JXRTest.h
|
104 |
+
image/sys/windowsmediaphoto.h
|
105 |
+
DESTINATION ${JXRLIB_INSTALL_INCLUDE_DIR} COMPONENT Headers
|
106 |
+
)
|
107 |
+
install(DIRECTORY common/include/ DESTINATION ${JXRLIB_INSTALL_INCLUDE_DIR}
|
108 |
+
FILES_MATCHING PATTERN "*.h"
|
109 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/fix-mingw.patch
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/common/include/wmspecstrings_adt.h b/common/include/wmspecstrings_adt.h
|
2 |
+
index ca7f25f..d5eb028 100644
|
3 |
+
--- a/common/include/wmspecstrings_adt.h
|
4 |
+
+++ b/common/include/wmspecstrings_adt.h
|
5 |
+
@@ -36,6 +36,10 @@
|
6 |
+
__type_has_adt_prop(compname,valid_schars) \
|
7 |
+
__type_has_adt_prop(compname,correct_len) \
|
8 |
+
__nullterminated
|
9 |
+
+#ifdef __MINGW32__
|
10 |
+
+#undef __$compname_props
|
11 |
+
+#define __$compname_props
|
12 |
+
+#endif
|
13 |
+
#if defined(UNICODE) || defined(_UNICODE)
|
14 |
+
#define __$TCHAR unsigned short
|
15 |
+
#else
|
16 |
+
diff --git a/image/sys/strcodec.h b/image/sys/strcodec.h
|
17 |
+
index 695a454..9fad5b6 100644
|
18 |
+
--- a/image/sys/strcodec.h
|
19 |
+
+++ b/image/sys/strcodec.h
|
20 |
+
@@ -59,7 +59,7 @@
|
21 |
+
//#ifdef WIN32
|
22 |
+
#if defined(WIN32) && !defined(UNDER_CE) // WIN32 seems to be defined always in VS2005 for ARM platform
|
23 |
+
#define PLATFORM_X86
|
24 |
+
-#include "..\x86\x86.h"
|
25 |
+
+#include "../x86/x86.h"
|
26 |
+
#endif
|
27 |
+
|
28 |
+
#ifndef UNREFERENCED_PARAMETER
|
29 |
+
diff --git a/jxrgluelib/JXRMeta.h b/jxrgluelib/JXRMeta.h
|
30 |
+
index b7b5880..7c9d653 100644
|
31 |
+
--- a/jxrgluelib/JXRMeta.h
|
32 |
+
+++ b/jxrgluelib/JXRMeta.h
|
33 |
+
@@ -111,6 +111,18 @@
|
34 |
+
#define __out_win __out
|
35 |
+
#endif
|
36 |
+
|
37 |
+
+#ifndef __in
|
38 |
+
+#define __in
|
39 |
+
+#endif
|
40 |
+
+#ifndef __out
|
41 |
+
+#define __out
|
42 |
+
+#endif
|
43 |
+
+#ifndef __in_ecount
|
44 |
+
+#define __in_ecount(x)
|
45 |
+
+#endif
|
46 |
+
+#ifndef __out_ecount
|
47 |
+
+#define __out_ecount(x)
|
48 |
+
+#endif
|
49 |
+
|
50 |
+
//================================================================
|
51 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO 4creators/jxrlib
|
6 |
+
REF f7521879862b9085318e814c6157490dd9dbbdb4
|
7 |
+
SHA512 f5617cbe73b6b905cc6bba181e6a3efedd59584f7a8c90e0f34db580cfdad4239a2ab753df4e221f26a5c0db51475b021052e3b9e3ab3673573573b1d57f3fdb
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
guiddef.patch
|
11 |
+
fix-mingw.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
vcpkg_copy_pdbs()
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
24 |
+
|
25 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/FindJXR.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/jxr")
|
26 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/jxr")
|
27 |
+
|
28 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
29 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(JXR_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
|
2 |
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
3 |
+
|
4 |
+
_find_package(${ARGS})
|
5 |
+
|
6 |
+
set(CMAKE_MODULE_PATH ${JXR_PREV_MODULE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/kaitai-struct-cpp-stl-runtime/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO kaitai-io/kaitai_struct_cpp_stl_runtime
|
4 |
+
REF ${VERSION}
|
5 |
+
SHA512 53b26627e281a12b6c1d217e8b439aba7dabf6fc55d3edc27e70f7757851f060f4039db3a16c48c5c60a715671b855b51e527f154df7d94547943f865c9d4b9a
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
set(STRING_ENCODING_TYPE "NONE")
|
10 |
+
if ("iconv" IN_LIST FEATURES)
|
11 |
+
set(STRING_ENCODING_TYPE "ICONV")
|
12 |
+
endif()
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS
|
17 |
+
-DSTRING_ENCODING_TYPE=${STRING_ENCODING_TYPE}
|
18 |
+
-DBUILD_TESTS=OFF
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
24 |
+
|
25 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/kaitai-struct-cpp-stl-runtime/vcpkg.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "kaitai-struct-cpp-stl-runtime",
|
3 |
+
"version": "0.10.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Kaitai Struct is a declarative language used for describe various binary data structures, laid out in files or in memory. This library implements Kaitai Struct API for C++ using STL",
|
6 |
+
"homepage": "http://kaitai.io/",
|
7 |
+
"documentation": "https://doc.kaitai.io/lang_cpp_stl.html",
|
8 |
+
"license": "MIT",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
"zlib"
|
19 |
+
],
|
20 |
+
"default-features": [
|
21 |
+
"iconv"
|
22 |
+
],
|
23 |
+
"features": {
|
24 |
+
"iconv": {
|
25 |
+
"description": "Set the way strings have to be encoded to ICONV",
|
26 |
+
"dependencies": [
|
27 |
+
"libiconv"
|
28 |
+
]
|
29 |
+
}
|
30 |
+
}
|
31 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libxfixes/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet")
|
3 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
4 |
+
else()
|
5 |
+
vcpkg_from_gitlab(
|
6 |
+
GITLAB_URL https://gitlab.freedesktop.org/xorg
|
7 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
8 |
+
REPO lib/libxfixes
|
9 |
+
REF 6fe3bd64dd82f704ed91478acb4c99ab5c00be16 # 6.0.0
|
10 |
+
SHA512 429e65f4183d92cee1380273a23be9bf157bdd19e01e164d8b9058a2a54601af8f4556888302a2cad062c2cfc4b3a37d6b8f5b7ac6bdd6b5c069c7b791422201
|
11 |
+
HEAD_REF master
|
12 |
+
)
|
13 |
+
|
14 |
+
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
|
15 |
+
|
16 |
+
vcpkg_configure_make(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
AUTOCONFIG
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_install_make()
|
22 |
+
vcpkg_fixup_pkgconfig()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
26 |
+
|
27 |
+
# Handle copyright
|
28 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
29 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libxfixes/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libxfixes",
|
3 |
+
"version": "6.0.0",
|
4 |
+
"description": "Xlib-based library for the XFIXES Extension",
|
5 |
+
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxfixes",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
"libx11",
|
9 |
+
"xorg-macros",
|
10 |
+
"xproto"
|
11 |
+
]
|
12 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/p-ranav-csv/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO p-ranav/csv
|
6 |
+
REF 13e04e5b31b585855c7d7e7f3c65e47ae863569b
|
7 |
+
SHA512 ddcdc7af68a0dabb2b7e15822f5900461b9f424ff5e0ac6cafd2454c2f21ca97785ef09ddb805a92e2452fe14c14167c762a822a8af6c5b86446f67e7f3f71bd
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DCSV_BUILD_TESTS=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
20 |
+
|
21 |
+
# Handle copyright
|
22 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
cc-multilingual-main/cc_net/vcpkg/ports/p-ranav-csv/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "p-ranav-csv",
|
3 |
+
"version-date": "2019-07-11",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "[deprecated] CSV for modern C++",
|
6 |
+
"homepage": "https://github.com/p-ranav/csv",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/pffft/copyright
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright (c) 2013 Julien Pommier ( [email protected] )
|
2 |
+
|
3 |
+
Based on original fortran 77 code from FFTPACKv4 from NETLIB
|
4 |
+
(http://www.netlib.org/fftpack), authored by Dr Paul Swarztrauber
|
5 |
+
of NCAR, in 1985.
|
6 |
+
|
7 |
+
As confirmed by the NCAR fftpack software curators, the following
|
8 |
+
FFTPACKv5 license applies to FFTPACKv4 sources. My changes are
|
9 |
+
released under the same terms.
|
10 |
+
|
11 |
+
FFTPACK license:
|
12 |
+
|
13 |
+
http://www.cisl.ucar.edu/css/software/fftpack5/ftpk.html
|
14 |
+
|
15 |
+
Copyright (c) 2004 the University Corporation for Atmospheric
|
16 |
+
Research ("UCAR"). All rights reserved. Developed by NCAR's
|
17 |
+
Computational and Information Systems Laboratory, UCAR,
|
18 |
+
www.cisl.ucar.edu.
|
19 |
+
|
20 |
+
Redistribution and use of the Software in source and binary forms,
|
21 |
+
with or without modification, is permitted provided that the
|
22 |
+
following conditions are met:
|
23 |
+
|
24 |
+
- Neither the names of NCAR's Computational and Information Systems
|
25 |
+
Laboratory, the University Corporation for Atmospheric Research,
|
26 |
+
nor the names of its sponsors or contributors may be used to
|
27 |
+
endorse or promote products derived from this Software without
|
28 |
+
specific prior written permission.
|
29 |
+
|
30 |
+
- Redistributions of source code must retain the above copyright
|
31 |
+
notices, this list of conditions, and the disclaimer below.
|
32 |
+
|
33 |
+
- Redistributions in binary form must reproduce the above copyright
|
34 |
+
notice, this list of conditions, and the disclaimer below in the
|
35 |
+
documentation and/or other materials provided with the
|
36 |
+
distribution.
|
37 |
+
|
38 |
+
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
39 |
+
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF
|
40 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
41 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT
|
42 |
+
HOLDERS BE LIABLE FOR ANY CLAIM, INDIRECT, INCIDENTAL, SPECIAL,
|
43 |
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
44 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
45 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
|
46 |
+
SOFTWARE.
|
47 |
+
|
48 |
+
|
49 |
+
PFFFT : a Pretty Fast FFT.
|
50 |
+
|
51 |
+
This file is largerly based on the original FFTPACK implementation, modified in
|
52 |
+
order to take advantage of SIMD instructions of modern CPUs.
|
cc-multilingual-main/cc_net/vcpkg/ports/pffft/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_bitbucket(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO jpommier/pffft
|
6 |
+
REF ed78751d751e51bbd94c41d24f748b400f272d69
|
7 |
+
SHA512 44f65c7f7e5b71f549dca2e03d58b1fd64e698858f79e4c2833a9ae3dff8a835cf9d5e14be2341c6370f800012cb69b05b9226d6918b12e67f7f7e81ed8e9ad4
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-invalid-command.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS_DEBUG
|
18 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
vcpkg_cmake_config_fixup()
|
23 |
+
|
24 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/phnt/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "phnt",
|
3 |
+
"version-date": "2020-12-21",
|
4 |
+
"description": "Windows Native API header files",
|
5 |
+
"homepage": "https://github.com/processhacker/phnt"
|
6 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/quill/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO odygrd/quill
|
6 |
+
REF v${VERSION}
|
7 |
+
SHA512 7adf5ac68324e0f5dd1b3e6816d1e8313cb349b721a145325e8fce9428da9b1f3121a0f63fcdfe1e2e41356230d73f069ee35379930543589a2241e31b5df1c0
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
if(VCPKG_TARGET_IS_ANDROID)
|
12 |
+
set(ADDITIONAL_OPTIONS -DQUILL_NO_THREAD_NAME_SUPPORT=ON)
|
13 |
+
endif()
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
OPTIONS
|
18 |
+
-DQUILL_FMT_EXTERNAL=ON
|
19 |
+
${ADDITIONAL_OPTIONS}
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/quill)
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/quill/bundled")
|
26 |
+
|
27 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
28 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
29 |
+
endif()
|
30 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
31 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
32 |
+
endif()
|
33 |
+
vcpkg_fixup_pkgconfig()
|
34 |
+
|
35 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/quill/TweakMe.h" "// #define QUILL_FMT_EXTERNAL" "#define QUILL_FMT_EXTERNAL")
|
36 |
+
if(VCPKG_TARGET_IS_ANDROID)
|
37 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/quill/TweakMe.h" "// #define QUILL_NO_THREAD_NAME_SUPPORT" "#define QUILL_NO_THREAD_NAME_SUPPORT")
|
38 |
+
endif()
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
40 |
+
|
41 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/quill/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "quill",
|
3 |
+
"version": "3.7.0",
|
4 |
+
"description": "C++14 Asynchronous Low Latency Logging Library",
|
5 |
+
"homepage": "https://github.com/odygrd/quill/",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
"fmt",
|
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/sdl2-image/fix-findwebp.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 65a8811..1f29faa 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -690,7 +690,7 @@ if(SDL2IMAGE_WEBP)
|
6 |
+
add_library(SDL2_image::external_libwebp ALIAS webp)
|
7 |
+
else()
|
8 |
+
message(STATUS "${PROJECT_NAME}: Using system libwebp")
|
9 |
+
- find_package(webp REQUIRED)
|
10 |
+
+ find_package(webp NAMES WebP CONFIG REQUIRED)
|
11 |
+
list(APPEND PC_REQUIRES libwebp)
|
12 |
+
endif()
|
13 |
+
if(SDL2IMAGE_WEBP_SHARED)
|
14 |
+
diff --git a/SDL2_imageConfig.cmake.in b/SDL2_imageConfig.cmake.in
|
15 |
+
index c59e844..7b16a60 100644
|
16 |
+
--- a/SDL2_imageConfig.cmake.in
|
17 |
+
+++ b/SDL2_imageConfig.cmake.in
|
18 |
+
@@ -74,7 +74,7 @@ endif()
|
19 |
+
|
20 |
+
if(SDL2IMAGE_WEBP AND NOT SDL2IMAGE_VENDORED AND NOT TARGET WebP::webp)
|
21 |
+
list(APPEND webp_ROOT "${CMAKE_CURRENT_LIST_DIR}")
|
22 |
+
- find_dependency(webp)
|
23 |
+
+ find_dependency(webp NAMES WebP CONFIG)
|
24 |
+
endif()
|
25 |
+
|
26 |
+
#FIXME: can't add SDL2IMAGE_SDL2_REQUIRED_VERSION since not all SDL2 installs ship SDL2ConfigVersion.cmake
|