Spaces:
Sleeping
Sleeping
071fb15fc3d356ec76b5439cc353b6868300b0a74d0effa556f4b9f8fc90ba13
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmslib/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nng/portfile.cmake +55 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nng/vcpkg.json +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nngpp/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nngpp/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nnpack/fix-cmakelists.patch +98 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nnpack/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nnpack/vcpkg.json +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nonius/CMakeLists.txt +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nonius/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nonius/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nowide/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nowide/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nrf-ble-driver/001-arm64-support.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nrf-ble-driver/portfile.cmake +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nrf-ble-driver/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nspr/portfile.cmake +94 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nspr/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nss/01-nspr-no-lib-prefix.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nss/02-gen-debug-info-for-release.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nss/portfile.cmake +208 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nss/vcpkg.json +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nsync/export-targets.patch +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nsync/fix-install.patch +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nsync/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nsync/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nt-wrapper/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nt-wrapper/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nu-book-zxing-cpp/ignore-pdb-install-symbols-in-lib.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nu-book-zxing-cpp/portfile.cmake +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nu-book-zxing-cpp/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuklear/CMakeLists.txt +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuklear/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuklear/vcpkg.json +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/numactl/portfile.cmake +69 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/numactl/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/numcpp/portfile.cmake +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/numcpp/vcpkg.json +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuspell/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuspell/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/001-define-value-for-HAVE_UNISTD_H-in-mac-os.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/add-compile-options-for-osx.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/bc6h.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/bc7.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/fix-build-error.patch +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/fix-intrinsic-function.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/skip-building-libsquish.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/squish.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/vcpkg.json +16 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmslib/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nmslib",
|
3 |
+
"version": "2.1.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Non-Metric Space Library (NMSLIB) is an efficient similarity search library and a toolkit for evaluation of k-NN methods for generic non-metric spaces.",
|
6 |
+
"homepage": "https://github.com/searchivarius/nmslib",
|
7 |
+
"supports": "!(arm | uwp)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nng/portfile.cmake
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO nanomsg/nng
|
4 |
+
REF 9fcf039b573d153ba9bbc2beb5f11259ddacdcff # v1.5.1
|
5 |
+
SHA512 3db2668c3f971dc54156df2a3520645224fbb55460957da35940889c3148cb2cbc67c10cd23b9614ece70235d1f6003618310129eb9c40ced42db058c140dd58
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(
|
10 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
11 |
+
FEATURES
|
12 |
+
mbedtls NNG_ENABLE_TLS
|
13 |
+
tools NNG_ENABLE_NNGCAT
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
-DNNG_TESTS=OFF
|
20 |
+
${FEATURE_OPTIONS}
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
|
25 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/nng)
|
26 |
+
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
28 |
+
|
29 |
+
vcpkg_replace_string(
|
30 |
+
"${CURRENT_PACKAGES_DIR}/include/nng/nng.h"
|
31 |
+
"defined(NNG_SHARED_LIB)"
|
32 |
+
"0 /* defined(NNG_SHARED_LIB) */"
|
33 |
+
)
|
34 |
+
|
35 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
36 |
+
vcpkg_replace_string(
|
37 |
+
${CURRENT_PACKAGES_DIR}/include/nng/nng.h
|
38 |
+
"!defined(NNG_STATIC_LIB)"
|
39 |
+
"1 /* !defined(NNG_STATIC_LIB) */"
|
40 |
+
)
|
41 |
+
else()
|
42 |
+
vcpkg_replace_string(
|
43 |
+
${CURRENT_PACKAGES_DIR}/include/nng/nng.h
|
44 |
+
"!defined(NNG_STATIC_LIB)"
|
45 |
+
"0 /* !defined(NNG_STATIC_LIB) */"
|
46 |
+
)
|
47 |
+
endif()
|
48 |
+
|
49 |
+
if ("tools" IN_LIST FEATURES)
|
50 |
+
vcpkg_copy_tools(TOOL_NAMES nngcat AUTO_CLEAN)
|
51 |
+
endif()
|
52 |
+
|
53 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
54 |
+
|
55 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nng/vcpkg.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nng",
|
3 |
+
"version-semver": "1.5.1",
|
4 |
+
"description": "nanomsg-next-gen, lightweight messaging library",
|
5 |
+
"homepage": "https://nng.nanomsg.org",
|
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 |
+
"mbedtls": {
|
19 |
+
"description": "nng TLS support",
|
20 |
+
"dependencies": [
|
21 |
+
"mbedtls"
|
22 |
+
]
|
23 |
+
},
|
24 |
+
"tools": {
|
25 |
+
"description": "nng tools (nngcat, for example)"
|
26 |
+
}
|
27 |
+
}
|
28 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nngpp/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO cwzx/nngpp
|
4 |
+
REF cc5d2641babab165d8a9943817c46d36c6dc17c2 #v1.3.0
|
5 |
+
SHA512 76b78f5b39b24fae3820924abb5c2f8f51f1683c08211366668745196b184ee4b4c9b1fd2fc68e8f234a56b802a4a79249d173d1562af46046d19a4498222405
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_cmake(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
PREFER_NINJA
|
12 |
+
OPTIONS
|
13 |
+
-DNNGPP_BUILD_DEMOS=OFF
|
14 |
+
-DNNGPP_BUILD_TESTS=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_cmake()
|
18 |
+
|
19 |
+
# Move CMake config files to the right place
|
20 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
23 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
24 |
+
|
25 |
+
# Handle copyright
|
26 |
+
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
27 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nngpp/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nngpp",
|
3 |
+
"version-string": "1.3.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "C++ wrapper around the nanomsg NNG API.",
|
6 |
+
"homepage": "https://github.com/cwzx/nngpp",
|
7 |
+
"dependencies": [
|
8 |
+
"nng"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nnpack/fix-cmakelists.patch
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 5ecd2df..8565044 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -12,8 +12,6 @@ SET_PROPERTY(CACHE NNPACK_BACKEND PROPERTY STRINGS auto psimd scalar)
|
6 |
+
OPTION(NNPACK_CONVOLUTION_ONLY "Build only NNPACK functions for convolutional layer" OFF)
|
7 |
+
OPTION(NNPACK_INFERENCE_ONLY "Build only NNPACK functions for inference" OFF)
|
8 |
+
OPTION(NNPACK_CUSTOM_THREADPOOL "Build NNPACK for custom thread pool" OFF)
|
9 |
+
-SET(NNPACK_LIBRARY_TYPE "default" CACHE STRING "Type of library (shared, static, or default) to build")
|
10 |
+
-SET_PROPERTY(CACHE NNPACK_LIBRARY_TYPE PROPERTY STRINGS default static shared)
|
11 |
+
OPTION(NNPACK_BUILD_TESTS "Build NNPACK unit tests" ON)
|
12 |
+
|
13 |
+
# ---[ CMake options
|
14 |
+
@@ -442,15 +440,7 @@ ELSE()
|
15 |
+
SET(NNPACK_BACKEND_C_SRCS ${NNPACK_BACKEND_SRCS})
|
16 |
+
ENDIF()
|
17 |
+
|
18 |
+
-IF(NNPACK_LIBRARY_TYPE STREQUAL "default")
|
19 |
+
- ADD_LIBRARY(nnpack ${NNPACK_INIT_SRCS} ${NNPACK_LAYER_SRCS} ${NNPACK_BACKEND_C_SRCS} ${NNPACK_BACKEND_PEACHPY_OBJS})
|
20 |
+
-ELSEIF(NNPACK_LIBRARY_TYPE STREQUAL "shared")
|
21 |
+
- ADD_LIBRARY(nnpack SHARED ${NNPACK_INIT_SRCS} ${NNPACK_LAYER_SRCS} ${NNPACK_BACKEND_C_SRCS} ${NNPACK_BACKEND_PEACHPY_OBJS})
|
22 |
+
-ELSEIF(NNPACK_LIBRARY_TYPE STREQUAL "static")
|
23 |
+
- ADD_LIBRARY(nnpack STATIC ${NNPACK_INIT_SRCS} ${NNPACK_LAYER_SRCS} ${NNPACK_BACKEND_C_SRCS} ${NNPACK_BACKEND_PEACHPY_OBJS})
|
24 |
+
-ELSE()
|
25 |
+
- MESSAGE(FATAL_ERROR "Unsupported NNPACK library type \"${NNPACK_LIBRARY_TYPE}\". Must be \"static\", \"shared\", or \"default\"")
|
26 |
+
-ENDIF()
|
27 |
+
+ADD_LIBRARY(nnpack ${NNPACK_INIT_SRCS} ${NNPACK_LAYER_SRCS} ${NNPACK_BACKEND_C_SRCS} ${NNPACK_BACKEND_PEACHPY_OBJS})
|
28 |
+
NNPACK_TARGET_ENABLE_C99(nnpack)
|
29 |
+
IF(IOS OR CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv5te|armv7-a|armv7l)$")
|
30 |
+
IF(IOS AND NNPACK_BACKEND STREQUAL "neon")
|
31 |
+
@@ -496,7 +486,7 @@ NNPACK_TARGET_ENABLE_C99(nnpack_reference_layers)
|
32 |
+
TARGET_INCLUDE_DIRECTORIES(nnpack_reference_layers PUBLIC include)
|
33 |
+
|
34 |
+
# ---[ Configure cpuinfo
|
35 |
+
-IF(NOT TARGET cpuinfo)
|
36 |
+
+IF(FALSE)
|
37 |
+
SET(CPUINFO_BUILD_TOOLS OFF CACHE BOOL "")
|
38 |
+
SET(CPUINFO_BUILD_UNIT_TESTS OFF CACHE BOOL "")
|
39 |
+
SET(CPUINFO_BUILD_MOCK_TESTS OFF CACHE BOOL "")
|
40 |
+
@@ -505,10 +495,11 @@ IF(NOT TARGET cpuinfo)
|
41 |
+
"${CPUINFO_SOURCE_DIR}"
|
42 |
+
"${CONFU_DEPENDENCIES_BINARY_DIR}/cpuinfo")
|
43 |
+
ENDIF()
|
44 |
+
-TARGET_LINK_LIBRARIES(nnpack PRIVATE cpuinfo)
|
45 |
+
+find_package(cpuinfo CONFIG REQUIRED)
|
46 |
+
+target_link_libraries(nnpack PUBLIC cpuinfo::cpuinfo)
|
47 |
+
|
48 |
+
# ---[ Configure pthreadpool
|
49 |
+
-IF(NOT TARGET pthreadpool)
|
50 |
+
+IF(FALSE)
|
51 |
+
SET(PTHREADPOOL_BUILD_TESTS OFF CACHE BOOL "")
|
52 |
+
SET(PTHREADPOOL_BUILD_BENCHMARKS OFF CACHE BOOL "")
|
53 |
+
ADD_SUBDIRECTORY(
|
54 |
+
@@ -525,33 +516,37 @@ ENDIF()
|
55 |
+
TARGET_LINK_LIBRARIES(nnpack_reference_layers PUBLIC pthreadpool)
|
56 |
+
|
57 |
+
# ---[ Configure FXdiv
|
58 |
+
-IF(NOT TARGET fxdiv)
|
59 |
+
+IF(FALSE)
|
60 |
+
SET(FXDIV_BUILD_TESTS OFF CACHE BOOL "")
|
61 |
+
SET(FXDIV_BUILD_BENCHMARKS OFF CACHE BOOL "")
|
62 |
+
ADD_SUBDIRECTORY(
|
63 |
+
"${FXDIV_SOURCE_DIR}"
|
64 |
+
"${CONFU_DEPENDENCIES_BINARY_DIR}/fxdiv")
|
65 |
+
ENDIF()
|
66 |
+
-TARGET_LINK_LIBRARIES(nnpack PRIVATE fxdiv)
|
67 |
+
+find_path(FXDIV_INCLUDE_DIRS "fxdiv.h")
|
68 |
+
+target_include_directories(nnpack PRIVATE ${FXDIV_INCLUDE_DIRS})
|
69 |
+
+
|
70 |
+
|
71 |
+
# ---[ Configure psimd
|
72 |
+
-IF(NOT TARGET psimd)
|
73 |
+
+IF(FALSE)
|
74 |
+
ADD_SUBDIRECTORY(
|
75 |
+
"${PSIMD_SOURCE_DIR}"
|
76 |
+
"${CONFU_DEPENDENCIES_BINARY_DIR}/psimd")
|
77 |
+
ENDIF()
|
78 |
+
-TARGET_LINK_LIBRARIES(nnpack PRIVATE psimd)
|
79 |
+
+find_path(PSIMD_INCLUDE_DIRS "psimd.h")
|
80 |
+
+target_include_directories(nnpack PRIVATE ${PSIMD_INCLUDE_DIRS})
|
81 |
+
|
82 |
+
# ---[ Configure FP16
|
83 |
+
-IF(NOT TARGET fp16)
|
84 |
+
+IF(FALSE)
|
85 |
+
SET(FP16_BUILD_TESTS OFF CACHE BOOL "")
|
86 |
+
SET(FP16_BUILD_BENCHMARKS OFF CACHE BOOL "")
|
87 |
+
ADD_SUBDIRECTORY(
|
88 |
+
"${FP16_SOURCE_DIR}"
|
89 |
+
"${CONFU_DEPENDENCIES_BINARY_DIR}/fp16")
|
90 |
+
ENDIF()
|
91 |
+
-TARGET_LINK_LIBRARIES(nnpack PRIVATE fp16)
|
92 |
+
-TARGET_LINK_LIBRARIES(nnpack_reference_layers PUBLIC fp16)
|
93 |
+
+find_path(FP16_INCLUDE_DIRS "fp16.h")
|
94 |
+
+target_include_directories(nnpack PRIVATE ${FP16_INCLUDE_DIRS})
|
95 |
+
+target_include_directories(nnpack_reference_layers PUBLIC ${FP16_INCLUDE_DIRS})
|
96 |
+
|
97 |
+
INSTALL(TARGETS nnpack
|
98 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nnpack/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Maratyszcza/nnpack
|
4 |
+
REF c07e3a0400713d546e0dea2d5466dd22ea389c73
|
5 |
+
SHA512 f0b261e8698b412d12dd739e5d0cf71c284965ae28da735ae22814a004358ba3ecaea6cd26fa17b594c0245966b7dd2561c1e05c6cbf0592fd7b85ea0f21eb37
|
6 |
+
PATCHES
|
7 |
+
fix-cmakelists.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH ${SOURCE_PATH}
|
12 |
+
OPTIONS
|
13 |
+
-DNNPACK_BACKEND=psimd
|
14 |
+
-DNNPACK_BUILD_TESTS=OFF
|
15 |
+
-DNNPACK_BUILD_BENCHMARKS=OFF
|
16 |
+
-DNNPACK_CUSTOM_THREADPOOL=OFF
|
17 |
+
)
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
|
21 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nnpack/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nnpack",
|
3 |
+
"version-date": "2021-02-21",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Acceleration package for neural networks on multi-core CPUs",
|
6 |
+
"homepage": "https://github.com/Maratyszcza/NNPACK",
|
7 |
+
"license": "BSD-2-Clause",
|
8 |
+
"supports": "linux | osx",
|
9 |
+
"dependencies": [
|
10 |
+
"cpuinfo",
|
11 |
+
"fp16",
|
12 |
+
"fxdiv",
|
13 |
+
"psimd",
|
14 |
+
"pthreadpool",
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
]
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nonius/CMakeLists.txt
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.9)
|
2 |
+
cmake_policy(VERSION ${CMAKE_VERSION}) # use default policies of current cmake version
|
3 |
+
|
4 |
+
project(nonius)
|
5 |
+
|
6 |
+
add_library(nonius INTERFACE)
|
7 |
+
target_include_directories(nonius INTERFACE
|
8 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
9 |
+
$<INSTALL_INTERFACE:include>
|
10 |
+
)
|
11 |
+
|
12 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
13 |
+
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/
|
14 |
+
DESTINATION include
|
15 |
+
)
|
16 |
+
endif()
|
17 |
+
|
18 |
+
install(TARGETS nonius
|
19 |
+
EXPORT noniusExport
|
20 |
+
RUNTIME DESTINATION bin
|
21 |
+
LIBRARY DESTINATION lib
|
22 |
+
ARCHIVE DESTINATION lib
|
23 |
+
)
|
24 |
+
|
25 |
+
install(
|
26 |
+
EXPORT noniusExport
|
27 |
+
FILE noniusConfig.cmake
|
28 |
+
NAMESPACE Nonius::
|
29 |
+
DESTINATION share/nonius
|
30 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nonius/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO libnonius/nonius
|
6 |
+
REF 6396b7ad6685843eea63754ffa567dd66353c1a8
|
7 |
+
SHA512 3b824a6011f1dbe116271dd76e8214ed98d73dfc215d7c9242bf298eb0e7ee3a3e3198f477b49fdbe098ac6e3e4edd8ca7bd2e03cc2036189bf3630ef3fcdca2
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_install_cmake()
|
20 |
+
|
21 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/${PORT})
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
24 |
+
|
25 |
+
# Handle copyright
|
26 |
+
configure_file(${SOURCE_PATH}/COPYING.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nonius/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nonius",
|
3 |
+
"version-string": "2019-04-20",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A C++ micro-benchmarking framework",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-algorithm",
|
8 |
+
"boost-lexical-cast",
|
9 |
+
"boost-math"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nowide/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://github.com/boostorg/nowide/releases/download/v11.1.3/nowide_standalone_v11.1.3.tar.gz"
|
3 |
+
FILENAME "nowide_standalone_v11.1.3.tar.gz"
|
4 |
+
SHA512 8e493b9ee7f3f218dcc1a0c2f040c040f8f3d10ec7c204caee92986a2cc54d4fc06f530b13e7b14cfdbbd42fd106e151916e2f8fae524a051688d6785d7c2993
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS -DBUILD_TESTING=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/nowide)
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
|
23 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nowide/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nowide",
|
3 |
+
"version": "11.1.3",
|
4 |
+
"description": "Boost nowide module (standalone)",
|
5 |
+
"homepage": "https://github.com/boostorg/nowide",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nrf-ble-driver/001-arm64-support.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 99daa24..9a18ee5 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -259,6 +259,9 @@ endforeach(SD_API_VER)
|
6 |
+
# Additional special linkage libraries
|
7 |
+
foreach(SD_API_VER ${SD_API_VERS})
|
8 |
+
if(WIN32)
|
9 |
+
+ # arm64-windows support
|
10 |
+
+ target_link_libraries(${NRF_BLE_DRIVER_${SD_API_VER}_STATIC_LIB} PRIVATE "advapi32")
|
11 |
+
+ target_link_libraries(${NRF_BLE_DRIVER_${SD_API_VER}_SHARED_LIB} PRIVATE "advapi32")
|
12 |
+
elseif(APPLE)
|
13 |
+
target_link_libraries(${NRF_BLE_DRIVER_${SD_API_VER}_STATIC_LIB} PRIVATE "-framework CoreFoundation" "-framework IOKit")
|
14 |
+
target_link_libraries(${NRF_BLE_DRIVER_${SD_API_VER}_SHARED_LIB} PRIVATE "-framework CoreFoundation" "-framework IOKit")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nrf-ble-driver/portfile.cmake
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
2 |
+
message(
|
3 |
+
"${PORT} currently requires the following libraries from the system package manager:
|
4 |
+
libudev-dev
|
5 |
+
These can be installed on Ubuntu systems via sudo apt install libudev-dev"
|
6 |
+
)
|
7 |
+
endif()
|
8 |
+
|
9 |
+
vcpkg_from_github(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
REPO NordicSemiconductor/pc-ble-driver
|
12 |
+
REF v4.1.2
|
13 |
+
SHA512 625a52151f2c78421e48e90ff60292c6106e8504b55a26c7df716df75e051a40d2ee4a26c57b5daaa370e53a79002fe965aee8a0d8749f7dce380e8e4a617c95
|
14 |
+
HEAD_REF master
|
15 |
+
PATCHES
|
16 |
+
001-arm64-support.patch
|
17 |
+
)
|
18 |
+
|
19 |
+
# Ensure that git is found within CMakeLists.txt by appending vcpkg's git executable dirpath to $PATH.
|
20 |
+
# Git should always be available as it is downloaded during the bootstrap phase.
|
21 |
+
# Append instead of prepend to $PATH to honor the user's git executable as a general rule.
|
22 |
+
find_program(GIT NAMES git git.cmd)
|
23 |
+
get_filename_component(GIT_EXE_DIRPATH "${GIT}" DIRECTORY)
|
24 |
+
set(ENV{PATH} "$ENV{PATH};${GIT_EXE_DIRPATH}")
|
25 |
+
|
26 |
+
vcpkg_configure_cmake(
|
27 |
+
SOURCE_PATH ${SOURCE_PATH}
|
28 |
+
PREFER_NINJA
|
29 |
+
OPTIONS -DDISABLE_EXAMPLES= -DDISABLE_TESTS= -DNRF_BLE_DRIVER_VERSION=4.1.2 -DCONNECTIVITY_VERSION=4.1.2
|
30 |
+
)
|
31 |
+
|
32 |
+
vcpkg_install_cmake()
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
vcpkg_fixup_cmake_targets()
|
35 |
+
|
36 |
+
# Copy hex files into shared folder for package
|
37 |
+
foreach(HEX_DIR IN ITEMS "sd_api_v2" "sd_api_v3" "sd_api_v5" "sd_api_v6")
|
38 |
+
set(TARGET_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}/hex/${HEX_DIR}")
|
39 |
+
file(MAKE_DIRECTORY ${TARGET_DIRECTORY})
|
40 |
+
file(INSTALL "${SOURCE_PATH}/hex/${HEX_DIR}" DESTINATION ${TARGET_DIRECTORY}/..)
|
41 |
+
endforeach()
|
42 |
+
|
43 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
44 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
45 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/LICENSE)
|
46 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/LICENSE)
|
47 |
+
|
48 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
49 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
50 |
+
endif()
|
51 |
+
|
52 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nrf-ble-driver/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nrf-ble-driver",
|
3 |
+
"version-string": "4.1.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "BLE driver is a library for Bluetooth Low Energy communication using Nordic Semiconductor development kits.",
|
6 |
+
"dependencies": [
|
7 |
+
"asio",
|
8 |
+
"catch2",
|
9 |
+
"cli11",
|
10 |
+
"spdlog"
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nspr/portfile.cmake
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(NSPR_VERSION "4.33")
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "https://releases.mozilla.org/pub/nspr/releases/v${NSPR_VERSION}/src/nspr-${NSPR_VERSION}.tar.gz"
|
5 |
+
FILENAME "nspr-${NSPR_VERSION}.tar.gz"
|
6 |
+
SHA512 8064f826c977f1302a341ca7a7aaf7977b5d10102062c030b1d42b856638e3408ab262447e8c7cfd5a98879b9b1043d17ceae66fbb1e5ed86d6bc3531f26667e
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
ARCHIVE ${ARCHIVE}
|
12 |
+
REF "${NSPR_VERSION}"
|
13 |
+
)
|
14 |
+
|
15 |
+
set(MOZBUILD_ROOT "${CURRENT_HOST_INSTALLED_DIR}/tools/mozbuild")
|
16 |
+
|
17 |
+
set(MOZBUILD_BINDIR "${MOZBUILD_ROOT}/bin")
|
18 |
+
vcpkg_add_to_path("${MOZBUILD_BINDIR}")
|
19 |
+
|
20 |
+
set(MOZBUILD_MSYS_ROOT "${MOZBUILD_ROOT}/msys")
|
21 |
+
vcpkg_add_to_path(PREPEND "${MOZBUILD_MSYS_ROOT}")
|
22 |
+
|
23 |
+
set(OPTIONS "")
|
24 |
+
if (VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
25 |
+
list(APPEND OPTIONS "--disable-static-rtl")
|
26 |
+
else()
|
27 |
+
list(APPEND OPTIONS "--enable-static-rtl")
|
28 |
+
endif()
|
29 |
+
|
30 |
+
list(APPEND OPTIONS "--enable-win32-target=win95")
|
31 |
+
|
32 |
+
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
33 |
+
list(APPEND OPTIONS "--enable-64bit")
|
34 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
35 |
+
list(APPEND OPTIONS "--disable-64bit")
|
36 |
+
else()
|
37 |
+
message(FATAL_ERROR "Unsupported arch: ${VCPKG_TARGET_ARCHITECTURE}")
|
38 |
+
endif()
|
39 |
+
|
40 |
+
set(OPTIONS_DEBUG
|
41 |
+
"--enable-debug-rtl"
|
42 |
+
)
|
43 |
+
|
44 |
+
set(OPTIONS_RELEASE
|
45 |
+
"--disable-debug-rtl"
|
46 |
+
)
|
47 |
+
|
48 |
+
vcpkg_configure_make(
|
49 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
50 |
+
CONFIGURE_ENVIRONMENT_VARIABLES CC CXX LD
|
51 |
+
PROJECT_SUBPATH "nspr"
|
52 |
+
OPTIONS ${OPTIONS}
|
53 |
+
OPTIONS_DEBUG ${OPTIONS_DEBUG}
|
54 |
+
OPTIONS_RELEASE ${OPTIONS_RELEASE}
|
55 |
+
DISABLE_VERBOSE_FLAGS true
|
56 |
+
)
|
57 |
+
vcpkg_install_make()
|
58 |
+
vcpkg_copy_pdbs()
|
59 |
+
|
60 |
+
#
|
61 |
+
# VCPKG FHS adjustments
|
62 |
+
#
|
63 |
+
|
64 |
+
# Release
|
65 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
66 |
+
file(GLOB BIN_RELEASE "${CURRENT_PACKAGES_DIR}/lib/*.dll" "${CURRENT_PACKAGES_DIR}/lib/*.pdb")
|
67 |
+
list(LENGTH BIN_RELEASE BIN_RELEASE_SIZE)
|
68 |
+
if (BIN_RELEASE_SIZE GREATER 0)
|
69 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
|
70 |
+
|
71 |
+
foreach(path ${BIN_RELEASE})
|
72 |
+
get_filename_component(name "${path}" NAME)
|
73 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/${name}" "${CURRENT_PACKAGES_DIR}/bin/${name}")
|
74 |
+
endforeach()
|
75 |
+
endif()
|
76 |
+
endif()
|
77 |
+
|
78 |
+
# Debug
|
79 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
80 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
81 |
+
file(GLOB BIN_DEBUG "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll" "${CURRENT_PACKAGES_DIR}/debug/lib/*.pdb")
|
82 |
+
list(LENGTH BIN_DEBUG BIN_DEBUG_SIZE)
|
83 |
+
if (BIN_DEBUG_SIZE GREATER 0)
|
84 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
|
85 |
+
|
86 |
+
foreach(path IN LISTS BIN_DEBUG)
|
87 |
+
get_filename_component(name "${path}" NAME)
|
88 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/${name}" "${CURRENT_PACKAGES_DIR}/debug/bin/${name}")
|
89 |
+
endforeach()
|
90 |
+
endif()
|
91 |
+
endif()
|
92 |
+
|
93 |
+
# Copy license
|
94 |
+
file(INSTALL "${SOURCE_PATH}/nspr/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/nspr" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nspr/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nspr",
|
3 |
+
"version": "4.33",
|
4 |
+
"description": "Netscape portable runtime",
|
5 |
+
"homepage": "https://releases.mozilla.org/pub/nspr/",
|
6 |
+
"license": "MPL-2.0",
|
7 |
+
"supports": "windows & !(arm | uwp | static)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-tool-mozbuild",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nss/01-nspr-no-lib-prefix.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -ur x64-windows-rel/nss/coreconf/config.gypi src/3.66-485ec2a7fc.clean/nss/coreconf/config.gypi
|
2 |
+
--- a/nss/coreconf/config.gypi 2021-05-28 02:50:43.000000000 -0700
|
3 |
+
+++ b/nss/coreconf/config.gypi 2021-11-09 07:51:35.884650900 -0800
|
4 |
+
@@ -44,7 +44,7 @@
|
5 |
+
}],
|
6 |
+
['OS=="win"', {
|
7 |
+
'use_system_zlib%': 0,
|
8 |
+
- 'nspr_libs%': ['libnspr4.lib', 'libplc4.lib', 'libplds4.lib'],
|
9 |
+
+ 'nspr_libs%': ['nspr4.lib', 'plc4.lib', 'plds4.lib'],
|
10 |
+
'zlib_libs%': [],
|
11 |
+
#TODO
|
12 |
+
'moz_debug_flags%': '',
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nss/02-gen-debug-info-for-release.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -ur
|
2 |
+
--- a/nss/coreconf/config.gypi 2021-11-09 22:46:52.555246500 -0800
|
3 |
+
+++ b/nss/coreconf/config.gypi 2021-11-10 00:49:48.044560100 -0800
|
4 |
+
@@ -638,9 +638,11 @@
|
5 |
+
'VCCLCompilerTool': {
|
6 |
+
'Optimization': '<(release_optimization_level)',
|
7 |
+
'RuntimeLibrary': '2', # /MD
|
8 |
+
+ 'DebugInformationFormat': '3',
|
9 |
+
},
|
10 |
+
'VCLinkerTool': {
|
11 |
+
'LinkIncremental': '1',
|
12 |
+
+ 'GenerateDebugInformation' : 'true',
|
13 |
+
},
|
14 |
+
},
|
15 |
+
},
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nss/portfile.cmake
ADDED
@@ -0,0 +1,208 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(NSS_VERSION "3.77")
|
2 |
+
string(REPLACE "." "_" V_URL ${NSS_VERSION})
|
3 |
+
|
4 |
+
vcpkg_download_distfile(ARCHIVE
|
5 |
+
URLS "https://ftp.mozilla.org/pub/security/nss/releases/NSS_${V_URL}_RTM/src/nss-${NSS_VERSION}.tar.gz"
|
6 |
+
FILENAME "nss-${NSS_VERSION}.tar.gz"
|
7 |
+
SHA512 bd62eeb8f90ecd2d3999fd78fea6652736c02a6530f29e98d0cad0707f3b901b30409132eb6a6d53b9f5c05c6b464615a946a2a3e255553c793e44d0ed93179e
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_extract_source_archive_ex(
|
11 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
12 |
+
ARCHIVE ${ARCHIVE}
|
13 |
+
REF "${NSS_VERSION}"
|
14 |
+
PATCHES "01-nspr-no-lib-prefix.patch"
|
15 |
+
)
|
16 |
+
|
17 |
+
# setup ninja
|
18 |
+
vcpkg_find_acquire_program(NINJA)
|
19 |
+
get_filename_component(NINJA_ROOT "${NINJA}" DIRECTORY)
|
20 |
+
list(APPEND CMAKE_PROGRAM_PATH "${NINJA_ROOT}")
|
21 |
+
vcpkg_add_to_path(APPEND "${NINJA_ROOT}")
|
22 |
+
|
23 |
+
# setup mozbuild for windows
|
24 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
25 |
+
set(MOZBUILD_ROOT "${CURRENT_HOST_INSTALLED_DIR}/tools/mozbuild")
|
26 |
+
|
27 |
+
set(MOZBUILD_BINDIR "${MOZBUILD_ROOT}/bin")
|
28 |
+
vcpkg_add_to_path(PREPEND "${MOZBUILD_BINDIR}")
|
29 |
+
|
30 |
+
set(MOZBUILD_MSYS_ROOT "${MOZBUILD_ROOT}/msys")
|
31 |
+
vcpkg_add_to_path(PREPEND "${MOZBUILD_MSYS_ROOT}/bin")
|
32 |
+
|
33 |
+
find_program(MOZBUILD_MAKE_COMMAND make PATHS "${MOZBUILD_MSYS_ROOT}/bin" NO_DEFAULT_PATH REQUIRED)
|
34 |
+
message(STATUS "Found make: ${MOZBUILD_MAKE_COMMAND}")
|
35 |
+
|
36 |
+
find_program(MOZBUILD_BASH bash PATHS "${MOZBUILD_MSYS_ROOT}/bin" NO_DEFAULT_PATH REQUIRED)
|
37 |
+
message(STATUS "Found bash: ${MOZBUILD_BASH}")
|
38 |
+
|
39 |
+
set(MOZBUILD_PYTHON_ROOT "${MOZBUILD_ROOT}/python")
|
40 |
+
find_program(MOZBUILD_PYTHON python PATHS "${MOZBUILD_ROOT}/python" NO_DEFAULT_PATH REQUIRED)
|
41 |
+
message(STATUS "Found python: ${MOZBUILD_PYTHON}")
|
42 |
+
vcpkg_add_to_path(PREPEND "${MOZBUILD_PYTHON_ROOT}")
|
43 |
+
|
44 |
+
else()
|
45 |
+
# TODO: setup non-windows build environment
|
46 |
+
|
47 |
+
endif()
|
48 |
+
|
49 |
+
set(GYP_NSS_ROOT "${CURRENT_HOST_INSTALLED_DIR}/tools/gyp-nss")
|
50 |
+
if (VCPKG_HOST_IS_WINDOWS)
|
51 |
+
find_file(GYP_NSS NAMES gyp.bat PATHS "${GYP_NSS_ROOT}" NO_DEFAULT_PATH REQUIRED)
|
52 |
+
else()
|
53 |
+
find_program(GYP_NSS NAMES gyp PATHS "${GYP_NSS_ROOT}" NO_DEFAULT_PATH REQUIRED)
|
54 |
+
endif()
|
55 |
+
vcpkg_add_to_path(PREPEND "${GYP_NSS_ROOT}")
|
56 |
+
message(STATUS "Found gyp: ${GYP_NSS}")
|
57 |
+
|
58 |
+
# setup paths
|
59 |
+
execute_process(
|
60 |
+
COMMAND ${MOZBUILD_BASH} -c pwd
|
61 |
+
WORKING_DIRECTORY ${CURRENT_INSTALLED_DIR}/include
|
62 |
+
OUTPUT_VARIABLE VCPKG_INCLUDEDIR
|
63 |
+
OUTPUT_STRIP_TRAILING_WHITESPACE
|
64 |
+
)
|
65 |
+
message(STATUS "Using headers from: ${VCPKG_INCLUDEDIR} arch: ${VCPKG_TARGET_ARCHITECTURE}")
|
66 |
+
|
67 |
+
execute_process(
|
68 |
+
COMMAND ${MOZBUILD_BASH} -c pwd
|
69 |
+
WORKING_DIRECTORY ${CURRENT_INSTALLED_DIR}/lib
|
70 |
+
OUTPUT_VARIABLE VCPKG_LIBDIR
|
71 |
+
OUTPUT_STRIP_TRAILING_WHITESPACE
|
72 |
+
)
|
73 |
+
message(STATUS "Using libraries from: ${VCPKG_LIBDIR} arch: ${VCPKG_TARGET_ARCHITECTURE}")
|
74 |
+
|
75 |
+
#
|
76 |
+
# get to work
|
77 |
+
#
|
78 |
+
|
79 |
+
# see help.txt in nss root
|
80 |
+
set(OPTIONS
|
81 |
+
"-v" "-g"
|
82 |
+
"--disable-tests"
|
83 |
+
"--with-nspr=${VCPKG_INCLUDEDIR}/nspr:${VCPKG_LIBDIR}"
|
84 |
+
"--system-sqlite"
|
85 |
+
"-Dsign_libs=0"
|
86 |
+
)
|
87 |
+
|
88 |
+
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
89 |
+
list(APPEND OPTIONS "--target=x64")
|
90 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
91 |
+
list(APPEND OPTIONS "--target=ia32")
|
92 |
+
else()
|
93 |
+
message(FATAL_ERROR "Unsupported arch: ${VCPKG_TARGET_ARCHITECTURE}")
|
94 |
+
endif()
|
95 |
+
|
96 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
97 |
+
list(APPEND OPTIONS
|
98 |
+
"--msvc"
|
99 |
+
)
|
100 |
+
endif()
|
101 |
+
|
102 |
+
set(VCPKG_BINARY_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}")
|
103 |
+
|
104 |
+
# build debug
|
105 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
106 |
+
message(STATUS "Copying sources to debug build dir ...")
|
107 |
+
file(COPY "${SOURCE_PATH}/nss" DESTINATION "${VCPKG_BINARY_DIR}-dbg")
|
108 |
+
message(STATUS "Building debug ...")
|
109 |
+
vcpkg_execute_required_process(
|
110 |
+
COMMAND ${MOZBUILD_BASH} ./build.sh ${OPTIONS}
|
111 |
+
WORKING_DIRECTORY ${VCPKG_BINARY_DIR}-dbg/nss
|
112 |
+
LOGNAME build-${TARGET_TRIPLET}${short_buildtype}
|
113 |
+
)
|
114 |
+
endif()
|
115 |
+
|
116 |
+
# build release
|
117 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
118 |
+
message(STATUS "Copying sources to release build dir ...")
|
119 |
+
file(COPY "${SOURCE_PATH}/nss" DESTINATION "${VCPKG_BINARY_DIR}-rel")
|
120 |
+
message(STATUS "Building release ...")
|
121 |
+
vcpkg_execute_required_process(
|
122 |
+
COMMAND ${MOZBUILD_BASH} ./build.sh ${OPTIONS} "--opt"
|
123 |
+
WORKING_DIRECTORY ${VCPKG_BINARY_DIR}-rel/nss
|
124 |
+
LOGNAME build-${TARGET_TRIPLET}${short_buildtype}
|
125 |
+
)
|
126 |
+
endif()
|
127 |
+
|
128 |
+
#
|
129 |
+
# VCPKG FHS adjustments
|
130 |
+
#
|
131 |
+
|
132 |
+
# Headers
|
133 |
+
|
134 |
+
file(
|
135 |
+
COPY "${VCPKG_BINARY_DIR}-rel/dist/public/nss"
|
136 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
137 |
+
)
|
138 |
+
|
139 |
+
file(
|
140 |
+
COPY "${VCPKG_BINARY_DIR}-rel/dist/private/nss/"
|
141 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include/nss/private"
|
142 |
+
)
|
143 |
+
|
144 |
+
# Release libraries
|
145 |
+
|
146 |
+
file(GLOB LIB_RELEASE
|
147 |
+
"${VCPKG_BINARY_DIR}-rel/dist/Release/lib/*.dll"
|
148 |
+
"${VCPKG_BINARY_DIR}-rel/dist/Release/lib/*.pdb"
|
149 |
+
)
|
150 |
+
list(LENGTH LIB_RELEASE LIB_RELEASE_SIZE)
|
151 |
+
|
152 |
+
if (LIB_RELEASE_SIZE GREATER 0)
|
153 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
|
154 |
+
|
155 |
+
foreach(path ${LIB_RELEASE})
|
156 |
+
get_filename_component(name "${path}" NAME)
|
157 |
+
file(RENAME "${path}" "${CURRENT_PACKAGES_DIR}/bin/${name}")
|
158 |
+
endforeach()
|
159 |
+
|
160 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib")
|
161 |
+
file(COPY "${VCPKG_BINARY_DIR}-rel/dist/Release/lib" DESTINATION "${CURRENT_PACKAGES_DIR}")
|
162 |
+
endif()
|
163 |
+
|
164 |
+
# Release tools
|
165 |
+
|
166 |
+
vcpkg_copy_tools(
|
167 |
+
TOOL_NAMES
|
168 |
+
"certutil"
|
169 |
+
"cmsutil"
|
170 |
+
"crlutil"
|
171 |
+
"hw-support"
|
172 |
+
"modutil"
|
173 |
+
"nss"
|
174 |
+
"pk12util"
|
175 |
+
"pwdecrypt"
|
176 |
+
"shlibsign"
|
177 |
+
"signtool"
|
178 |
+
"signver"
|
179 |
+
"ssltap"
|
180 |
+
"symkeyutil"
|
181 |
+
"validation"
|
182 |
+
SEARCH_DIR "${VCPKG_BINARY_DIR}-rel/dist/Release/bin/"
|
183 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}"
|
184 |
+
)
|
185 |
+
|
186 |
+
# Debug libraries
|
187 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
188 |
+
file(GLOB LIB_DEBUG
|
189 |
+
"${VCPKG_BINARY_DIR}-dbg/dist/Debug/lib/*.dll"
|
190 |
+
"${VCPKG_BINARY_DIR}-dbg/dist/Debug/lib/*.pdb"
|
191 |
+
)
|
192 |
+
list(LENGTH LIB_DEBUG LIB_DEBUG_SIZE)
|
193 |
+
|
194 |
+
if (LIB_DEBUG_SIZE GREATER 0)
|
195 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
|
196 |
+
|
197 |
+
foreach(path ${LIB_DEBUG})
|
198 |
+
get_filename_component(name "${path}" NAME)
|
199 |
+
file(RENAME "${path}" "${CURRENT_PACKAGES_DIR}/debug/bin/${name}")
|
200 |
+
endforeach()
|
201 |
+
|
202 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib")
|
203 |
+
file(COPY "${VCPKG_BINARY_DIR}-dbg/dist/Debug/lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug")
|
204 |
+
endif()
|
205 |
+
endif()
|
206 |
+
|
207 |
+
# Copy license
|
208 |
+
file(INSTALL "${SOURCE_PATH}/nss/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/nss" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nss/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nss",
|
3 |
+
"version": "3.77",
|
4 |
+
"description": "Network Security Services from Mozilla",
|
5 |
+
"homepage": "https://ftp.mozilla.org/pub/security/nss/releases/",
|
6 |
+
"license": "MPL-2.0",
|
7 |
+
"supports": "windows & !arm",
|
8 |
+
"dependencies": [
|
9 |
+
"nspr",
|
10 |
+
"sqlite3",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-tool-gyp-nss",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-tool-mozbuild",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
]
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nsync/export-targets.patch
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 328f9b6..6a71b5b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -41,6 +41,9 @@ function (set_cpp_target tgtname files)
|
6 |
+
"${PROJECT_SOURCE_DIR}/platform/c++11.futex"
|
7 |
+
)
|
8 |
+
endif ()
|
9 |
+
+
|
10 |
+
+ target_include_directories("${tgtname}" PUBLIC $<INSTALL_INTERFACE:include>)
|
11 |
+
+
|
12 |
+
|
13 |
+
target_compile_definitions ("${tgtname}" PRIVATE "${NSYNC_CPP_DEFINITIONS}")
|
14 |
+
|
15 |
+
@@ -399,14 +402,19 @@ endif ()
|
16 |
+
# By default, install nsync always
|
17 |
+
# set (CMAKE_SKIP_INSTALL_ALL_DEPENDENCY ON)
|
18 |
+
|
19 |
+
-install (TARGETS nsync
|
20 |
+
+install (TARGETS nsync EXPORT unofficial-nsyncConfig
|
21 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
|
22 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development)
|
23 |
+
|
24 |
+
-install (TARGETS nsync_cpp OPTIONAL
|
25 |
+
+install (TARGETS nsync_cpp OPTIONAL EXPORT unofficial-nsyncConfig
|
26 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
|
27 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development)
|
28 |
+
|
29 |
+
+install(EXPORT unofficial-nsyncConfig
|
30 |
+
+ NAMESPACE unofficial::nsync::
|
31 |
+
+ DESTINATION share/unofficial-nsync
|
32 |
+
+)
|
33 |
+
+
|
34 |
+
set (NSYNC_INCLUDES
|
35 |
+
"public/nsync.h"
|
36 |
+
"public/nsync_atomic.h"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nsync/fix-install.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6b1f1dc..328f9b6 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -80,7 +80,7 @@ set (NSYNC_OS_CPP_SRC
|
6 |
+
# https://cmake.org/cmake/help/v3.1/policy/CMP0054.html
|
7 |
+
|
8 |
+
# Pick the include directory for the operating system.
|
9 |
+
-if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX")
|
10 |
+
+if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX" OR "${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsStoreX")
|
11 |
+
include_directories ("${PROJECT_SOURCE_DIR}/platform/win32")
|
12 |
+
set (NSYNC_CPP_FLAGS "/TP")
|
13 |
+
|
14 |
+
@@ -230,7 +230,7 @@ elseif (("${CMAKE_SYSTEM_PROCESSOR}X" STREQUAL "ppc64X"))
|
15 |
+
endif ()
|
16 |
+
|
17 |
+
# Windows uses some include files from the posix directory also.
|
18 |
+
-if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX")
|
19 |
+
+if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX" OR "${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsStoreX")
|
20 |
+
include_directories ("${PROJECT_SOURCE_DIR}/platform/posix")
|
21 |
+
endif ()
|
22 |
+
|
23 |
+
@@ -396,7 +396,8 @@ if (NSYNC_ENABLE_TESTS)
|
24 |
+
endforeach (t)
|
25 |
+
endif ()
|
26 |
+
|
27 |
+
-set (CMAKE_SKIP_INSTALL_ALL_DEPENDENCY ON)
|
28 |
+
+# By default, install nsync always
|
29 |
+
+# set (CMAKE_SKIP_INSTALL_ALL_DEPENDENCY ON)
|
30 |
+
|
31 |
+
install (TARGETS nsync
|
32 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nsync/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/nsync
|
8 |
+
REF 1.24.0
|
9 |
+
SHA512 14dd582488072123a353c967664ed9a3f636865bb35e64d7256dcc809539129fa47c7979a4009fd45c9341cac537a4ca6b4b617ba2cae1d3995a7c251376339f
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
fix-install.patch
|
13 |
+
export-targets.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
-DNSYNC_ENABLE_TESTS=OFF
|
20 |
+
)
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-nsync CONFIG_PATH share/unofficial-nsync)
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nsync/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nsync",
|
3 |
+
"version": "1.24.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "nsync is a C library that exports various synchronization primitives, such as mutexes",
|
6 |
+
"homepage": "https://github.com/google/nsync",
|
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 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nt-wrapper/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO JustasMasiulis/nt_wrapper
|
6 |
+
REF 6a150292a43f6aea35918a5c5e93a66c334ea301
|
7 |
+
SHA512 fb8a1c4c934d3cb48a76a935ba69fd51ec2e6b66f5c265a8da9456691f933c6080057fec9a714f252c39d02525603b993cecd905452598058254ac9318655c4f
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
OPTIONS
|
15 |
+
-DBUILD_TESTING=OFF
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
21 |
+
|
22 |
+
# Handle copyright
|
23 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nt-wrapper/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nt-wrapper",
|
3 |
+
"version-string": "2019-08-10",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A header only wrapper library around native windows system APIs",
|
6 |
+
"homepage": "https://github.com/JustasMasiulis/nt_wrapper"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nu-book-zxing-cpp/ignore-pdb-install-symbols-in-lib.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt
|
2 |
+
index 7a2db60..17e0a52 100644
|
3 |
+
--- a/core/CMakeLists.txt
|
4 |
+
+++ b/core/CMakeLists.txt
|
5 |
+
@@ -474,7 +474,4 @@ if(MSVC)
|
6 |
+
set_target_properties(ZXing PROPERTIES
|
7 |
+
COMPILE_PDB_NAME ZXing
|
8 |
+
COMPILE_PDB_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
9 |
+
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ZXing.pdb
|
10 |
+
- DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
11 |
+
- CONFIGURATIONS Debug RelWithDebInfo)
|
12 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nu-book-zxing-cpp/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO nu-book/zxing-cpp
|
6 |
+
REF v1.2.0
|
7 |
+
SHA512 e61b4e44ccaf0871b5d8badf9ce0a81576f55e5d6a9458907b9b599a66227adceabb8d51a0c47b32319d8aeff93e758b4785d3bd0440375247471d95999de487
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES ignore-pdb-install-symbols-in-lib.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
if (VCPKG_TARGET_IS_UWP)
|
13 |
+
set(ENV{CL} "$ENV{CL} -wd4996")
|
14 |
+
endif()
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS
|
18 |
+
-DBUILD_BLACKBOX_TESTS=OFF
|
19 |
+
-DBUILD_EXAMPLES=OFF
|
20 |
+
-DBUILD_SYSTEM_DEPS=ALWAYS
|
21 |
+
MAYBE_UNUSED_VARIABLES
|
22 |
+
# Currently no dependencies, but this defends against future additions
|
23 |
+
BUILD_SYSTEM_DEPS
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_cmake_install()
|
27 |
+
vcpkg_fixup_pkgconfig()
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
|
30 |
+
vcpkg_cmake_config_fixup(
|
31 |
+
CONFIG_PATH lib/cmake/ZXing
|
32 |
+
PACKAGE_NAME ZXing
|
33 |
+
)
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
36 |
+
|
37 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/nu-book-zxing-cpp" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nu-book-zxing-cpp/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nu-book-zxing-cpp",
|
3 |
+
"version": "1.2.0",
|
4 |
+
"description": "Barcode detection and decoding library.",
|
5 |
+
"homepage": "https://github.com/nu-book/zxing-cpp",
|
6 |
+
"license": "Apache-2.0",
|
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 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuklear/CMakeLists.txt
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.16)
|
2 |
+
project(Nuklear LANGUAGES C CXX)
|
3 |
+
|
4 |
+
option(INSTALL_EXAMPLE "Install the example code" OFF)
|
5 |
+
option(INSTALL_DEMO "Install the demo code" OFF)
|
6 |
+
|
7 |
+
add_library(nuklear INTERFACE)
|
8 |
+
|
9 |
+
target_include_directories(nuklear INTERFACE $<INSTALL_INTERFACE:include/nuklear>)
|
10 |
+
target_compile_definitions(nuklear INTERFACE NK_IMPLEMENTATION)
|
11 |
+
|
12 |
+
# Installation
|
13 |
+
install(
|
14 |
+
TARGETS nuklear
|
15 |
+
EXPORT unofficial-nuklear
|
16 |
+
RUNTIME DESTINATION bin
|
17 |
+
LIBRARY DESTINATION lib
|
18 |
+
ARCHIVE DESTINATION lib
|
19 |
+
)
|
20 |
+
|
21 |
+
install(FILES "${CMAKE_CURRENT_LIST_DIR}/nuklear.h" DESTINATION "include/nuklear")
|
22 |
+
|
23 |
+
|
24 |
+
install(EXPORT unofficial-nuklear FILE unofficial-nuklear-config.cmake DESTINATION share/unofficial-nuklear)
|
25 |
+
|
26 |
+
if (INSTALL_EXAMPLE)
|
27 |
+
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/example" DESTINATION share/nuklear)
|
28 |
+
|
29 |
+
endif()
|
30 |
+
|
31 |
+
if (INSTALL_DEMO)
|
32 |
+
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/demo" DESTINATION share/nuklear)
|
33 |
+
|
34 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuklear/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Immediate-Mode-UI/Nuklear
|
4 |
+
REF 6e80e2a646f35be4afc157a932f2936392ec8f74 # accessed on 2021-04-04
|
5 |
+
SHA512 ce064dff721111749d4056717879f42d3e24bb94655dd2b04c137eb7391d2c90d0b1b95155912c100b537f74fd150aedc48e0ac85eb72963c66e35ac81048323
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
example INSTALL_EXAMPLE
|
14 |
+
demo INSTALL_DEMO
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
OPTIONS ${FEATURE_OPTIONS}
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-nuklear)
|
26 |
+
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
28 |
+
|
29 |
+
file(INSTALL "${SOURCE_PATH}/Readme.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuklear/vcpkg.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nuklear",
|
3 |
+
"version-date": "2021-03-18",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "This is a minimal state immediate mode graphical user interface toolkit written in ANSI C and licensed under public domain",
|
6 |
+
"homepage": "https://github.com/Immediate-Mode-UI/Nuklear",
|
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 |
+
"demo": {
|
19 |
+
"description": "Install demo files"
|
20 |
+
},
|
21 |
+
"example": {
|
22 |
+
"description": "Install example files"
|
23 |
+
}
|
24 |
+
}
|
25 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/numactl/portfile.cmake
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO numactl/numactl
|
4 |
+
REF v2.0.14
|
5 |
+
SHA512 ADAF405F092FD9653F26D00F8C80CB83852C56EBD5D00E714E20D505008E74AA7105B0FB7AA55A605DEAC0D1491CEFF57DE931037D33E7944FCA105BC6510ED4
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
message(
|
10 |
+
"numactl currently requires the following libraries from the system package manager:
|
11 |
+
autoconf libtool
|
12 |
+
These can be installed on Ubuntu systems via sudo apt install autoconf libtool"
|
13 |
+
)
|
14 |
+
|
15 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
16 |
+
set(SHARED_STATIC --enable-static --disable-shared)
|
17 |
+
else()
|
18 |
+
set(SHARED_STATIC --disable-static --enable-shared)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
set(OPTIONS ${SHARED_STATIC})
|
22 |
+
vcpkg_execute_required_process(
|
23 |
+
COMMAND ${SOURCE_PATH}/autogen.sh
|
24 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
25 |
+
LOGNAME setup-${TARGET_TRIPLET}
|
26 |
+
)
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg)
|
29 |
+
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg)
|
30 |
+
message(STATUS "Configuring ${TARGET_TRIPLET}-dbg")
|
31 |
+
set(CFLAGS "${VCPKG_C_FLAGS} ${VCPKG_C_FLAGS_DEBUG} -fPIC -O0 -g -I${SOURCE_PATH}/include")
|
32 |
+
set(LDFLAGS "${VCPKG_LINKER_FLAGS}")
|
33 |
+
vcpkg_execute_required_process(
|
34 |
+
COMMAND ${SOURCE_PATH}/configure --prefix=${CURRENT_PACKAGES_DIR}/debug ${OPTIONS} --with-sysroot=${CURRENT_INSTALLED_DIR}/debug
|
35 |
+
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg
|
36 |
+
LOGNAME configure-${TARGET_TRIPLET}-dbg
|
37 |
+
)
|
38 |
+
message(STATUS "Building ${TARGET_TRIPLET}-dbg")
|
39 |
+
vcpkg_execute_required_process(
|
40 |
+
COMMAND make -j install "CFLAGS=${CFLAGS}" "LDFLAGS=${LDFLAGS}"
|
41 |
+
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg
|
42 |
+
LOGNAME install-${TARGET_TRIPLET}-dbg
|
43 |
+
)
|
44 |
+
|
45 |
+
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel)
|
46 |
+
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel)
|
47 |
+
message(STATUS "Configuring ${TARGET_TRIPLET}-rel")
|
48 |
+
set(CFLAGS "${VCPKG_C_FLAGS} ${VCPKG_C_FLAGS_RELEASE} -fPIC -O3 -I${SOURCE_PATH}/include")
|
49 |
+
set(LDFLAGS "${VCPKG_LINKER_FLAGS}")
|
50 |
+
vcpkg_execute_required_process(
|
51 |
+
COMMAND ${SOURCE_PATH}/configure --prefix=${CURRENT_PACKAGES_DIR} ${OPTIONS} --with-sysroot=${CURRENT_INSTALLED_DIR}
|
52 |
+
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel
|
53 |
+
LOGNAME configure-${TARGET_TRIPLET}-rel
|
54 |
+
)
|
55 |
+
message(STATUS "Building ${TARGET_TRIPLET}-rel")
|
56 |
+
vcpkg_execute_required_process(
|
57 |
+
COMMAND make -j install "CFLAGS=${CFLAGS}" "LDFLAGS=${LDFLAGS}"
|
58 |
+
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel
|
59 |
+
LOGNAME install-${TARGET_TRIPLET}-rel
|
60 |
+
)
|
61 |
+
|
62 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
63 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
64 |
+
endif()
|
65 |
+
|
66 |
+
vcpkg_fixup_pkgconfig()
|
67 |
+
|
68 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
69 |
+
configure_file(${SOURCE_PATH}/README.md ${CURRENT_PACKAGES_DIR}/share/numactl/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/numactl/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "numactl",
|
3 |
+
"version": "2.0.14",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "NUMA support for Linux",
|
6 |
+
"homepage": "https://github.com/numactl/numactl",
|
7 |
+
"supports": "linux"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/numcpp/portfile.cmake
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO dpilger26/NumCpp
|
5 |
+
REF Version_2.6.0
|
6 |
+
SHA512 4D057941F4CB541CFAA56E4188C865DFC1804CA1B2203422B9EB7D7E8EE43CCB15DC5109DA5C932234E6055B6A5554D877347FA7CAEC5EA619A2975A56D2B16C
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
|
16 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME NumCpp CONFIG_PATH share/NumCpp/cmake)
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
19 |
+
|
20 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/numcpp/vcpkg.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "numcpp",
|
3 |
+
"version": "2.6.0",
|
4 |
+
"description": "C++ implementation of the Python Numpy library",
|
5 |
+
"homepage": "https://dpilger26.github.io/NumCpp",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-algorithm",
|
9 |
+
"boost-endian",
|
10 |
+
"boost-integer",
|
11 |
+
"boost-math",
|
12 |
+
"boost-predef",
|
13 |
+
"boost-random",
|
14 |
+
"boost-type-traits",
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake",
|
17 |
+
"host": true
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake-config",
|
21 |
+
"host": true
|
22 |
+
}
|
23 |
+
],
|
24 |
+
"features": {
|
25 |
+
"python": {
|
26 |
+
"description": "Interacting with Python with pybind11 interface",
|
27 |
+
"dependencies": [
|
28 |
+
"boost-python",
|
29 |
+
"pybind11"
|
30 |
+
]
|
31 |
+
}
|
32 |
+
}
|
33 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuspell/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO nuspell/nuspell
|
4 |
+
REF v5.0.0
|
5 |
+
SHA512 92605c5f0d413b86711fea3b993d656552d5e72440303d3e71907a503d060ead032dfeb0dd8dbb790f35599b8cca8854bdd8650f0560793d9c62a11aebccc2e5
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
vcpkg_configure_cmake(
|
9 |
+
SOURCE_PATH ${SOURCE_PATH}
|
10 |
+
PREFER_NINJA
|
11 |
+
OPTIONS -DBUILD_TESTING=OFF
|
12 |
+
)
|
13 |
+
vcpkg_install_cmake()
|
14 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/nuspell)
|
15 |
+
vcpkg_fixup_pkgconfig(
|
16 |
+
# nuspell.pc depends on icu-uc.pc which has -lm specified as private
|
17 |
+
# library. Ignore this -lm, otherwise this function shows error
|
18 |
+
# because it can't find this. -lm is part of glibc on Linux.
|
19 |
+
SYSTEM_LIBRARIES m
|
20 |
+
)
|
21 |
+
vcpkg_copy_tools(TOOL_NAMES nuspell AUTO_CLEAN)
|
22 |
+
file(REMOVE_RECURSE
|
23 |
+
${CURRENT_PACKAGES_DIR}/debug/include
|
24 |
+
${CURRENT_PACKAGES_DIR}/debug/share
|
25 |
+
)
|
26 |
+
file(
|
27 |
+
INSTALL ${SOURCE_PATH}/COPYING.LESSER
|
28 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
29 |
+
RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nuspell/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nuspell",
|
3 |
+
"version-semver": "5.0.0",
|
4 |
+
"description": [
|
5 |
+
"Nuspell is a fast and safe spelling checker software program.",
|
6 |
+
"It is designed for languages with rich morphology and complex word compounding.",
|
7 |
+
"Nuspell is written in modern C++ and it supports Hunspell dictionaries."
|
8 |
+
],
|
9 |
+
"homepage": "https://nuspell.github.io/",
|
10 |
+
"dependencies": [
|
11 |
+
"icu"
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/001-define-value-for-HAVE_UNISTD_H-in-mac-os.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/nvconfig.h.in b/src/nvconfig.h.in
|
2 |
+
index 16da646..ada6be0 100644
|
3 |
+
--- a/src/nvconfig.h.in
|
4 |
+
+++ b/src/nvconfig.h.in
|
5 |
+
@@ -1,7 +1,11 @@
|
6 |
+
#ifndef NV_CONFIG
|
7 |
+
#define NV_CONFIG
|
8 |
+
|
9 |
+
+#if NV_OS_DARWIN & !NV_OS_IOS
|
10 |
+
+#cmakedefine01 HAVE_UNISTD_H
|
11 |
+
+#else
|
12 |
+
#cmakedefine HAVE_UNISTD_H
|
13 |
+
+#endif
|
14 |
+
#cmakedefine HAVE_STDARG_H
|
15 |
+
#cmakedefine HAVE_SIGNAL_H
|
16 |
+
#cmakedefine HAVE_EXECINFO_H
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/add-compile-options-for-osx.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/nvtt/CMakeLists.txt b/src/nvtt/CMakeLists.txt
|
2 |
+
index 9688c9c..42942c0 100644
|
3 |
+
--- a/src/nvtt/CMakeLists.txt
|
4 |
+
+++ b/src/nvtt/CMakeLists.txt
|
5 |
+
@@ -47,6 +47,10 @@ ADD_DEFINITIONS(-DNVTT_EXPORTS)
|
6 |
+
#ADD_DEFINITIONS(-DHAVE_RGETC)
|
7 |
+
#ADD_DEFINITIONS(-DHAVE_ETCPACK)
|
8 |
+
|
9 |
+
+if(APPLE)
|
10 |
+
+ add_compile_options(-mbmi2 -mfma)
|
11 |
+
+endif()
|
12 |
+
+
|
13 |
+
IF(NVTT_SHARED)
|
14 |
+
ADD_LIBRARY(nvtt SHARED ${NVTT_SRCS})
|
15 |
+
ELSE(NVTT_SHARED)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/bc6h.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/bc6h/CMakeLists.txt b/src/bc6h/CMakeLists.txt
|
2 |
+
index fd75e74..b392d90 100644
|
3 |
+
--- a/src/bc6h/CMakeLists.txt
|
4 |
+
+++ b/src/bc6h/CMakeLists.txt
|
5 |
+
@@ -15,3 +15,8 @@ SET(BC6H_SRCS
|
6 |
+
|
7 |
+
ADD_LIBRARY(bc6h STATIC ${BC6H_SRCS})
|
8 |
+
TARGET_LINK_LIBRARIES(bc6h nvcore nvmath)
|
9 |
+
+
|
10 |
+
+INSTALL(TARGETS bc6h
|
11 |
+
+ RUNTIME DESTINATION bin
|
12 |
+
+ LIBRARY DESTINATION lib
|
13 |
+
+ ARCHIVE DESTINATION lib/static)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/bc7.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/bc7/CMakeLists.txt b/src/bc7/CMakeLists.txt
|
2 |
+
index 566fe1f..d0d4e8a 100644
|
3 |
+
--- a/src/bc7/CMakeLists.txt
|
4 |
+
+++ b/src/bc7/CMakeLists.txt
|
5 |
+
@@ -23,3 +23,8 @@ SET(BC7_SRCS
|
6 |
+
|
7 |
+
ADD_LIBRARY(bc7 STATIC ${BC7_SRCS})
|
8 |
+
TARGET_LINK_LIBRARIES(bc7 nvcore nvmath)
|
9 |
+
+
|
10 |
+
+INSTALL(TARGETS bc7
|
11 |
+
+ RUNTIME DESTINATION bin
|
12 |
+
+ LIBRARY DESTINATION lib
|
13 |
+
+ ARCHIVE DESTINATION lib/static)
|
14 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/fix-build-error.patch
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 668cd7e..72d6e61 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -7,9 +7,17 @@ SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")
|
6 |
+
|
7 |
+
# Compiler check (needs -std:c++11 flag)
|
8 |
+
include(CheckCXXCompilerFlag)
|
9 |
+
+if(MSVC)
|
10 |
+
+CHECK_CXX_COMPILER_FLAG("/std:c++14" COMPILER_SUPPORTS_CXX14)
|
11 |
+
+else()
|
12 |
+
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
|
13 |
+
-if(COMPILER_SUPPORTS_CXX11)
|
14 |
+
+endif()
|
15 |
+
+if(COMPILER_SUPPORTS_CXX11 OR COMPILER_SUPPORTS_CXX14)
|
16 |
+
+ if(COMPILER_SUPPORTS_CXX11)
|
17 |
+
set(CMAKE_CXX_STANDARD 11)
|
18 |
+
+ else()
|
19 |
+
+ set(CMAKE_CXX_STANDARD 14)
|
20 |
+
+ endif()
|
21 |
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
22 |
+
set(CMAKE_CXX_EXTENSIONS OFF)
|
23 |
+
else()
|
24 |
+
diff --git a/extern/CMP_Core/source/cmp_math_func.h b/extern/CMP_Core/source/cmp_math_func.h
|
25 |
+
index c2f8908..b652497 100644
|
26 |
+
--- a/extern/CMP_Core/source/cmp_math_func.h
|
27 |
+
+++ b/extern/CMP_Core/source/cmp_math_func.h
|
28 |
+
@@ -32,6 +32,7 @@
|
29 |
+
// Core API which have have GPU equivalents, defined here for HPC_CPU usage
|
30 |
+
//============================================================================
|
31 |
+
|
32 |
+
+#include <cmath>
|
33 |
+
#include <algorithm>
|
34 |
+
using namespace std;
|
35 |
+
|
36 |
+
diff --git a/src/nvtt/CMakeLists.txt b/src/nvtt/CMakeLists.txt
|
37 |
+
index 8285f99..9688c9c 100644
|
38 |
+
--- a/src/nvtt/CMakeLists.txt
|
39 |
+
+++ b/src/nvtt/CMakeLists.txt
|
40 |
+
@@ -63,5 +63,5 @@ INSTALL(TARGETS nvtt
|
41 |
+
INSTALL(FILES nvtt.h nvtt_wrapper.h DESTINATION include/nvtt)
|
42 |
+
|
43 |
+
|
44 |
+
-ADD_SUBDIRECTORY(tools)
|
45 |
+
-ADD_SUBDIRECTORY(tests)
|
46 |
+
+#ADD_SUBDIRECTORY(tools)
|
47 |
+
+#ADD_SUBDIRECTORY(tests)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/fix-intrinsic-function.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/nvmath/nvmath.h b/src/nvmath/nvmath.h
|
2 |
+
index 38532eb..e68d8f8 100644
|
3 |
+
--- a/src/nvmath/nvmath.h
|
4 |
+
+++ b/src/nvmath/nvmath.h
|
5 |
+
@@ -118,12 +118,12 @@ inline float asinf_assert(const float f)
|
6 |
+
#endif
|
7 |
+
|
8 |
+
#if NV_CC_MSVC
|
9 |
+
-NV_FORCEINLINE float log2f(float x)
|
10 |
+
+NV_FORCEINLINE float nv_log2f(float x)
|
11 |
+
{
|
12 |
+
nvCheck(x >= 0);
|
13 |
+
return logf(x) / logf(2.0f);
|
14 |
+
}
|
15 |
+
-NV_FORCEINLINE float exp2f(float x)
|
16 |
+
+NV_FORCEINLINE float nv_exp2f(float x)
|
17 |
+
{
|
18 |
+
return powf(2.0f, x);
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO castano/nvidia-texture-tools
|
6 |
+
REF b1a90f36013522b9e5a3a2197859b72188752e3f # 2.1.2
|
7 |
+
SHA512 13cf04a9856f150f7569c8c256c42fc6a5bc40586c9ca2b3ae553edf5bfcbccbba5b8538924079ed35effdd07b9e3ef4bfdb9733a2ec51f5a95f958885cc6cca
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
001-define-value-for-HAVE_UNISTD_H-in-mac-os.patch
|
11 |
+
bc6h.patch
|
12 |
+
bc7.patch
|
13 |
+
squish.patch
|
14 |
+
fix-build-error.patch
|
15 |
+
add-compile-options-for-osx.patch
|
16 |
+
skip-building-libsquish.patch
|
17 |
+
fix-intrinsic-function.patch
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_configure(
|
21 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
22 |
+
OPTIONS
|
23 |
+
-DNVTT_SHARED=0
|
24 |
+
-DCMAKE_DEBUG_POSTFIX=_d # required by OSG
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
|
29 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
31 |
+
endif()
|
32 |
+
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
37 |
+
|
38 |
+
# Handle copyright
|
39 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/share/doc/nvtt/LICENSE")
|
40 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/skip-building-libsquish.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt
|
2 |
+
index 911c19e..6f13de4 100644
|
3 |
+
--- a/extern/CMakeLists.txt
|
4 |
+
+++ b/extern/CMakeLists.txt
|
5 |
+
@@ -5,7 +5,6 @@ ADD_SUBDIRECTORY(EtcLib)
|
6 |
+
ADD_SUBDIRECTORY(rg_etc1_v104)
|
7 |
+
#ADD_SUBDIRECTORY(etcpack)
|
8 |
+
|
9 |
+
-ADD_SUBDIRECTORY(libsquish-1.15)
|
10 |
+
+#ADD_SUBDIRECTORY(libsquish-1.15)
|
11 |
+
|
12 |
+
ADD_SUBDIRECTORY(CMP_Core)
|
13 |
+
-
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/squish.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/nvtt/squish/CMakeLists.txt b/src/nvtt/squish/CMakeLists.txt
|
2 |
+
index 65a5dd3..d093ce5 100644
|
3 |
+
--- a/src/nvtt/squish/CMakeLists.txt
|
4 |
+
+++ b/src/nvtt/squish/CMakeLists.txt
|
5 |
+
@@ -21,3 +21,8 @@ SET(SQUISH_SRCS
|
6 |
+
simd_ve.h)
|
7 |
+
|
8 |
+
ADD_LIBRARY(nvsquish STATIC ${SQUISH_SRCS})
|
9 |
+
+
|
10 |
+
+INSTALL(TARGETS nvsquish
|
11 |
+
+ RUNTIME DESTINATION bin
|
12 |
+
+ LIBRARY DESTINATION lib
|
13 |
+
+ ARCHIVE DESTINATION lib/static)
|
14 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nvtt/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nvtt",
|
3 |
+
"version": "2.1.2",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "Texture processing tools with support for Direct3D 10 and 11 formats.",
|
6 |
+
"homepage": "https://github.com/castano/nvidia-texture-tools",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "!x86",
|
9 |
+
"dependencies": [
|
10 |
+
"libsquish",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|