Spaces:
Sleeping
Sleeping
dfe13dc6f7e9eb61c2c8195ccdf1ae374e3c4db5006e6931b41755bc6019081b
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/alac-decoder/remove_stdint_headers.patch +193 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/alac-decoder/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/alembic/disable-warnings-as-error.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/alembic/fix-runtime-destination.patch +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/alembic/portfile.cmake +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/alembic/vcpkg.json +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/aliyun-oss-c-sdk/patch.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/aliyun-oss-c-sdk/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/aliyun-oss-c-sdk/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/do-not-copy-pdbs-to-lib.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/export-targets.patch +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/fix-pdb-install.patch +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/portfile.cmake +72 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/vcpkg.json +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/alsa/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/alsa/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/copyright +59 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/fix-crt-linkage.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/install-extra-headers.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/install-targets.patch +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/workaround-msvc-optimizer-ice.patch +60 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/disable-matlab-mex.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/fix-arm-build.patch +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/fix-build.patch +42 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/fix-dependency-asl.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/install-targets.patch +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/portfile.cmake +50 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/amqpcpp/find-openssl.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/amqpcpp/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/amqpcpp/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/anax/Add-bin-output.patch +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/anax/osx-arm.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/anax/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/anax/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angelscript/LICENSE +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angelscript/mark-threads-private.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angelscript/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angelscript/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/001-fix-uwp.patch +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/002-fix-builder-error.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/003-fix-mingw.patch +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/CMakeLists.txt +737 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/angle_commit.h +3 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/portfile.cmake +99 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/third-party-zlib-far-undef.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/antlr4/export_guid.patch +22 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/alac-decoder/remove_stdint_headers.patch
ADDED
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/alac.c b/alac.c
|
2 |
+
index 469000d..c6fe479 100644
|
3 |
+
--- a/alac.c
|
4 |
+
+++ b/alac.c
|
5 |
+
@@ -33,11 +33,7 @@
|
6 |
+
#include <stdio.h>
|
7 |
+
#include <stdlib.h>
|
8 |
+
#include <string.h>
|
9 |
+
-#ifdef _WIN32
|
10 |
+
- #include "stdint_win.h"
|
11 |
+
-#else
|
12 |
+
- #include <stdint.h>
|
13 |
+
-#endif
|
14 |
+
+#include <stdint.h>
|
15 |
+
|
16 |
+
#include "decomp.h"
|
17 |
+
|
18 |
+
@@ -54,7 +50,7 @@
|
19 |
+
struct {signed int x:24;} se_struct_24;
|
20 |
+
#define SignExtend24(val) (se_struct_24.x = val)
|
21 |
+
|
22 |
+
-extern int host_bigendian;
|
23 |
+
+#define host_bigendian set_endian()
|
24 |
+
|
25 |
+
struct alac_file
|
26 |
+
{
|
27 |
+
diff --git a/decomp.h b/decomp.h
|
28 |
+
index 23dbc52..679a320 100644
|
29 |
+
--- a/decomp.h
|
30 |
+
+++ b/decomp.h
|
31 |
+
@@ -8,6 +8,7 @@ void decode_frame(alac_file *alac,
|
32 |
+
unsigned char *inbuffer,
|
33 |
+
void *outbuffer, int *outputsize);
|
34 |
+
void alac_set_info(alac_file *alac, char *inputbuffer);
|
35 |
+
+int set_endian();
|
36 |
+
|
37 |
+
#endif /* __ALAC__DECOMP_H */
|
38 |
+
|
39 |
+
diff --git a/demux.c b/demux.c
|
40 |
+
index ae77a9d..9e858a9 100644
|
41 |
+
--- a/demux.c
|
42 |
+
+++ b/demux.c
|
43 |
+
@@ -33,11 +33,7 @@
|
44 |
+
#include <string.h>
|
45 |
+
#include <stdio.h>
|
46 |
+
#include <stdlib.h>
|
47 |
+
-#ifdef _WIN32
|
48 |
+
- #include "stdint_win.h"
|
49 |
+
-#else
|
50 |
+
- #include <stdint.h>
|
51 |
+
-#endif
|
52 |
+
+#include <stdint.h>
|
53 |
+
|
54 |
+
#include "stream.h"
|
55 |
+
#include "demux.h"
|
56 |
+
diff --git a/demux.h b/demux.h
|
57 |
+
index 8447bf8..8874ba4 100644
|
58 |
+
--- a/demux.h
|
59 |
+
+++ b/demux.h
|
60 |
+
@@ -1,11 +1,8 @@
|
61 |
+
#ifndef DEMUX_H
|
62 |
+
#define DEMUX_H
|
63 |
+
|
64 |
+
-#ifdef _WIN32
|
65 |
+
- #include "stdint_win.h"
|
66 |
+
-#else
|
67 |
+
- #include <stdint.h>
|
68 |
+
-#endif
|
69 |
+
+
|
70 |
+
+#include <stdint.h>
|
71 |
+
|
72 |
+
#include "stream.h"
|
73 |
+
|
74 |
+
diff --git a/main.c b/main.c
|
75 |
+
index 7449ca1..dd58699 100644
|
76 |
+
--- a/main.c
|
77 |
+
+++ b/main.c
|
78 |
+
@@ -37,11 +37,7 @@
|
79 |
+
#include <stdlib.h>
|
80 |
+
#include <errno.h>
|
81 |
+
#include <string.h>
|
82 |
+
-#ifdef _WIN32
|
83 |
+
- #include "stdint_win.h"
|
84 |
+
-#else
|
85 |
+
- #include <stdint.h>
|
86 |
+
-#endif
|
87 |
+
+#include <stdint.h>
|
88 |
+
|
89 |
+
#include "demux.h"
|
90 |
+
#include "decomp.h"
|
91 |
+
@@ -267,19 +263,7 @@ static void setup_environment(int argc, char **argv)
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
-/* this could quite easily be done at compile time,
|
96 |
+
- * however I don't want to have to bother with all the
|
97 |
+
- * various possible #define's for endianness, worrying about
|
98 |
+
- * different compilers etc. and I'm too lazy to use autoconf.
|
99 |
+
- */
|
100 |
+
-void set_endian()
|
101 |
+
-{
|
102 |
+
- uint32_t integer = 0x000000aa;
|
103 |
+
- unsigned char *p = (unsigned char*)&integer;
|
104 |
+
|
105 |
+
- if (p[0] == 0xaa) host_bigendian = 0;
|
106 |
+
- else host_bigendian = 1;
|
107 |
+
-}
|
108 |
+
|
109 |
+
int main(int argc, char **argv)
|
110 |
+
{
|
111 |
+
@@ -288,7 +272,7 @@ int main(int argc, char **argv)
|
112 |
+
|
113 |
+
memset(&demux_res, 0, sizeof(demux_res));
|
114 |
+
|
115 |
+
- set_endian();
|
116 |
+
+ host_bigendian = set_endian();
|
117 |
+
|
118 |
+
setup_environment(argc, argv);
|
119 |
+
|
120 |
+
diff --git a/stream.c b/stream.c
|
121 |
+
index 565db54..56727a0 100644
|
122 |
+
--- a/stream.c
|
123 |
+
+++ b/stream.c
|
124 |
+
@@ -33,13 +33,10 @@
|
125 |
+
#include <stdio.h>
|
126 |
+
#include <stdlib.h>
|
127 |
+
#include <errno.h>
|
128 |
+
-#ifdef _WIN32
|
129 |
+
- #include "stdint_win.h"
|
130 |
+
-#else
|
131 |
+
- #include <stdint.h>
|
132 |
+
-#endif
|
133 |
+
+#include <stdint.h>
|
134 |
+
|
135 |
+
#include "stream.h"
|
136 |
+
+#include "decomp.h"
|
137 |
+
|
138 |
+
#define _Swap32(v) do { \
|
139 |
+
v = (((v) & 0x000000FF) << 0x18) | \
|
140 |
+
@@ -51,7 +48,7 @@
|
141 |
+
v = (((v) & 0x00FF) << 0x08) | \
|
142 |
+
(((v) & 0xFF00) >> 0x08); } while (0)
|
143 |
+
|
144 |
+
-extern int host_bigendian;
|
145 |
+
+#define host_bigendian set_endian()
|
146 |
+
|
147 |
+
struct stream_tTAG {
|
148 |
+
FILE *f;
|
149 |
+
diff --git a/stream.h b/stream.h
|
150 |
+
index 18d6aa0..ff6325e 100644
|
151 |
+
--- a/stream.h
|
152 |
+
+++ b/stream.h
|
153 |
+
@@ -3,11 +3,8 @@
|
154 |
+
|
155 |
+
/* stream.h */
|
156 |
+
|
157 |
+
-#ifdef _WIN32
|
158 |
+
- #include "stdint_win.h"
|
159 |
+
-#else
|
160 |
+
- #include <stdint.h>
|
161 |
+
-#endif
|
162 |
+
+#include <stdint.h>
|
163 |
+
+
|
164 |
+
|
165 |
+
typedef struct stream_tTAG stream_t;
|
166 |
+
|
167 |
+
diff --git a/wavwriter.c b/wavwriter.c
|
168 |
+
index fd19502..ce941c7 100644
|
169 |
+
--- a/wavwriter.c
|
170 |
+
+++ b/wavwriter.c
|
171 |
+
@@ -32,11 +32,8 @@
|
172 |
+
|
173 |
+
#include <stdio.h>
|
174 |
+
#include <stdlib.h>
|
175 |
+
-#ifdef _WIN32
|
176 |
+
- #include "stdint_win.h"
|
177 |
+
-#else
|
178 |
+
- #include <stdint.h>
|
179 |
+
-#endif
|
180 |
+
+#include <stdint.h>
|
181 |
+
+
|
182 |
+
|
183 |
+
#ifndef MAKEFOURCC
|
184 |
+
#define MAKEFOURCC(ch0, ch1, ch2, ch3) ( \
|
185 |
+
@@ -56,7 +53,7 @@
|
186 |
+
v = (((v) & 0x00FF) << 0x08) | \
|
187 |
+
(((v) & 0xFF00) >> 0x08); } while (0)
|
188 |
+
|
189 |
+
-extern int host_bigendian;
|
190 |
+
+#define host_bigendian set_endian()
|
191 |
+
|
192 |
+
static void write_uint32(FILE *f, uint32_t v, int bigendian)
|
193 |
+
{
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/alac-decoder/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "alac-decoder",
|
3 |
+
"version-string": "0.2",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "ALAC C implementation of a decoder, written from reverse engineering the file format",
|
6 |
+
"homepage": "https://distfiles.macports.org/alac_decoder"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/alembic/disable-warnings-as-error.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Workaround for https://github.com/alembic/alembic/issues/309
|
2 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -125,14 +125,6 @@ IF (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
6 |
+
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
|
7 |
+
ENDIF()
|
8 |
+
|
9 |
+
-# Set some debug vs opt flags
|
10 |
+
-if ("${CMAKE_BUILD_TYPE}" MATCHES "Debug" AND NOT MSVC)
|
11 |
+
- add_definitions(-Wall -Werror -Wextra -Wno-unused-parameter -Wno-deprecated)
|
12 |
+
- if((CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 7.0) OR
|
13 |
+
- CMAKE_CXX_COMPILER_ID MATCHES "CLANG")
|
14 |
+
- add_definitions( -Wno-error=implicit-fallthrough)
|
15 |
+
- endif()
|
16 |
+
-endif()
|
17 |
+
|
18 |
+
IF (NOT ${WINDOWS})
|
19 |
+
SET(EXTERNAL_MATH_LIBS "-lm")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/alembic/fix-runtime-destination.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt
|
3 |
+
+++ b/CMakeLists.txt
|
4 |
+
@@ -73,7 +73,7 @@ option(DOCS_PATH
|
5 |
+
|
6 |
+
# Set static/dynamic build options
|
7 |
+
SET(LIB_TYPE STATIC)
|
8 |
+
-SET(RUNTIME_INSTALL_DIR lib)
|
9 |
+
+SET(RUNTIME_INSTALL_DIR bin)
|
10 |
+
SET(LIBRARY_INSTALL_DIR lib)
|
11 |
+
SET(ARCHIVE_INSTALL_DIR lib)
|
12 |
+
IF (ALEMBIC_SHARED_LIBS)
|
13 |
+
diff --git a/lib/Alembic/CMakeLists.txt b/lib/Alembic/CMakeLists.txt
|
14 |
+
--- a/lib/Alembic/CMakeLists.txt
|
15 |
+
+++ b/lib/Alembic/CMakeLists.txt
|
16 |
+
@@ -78,12 +78,11 @@ option(DOCS_PATH
|
17 |
+
${ZLIB_LIBRARY}
|
18 |
+
)
|
19 |
+
|
20 |
+
-SET( ALEMBIC_LIB_INSTALL_DIR lib CACHE PATH "Where to install the Alembic libs")
|
21 |
+
INSTALL(TARGETS Alembic
|
22 |
+
EXPORT AlembicTargets
|
23 |
+
- LIBRARY DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
|
24 |
+
- ARCHIVE DESTINATION ${ALEMBIC_LIB_INSTALL_DIR}
|
25 |
+
- RUNTIME DESTINATION ${ALEMBIC_LIB_INSTALL_DIR})
|
26 |
+
+ LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
|
27 |
+
+ ARCHIVE DESTINATION ${ARCHIVE_INSTALL_DIR}
|
28 |
+
+ RUNTIME DESTINATION ${RUNTIME_INSTALL_DIR})
|
29 |
+
|
30 |
+
#-******************************************************************************
|
31 |
+
# PACKAGE EXPORTS
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/alembic/portfile.cmake
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_buildpath_length_warning(37)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO alembic/alembic
|
6 |
+
REF 1.8.3
|
7 |
+
SHA512 0049c72d93e66e12d704d27e7ba36cd9c718667f2ce4f7baa1bee1613ed88ba53abea98f457e14f7f2144cb353810a4108d26c7dd1a1543ec2af576272f19036
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-runtime-destination.patch
|
11 |
+
disable-warnings-as-error.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ALEMBIC_SHARED_LIBS)
|
15 |
+
|
16 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
17 |
+
FEATURES
|
18 |
+
hdf5 USE_HDF5
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
OPTIONS
|
24 |
+
-DALEMBIC_SHARED_LIBS=${ALEMBIC_SHARED_LIBS}
|
25 |
+
-DUSE_TESTS=OFF
|
26 |
+
${FEATURE_OPTIONS}
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_cmake_install()
|
30 |
+
|
31 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Alembic)
|
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 |
+
set(TOOLS abcdiff abcecho abcechobounds abcls abcstitcher abctree)
|
39 |
+
if(USE_HDF5)
|
40 |
+
list(APPEND TOOLS abcconvert)
|
41 |
+
endif()
|
42 |
+
|
43 |
+
vcpkg_copy_tools(
|
44 |
+
TOOL_NAMES ${TOOLS}
|
45 |
+
AUTO_CLEAN
|
46 |
+
)
|
47 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
48 |
+
|
49 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/alembic/vcpkg.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "alembic",
|
3 |
+
"version": "1.8.3",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Alembic is an open framework for storing and sharing scene data that includes a C++ library, a file format, and client plugins and applications.",
|
6 |
+
"homepage": "https://alembic.io/",
|
7 |
+
"supports": "!(windows & x86) & !uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"imath",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"features": {
|
20 |
+
"hdf5": {
|
21 |
+
"description": "Build with HDF5 support",
|
22 |
+
"dependencies": [
|
23 |
+
"hdf5"
|
24 |
+
]
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aliyun-oss-c-sdk/patch.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 0abcb93..75195a9 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -150,5 +150,5 @@ INSTALL(FILES
|
6 |
+
oss_c_sdk/oss_xml.h
|
7 |
+
DESTINATION include/oss_c_sdk)
|
8 |
+
|
9 |
+
-add_subdirectory(oss_c_sdk_sample)
|
10 |
+
-add_subdirectory(oss_c_sdk_test)
|
11 |
+
+#add_subdirectory(oss_c_sdk_sample)
|
12 |
+
+#add_subdirectory(oss_c_sdk_test)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aliyun-oss-c-sdk/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2 |
+
message(FATAL_ERROR "${PORT} does not currently support UWP")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO aliyun/aliyun-oss-c-sdk
|
8 |
+
REF f9e441137620d712c7d89587c951bed459ebc843 # 3.10.0
|
9 |
+
SHA512 6621d105706fb69b3f1998d7c83c94ff93747946040f0c45ec52986c0e8d8db3d48237d1e3f0959e09536ca43bcbe3bcdb32f90622ce51de6ea7132be6dd7cf7
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
patch.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
23 |
+
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/)
|
24 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aliyun-oss-c-sdk/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "aliyun-oss-c-sdk",
|
3 |
+
"version-string": "3.10.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Alibaba Cloud Object Storage Service (OSS) is a cloud storage service provided by Alibaba Cloud, featuring massive capacity, security, a low cost, and high reliability.",
|
6 |
+
"supports": "!(uwp | linux | osx)",
|
7 |
+
"dependencies": [
|
8 |
+
"apr-util",
|
9 |
+
"curl"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/do-not-copy-pdbs-to-lib.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/Common.cmake b/cmake/Common.cmake
|
2 |
+
index 86c194f..74edef8 100644
|
3 |
+
--- a/cmake/Common.cmake
|
4 |
+
+++ b/cmake/Common.cmake
|
5 |
+
@@ -227,7 +227,7 @@ function(install_our_library target filename)
|
6 |
+
# Doesn't work, see below.
|
7 |
+
# PUBLIC_HEADER DESTINATION "include"
|
8 |
+
)
|
9 |
+
- if(MSVC AND BUILD_SHARED_LIBS)
|
10 |
+
+ if(0)
|
11 |
+
install(FILES ${CMAKE_BINARY_DIR}/lib/${filename}.pdb
|
12 |
+
DESTINATION lib
|
13 |
+
CONFIGURATIONS Debug RelWithDebInfo
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/export-targets.patch
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 7c5720b..72880c4 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1156,6 +1156,24 @@ if(INSTALL_PKG_CONFIG_FILES)
|
6 |
+
endforeach(versuffix)
|
7 |
+
endif(INSTALL_PKG_CONFIG_FILES)
|
8 |
+
|
9 |
+
+file(WRITE "${CMAKE_INSTALL_PREFIX}/share/unofficial-allegro5/unofficial-allegro5-config.cmake"
|
10 |
+
+[[
|
11 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegroTargets.cmake")
|
12 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_audioTargets.cmake")
|
13 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_videoTargets.cmake")
|
14 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_primitivesTargets.cmake")
|
15 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_fontTargets.cmake")
|
16 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_ttfTargets.cmake")
|
17 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_memfileTargets.cmake")
|
18 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_physfsTargets.cmake")
|
19 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_imageTargets.cmake")
|
20 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_mainTargets.cmake")
|
21 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_dialogTargets.cmake")
|
22 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_colorTargets.cmake")
|
23 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-allegro_acodecTargets.cmake")
|
24 |
+
+
|
25 |
+
+]])
|
26 |
+
+
|
27 |
+
#-----------------------------------------------------------------------------#
|
28 |
+
#
|
29 |
+
# Documentation
|
30 |
+
diff --git a/cmake/Common.cmake b/cmake/Common.cmake
|
31 |
+
index 74edef8..0cf1edb 100644
|
32 |
+
--- a/cmake/Common.cmake
|
33 |
+
+++ b/cmake/Common.cmake
|
34 |
+
@@ -220,6 +220,7 @@ endfunction(set_our_framework_properties)
|
35 |
+
|
36 |
+
function(install_our_library target filename)
|
37 |
+
install(TARGETS ${target}
|
38 |
+
+ EXPORT unofficial-${target}Targets
|
39 |
+
LIBRARY DESTINATION "lib${LIB_SUFFIX}"
|
40 |
+
ARCHIVE DESTINATION "lib${LIB_SUFFIX}"
|
41 |
+
FRAMEWORK DESTINATION "${FRAMEWORK_INSTALL_PREFIX}"
|
42 |
+
@@ -227,6 +228,10 @@ function(install_our_library target filename)
|
43 |
+
# Doesn't work, see below.
|
44 |
+
# PUBLIC_HEADER DESTINATION "include"
|
45 |
+
)
|
46 |
+
+ install(EXPORT unofficial-${target}Targets
|
47 |
+
+ NAMESPACE unofficial-allegro5::
|
48 |
+
+ DESTINATION share/unofficial-allegro5
|
49 |
+
+ )
|
50 |
+
if(0)
|
51 |
+
install(FILES ${CMAKE_BINARY_DIR}/lib/${filename}.pdb
|
52 |
+
DESTINATION lib
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/fix-pdb-install.patch
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 72348fe..c6fbecb 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1010,14 +1010,9 @@ else()
|
6 |
+
set(PKG_CONFIG_FILES allegro ${ADDON_PKG_CONFIG_FILES})
|
7 |
+
endif(WANT_MONOLITH)
|
8 |
+
|
9 |
+
-# Install pkg-config files on Unix, and when cross-compiling on Unix.
|
10 |
+
+# Install pkg-config files
|
11 |
+
|
12 |
+
-if(UNIX AND NOT WANT_FRAMEWORKS AND NOT IPHONE)
|
13 |
+
- set(INSTALL_PKG_CONFIG_FILES true)
|
14 |
+
-endif()
|
15 |
+
-if(CMAKE_CROSSCOMPILING AND CMAKE_HOST_UNIX)
|
16 |
+
- set(INSTALL_PKG_CONFIG_FILES true)
|
17 |
+
-endif()
|
18 |
+
+set(INSTALL_PKG_CONFIG_FILES true)
|
19 |
+
|
20 |
+
if(INSTALL_PKG_CONFIG_FILES)
|
21 |
+
append_lib_type_suffix(lib_type)
|
22 |
+
diff --git a/cmake/Common.cmake b/cmake/Common.cmake
|
23 |
+
index 782196f..de29535 100644
|
24 |
+
--- a/cmake/Common.cmake
|
25 |
+
+++ b/cmake/Common.cmake
|
26 |
+
@@ -223,7 +223,7 @@ function(install_our_library target filename)
|
27 |
+
# PUBLIC_HEADER DESTINATION "include"
|
28 |
+
)
|
29 |
+
if(MSVC AND BUILD_SHARED_LIBS)
|
30 |
+
- install(FILES ${CMAKE_BINARY_DIR}/lib/\${CMAKE_INSTALL_CONFIG_NAME}/${filename}.pdb
|
31 |
+
+ install(FILES ${CMAKE_BINARY_DIR}/lib/${filename}.pdb
|
32 |
+
DESTINATION lib
|
33 |
+
CONFIGURATIONS Debug RelWithDebInfo
|
34 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/portfile.cmake
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO liballeg/allegro5
|
4 |
+
REF 5.2.6.0
|
5 |
+
SHA512 d590c1a00d1b314c6946e0f6ad3e3a8b6e6309bada2ec38857186f817147ac99dae8a1c4412abe701af88da5dca3dd8f989a1da66630192643d3c08c0146b603
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-pdb-install.patch
|
9 |
+
do-not-copy-pdbs-to-lib.patch
|
10 |
+
export-targets.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
|
14 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" VCPKG_BUILD_SHARED_LIBS)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
OPTIONS
|
19 |
+
-DWANT_DOCS=OFF
|
20 |
+
-DALLEGRO_SDL=OFF
|
21 |
+
-DWANT_DEMO=OFF
|
22 |
+
-DSHARED=${VCPKG_BUILD_SHARED_LIBS}
|
23 |
+
-DWANT_EXAMPLES=OFF
|
24 |
+
-DWANT_CURL_EXAMPLE=OFF
|
25 |
+
-DWANT_TESTS=OFF
|
26 |
+
-DWANT_AUDIO=ON
|
27 |
+
-DWANT_COLOR=ON
|
28 |
+
-DWANT_D3D=ON
|
29 |
+
-DWANT_D3D9EX=OFF # Not available on vcpkg
|
30 |
+
-DWANT_DSOUND=ON
|
31 |
+
-DWANT_FLAC=ON
|
32 |
+
-DWANT_FONT=ON
|
33 |
+
-DWANT_GLES2=ON
|
34 |
+
-DWANT_GLES3=ON
|
35 |
+
-DWANT_IMAGE=ON
|
36 |
+
-DWANT_IMAGE_JPG=ON
|
37 |
+
-DWANT_IMAGE_PNG=ON
|
38 |
+
-DWANT_MEMFILE=ON
|
39 |
+
-DWANT_MODAUDIO=OFF # Not available on vcpkg right now
|
40 |
+
-DWANT_NATIVE_DIALOG=ON
|
41 |
+
-DWANT_NATIVE_IMAGE_LOADER=ON
|
42 |
+
-DWANT_OGG_VIDEO=ON
|
43 |
+
-DWANT_OPENAL=ON
|
44 |
+
-DWANT_OPENGL=ON
|
45 |
+
-DWANT_OPENSL=OFF # Not yet available on vcpkg
|
46 |
+
-DWANT_OPUS=ON
|
47 |
+
-DWANT_PHYSFS=ON
|
48 |
+
-DWANT_POPUP_EXAMPLES=OFF
|
49 |
+
-DWANT_PRIMITIVES=ON
|
50 |
+
-DWANT_RELEASE_LOGGING=OFF
|
51 |
+
-DWANT_SHADERS_D3D=ON
|
52 |
+
-DWANT_SHADERS_GL=ON
|
53 |
+
-DWANT_TREMOR=OFF # Not yet available on vcpkg
|
54 |
+
-DWANT_TTF=ON
|
55 |
+
-DWANT_VIDEO=ON
|
56 |
+
-DWANT_VORBIS=ON
|
57 |
+
-DOPENAL_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include/AL
|
58 |
+
-DZLIB_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include
|
59 |
+
OPTIONS_RELEASE -DWANT_ALLOW_SSE=ON
|
60 |
+
OPTIONS_DEBUG -DWANT_ALLOW_SSE=OFF
|
61 |
+
)
|
62 |
+
|
63 |
+
vcpkg_cmake_install()
|
64 |
+
|
65 |
+
vcpkg_copy_pdbs()
|
66 |
+
|
67 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-allegro5 CONFIG_PATH share/unofficial-allegro5)
|
68 |
+
vcpkg_fixup_pkgconfig()
|
69 |
+
|
70 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/debug/include")
|
71 |
+
|
72 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/allegro5/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "allegro5",
|
3 |
+
"version": "5.2.6.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Allegro is a cross-platform library mainly aimed at video game and multimedia programming. It handles common, low-level tasks such as creating windows, accepting user input, loading data, drawing images, playing sounds, etc. and generally abstracting away the underlying platform. However, Allegro is not a game engine: you are free to design and structure your program as you like.",
|
6 |
+
"homepage": "https://github.com/liballeg/allegro5",
|
7 |
+
"dependencies": [
|
8 |
+
"bzip2",
|
9 |
+
"freetype",
|
10 |
+
"libflac",
|
11 |
+
"libogg",
|
12 |
+
"libpng",
|
13 |
+
"libtheora",
|
14 |
+
"libvorbis",
|
15 |
+
"openal-soft",
|
16 |
+
"opengl",
|
17 |
+
"opus",
|
18 |
+
"opusfile",
|
19 |
+
"physfs",
|
20 |
+
{
|
21 |
+
"name": "vcpkg-cmake",
|
22 |
+
"host": true
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"name": "vcpkg-cmake-config",
|
26 |
+
"host": true
|
27 |
+
},
|
28 |
+
"zlib"
|
29 |
+
]
|
30 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/alsa/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
2 |
+
message(FATAL_ERROR "Package only supports Linux platform.")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
message(
|
6 |
+
"alsa currently requires the following libraries from the system package manager:
|
7 |
+
autoconf libtool
|
8 |
+
These can be installed on Ubuntu systems via sudo apt install autoconf libtool"
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_from_github(
|
12 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
13 |
+
REPO alsa-project/alsa-lib
|
14 |
+
REF v1.2.6.1
|
15 |
+
SHA512 d1de9112ec0d600db6e5a20b558811a7a9f34d00a9b1dfb5332669b73732c1c1b8ddda57368edc199e255eba8bcb8a6767b4d9325c9860ade02d84dcaac6eb47
|
16 |
+
HEAD_REF master
|
17 |
+
)
|
18 |
+
|
19 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
20 |
+
set(BUILD_OPTS --enable-shared=yes --enable-static=no)
|
21 |
+
else()
|
22 |
+
set(BUILD_OPTS --enable-shared=no --enable-static=yes)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
vcpkg_configure_make(
|
26 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
27 |
+
AUTOCONFIG
|
28 |
+
OPTIONS
|
29 |
+
${BUILD_OPTS}
|
30 |
+
--disable-python
|
31 |
+
)
|
32 |
+
|
33 |
+
vcpkg_install_make()
|
34 |
+
vcpkg_fixup_pkgconfig()
|
35 |
+
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools/alsa/debug")
|
39 |
+
|
40 |
+
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/alsa/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "alsa",
|
3 |
+
"version": "1.2.6.1",
|
4 |
+
"description": "The Advanced Linux Sound Architecture (ALSA) - library",
|
5 |
+
"homepage": "https://www.alsa-project.org/",
|
6 |
+
"license": "LGPL-2.1-or-later",
|
7 |
+
"supports": "linux"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/copyright
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Licenses
|
2 |
+
========
|
3 |
+
|
4 |
+
Copyright (C) 1990 - 2001 Lucent Technologies
|
5 |
+
|
6 |
+
Permission to use, copy, modify, and distribute this software and
|
7 |
+
its documentation for any purpose and without fee is hereby
|
8 |
+
granted, provided that the above copyright notice appear in all
|
9 |
+
copies and that both that the copyright notice and this
|
10 |
+
permission notice and warranty disclaimer appear in supporting
|
11 |
+
documentation, and that the name of Lucent or any of its entities
|
12 |
+
not be used in advertising or publicity pertaining to
|
13 |
+
distribution of the software without specific, written prior
|
14 |
+
permission.
|
15 |
+
|
16 |
+
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
17 |
+
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
|
18 |
+
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
|
19 |
+
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
20 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
|
21 |
+
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
22 |
+
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
23 |
+
THIS SOFTWARE.
|
24 |
+
|
25 |
+
----------------------------------------------------------------------
|
26 |
+
|
27 |
+
Copyright (C) 2007 David M. Gay
|
28 |
+
|
29 |
+
Permission to use, copy, modify, and distribute this software and its
|
30 |
+
documentation for any purpose and without fee is hereby granted,
|
31 |
+
provided that the above copyright notice appear in all copies and that
|
32 |
+
both that the copyright notice and this permission notice and warranty
|
33 |
+
disclaimer appear in supporting documentation.
|
34 |
+
|
35 |
+
The author disclaims all warranties with regard to this software,
|
36 |
+
including all implied warranties of merchantability and fitness.
|
37 |
+
In no event shall the author be liable for any special, indirect or
|
38 |
+
consequential damages or any damages whatsoever resulting from loss of
|
39 |
+
use, data or profits, whether in an action of contract, negligence or
|
40 |
+
other tortious action, arising out of or in connection with the use or
|
41 |
+
performance of this software.
|
42 |
+
|
43 |
+
----------------------------------------------------------------------
|
44 |
+
|
45 |
+
Copyright (C) 2002 - 2014 AMPL Optimization LLC
|
46 |
+
|
47 |
+
Permission to use, copy, modify, and distribute this software and its
|
48 |
+
documentation for any purpose and without fee is hereby granted,
|
49 |
+
provided that the above copyright notice appear in all copies and that
|
50 |
+
both that the copyright notice and this permission notice and warranty
|
51 |
+
disclaimer appear in supporting documentation.
|
52 |
+
|
53 |
+
The author and AMPL Optimization LLC disclaim all warranties with
|
54 |
+
regard to this software, including all implied warranties of
|
55 |
+
merchantability and fitness. In no event shall the author be liable
|
56 |
+
for any special, indirect or consequential damages or any damages
|
57 |
+
whatsoever resulting from loss of use, data or profits, whether in an
|
58 |
+
action of contract, negligence or other tortious action, arising out
|
59 |
+
of or in connection with the use or performance of this software.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/fix-crt-linkage.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 976af78..35d248d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -256,7 +256,7 @@ macro(createSingleASL name sourcedir sources)
|
6 |
+
endif()
|
7 |
+
if(MSVC)
|
8 |
+
target_compile_options(${name} PRIVATE
|
9 |
+
- /wd4013 /wd4018 /wd4101 /wd4244 /wd4273 /wd4267 /wd4996 /MT$<$<CONFIG:Debug>:d>)
|
10 |
+
+ /wd4013 /wd4018 /wd4101 /wd4244 /wd4273 /wd4267 /wd4996)
|
11 |
+
else()
|
12 |
+
target_compile_options(${name} PRIVATE -Wno-unused-result -Wno-parentheses)
|
13 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/install-extra-headers.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 35d248d..8a85aa7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -317,6 +317,7 @@ if(BUILD_CPP)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
install(FILES ${ASL_HEADERS} ${ASL_SOURCE_DIR}/opcode.hd ${ASL_SOURCE_DIR}/r_opn.hd
|
9 |
+
+ ${GENERATED_INCLUDE_DIR}/stdio1.h ${GENERATED_INCLUDE_DIR}/arith.h
|
10 |
+
DESTINATION include/asl COMPONENT asl)
|
11 |
+
install(FILES ${ASL2_HEADERS} ${ASL2_SOURCE_DIR}/opcode.hd ${ASL2_SOURCE_DIR}/r_opn.hd
|
12 |
+
DESTINATION include/asl2 COMPONENT asl)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/install-targets.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 8a85aa7..c0619bc 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -247,8 +247,8 @@ endif()
|
6 |
+
|
7 |
+
macro(createSingleASL name sourcedir sources)
|
8 |
+
add_library(${name} STATIC ${${sources}} ${GENERATED_INCLUDE_DIR}/arith.h)
|
9 |
+
- target_include_directories(${name} PUBLIC ${GENERATED_INCLUDE_DIR}
|
10 |
+
- ${sourcedir})
|
11 |
+
+ target_include_directories(${name} PUBLIC $<BUILD_INTERFACE:${GENERATED_INCLUDE_DIR}>
|
12 |
+
+ $<BUILD_INTERFACE:${sourcedir}> $<INSTALL_INTERFACE:include>)
|
13 |
+
target_compile_definitions(${name} PRIVATE ${ASL_COMPILE_DEFINITIONS})
|
14 |
+
target_link_libraries(${name} PUBLIC ${CMAKE_DL_LIBS})
|
15 |
+
if(NOT WIN32)
|
16 |
+
@@ -322,14 +322,16 @@ install(FILES ${ASL_HEADERS} ${ASL_SOURCE_DIR}/opcode.hd ${ASL_SOURCE_DIR}/r_opn
|
17 |
+
install(FILES ${ASL2_HEADERS} ${ASL2_SOURCE_DIR}/opcode.hd ${ASL2_SOURCE_DIR}/r_opn.hd
|
18 |
+
DESTINATION include/asl2 COMPONENT asl)
|
19 |
+
|
20 |
+
-install(TARGETS asl asl2 DESTINATION lib COMPONENT asl)
|
21 |
+
+install(TARGETS asl asl2 EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
22 |
+
if(BUILD_MT_LIBS)
|
23 |
+
- install(TARGETS asl-mt asl2-mt DESTINATION lib COMPONENT asl)
|
24 |
+
+ install(TARGETS asl-mt asl2-mt EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
25 |
+
endif()
|
26 |
+
if(MSVC AND BUILD_DYNRT_LIBS)
|
27 |
+
- install(TARGETS asl-dynrt asl2-dynrt DESTINATION lib COMPONENT asl)
|
28 |
+
+ install(TARGETS asl-dynrt asl2-dynrt EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
29 |
+
endif()
|
30 |
+
if(TARGET aslcpp)
|
31 |
+
install(FILES ${ASL_CPP_HEADERS} DESTINATION include/aslcpp COMPONENT asl)
|
32 |
+
- install(TARGETS aslcpp DESTINATION lib COMPONENT asl)
|
33 |
+
-endif()
|
34 |
+
|
35 |
+
+ install(TARGETS aslcpp EXPORT unofficial-asl-config DESTINATION lib COMPONENT asl)
|
36 |
+
+endif()
|
37 |
+
+
|
38 |
+
+install(EXPORT unofficial-asl-config DESTINATION share/unofficial-asl)
|
39 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO ampl/asl
|
6 |
+
REF 934d34719c8a620fcf16ae5a3c00c326eb22e748
|
7 |
+
SHA512 b6fcb3dcb53a53d975666db1643d7ea518246e8fb6745621ce4b63de4393f7767844e9241baa6fdf1a45c241a9aa0866844c47deec0020313278128cccff6869
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
workaround-msvc-optimizer-ice.patch
|
11 |
+
fix-crt-linkage.patch # CRT linkage uses C/CXX FLAGS in vcpkg
|
12 |
+
install-extra-headers.patch
|
13 |
+
install-targets.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
-DBUILD_MCMODELLARGE=OFF
|
20 |
+
-DBUILD_DYNRT_LIBS=OFF # CRT linkage uses C/CXX FLAGS in vcpkg
|
21 |
+
-DBUILD_MT_LIBS=OFF # CRT linkage uses C/CXX FLAGS in vcpkg
|
22 |
+
-DBUILD_CPP=ON
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-asl)
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
32 |
+
|
33 |
+
# from ampl-mp license
|
34 |
+
file(INSTALL "${CURRENT_PORT_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ampl-asl",
|
3 |
+
"version-date": "2020-11-11",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "AMPL Solver Library",
|
6 |
+
"homepage": "https://github.com/ampl/asl",
|
7 |
+
"license": null,
|
8 |
+
"supports": "!uwp & !(osx & arm64)",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-asl/workaround-msvc-optimizer-ice.patch
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/solvers/avltree.c b/src/solvers/avltree.c
|
2 |
+
index 7a9adab..a75da90 100644
|
3 |
+
--- a/src/solvers/avltree.c
|
4 |
+
+++ b/src/solvers/avltree.c
|
5 |
+
@@ -54,6 +54,10 @@ AVL_Tree {
|
6 |
+
void (*Free)(void*);
|
7 |
+
};
|
8 |
+
|
9 |
+
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
10 |
+
+#pragma optimize("", off)
|
11 |
+
+#endif
|
12 |
+
+
|
13 |
+
AVL_Tree*
|
14 |
+
AVL_Tree_alloc2(void *v, AVL_Elcomp cmp, void *(*Malloc)(size_t), void (*Free)(void*))
|
15 |
+
{
|
16 |
+
diff --git a/src/solvers/sphes.c b/src/solvers/sphes.c
|
17 |
+
index a50065f..6e6eedc 100644
|
18 |
+
--- a/src/solvers/sphes.c
|
19 |
+
+++ b/src/solvers/sphes.c
|
20 |
+
@@ -461,6 +461,10 @@ compar(const void *a, const void *b)
|
21 |
+
#undef del_mblk
|
22 |
+
#define del_mblk(b,c) Del_mblk_ASL(a,b,(Char*)(c))
|
23 |
+
|
24 |
+
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
25 |
+
+#pragma optimize("", off)
|
26 |
+
+#endif
|
27 |
+
+
|
28 |
+
static void
|
29 |
+
new_Hesoprod(ASL_pfgh *asl, ograd *L, ograd *R, real coef)
|
30 |
+
{
|
31 |
+
diff --git a/src/solvers2/avltree.c b/src/solvers2/avltree.c
|
32 |
+
index 7a9adab..a75da90 100644
|
33 |
+
--- a/src/solvers2/avltree.c
|
34 |
+
+++ b/src/solvers2/avltree.c
|
35 |
+
@@ -54,6 +54,10 @@ AVL_Tree {
|
36 |
+
void (*Free)(void*);
|
37 |
+
};
|
38 |
+
|
39 |
+
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
40 |
+
+#pragma optimize("", off)
|
41 |
+
+#endif
|
42 |
+
+
|
43 |
+
AVL_Tree*
|
44 |
+
AVL_Tree_alloc2(void *v, AVL_Elcomp cmp, void *(*Malloc)(size_t), void (*Free)(void*))
|
45 |
+
{
|
46 |
+
diff --git a/src/solvers2/sphes.c b/src/solvers2/sphes.c
|
47 |
+
index dd2edff..ebdd3af 100644
|
48 |
+
--- a/src/solvers2/sphes.c
|
49 |
+
+++ b/src/solvers2/sphes.c
|
50 |
+
@@ -855,6 +855,10 @@ compar(const void *a, const void *b)
|
51 |
+
#undef del_mblk
|
52 |
+
#define del_mblk(c) Del_mblk_ASL(a,(Char*)(c))
|
53 |
+
|
54 |
+
+#if defined(_MSC_VER) && _MSC_VER < 1917
|
55 |
+
+#pragma optimize("", off)
|
56 |
+
+#endif
|
57 |
+
+
|
58 |
+
static void
|
59 |
+
new_Hesoprod(EvalWorkspace *ew, int nov, int *ov, real *oc, int nR, int *Rov, real *Roc, real coef)
|
60 |
+
{
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/disable-matlab-mex.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/asl/CMakeLists.txt b/src/asl/CMakeLists.txt
|
2 |
+
index b7d7ecf..c31a032 100644
|
3 |
+
--- a/src/asl/CMakeLists.txt
|
4 |
+
+++ b/src/asl/CMakeLists.txt
|
5 |
+
@@ -59,7 +59,7 @@ endif ()
|
6 |
+
|
7 |
+
target_link_libraries(aslmp ${CMAKE_DL_LIBS})
|
8 |
+
|
9 |
+
-find_package(MATLAB)
|
10 |
+
+set(MATLAB_FOUND)
|
11 |
+
if (MATLAB_FOUND AND MATLAB_BUILD)
|
12 |
+
set(matlab_asl asl)
|
13 |
+
if (MSVC)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/fix-arm-build.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 92089a3..d4c6762 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -257,9 +257,15 @@ if (CMAKE_CROSSCOMPILING)
|
6 |
+
COMMAND ${CMAKE_COMMAND} -E echo
|
7 |
+
"warning: cannot re-generate ${MP_EXPR_INFO_FILE}")
|
8 |
+
else ()
|
9 |
+
+ if (ARITHCHK_EXEC)
|
10 |
+
+ add_custom_command(OUTPUT ${MP_EXPR_INFO_FILE}
|
11 |
+
+ COMMAND ${WINE} ${ARITHCHK_EXEC} ${MP_EXPR_INFO_FILE}
|
12 |
+
+ DEPENDS gen-expr-info)
|
13 |
+
+ else()
|
14 |
+
add_custom_command(OUTPUT ${MP_EXPR_INFO_FILE}
|
15 |
+
COMMAND ${WINE} $<TARGET_FILE:gen-expr-info> ${MP_EXPR_INFO_FILE}
|
16 |
+
DEPENDS gen-expr-info)
|
17 |
+
+ endif()
|
18 |
+
endif ()
|
19 |
+
|
20 |
+
add_prefix(MP_HEADERS include/mp/
|
21 |
+
@@ -359,3 +365,4 @@ endif()
|
22 |
+
install(DIRECTORY include/mp DESTINATION include)
|
23 |
+
install(TARGETS mp DESTINATION lib RUNTIME DESTINATION bin)
|
24 |
+
install(FILES LICENSE.rst DESTINATION share/mp)
|
25 |
+
+install(TARGETS gen-expr-info RUNTIME DESTINATION bin)
|
26 |
+
|
27 |
+
diff --git a/src/amplsig/CMakeLists.txt b/src/amplsig/CMakeLists.txt
|
28 |
+
index 81312e9..f44c847 100644
|
29 |
+
--- a/src/amplsig/CMakeLists.txt
|
30 |
+
+++ b/src/amplsig/CMakeLists.txt
|
31 |
+
@@ -14,6 +14,6 @@ find_library(WS2_32_LIBRARY Ws2_32
|
32 |
+
PATHS ${WIN_LIBRARY_DIR} NO_DEFAULT_PATH)
|
33 |
+
if (WS2_32_LIBRARY)
|
34 |
+
add_ampl_library(amplsig amplsig.cc)
|
35 |
+
- message(WS2_32_LIBRARY ${WS2_32_LIBRARY})
|
36 |
+
- target_link_libraries(amplsig mp ${WS2_32_LIBRARY})
|
37 |
+
+ message(WS2_32_LIBRARY ws2_32)
|
38 |
+
+ target_link_libraries(amplsig mp ws2_32)
|
39 |
+
endif ()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/fix-build.patch
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 904cfb1..13f11cb 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -61,6 +61,8 @@ set_cache(BUILD "" STRING
|
6 |
+
if (BUILD)
|
7 |
+
if (BUILD STREQUAL all)
|
8 |
+
set(MP_MODULES all)
|
9 |
+
+ elseif (BUILD STREQUAL no)
|
10 |
+
+ set(MP_MODULES)
|
11 |
+
else ()
|
12 |
+
string(REGEX MATCHALL "[^,]+" MP_MODULES "${BUILD}")
|
13 |
+
endif ()
|
14 |
+
@@ -200,7 +202,7 @@ function (add_mp_library name)
|
15 |
+
add_dependencies(${name} ${add_mp_library_DEPENDS})
|
16 |
+
endif ()
|
17 |
+
# Add library linked with dynamic runtime.
|
18 |
+
- if (MSVC)
|
19 |
+
+ if (0)
|
20 |
+
add_library(${name}-dynrt ${libtype} EXCLUDE_FROM_ALL
|
21 |
+
${add_mp_library_UNPARSED_ARGUMENTS} ${dynrt-objects})
|
22 |
+
target_compile_options(${name}-dynrt PUBLIC /MD$<$<CONFIG:Debug>:d>)
|
23 |
+
@@ -308,16 +310,17 @@ if (RT_LIBRARY)
|
24 |
+
target_link_libraries(mp ${RT_LIBRARY})
|
25 |
+
endif ()
|
26 |
+
|
27 |
+
+if (MP_VARIADIC_TEMPLATES)
|
28 |
+
# Check if variadic templates are working and not affected by GCC bug 39653:
|
29 |
+
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39653
|
30 |
+
check_cxx_source_compiles("
|
31 |
+
template <class T, class ...Types>
|
32 |
+
struct S { typedef typename S<Types...>::type type; };
|
33 |
+
int main() {}" MP_VARIADIC_TEMPLATES)
|
34 |
+
-
|
35 |
+
-if (MP_VARIADIC_TEMPLATES)
|
36 |
+
+ if (MP_VARIADIC_TEMPLATES)
|
37 |
+
add_executable(nl-example src/nl-example.cc)
|
38 |
+
target_link_libraries(nl-example mp)
|
39 |
+
+ endif()
|
40 |
+
endif ()
|
41 |
+
|
42 |
+
add_subdirectory(doc)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/fix-dependency-asl.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 13f11cb..92089a3 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -323,9 +323,9 @@ check_cxx_source_compiles("
|
6 |
+
endif()
|
7 |
+
endif ()
|
8 |
+
|
9 |
+
+find_package(unofficial-asl CONFIG REQUIRED)
|
10 |
+
add_subdirectory(doc)
|
11 |
+
add_subdirectory(src/amplsig)
|
12 |
+
-add_subdirectory(src/asl)
|
13 |
+
add_subdirectory(src/cp)
|
14 |
+
add_subdirectory(solvers)
|
15 |
+
|
16 |
+
diff --git a/src/cp/cp.cc b/src/cp/cp.cc
|
17 |
+
index d4adc35..ca8f35b 100644
|
18 |
+
--- a/src/cp/cp.cc
|
19 |
+
+++ b/src/cp/cp.cc
|
20 |
+
@@ -24,7 +24,7 @@
|
21 |
+
#include <cstring>
|
22 |
+
#include <limits>
|
23 |
+
#include "mp/format.h"
|
24 |
+
-#include "funcadd.h"
|
25 |
+
+#include <asl/funcadd.h>
|
26 |
+
|
27 |
+
namespace {
|
28 |
+
void error(arglist *al, const char *message) {
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/install-targets.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index d4c6762..c7b15b6 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -197,7 +197,7 @@ function (add_mp_library name)
|
6 |
+
target_compile_definitions(${name}
|
7 |
+
PUBLIC ${add_mp_library_COMPILE_DEFINITIONS})
|
8 |
+
target_include_directories(${name}
|
9 |
+
- PUBLIC ${add_mp_library_INCLUDE_DIRECTORIES})
|
10 |
+
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/${add_mp_library_INCLUDE_DIRECTORIES}> $<INSTALL_INTERFACE:include>)
|
11 |
+
if (add_mp_library_DEPENDS)
|
12 |
+
add_dependencies(${name} ${add_mp_library_DEPENDS})
|
13 |
+
endif ()
|
14 |
+
@@ -363,6 +363,7 @@ if(BUILD_TESTING)
|
15 |
+
endif()
|
16 |
+
|
17 |
+
install(DIRECTORY include/mp DESTINATION include)
|
18 |
+
-install(TARGETS mp DESTINATION lib RUNTIME DESTINATION bin)
|
19 |
+
+install(TARGETS mp EXPORT unofficial-mp-config DESTINATION lib RUNTIME DESTINATION bin)
|
20 |
+
install(FILES LICENSE.rst DESTINATION share/mp)
|
21 |
+
+install(EXPORT unofficial-mp-config DESTINATION share/unofficial-mp)
|
22 |
+
install(TARGETS gen-expr-info RUNTIME DESTINATION bin)
|
23 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/portfile.cmake
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO ampl/mp
|
6 |
+
REF bb7d616605dd23e4a453a834b0fc8c0a2a71b5aa
|
7 |
+
SHA512 558321f700a2ffe9d13f29f7c034825f5644a49c55da8490160d7ee8303484de5f9a636783387cc108bd238cdc3d2afa6b28cafecce73ee7893d792f5293712a
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
disable-matlab-mex.patch
|
11 |
+
fix-build.patch
|
12 |
+
fix-dependency-asl.patch
|
13 |
+
fix-arm-build.patch # https://github.com/ampl/mp/issues/115
|
14 |
+
install-targets.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
if (NOT TARGET_TRIPLET STREQUAL HOST_TRIPLET)
|
18 |
+
set(ARITHCHK_EXEC ${CURRENT_HOST_INSTALLED_DIR}/tools/${PORT}/gen-expr-info${VCPKG_HOST_EXECUTABLE_SUFFIX})
|
19 |
+
if (NOT EXISTS "${ARITHCHK_EXEC}")
|
20 |
+
message(FATAL_ERROR "Expected ${ARITHCHK_EXEC} to exist.")
|
21 |
+
endif()
|
22 |
+
endif()
|
23 |
+
|
24 |
+
vcpkg_configure_cmake(
|
25 |
+
SOURCE_PATH ${SOURCE_PATH}
|
26 |
+
PREFER_NINJA
|
27 |
+
OPTIONS
|
28 |
+
-DBUILD=no
|
29 |
+
-DBUILD_TESTING=OFF
|
30 |
+
-DMP_VARIADIC_TEMPLATES=OFF
|
31 |
+
-DARITHCHK_EXEC=${ARITHCHK_EXEC}
|
32 |
+
)
|
33 |
+
|
34 |
+
vcpkg_install_cmake()
|
35 |
+
|
36 |
+
vcpkg_copy_pdbs()
|
37 |
+
|
38 |
+
vcpkg_copy_tools(TOOL_NAMES gen-expr-info AUTO_CLEAN)
|
39 |
+
|
40 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-mp TARGET_PATH share/unofficial-mp)
|
41 |
+
|
42 |
+
file(REMOVE_RECURSE
|
43 |
+
${CURRENT_PACKAGES_DIR}/debug/include
|
44 |
+
${CURRENT_PACKAGES_DIR}/debug/share
|
45 |
+
# remove amplsig.dll and cp.dll, see https://github.com/ampl/mp/issues/130
|
46 |
+
${CURRENT_PACKAGES_DIR}/debug/bin
|
47 |
+
${CURRENT_PACKAGES_DIR}/bin
|
48 |
+
)
|
49 |
+
|
50 |
+
configure_file(${SOURCE_PATH}/LICENSE.rst ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ampl-mp/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ampl-mp",
|
3 |
+
"version-string": "2020-11-11",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "An open-source library for mathematical programming",
|
6 |
+
"homepage": "https://github.com/ampl/mp",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"ampl-asl",
|
10 |
+
{
|
11 |
+
"name": "ampl-mp",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/amqpcpp/find-openssl.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 645bb32..3ef5c4b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -89,6 +89,11 @@ else()
|
6 |
+
add_library(${PROJECT_NAME} STATIC ${src_MAIN} ${src_LINUX_TCP})
|
7 |
+
endif()
|
8 |
+
|
9 |
+
+if(AMQP-CPP_LINUX_TCP)
|
10 |
+
+ find_path(OPENSSL_INCLUDE_DIR openssl/ssl.h)
|
11 |
+
+ include_directories(${OPENSSL_INCLUDE_DIR})
|
12 |
+
+endif()
|
13 |
+
+
|
14 |
+
# install rules
|
15 |
+
# ------------------------------------------------------------------------------------------------------
|
16 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/amqpcpp/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO CopernicaMarketingSoftware/AMQP-CPP
|
6 |
+
REF b891cc37a6ff63fcff59a112de281f5964344c91 #v4.3.15
|
7 |
+
SHA512 5c55285e2445752669bfe51a276c3c9cb294eeae74e05124fa7427737e43419493b8a8e199bedba9ab7fba5822a8da530ca442afdbe45d12c2c0c54f9fd59a0c
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
find-openssl.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
if(VCPKG_TARGET_IS_LINUX)
|
14 |
+
set(LINUX_TCP ON)
|
15 |
+
else()
|
16 |
+
set(LINUX_TCP OFF)
|
17 |
+
endif()
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
21 |
+
OPTIONS
|
22 |
+
-DAMQP-CPP_BUILD_SHARED=OFF
|
23 |
+
-DAMQP-CPP_LINUX_TCP=${LINUX_TCP}
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_cmake_install()
|
27 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
28 |
+
|
29 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
32 |
+
|
33 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/amqpcpp/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "amqpcpp",
|
3 |
+
"version": "4.3.15",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "AMQP-CPP is a C++ library for communicating with a RabbitMQ message broker",
|
6 |
+
"homepage": "https://github.com/CopernicaMarketingSoftware/AMQP-CPP",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"openssl",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/anax/Add-bin-output.patch
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt Tue Oct 13 13:47:40 2015
|
2 |
+
+++ b/CMakeLists.txt Tue Dec 06 11:13:23 2016
|
3 |
+
@@ -161,6 +161,7 @@
|
4 |
+
# Library files
|
5 |
+
install(
|
6 |
+
TARGETS ${ANAX_LIBRARY_NAME}
|
7 |
+
+ RUNTIME DESTINATION bin
|
8 |
+
LIBRARY DESTINATION lib
|
9 |
+
ARCHIVE DESTINATION lib
|
10 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/anax/osx-arm.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index d427767..80965bc 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -154,10 +154,6 @@ set_target_properties(${ANAX_LIBRARY_NAME} PROPERTIES
|
6 |
+
SOVERSION ${ANAX_VERSION_MAJOR}
|
7 |
+
)
|
8 |
+
|
9 |
+
-if(APPLE)
|
10 |
+
- set_target_properties(${ANAX_LIBRARY_NAME} PROPERTIES OSX_ARCHITECTURES "i386;x86_64;")
|
11 |
+
-endif()
|
12 |
+
-
|
13 |
+
# Library files
|
14 |
+
install(
|
15 |
+
TARGETS ${ANAX_LIBRARY_NAME}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/anax/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO miguelmartin75/anax
|
6 |
+
REF v2.1.0
|
7 |
+
SHA512 b573733b5f9634bf8cfc5b0715074f9a8ee29ecb48dc981d9371254a1f6ff8afbbb9ba6aa0877d53e518e5486ecc398a6d331fb9b5dbfd17d8707679216e11a3
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
Add-bin-output.patch
|
11 |
+
osx-arm.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
DISABLE_PARALLEL_CONFIGURE
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
|
23 |
+
# Handle copyright
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
25 |
+
|
26 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/anax/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "anax",
|
3 |
+
"version": "2.1.0",
|
4 |
+
"port-version": 8,
|
5 |
+
"description": "An open source C++ entity system.",
|
6 |
+
"homepage": "https://github.com/miguelmartin75/anax",
|
7 |
+
"license": "MIT",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angelscript/LICENSE
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
AngelCode Scripting Library
|
2 |
+
|
3 |
+
Copyright © 2003-2018 Andreas Jönsson
|
4 |
+
|
5 |
+
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
|
6 |
+
|
7 |
+
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
|
8 |
+
|
9 |
+
The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
|
10 |
+
|
11 |
+
Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
|
12 |
+
|
13 |
+
This notice may not be removed or altered from any source distribution.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angelscript/mark-threads-private.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/angelscript/projects/cmake/CMakeLists.txt b/angelscript/projects/cmake/CMakeLists.txt
|
2 |
+
index 7c800c5..982ad8b 100644
|
3 |
+
--- a/angelscript/projects/cmake/CMakeLists.txt
|
4 |
+
+++ b/angelscript/projects/cmake/CMakeLists.txt
|
5 |
+
@@ -145,7 +145,7 @@ endif()
|
6 |
+
|
7 |
+
# Don't override the default library output path to avoid conflicts when building for multiple target platforms
|
8 |
+
#set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../../lib)
|
9 |
+
-target_link_libraries(${ANGELSCRIPT_LIBRARY_NAME} Threads::Threads)
|
10 |
+
+target_link_libraries(${ANGELSCRIPT_LIBRARY_NAME} PRIVATE Threads::Threads)
|
11 |
+
|
12 |
+
set_target_properties(${ANGELSCRIPT_LIBRARY_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angelscript/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://angelcode.com/angelscript/sdk/files/angelscript_2.35.1.zip"
|
3 |
+
FILENAME "angelscript_2.35.1.zip"
|
4 |
+
SHA512 b15083c7a77434c291e72ea82cfbab7734fa79df654d911a822f306d526669ebe9e55a981e8a1914deda0d2a52ebdc0ffb51a4179f307632c8c7d74b1abc69fa
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
PATCHES
|
11 |
+
mark-threads-private.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}/angelscript/projects/cmake
|
16 |
+
PREFER_NINJA
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
23 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Angelscript)
|
24 |
+
|
25 |
+
# Copy the addon files
|
26 |
+
if("addons" IN_LIST FEATURES)
|
27 |
+
file(INSTALL ${SOURCE_PATH}/add_on/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/angelscript FILES_MATCHING PATTERN "*.h" PATTERN "*.cpp")
|
28 |
+
endif()
|
29 |
+
|
30 |
+
file(INSTALL ${CURRENT_PORT_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angelscript/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "angelscript",
|
3 |
+
"version": "2.35.1",
|
4 |
+
"description": "The AngelCode Scripting Library, or AngelScript as it is also known, is an extremely flexible cross-platform scripting library designed to allow applications to extend their functionality through external scripts. It has been designed from the beginning to be an easy to use component, both for the application programmer and the script writer.",
|
5 |
+
"homepage": "https://angelcode.com/angelscript",
|
6 |
+
"supports": "!arm",
|
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 |
+
"addons": {
|
19 |
+
"description": "Installs all addons for use in compiling scripts addons"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/001-fix-uwp.patch
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.cpp b/src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.cpp
|
2 |
+
index 7d3f078d6..fac057dd6 100644
|
3 |
+
--- a/src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.cpp
|
4 |
+
+++ b/src/libANGLE/renderer/d3d/d3d11/winrt/CoreWindowNativeWindow.cpp
|
5 |
+
@@ -213,16 +213,20 @@ HRESULT GetCoreWindowSizeInPixels(const ComPtr<ABI::Windows::UI::Core::ICoreWind
|
6 |
+
|
7 |
+
static float GetLogicalDpi()
|
8 |
+
{
|
9 |
+
- ComPtr<ABI::Windows::Graphics::Display::IDisplayPropertiesStatics> displayProperties;
|
10 |
+
+ ComPtr<ABI::Windows::Graphics::Display::IDisplayInformationStatics> displayInformationStatics;
|
11 |
+
+ ComPtr<ABI::Windows::Graphics::Display::IDisplayInformation> displayInformation;
|
12 |
+
|
13 |
+
if (SUCCEEDED(GetActivationFactory(
|
14 |
+
- HStringReference(RuntimeClass_Windows_Graphics_Display_DisplayProperties).Get(),
|
15 |
+
- displayProperties.GetAddressOf())))
|
16 |
+
+ HStringReference(RuntimeClass_Windows_Graphics_Display_DisplayInformation).Get(),
|
17 |
+
+ displayInformationStatics.GetAddressOf())))
|
18 |
+
{
|
19 |
+
float dpi = 96.0f;
|
20 |
+
- if (SUCCEEDED(displayProperties->get_LogicalDpi(&dpi)))
|
21 |
+
+ if (SUCCEEDED(displayInformationStatics->GetForCurrentView(&displayInformation)))
|
22 |
+
{
|
23 |
+
- return dpi;
|
24 |
+
+ if (SUCCEEDED(displayInformation->get_LogicalDpi(&dpi)))
|
25 |
+
+ {
|
26 |
+
+ return dpi;
|
27 |
+
+ }
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/002-fix-builder-error.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/gpu_info_util/SystemInfo_win.cpp b/src/gpu_info_util/SystemInfo_win.cpp
|
2 |
+
index f4bb137f2..86495013b 100644
|
3 |
+
--- a/src/gpu_info_util/SystemInfo_win.cpp
|
4 |
+
+++ b/src/gpu_info_util/SystemInfo_win.cpp
|
5 |
+
@@ -6,11 +6,6 @@
|
6 |
+
|
7 |
+
// SystemInfo_win.cpp: implementation of the Windows-specific parts of SystemInfo.h
|
8 |
+
|
9 |
+
-#include "gpu_info_util/SystemInfo_internal.h"
|
10 |
+
-
|
11 |
+
-#include "common/debug.h"
|
12 |
+
-#include "common/string_utils.h"
|
13 |
+
-
|
14 |
+
// Windows.h needs to be included first
|
15 |
+
#include <windows.h>
|
16 |
+
|
17 |
+
@@ -19,6 +14,11 @@
|
18 |
+
#include <array>
|
19 |
+
#include <sstream>
|
20 |
+
|
21 |
+
+#include "gpu_info_util/SystemInfo_internal.h"
|
22 |
+
+
|
23 |
+
+#include "common/debug.h"
|
24 |
+
+#include "common/string_utils.h"
|
25 |
+
+
|
26 |
+
namespace angle
|
27 |
+
{
|
28 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/003-fix-mingw.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/common/mathutil.h b/src/common/mathutil.h
|
2 |
+
index 1d73bbf..c5b9cc8 100644
|
3 |
+
--- a/src/common/mathutil.h
|
4 |
+
+++ b/src/common/mathutil.h
|
5 |
+
@@ -1073,7 +1073,7 @@ inline int BitCount(uint64_t bits)
|
6 |
+
# endif // defined(_M_IX86) || defined(_M_X64)
|
7 |
+
#endif // defined(_MSC_VER) && !defined(__clang__)
|
8 |
+
|
9 |
+
-#if defined(ANGLE_PLATFORM_POSIX) || defined(__clang__)
|
10 |
+
+#if defined(ANGLE_PLATFORM_POSIX) || defined(__clang__) || defined(__MINGW32__)
|
11 |
+
inline int BitCount(uint32_t bits)
|
12 |
+
{
|
13 |
+
return __builtin_popcount(bits);
|
14 |
+
@@ -1083,7 +1083,7 @@ inline int BitCount(uint64_t bits)
|
15 |
+
{
|
16 |
+
return __builtin_popcountll(bits);
|
17 |
+
}
|
18 |
+
-#endif // defined(ANGLE_PLATFORM_POSIX) || defined(__clang__)
|
19 |
+
+#endif // defined(ANGLE_PLATFORM_POSIX) || defined(__clang__) || defined(__MINGW32__)
|
20 |
+
|
21 |
+
inline int BitCount(uint8_t bits)
|
22 |
+
{
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/CMakeLists.txt
ADDED
@@ -0,0 +1,737 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(angle CXX C)
|
3 |
+
|
4 |
+
if(WIN32 AND NOT WINDOWS_STORE)
|
5 |
+
set(WINDOWS_DESKTOP 1)
|
6 |
+
else()
|
7 |
+
set(WINDOWS_DESKTOP 0)
|
8 |
+
endif()
|
9 |
+
|
10 |
+
if(UNIX AND NOT APPLE)
|
11 |
+
set(LINUX 1)
|
12 |
+
else()
|
13 |
+
set(LINUX 0)
|
14 |
+
endif()
|
15 |
+
|
16 |
+
if(MSVC)
|
17 |
+
add_compile_options(/d2guard4 /Wv:18 /guard:cf /permissive /bigobj)
|
18 |
+
else()
|
19 |
+
set(CMAKE_CXX_STANDARD 17)
|
20 |
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
21 |
+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
22 |
+
endif()
|
23 |
+
|
24 |
+
if (APPLE)
|
25 |
+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -framework Cocoa -framework OpenGL -framework IOKit -framework CoreFoundation -framework IOSurface -framework QuartzCore -framework CoreGraphics")
|
26 |
+
endif()
|
27 |
+
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS}")
|
28 |
+
set(CMAKE_STATIC_LIBRARY_PREFIX "")
|
29 |
+
|
30 |
+
if (WINDOWS_STORE)
|
31 |
+
set(WINRT_DEFINES -DANGLE_ENABLE_WINDOWS_UWP -DWINAPI_FAMILY=WINAPI_FAMILY_PC_APP)
|
32 |
+
else()
|
33 |
+
set(WINRT_DEFINES)
|
34 |
+
endif()
|
35 |
+
add_definitions(
|
36 |
+
-D_CRT_SECURE_NO_DEPRECATE
|
37 |
+
-D_SCL_SECURE_NO_WARNINGS
|
38 |
+
-DGL_SILENCE_DEPRECATION
|
39 |
+
-D_HAS_EXCEPTIONS=0
|
40 |
+
-DNOMINMAX
|
41 |
+
-DANGLE_STANDALONE_BUILD
|
42 |
+
${WINRT_DEFINES}
|
43 |
+
)
|
44 |
+
add_compile_options("$<$<CONFIG:DEBUG>:-DANGLE_ENABLE_DEBUG_ANNOTATIONS>")
|
45 |
+
if(WIN32)
|
46 |
+
add_definitions(-DANGLE_IS_WIN)
|
47 |
+
endif()
|
48 |
+
if(LINUX)
|
49 |
+
add_definitions(-DANGLE_IS_LINUX)
|
50 |
+
endif()
|
51 |
+
if(ANGLE_IS_64_BIT_CPU)
|
52 |
+
add_definitions(-DANGLE_IS_64_BIT_CPU)
|
53 |
+
elseif(ANGLE_IS_32_BIT_CPU)
|
54 |
+
add_definitions(-DANGLE_IS_32_BIT_CPU)
|
55 |
+
endif()
|
56 |
+
|
57 |
+
configure_file(angle_commit.h include/id/commit.h COPYONLY)
|
58 |
+
#include_directories(include src ${CMAKE_CURRENT_BINARY_DIR}/include)
|
59 |
+
include_directories("$<INSTALL_INTERFACE:include>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>")
|
60 |
+
##########
|
61 |
+
# angle::common
|
62 |
+
if(WINDOWS_DESKTOP)
|
63 |
+
set(ANGLE_COMMON_PLATFORM_FILTER "_linux|_apple|_mac|_ios|_posix|_winuwp")
|
64 |
+
elseif(WINDOWS_STORE)
|
65 |
+
set(ANGLE_COMMON_PLATFORM_FILTER "_linux|_apple|_mac|_ios|_posix|_win32")
|
66 |
+
elseif(LINUX)
|
67 |
+
set(ANGLE_COMMON_PLATFORM_FILTER "_win|_apple|_mac|_ios")
|
68 |
+
elseif(APPLE)
|
69 |
+
if(CMAKE_SYSTEM_NAME MATCHES "Darwin") # macOS
|
70 |
+
set(ANGLE_COMMON_PLATFORM_FILTER "_linux|_win|_ios")
|
71 |
+
else() # other Apple platforms (iOS, etc)
|
72 |
+
set(ANGLE_COMMON_PLATFORM_FILTER "_linux|_win|_mac")
|
73 |
+
endif()
|
74 |
+
endif()
|
75 |
+
file(GLOB ANGLE_COMMON_SOURCES
|
76 |
+
"src/common/*.h"
|
77 |
+
"src/common/*.inc"
|
78 |
+
"src/common/*.cpp"
|
79 |
+
"src/common/third_party/base/anglebase/*.h"
|
80 |
+
"src/common/third_party/base/anglebase/*.cc"
|
81 |
+
"src/common/third_party/base/anglebase/containers/*.h"
|
82 |
+
"src/common/third_party/base/anglebase/numerics/*.h"
|
83 |
+
"src/common/third_party/base/anglebase/numerics/*.cc"
|
84 |
+
"src/common/third_party/xxhash/*.h"
|
85 |
+
"src/common/third_party/xxhash/*.c"
|
86 |
+
"src/common/third_party/smhasher/src/*.h"
|
87 |
+
"src/common/third_party/smhasher/src/*.cpp")
|
88 |
+
list(FILTER ANGLE_COMMON_SOURCES EXCLUDE REGEX "_unittest|event_tracer|${ANGLE_COMMON_PLATFORM_FILTER}")
|
89 |
+
add_library(angle_common OBJECT ${ANGLE_COMMON_SOURCES})
|
90 |
+
target_include_directories(angle_common PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/common/third_party/base>")
|
91 |
+
add_library(angle::common ALIAS angle_common)
|
92 |
+
|
93 |
+
##########
|
94 |
+
# angle::compression
|
95 |
+
file(GLOB ANGLE_COMPRESSION_UTILS_SOURCES "third_party/zlib/google/compression_utils_portable.*")
|
96 |
+
find_package(ZLIB REQUIRED)
|
97 |
+
add_library(angle_compression_utils OBJECT ${ANGLE_COMPRESSION_UTILS_SOURCES})
|
98 |
+
target_link_libraries(angle_compression_utils PUBLIC ZLIB::ZLIB)
|
99 |
+
target_compile_definitions(angle_compression_utils PRIVATE
|
100 |
+
-DUSE_SYSTEM_ZLIB
|
101 |
+
)
|
102 |
+
target_include_directories(angle_compression_utils INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/third_party/zlib/google>")
|
103 |
+
add_library(angle::compression ALIAS angle_compression_utils)
|
104 |
+
|
105 |
+
##########
|
106 |
+
# angle::image_util
|
107 |
+
file(GLOB ANGLE_IMAGE_UTIL_SOURCES "src/image_util/*.h" "src/image_util/*.inc" "src/image_util/*.cpp")
|
108 |
+
add_library(angle_image_util OBJECT ${ANGLE_IMAGE_UTIL_SOURCES})
|
109 |
+
target_link_libraries(angle_image_util PRIVATE angle::common)
|
110 |
+
add_library(angle::image_util ALIAS angle_image_util)
|
111 |
+
|
112 |
+
##########
|
113 |
+
# angle::translator
|
114 |
+
file(GLOB TRANSLATOR_SOURCES
|
115 |
+
"src/compiler/translator/BaseTypes.h"
|
116 |
+
"src/compiler/translator/BuiltInFunctionEmulator.cpp"
|
117 |
+
"src/compiler/translator/BuiltInFunctionEmulator.h"
|
118 |
+
"src/compiler/translator/CallDAG.cpp"
|
119 |
+
"src/compiler/translator/CallDAG.h"
|
120 |
+
"src/compiler/translator/CodeGen.cpp"
|
121 |
+
"src/compiler/translator/CollectVariables.cpp"
|
122 |
+
"src/compiler/translator/CollectVariables.h"
|
123 |
+
"src/compiler/translator/Common.h"
|
124 |
+
"src/compiler/translator/Compiler.cpp"
|
125 |
+
"src/compiler/translator/Compiler.h"
|
126 |
+
"src/compiler/translator/ConstantUnion.cpp"
|
127 |
+
"src/compiler/translator/ConstantUnion.h"
|
128 |
+
"src/compiler/translator/Declarator.cpp"
|
129 |
+
"src/compiler/translator/Declarator.h"
|
130 |
+
"src/compiler/translator/Diagnostics.cpp"
|
131 |
+
"src/compiler/translator/Diagnostics.h"
|
132 |
+
"src/compiler/translator/DirectiveHandler.cpp"
|
133 |
+
"src/compiler/translator/DirectiveHandler.h"
|
134 |
+
"src/compiler/translator/ExtensionBehavior.cpp"
|
135 |
+
"src/compiler/translator/ExtensionBehavior.h"
|
136 |
+
"src/compiler/translator/FlagStd140Structs.cpp"
|
137 |
+
"src/compiler/translator/FlagStd140Structs.h"
|
138 |
+
"src/compiler/translator/FunctionLookup.cpp"
|
139 |
+
"src/compiler/translator/FunctionLookup.h"
|
140 |
+
"src/compiler/translator/HashNames.cpp"
|
141 |
+
"src/compiler/translator/HashNames.h"
|
142 |
+
"src/compiler/translator/ImmutableString.h"
|
143 |
+
"src/compiler/translator/ImmutableStringBuilder.cpp"
|
144 |
+
"src/compiler/translator/ImmutableStringBuilder.h"
|
145 |
+
"src/compiler/translator/InfoSink.cpp"
|
146 |
+
"src/compiler/translator/InfoSink.h"
|
147 |
+
"src/compiler/translator/Initialize.cpp"
|
148 |
+
"src/compiler/translator/Initialize.h"
|
149 |
+
"src/compiler/translator/InitializeDll.cpp"
|
150 |
+
"src/compiler/translator/InitializeDll.h"
|
151 |
+
"src/compiler/translator/InitializeGlobals.h"
|
152 |
+
"src/compiler/translator/IntermNode.cpp"
|
153 |
+
"src/compiler/translator/IntermNode.h"
|
154 |
+
"src/compiler/translator/IsASTDepthBelowLimit.cpp"
|
155 |
+
"src/compiler/translator/IsASTDepthBelowLimit.h"
|
156 |
+
"src/compiler/translator/Operator.cpp"
|
157 |
+
"src/compiler/translator/Operator.h"
|
158 |
+
"src/compiler/translator/OutputTree.cpp"
|
159 |
+
"src/compiler/translator/OutputTree.h"
|
160 |
+
"src/compiler/translator/ParseContext.cpp"
|
161 |
+
"src/compiler/translator/ParseContext.h"
|
162 |
+
"src/compiler/translator/ParseContext_ESSL_autogen.h"
|
163 |
+
"src/compiler/translator/ParseContext_complete_autogen.h"
|
164 |
+
"src/compiler/translator/ParseContext_interm.h"
|
165 |
+
"src/compiler/translator/PoolAlloc.cpp"
|
166 |
+
"src/compiler/translator/PoolAlloc.h"
|
167 |
+
"src/compiler/translator/Pragma.h"
|
168 |
+
"src/compiler/translator/QualifierTypes.cpp"
|
169 |
+
"src/compiler/translator/QualifierTypes.h"
|
170 |
+
"src/compiler/translator/Severity.h"
|
171 |
+
"src/compiler/translator/ShaderLang.cpp"
|
172 |
+
"src/compiler/translator/ShaderVars.cpp"
|
173 |
+
"src/compiler/translator/StaticType.h"
|
174 |
+
"src/compiler/translator/Symbol.cpp"
|
175 |
+
"src/compiler/translator/Symbol.h"
|
176 |
+
"src/compiler/translator/SymbolTable.cpp"
|
177 |
+
"src/compiler/translator/SymbolTable.h"
|
178 |
+
"src/compiler/translator/SymbolTable_autogen.h"
|
179 |
+
"src/compiler/translator/SymbolUniqueId.cpp"
|
180 |
+
"src/compiler/translator/SymbolUniqueId.h"
|
181 |
+
"src/compiler/translator/TranslatorESSL.h"
|
182 |
+
"src/compiler/translator/TranslatorGLSL.h"
|
183 |
+
"src/compiler/translator/TranslatorHLSL.h"
|
184 |
+
"src/compiler/translator/TranslatorMetal.h"
|
185 |
+
"src/compiler/translator/TranslatorVulkan.h"
|
186 |
+
"src/compiler/translator/Types.cpp"
|
187 |
+
"src/compiler/translator/Types.h"
|
188 |
+
"src/compiler/translator/ValidateAST.cpp"
|
189 |
+
"src/compiler/translator/ValidateAST.h"
|
190 |
+
"src/compiler/translator/ValidateBarrierFunctionCall.cpp"
|
191 |
+
"src/compiler/translator/ValidateBarrierFunctionCall.h"
|
192 |
+
"src/compiler/translator/ValidateClipCullDistance.cpp"
|
193 |
+
"src/compiler/translator/ValidateClipCullDistance.h"
|
194 |
+
"src/compiler/translator/ValidateGlobalInitializer.cpp"
|
195 |
+
"src/compiler/translator/ValidateGlobalInitializer.h"
|
196 |
+
"src/compiler/translator/ValidateLimitations.cpp"
|
197 |
+
"src/compiler/translator/ValidateLimitations.h"
|
198 |
+
"src/compiler/translator/ValidateMaxParameters.cpp"
|
199 |
+
"src/compiler/translator/ValidateMaxParameters.h"
|
200 |
+
"src/compiler/translator/ValidateOutputs.cpp"
|
201 |
+
"src/compiler/translator/ValidateOutputs.h"
|
202 |
+
"src/compiler/translator/ValidateSwitch.cpp"
|
203 |
+
"src/compiler/translator/ValidateSwitch.h"
|
204 |
+
"src/compiler/translator/ValidateVaryingLocations.cpp"
|
205 |
+
"src/compiler/translator/ValidateVaryingLocations.h"
|
206 |
+
"src/compiler/translator/VariablePacker.cpp"
|
207 |
+
"src/compiler/translator/VariablePacker.h"
|
208 |
+
"src/compiler/translator/blocklayout.cpp"
|
209 |
+
"src/compiler/translator/glslang.h"
|
210 |
+
"src/compiler/translator/glslang_lex_autogen.cpp"
|
211 |
+
"src/compiler/translator/glslang_tab_autogen.cpp"
|
212 |
+
"src/compiler/translator/glslang_tab_autogen.h"
|
213 |
+
"src/compiler/translator/glslang_wrapper.h"
|
214 |
+
"src/compiler/translator/length_limits.h"
|
215 |
+
"src/compiler/translator/tree_ops/*.cpp"
|
216 |
+
"src/compiler/translator/tree_ops/*.h"
|
217 |
+
"src/compiler/translator/tree_ops/gl/ClampFragDepth.h"
|
218 |
+
"src/compiler/translator/tree_ops/gl/RegenerateStructNames.h"
|
219 |
+
"src/compiler/translator/tree_ops/gl/RewriteRepeatedAssignToSwizzled.h"
|
220 |
+
"src/compiler/translator/tree_ops/gl/UseInterfaceBlockFields.h"
|
221 |
+
"src/compiler/translator/tree_ops/gl/VectorizeVectorScalarArithmetic.h"
|
222 |
+
"src/compiler/translator/tree_ops/gl/mac/AddAndTrueToLoopCondition.h"
|
223 |
+
"src/compiler/translator/tree_ops/gl/mac/RewriteDoWhile.h"
|
224 |
+
"src/compiler/translator/tree_ops/gl/mac/UnfoldShortCircuitAST.h"
|
225 |
+
"src/compiler/translator/tree_ops/vulkan/EarlyFragmentTestsOptimization.h"
|
226 |
+
"src/compiler/translator/tree_util/*.h"
|
227 |
+
"src/compiler/translator/tree_util/*.cpp"
|
228 |
+
"src/compiler/translator/util.cpp"
|
229 |
+
"src/compiler/translator/util.h"
|
230 |
+
"src/third_party/compiler/ArrayBoundsClamper.cpp"
|
231 |
+
"src/third_party/compiler/ArrayBoundsClamper.h"
|
232 |
+
)
|
233 |
+
list(FILTER TRANSLATOR_SOURCES EXCLUDE REGEX "_unittest")
|
234 |
+
file(GLOB TRANSLATOR_GLSL_BASE_SOURCES
|
235 |
+
"src/compiler/translator/OutputGLSLBase.cpp"
|
236 |
+
"src/compiler/translator/OutputGLSLBase.h"
|
237 |
+
)
|
238 |
+
file(GLOB TRANSLATOR_GLSL_AND_VULKAN_BASE_SOURCES
|
239 |
+
"src/compiler/translator/BuiltinsWorkaroundGLSL.cpp"
|
240 |
+
"src/compiler/translator/BuiltinsWorkaroundGLSL.h"
|
241 |
+
"src/compiler/translator/OutputGLSL.cpp"
|
242 |
+
"src/compiler/translator/OutputGLSL.h"
|
243 |
+
)
|
244 |
+
file(GLOB TRANSLATOR_ESSL_SOURCES
|
245 |
+
"src/compiler/translator/OutputESSL.cpp"
|
246 |
+
"src/compiler/translator/OutputESSL.h"
|
247 |
+
"src/compiler/translator/TranslatorESSL.cpp"
|
248 |
+
"src/compiler/translator/tree_ops/gl/RecordConstantPrecision.cpp"
|
249 |
+
"src/compiler/translator/tree_ops/gl/RecordConstantPrecision.h"
|
250 |
+
)
|
251 |
+
file(GLOB TRANSLATOR_GLSL_SOURCES
|
252 |
+
"src/compiler/translator/BuiltInFunctionEmulatorGLSL.cpp"
|
253 |
+
"src/compiler/translator/BuiltInFunctionEmulatorGLSL.h"
|
254 |
+
"src/compiler/translator/ExtensionGLSL.cpp"
|
255 |
+
"src/compiler/translator/ExtensionGLSL.h"
|
256 |
+
"src/compiler/translator/TranslatorGLSL.cpp"
|
257 |
+
"src/compiler/translator/VersionGLSL.cpp"
|
258 |
+
"src/compiler/translator/VersionGLSL.h"
|
259 |
+
"src/compiler/translator/tree_ops/gl/ClampFragDepth.cpp"
|
260 |
+
"src/compiler/translator/tree_ops/gl/RegenerateStructNames.cpp"
|
261 |
+
"src/compiler/translator/tree_ops/gl/RewriteRepeatedAssignToSwizzled.cpp"
|
262 |
+
"src/compiler/translator/tree_ops/gl/UseInterfaceBlockFields.cpp"
|
263 |
+
"src/compiler/translator/tree_ops/gl/VectorizeVectorScalarArithmetic.cpp"
|
264 |
+
"src/compiler/translator/tree_ops/gl/mac/RewriteRowMajorMatrices.h"
|
265 |
+
"src/compiler/translator/tree_ops/gl/mac/RewriteUnaryMinusOperatorFloat.h"
|
266 |
+
)
|
267 |
+
file(GLOB TRANSLATOR_GLSL_MAC_SOURCES
|
268 |
+
"src/compiler/translator/tree_ops/gl/mac/AddAndTrueToLoopCondition.cpp"
|
269 |
+
"src/compiler/translator/tree_ops/gl/mac/RewriteDoWhile.cpp"
|
270 |
+
"src/compiler/translator/tree_ops/gl/mac/RewriteRowMajorMatrices.cpp"
|
271 |
+
"src/compiler/translator/tree_ops/gl/mac/RewriteUnaryMinusOperatorFloat.cpp"
|
272 |
+
"src/compiler/translator/tree_ops/gl/mac/UnfoldShortCircuitAST.cpp"
|
273 |
+
)
|
274 |
+
file(GLOB TRANSLATOR_HLSL_SOURCES
|
275 |
+
"src/compiler/translator/*HLSL.h"
|
276 |
+
"src/compiler/translator/*HLSL.cpp"
|
277 |
+
"src/compiler/translator/emulated_builtin_functions_hlsl_autogen.cpp"
|
278 |
+
"src/compiler/translator/tree_ops/d3d/*.cpp"
|
279 |
+
"src/compiler/translator/tree_ops/d3d/*.h"
|
280 |
+
)
|
281 |
+
if(ANDROID)
|
282 |
+
list(APPEND TRANSLATOR_SOURCES "src/compiler/translator/ImmutableString_ESSL_autogen.cpp" "src/compiler/translator/SymbolTable_ESSL_autogen.cpp")
|
283 |
+
else()
|
284 |
+
list(APPEND TRANSLATOR_SOURCES "src/compiler/translator/ImmutableString_autogen.cpp" "src/compiler/translator/SymbolTable_autogen.cpp")
|
285 |
+
endif()
|
286 |
+
set(ANGLE_ENABLE_ESSL TRUE)
|
287 |
+
set(ANGLE_ENABLE_GLSL TRUE)
|
288 |
+
set(ANGLE_ENABLE_HLSL TRUE)
|
289 |
+
set(_needs_glsl_base FALSE)
|
290 |
+
set(_needs_glsl_and_vulkan_base FALSE)
|
291 |
+
add_library(angle_translator OBJECT ${TRANSLATOR_SOURCES})
|
292 |
+
if(ANGLE_ENABLE_ESSL)
|
293 |
+
set(_needs_glsl_base TRUE)
|
294 |
+
target_sources(angle_translator PRIVATE ${TRANSLATOR_ESSL_SOURCES})
|
295 |
+
target_compile_definitions(angle_translator PUBLIC -DANGLE_ENABLE_ESSL)
|
296 |
+
endif()
|
297 |
+
if(ANGLE_ENABLE_GLSL)
|
298 |
+
set(_needs_glsl_base TRUE)
|
299 |
+
set(_needs_glsl_and_vulkan_base TRUE)
|
300 |
+
target_sources(angle_translator PRIVATE ${TRANSLATOR_GLSL_SOURCES})
|
301 |
+
if(APPLE)
|
302 |
+
target_sources(angle_translator PRIVATE ${TRANSLATOR_GLSL_MAC_SOURCES})
|
303 |
+
endif()
|
304 |
+
target_compile_definitions(angle_translator PUBLIC -DANGLE_ENABLE_GLSL)
|
305 |
+
endif()
|
306 |
+
if(ANGLE_ENABLE_HLSL)
|
307 |
+
target_sources(angle_translator PRIVATE ${TRANSLATOR_HLSL_SOURCES})
|
308 |
+
target_compile_definitions(angle_translator PUBLIC -DANGLE_ENABLE_HLSL)
|
309 |
+
endif()
|
310 |
+
if(_needs_glsl_base)
|
311 |
+
target_sources(angle_translator PRIVATE ${TRANSLATOR_GLSL_BASE_SOURCES})
|
312 |
+
endif()
|
313 |
+
if(_needs_glsl_and_vulkan_base)
|
314 |
+
target_sources(angle_translator PRIVATE ${TRANSLATOR_GLSL_AND_VULKAN_BASE_SOURCES})
|
315 |
+
endif()
|
316 |
+
target_link_libraries(angle_translator PRIVATE angle::common)
|
317 |
+
add_library(angle::translator ALIAS angle_translator)
|
318 |
+
|
319 |
+
##########
|
320 |
+
# angle::preprocessor
|
321 |
+
file(GLOB PREPROCESSOR_SOURCES
|
322 |
+
"src/compiler/preprocessor/*.h"
|
323 |
+
"src/compiler/preprocessor/*.cpp"
|
324 |
+
)
|
325 |
+
add_library(angle_preprocessor OBJECT ${PREPROCESSOR_SOURCES})
|
326 |
+
target_link_libraries(angle_preprocessor PRIVATE angle::common)
|
327 |
+
add_library(angle::preprocessor ALIAS angle_preprocessor)
|
328 |
+
|
329 |
+
##########
|
330 |
+
# libANGLE
|
331 |
+
|
332 |
+
## OpenGL Renderer
|
333 |
+
if(WINDOWS_DESKTOP OR LINUX OR APPLE)
|
334 |
+
if(WINDOWS_DESKTOP)
|
335 |
+
set(ANGLE_RENDERER_OPENGL_PLATFORM
|
336 |
+
"src/libANGLE/renderer/gl/wgl/*.cpp"
|
337 |
+
"src/libANGLE/renderer/gl/wgl/*.h"
|
338 |
+
)
|
339 |
+
elseif(APPLE)
|
340 |
+
set(ANGLE_RENDERER_OPENGL_PLATFORM
|
341 |
+
"src/libANGLE/renderer/gl/cgl/*.mm"
|
342 |
+
"src/libANGLE/renderer/gl/cgl/*.cpp"
|
343 |
+
"src/libANGLE/renderer/gl/cgl/*.h"
|
344 |
+
"gpu_info_util/SystemInfo_macos.mm"
|
345 |
+
)
|
346 |
+
elseif(LINUX)
|
347 |
+
set(ANGLE_RENDERER_OPENGL_PLATFORM
|
348 |
+
"src/libANGLE/renderer/gl/glx/*.cpp"
|
349 |
+
"src/libANGLE/renderer/gl/glx/*.h"
|
350 |
+
"src/libANGLE/renderer/gl/egl/*.cpp"
|
351 |
+
"src/libANGLE/renderer/gl/egl/*.h"
|
352 |
+
)
|
353 |
+
endif()
|
354 |
+
|
355 |
+
file(GLOB LIBANGLE_GL_SOURCES
|
356 |
+
"src/libANGLE/renderer/gl/*.cpp"
|
357 |
+
"src/libANGLE/renderer/gl/*.inc"
|
358 |
+
"src/libANGLE/renderer/gl/*.h"
|
359 |
+
|
360 |
+
${ANGLE_RENDERER_OPENGL_PLATFORM}
|
361 |
+
)
|
362 |
+
list(FILTER LIBANGLE_GL_SOURCES EXCLUDE REGEX "_unittest")
|
363 |
+
add_library(angle_renderer_opengl INTERFACE)
|
364 |
+
target_sources(angle_renderer_opengl INTERFACE "$<BUILD_INTERFACE:${LIBANGLE_GL_SOURCES}>")
|
365 |
+
target_compile_definitions(angle_renderer_opengl INTERFACE -DANGLE_ENABLE_OPENGL -DANGLE_ENABLE_OPENGL_DESKTOP)
|
366 |
+
add_library(angle::renderer::opengl ALIAS angle_renderer_opengl)
|
367 |
+
endif()
|
368 |
+
|
369 |
+
# D3D Renderers
|
370 |
+
if(WIN32)
|
371 |
+
## All D3D Sources
|
372 |
+
file(GLOB_RECURSE LIBANGLE_D3D_SOURCES
|
373 |
+
"src/libANGLE/renderer/d3d/*.cpp"
|
374 |
+
"src/libANGLE/renderer/d3d/*.inc"
|
375 |
+
"src/libANGLE/renderer/d3d/*.h"
|
376 |
+
)
|
377 |
+
list(FILTER LIBANGLE_D3D_SOURCES EXCLUDE REGEX "_unittest")
|
378 |
+
if(MINGW)
|
379 |
+
list(FILTER LIBANGLE_D3D_SOURCES EXCLUDE REGEX "CompositorNativeWindow11")
|
380 |
+
endif()
|
381 |
+
|
382 |
+
## WinRT D3D Renderer
|
383 |
+
if(WINDOWS_STORE)
|
384 |
+
set(LIBANGLE_D3D_WINRT_SOURCES ${LIBANGLE_D3D_SOURCES})
|
385 |
+
list(FILTER LIBANGLE_D3D_WINRT_SOURCES INCLUDE REGEX "winrt")
|
386 |
+
add_library(angle_renderer_winrt INTERFACE)
|
387 |
+
target_sources(angle_renderer_winrt INTERFACE "$<BUILD_INTERFACE:${LIBANGLE_D3D_WINRT_SOURCES}>")
|
388 |
+
add_library(angle::renderer::winrt ALIAS angle_renderer_winrt)
|
389 |
+
endif()
|
390 |
+
|
391 |
+
## Win32/d3d9 D3D Renderer
|
392 |
+
if(WINDOWS_DESKTOP)
|
393 |
+
set(LIBANGLE_D3D_DESKTOP_SOURCES ${LIBANGLE_D3D_SOURCES})
|
394 |
+
list(FILTER LIBANGLE_D3D_DESKTOP_SOURCES INCLUDE REGEX "d3d9|win32")
|
395 |
+
find_library(D3D9_LIB NAMES d3d9)
|
396 |
+
add_library(angle_renderer_win32 INTERFACE)
|
397 |
+
target_sources(angle_renderer_win32 INTERFACE "$<BUILD_INTERFACE:${LIBANGLE_D3D_DESKTOP_SOURCES}>")
|
398 |
+
target_compile_definitions(angle_renderer_win32 INTERFACE -DANGLE_ENABLE_D3D9)
|
399 |
+
target_link_libraries(angle_renderer_win32 INTERFACE d3d9)
|
400 |
+
add_library(angle::renderer::win32 ALIAS angle_renderer_win32)
|
401 |
+
endif()
|
402 |
+
|
403 |
+
## D3D11 Base renderer
|
404 |
+
list(FILTER LIBANGLE_D3D_SOURCES EXCLUDE REGEX "winrt|d3d9|win32")
|
405 |
+
find_library(DXGUID_LIB NAMES dxguid)
|
406 |
+
find_library(D3D11_LIB NAMES d3d11)
|
407 |
+
add_library(angle_renderer_d3d INTERFACE)
|
408 |
+
target_sources(angle_renderer_d3d INTERFACE "$<BUILD_INTERFACE:${LIBANGLE_D3D_SOURCES}>")
|
409 |
+
target_compile_definitions(angle_renderer_d3d INTERFACE
|
410 |
+
-DANGLE_ENABLE_D3D11
|
411 |
+
"-DANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ \"d3dcompiler_47.dll\", \"d3dcompiler_46.dll\", \"d3dcompiler_43.dll\" }"
|
412 |
+
)
|
413 |
+
if(NOT MINGW)
|
414 |
+
target_compile_definitions(angle_renderer_d3d INTERFACE
|
415 |
+
-DANGLE_ENABLE_D3D11_COMPOSITOR_NATIVE_WINDOW
|
416 |
+
)
|
417 |
+
endif()
|
418 |
+
target_link_libraries(angle_renderer_d3d INTERFACE d3d11 dxguid)
|
419 |
+
add_library(angle::renderer::d3d ALIAS angle_renderer_d3d)
|
420 |
+
endif()
|
421 |
+
|
422 |
+
## angle::gpu_info_util
|
423 |
+
file(GLOB ANGLE_GPU_INFO_UTIL_SOURCES
|
424 |
+
"src/gpu_info_util/SystemInfo.h"
|
425 |
+
"src/gpu_info_util/SystemInfo_internal.h"
|
426 |
+
"src/gpu_info_util/SystemInfo.cpp"
|
427 |
+
)
|
428 |
+
add_library(angle_gpu_info_util OBJECT ${ANGLE_GPU_INFO_UTIL_SOURCES})
|
429 |
+
if(WIN32)
|
430 |
+
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_win.cpp")
|
431 |
+
target_link_libraries(angle_gpu_info_util PRIVATE setupapi.lib dxgi.lib)
|
432 |
+
elseif(APPLE)
|
433 |
+
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_apple.mm")
|
434 |
+
if(CMAKE_SYSTEM_NAME MATCHES "Darwin") # macOS
|
435 |
+
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_macos.mm")
|
436 |
+
endif()
|
437 |
+
find_library(IOKit IOKit)
|
438 |
+
find_library(CoreFoundation CoreFoundation)
|
439 |
+
find_library(CoreGraphics CoreGraphics)
|
440 |
+
target_link_libraries(angle_gpu_info_util PRIVATE ${IOKit} ${CoreFoundation} ${CoreGraphics})
|
441 |
+
elseif(LINUX)
|
442 |
+
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_linux.cpp" "src/gpu_info_util/SystemInfo_x11.cpp")
|
443 |
+
target_compile_definitions(angle_gpu_info_util PRIVATE GPU_INFO_USE_X11)
|
444 |
+
target_link_libraries(angle_gpu_info_util PRIVATE X11 Xi Xext)
|
445 |
+
elseif(ANDROID)
|
446 |
+
target_sources(angle_gpu_info_util PRIVATE "src/gpu_info_util/SystemInfo_android.cpp")
|
447 |
+
endif()
|
448 |
+
target_link_libraries(angle_gpu_info_util PRIVATE angle::common)
|
449 |
+
add_library(angle::gpu_info_util ALIAS angle_gpu_info_util)
|
450 |
+
|
451 |
+
## Core libANGLE library
|
452 |
+
if(WIN32)
|
453 |
+
if(NOT WINDOWS_STORE)
|
454 |
+
set(LIBANGLE_SOURCES_PLATFORM
|
455 |
+
"src/third_party/systeminfo/SystemInfo.cpp"
|
456 |
+
)
|
457 |
+
endif()
|
458 |
+
elseif(APPLE)
|
459 |
+
file(GLOB LIBANGLE_SOURCES_PLATFORM
|
460 |
+
"src/libANGLE/renderer/*.mm"
|
461 |
+
)
|
462 |
+
else()
|
463 |
+
set(LIBANGLE_SOURCES_PLATFORM)
|
464 |
+
endif()
|
465 |
+
|
466 |
+
file(GLOB LIBANGLE_SOURCES
|
467 |
+
"src/common/third_party/murmurhash/MurmurHash3.cpp"
|
468 |
+
"src/common/event_tracer.cpp"
|
469 |
+
|
470 |
+
"src/libANGLE/*.cpp"
|
471 |
+
"src/libANGLE/*.inc"
|
472 |
+
"src/libANGLE/*.h"
|
473 |
+
|
474 |
+
"src/libANGLE/renderer/*.cpp"
|
475 |
+
"src/libANGLE/renderer/*.h"
|
476 |
+
|
477 |
+
"src/libANGLE/renderer/null/*.cpp"
|
478 |
+
"src/libANGLE/renderer/null/*.h"
|
479 |
+
|
480 |
+
# The frame capture headers are always visible to libANGLE.
|
481 |
+
"src/libANGLE/capture/*.h"
|
482 |
+
|
483 |
+
# angle_frame_capture_disabled
|
484 |
+
"src/libANGLE/capture/FrameCapture_mock.cpp"
|
485 |
+
"src/libANGLE/capture/frame_capture_utils_mock.cpp"
|
486 |
+
|
487 |
+
# angle_gl_enum_utils
|
488 |
+
"src/libANGLE/capture/gl_enum_utils.cpp"
|
489 |
+
"src/libANGLE/capture/gl_enum_utils_autogen.cpp"
|
490 |
+
|
491 |
+
${LIBANGLE_SOURCES_PLATFORM}
|
492 |
+
)
|
493 |
+
list(FILTER LIBANGLE_SOURCES EXCLUDE REGEX "_unittest|glslang_wrapper|dxgi_|d3d_format")
|
494 |
+
if(WIN32)
|
495 |
+
set(LIBANGLE_D3D_FORMAT_TABLES_SOURCES_PLATFORM)
|
496 |
+
if(NOT WINDOWS_STORE)
|
497 |
+
list(APPEND LIBANGLE_D3D_FORMAT_TABLES_SOURCES_PLATFORM
|
498 |
+
"src/libANGLE/renderer/d3d_format.cpp"
|
499 |
+
"src/libANGLE/renderer/d3d_format.h"
|
500 |
+
)
|
501 |
+
endif()
|
502 |
+
file(GLOB LIBANGLE_D3D_FORMAT_TABLES_SOURCES
|
503 |
+
"src/libANGLE/renderer/dxgi_format_map.h"
|
504 |
+
"src/libANGLE/renderer/dxgi_format_map_autogen.cpp"
|
505 |
+
"src/libANGLE/renderer/dxgi_support_table.h"
|
506 |
+
"src/libANGLE/renderer/dxgi_support_table_autogen.cpp"
|
507 |
+
|
508 |
+
${LIBANGLE_D3D_FORMAT_TABLES_SOURCES_PLATFORM}
|
509 |
+
)
|
510 |
+
list(APPEND LIBANGLE_SOURCES "${LIBANGLE_D3D_FORMAT_TABLES_SOURCES}")
|
511 |
+
endif()
|
512 |
+
|
513 |
+
if(LINUX OR APPLE)
|
514 |
+
set(LIBANGLE_RENDERER_PLATFORM
|
515 |
+
angle::renderer::opengl
|
516 |
+
)
|
517 |
+
elseif(WINDOWS_STORE)
|
518 |
+
set(LIBANGLE_RENDERER_PLATFORM
|
519 |
+
angle::renderer::d3d
|
520 |
+
angle::renderer::winrt
|
521 |
+
)
|
522 |
+
elseif(WINDOWS_DESKTOP)
|
523 |
+
set(LIBANGLE_RENDERER_PLATFORM
|
524 |
+
angle::renderer::d3d
|
525 |
+
angle::renderer::win32
|
526 |
+
angle::renderer::opengl
|
527 |
+
gdi32
|
528 |
+
)
|
529 |
+
else()
|
530 |
+
set(LIBANGLE_RENDERER_PLATFORM )
|
531 |
+
endif()
|
532 |
+
|
533 |
+
if(LINUX)
|
534 |
+
find_package(X11)
|
535 |
+
include_directories(${X11_INCLUDE_DIR})
|
536 |
+
list(APPEND LIBANGLE_RENDERER_PLATFORM ${X11_LIBRARIES})
|
537 |
+
set(LIBANGLE_RENDERER_COMPILEDEF
|
538 |
+
-DANGLE_USE_X11
|
539 |
+
)
|
540 |
+
else()
|
541 |
+
set(LIBANGLE_RENDERER_COMPILEDEF )
|
542 |
+
endif()
|
543 |
+
|
544 |
+
add_library(libANGLE STATIC ${LIBANGLE_SOURCES})
|
545 |
+
target_link_libraries(libANGLE PRIVATE
|
546 |
+
angle::common
|
547 |
+
angle::compression
|
548 |
+
angle::image_util
|
549 |
+
angle::gpu_info_util
|
550 |
+
angle::translator
|
551 |
+
angle::preprocessor
|
552 |
+
${LIBANGLE_RENDERER_PLATFORM}
|
553 |
+
)
|
554 |
+
target_include_directories(libANGLE PRIVATE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/third_party/khronos>")
|
555 |
+
target_compile_definitions(libANGLE
|
556 |
+
PRIVATE -DANGLE_ENABLE_NULL
|
557 |
+
PUBLIC
|
558 |
+
-DLIBANGLE_IMPLEMENTATION
|
559 |
+
${LIBANGLE_RENDERER_COMPILEDEF}
|
560 |
+
-DANGLE_EXPORT=
|
561 |
+
-DANGLE_UTIL_EXPORT=
|
562 |
+
-DEGLAPI=
|
563 |
+
-DGL_APICALL=
|
564 |
+
-DGL_API=
|
565 |
+
-DANGLE_CAPTURE_ENABLED=0
|
566 |
+
)
|
567 |
+
add_library(angle::libANGLE ALIAS libANGLE)
|
568 |
+
if(BUILD_SHARED_LIBS)
|
569 |
+
target_compile_definitions(libANGLE
|
570 |
+
PRIVATE -DLIBANGLE_UTIL_IMPLEMENTATION
|
571 |
+
)
|
572 |
+
endif()
|
573 |
+
|
574 |
+
##########
|
575 |
+
# libGLESv2
|
576 |
+
# Modified according to the file src/libGLESv2.gni
|
577 |
+
list(APPEND LIBGLESV2_SOURCES
|
578 |
+
"src/libGLESv2/egl_ext_stubs.cpp"
|
579 |
+
"src/libGLESv2/egl_ext_stubs_autogen.h"
|
580 |
+
"src/libGLESv2/egl_stubs.cpp"
|
581 |
+
"src/libGLESv2/egl_stubs_autogen.h"
|
582 |
+
"src/libGLESv2/entry_points_egl_autogen.cpp"
|
583 |
+
"src/libGLESv2/entry_points_egl_autogen.h"
|
584 |
+
"src/libGLESv2/entry_points_egl_ext_autogen.cpp"
|
585 |
+
"src/libGLESv2/entry_points_egl_ext_autogen.h"
|
586 |
+
"src/libGLESv2/entry_points_gles_1_0_autogen.cpp"
|
587 |
+
"src/libGLESv2/entry_points_gles_1_0_autogen.h"
|
588 |
+
"src/libGLESv2/entry_points_gles_2_0_autogen.cpp"
|
589 |
+
"src/libGLESv2/entry_points_gles_2_0_autogen.h"
|
590 |
+
"src/libGLESv2/entry_points_gles_3_0_autogen.cpp"
|
591 |
+
"src/libGLESv2/entry_points_gles_3_0_autogen.h"
|
592 |
+
"src/libGLESv2/entry_points_gles_3_1_autogen.cpp"
|
593 |
+
"src/libGLESv2/entry_points_gles_3_1_autogen.h"
|
594 |
+
"src/libGLESv2/entry_points_gles_3_2_autogen.cpp"
|
595 |
+
"src/libGLESv2/entry_points_gles_3_2_autogen.h"
|
596 |
+
"src/libGLESv2/entry_points_gles_ext_autogen.cpp"
|
597 |
+
"src/libGLESv2/entry_points_gles_ext_autogen.h"
|
598 |
+
"src/libGLESv2/global_state.cpp"
|
599 |
+
"src/libGLESv2/global_state.h"
|
600 |
+
"src/libGLESv2/libGLESv2_autogen.cpp"
|
601 |
+
"src/libGLESv2/proc_table_egl.h"
|
602 |
+
"src/libGLESv2/proc_table_egl_autogen.cpp"
|
603 |
+
"src/libGLESv2/resource.h"
|
604 |
+
"src/libGLESv2/libGLESv2_autogen.def"
|
605 |
+
)
|
606 |
+
add_library(libGLESv2 ${LIBGLESV2_SOURCES})
|
607 |
+
target_link_libraries(libGLESv2 PRIVATE angle::common angle::libANGLE)
|
608 |
+
target_compile_definitions(libGLESv2
|
609 |
+
PRIVATE -DLIBGLESV2_IMPLEMENTATION
|
610 |
+
PUBLIC
|
611 |
+
"-DGL_GLES_PROTOTYPES=1"
|
612 |
+
"-DGL_GLEXT_PROTOTYPES"
|
613 |
+
"-DEGL_EGL_PROTOTYPES=1"
|
614 |
+
"-DEGL_EGLEXT_PROTOTYPES"
|
615 |
+
)
|
616 |
+
if(BUILD_SHARED_LIBS)
|
617 |
+
else()
|
618 |
+
if(WIN32)
|
619 |
+
target_compile_definitions(libGLESv2 PRIVATE
|
620 |
+
"-DGL_API="
|
621 |
+
"-DGL_APICALL="
|
622 |
+
"-DEGLAPI="
|
623 |
+
)
|
624 |
+
else()
|
625 |
+
target_compile_definitions(libGLESv2 PRIVATE
|
626 |
+
"-DGL_API=__attribute__((visibility(\"default\")))"
|
627 |
+
"-DGL_APICALL=__attribute__((visibility(\"default\")))"
|
628 |
+
"-DEGLAPI=__attribute__((visibility(\"default\")))"
|
629 |
+
)
|
630 |
+
endif()
|
631 |
+
endif()
|
632 |
+
|
633 |
+
target_include_directories(libGLESv2 PUBLIC "$<INSTALL_INTERFACE:include>")
|
634 |
+
|
635 |
+
##########
|
636 |
+
# libEGL
|
637 |
+
if(WIN32)
|
638 |
+
set(libEGL_def
|
639 |
+
"src/libEGL/libEGL_autogen.def"
|
640 |
+
)
|
641 |
+
endif()
|
642 |
+
add_library(libEGL
|
643 |
+
"src/libEGL/egl_loader_autogen.h"
|
644 |
+
"src/libEGL/libEGL_autogen.cpp"
|
645 |
+
"src/libEGL/resource.h"
|
646 |
+
"src/libGLESv2/entry_points_egl_autogen.h"
|
647 |
+
"src/libGLESv2/entry_points_egl_ext_autogen.h"
|
648 |
+
${libEGL_def}
|
649 |
+
)
|
650 |
+
|
651 |
+
target_link_libraries(libEGL PRIVATE angle::common angle::libANGLE libGLESv2)
|
652 |
+
target_include_directories(libEGL PUBLIC "$<INSTALL_INTERFACE:include>" "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>")
|
653 |
+
target_compile_definitions(libEGL
|
654 |
+
PRIVATE
|
655 |
+
"-DLIBEGL_IMPLEMENTATION"
|
656 |
+
PUBLIC
|
657 |
+
"-DGL_GLES_PROTOTYPES=1"
|
658 |
+
"-DGL_GLEXT_PROTOTYPES"
|
659 |
+
"-DEGL_EGL_PROTOTYPES=1"
|
660 |
+
"-DEGL_EGLEXT_PROTOTYPES"
|
661 |
+
)
|
662 |
+
add_library(GL_VISIBILITY INTERFACE)
|
663 |
+
if(WIN32)
|
664 |
+
target_compile_definitions(GL_VISIBILITY INTERFACE
|
665 |
+
"-DGL_API="
|
666 |
+
"-DGL_APICALL=")
|
667 |
+
else()
|
668 |
+
target_compile_definitions(GL_VISIBILITY INTERFACE
|
669 |
+
"-DGL_API=__attribute__((visibility(\"default\")))"
|
670 |
+
"-DGL_APICALL=__attribute__((visibility(\"default\")))")
|
671 |
+
endif()
|
672 |
+
target_link_libraries(libEGL PRIVATE GL_VISIBILITY)
|
673 |
+
target_link_libraries(libGLESv2 PRIVATE GL_VISIBILITY)
|
674 |
+
|
675 |
+
if(WIN32)
|
676 |
+
target_compile_definitions(libEGL PRIVATE
|
677 |
+
"-DEGLAPI="
|
678 |
+
)
|
679 |
+
else()
|
680 |
+
target_compile_definitions(libEGL PRIVATE
|
681 |
+
"-DEGLAPI=__attribute__((visibility(\"default\")))"
|
682 |
+
)
|
683 |
+
endif()
|
684 |
+
|
685 |
+
if(NOT BUILD_SHARED_LIBS)
|
686 |
+
add_definitions("-DANGLE_EXPORT=" "-DANGLE_UTIL_EXPORT=" "-DEGLAPI=" "-DGL_APICALL=" "-DGL_API=")
|
687 |
+
endif()
|
688 |
+
|
689 |
+
set_target_properties(libANGLE PROPERTIES PREFIX "")
|
690 |
+
set_target_properties(libGLESv2 PROPERTIES PREFIX "" IMPORT_PREFIX "")
|
691 |
+
set_target_properties(libEGL PROPERTIES PREFIX "" IMPORT_PREFIX "")
|
692 |
+
|
693 |
+
install(TARGETS libEGL libGLESv2 libANGLE angle_common angle_compression_utils angle_image_util angle_gpu_info_util angle_translator angle_preprocessor GL_VISIBILITY EXPORT ANGLEExport
|
694 |
+
RUNTIME DESTINATION bin
|
695 |
+
LIBRARY DESTINATION lib
|
696 |
+
ARCHIVE DESTINATION lib
|
697 |
+
)
|
698 |
+
|
699 |
+
if(WINDOWS_DESKTOP)
|
700 |
+
install(TARGETS angle_renderer_d3d angle_renderer_win32 angle_renderer_opengl EXPORT ANGLEExport
|
701 |
+
RUNTIME DESTINATION bin
|
702 |
+
LIBRARY DESTINATION lib
|
703 |
+
ARCHIVE DESTINATION lib
|
704 |
+
)
|
705 |
+
elseif(WINDOWS_STORE)
|
706 |
+
install(TARGETS angle_renderer_d3d angle_renderer_winrt EXPORT ANGLEExport
|
707 |
+
RUNTIME DESTINATION bin
|
708 |
+
LIBRARY DESTINATION lib
|
709 |
+
ARCHIVE DESTINATION lib
|
710 |
+
)
|
711 |
+
else()
|
712 |
+
install(TARGETS angle_renderer_opengl EXPORT ANGLEExport
|
713 |
+
RUNTIME DESTINATION bin
|
714 |
+
LIBRARY DESTINATION lib
|
715 |
+
ARCHIVE DESTINATION lib
|
716 |
+
)
|
717 |
+
endif()
|
718 |
+
|
719 |
+
install(EXPORT ANGLEExport FILE unofficial-angle-config.cmake NAMESPACE unofficial::angle:: DESTINATION share/unofficial-angle)
|
720 |
+
|
721 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
722 |
+
install(
|
723 |
+
DIRECTORY include/
|
724 |
+
DESTINATION include
|
725 |
+
FILES_MATCHING
|
726 |
+
PATTERN "*.h"
|
727 |
+
PATTERN "*.inc"
|
728 |
+
PATTERN "CL" EXCLUDE
|
729 |
+
PATTERN "GLSLANG" EXCLUDE
|
730 |
+
PATTERN "egl.h" EXCLUDE
|
731 |
+
PATTERN "eglext.h" EXCLUDE
|
732 |
+
PATTERN "eglplatform.h" EXCLUDE
|
733 |
+
PATTERN "KHR" EXCLUDE
|
734 |
+
PATTERN "WGL" EXCLUDE
|
735 |
+
PATTERN "export.h" EXCLUDE
|
736 |
+
)
|
737 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/angle_commit.h
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
#define ANGLE_COMMIT_HASH "invalid-hash"
|
2 |
+
#define ANGLE_COMMIT_HASH_SIZE 12
|
3 |
+
#define ANGLE_COMMIT_DATE "invalid-date"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/portfile.cmake
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_TARGET_IS_LINUX)
|
2 |
+
message(WARNING "Building with a gcc version less than 6.1 is not supported.")
|
3 |
+
message(WARNING "${PORT} currently requires the following libraries from the system package manager:\n libx11-dev\n libmesa-dev\n libxi-dev\n libxext-dev\n\nThese can be installed on Ubuntu systems via apt-get install libx11-dev libmesa-dev libxi-dev libxext-dev.")
|
4 |
+
endif()
|
5 |
+
|
6 |
+
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
7 |
+
set(ANGLE_CPU_BITNESS ANGLE_IS_32_BIT_CPU)
|
8 |
+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
9 |
+
set(ANGLE_CPU_BITNESS ANGLE_IS_64_BIT_CPU)
|
10 |
+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
11 |
+
set(ANGLE_CPU_BITNESS ANGLE_IS_32_BIT_CPU)
|
12 |
+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
13 |
+
set(ANGLE_CPU_BITNESS ANGLE_IS_64_BIT_CPU)
|
14 |
+
else()
|
15 |
+
message(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
16 |
+
endif()
|
17 |
+
|
18 |
+
vcpkg_from_github(
|
19 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
20 |
+
REPO google/angle
|
21 |
+
REF d15be77864e18f407c317be6f6bc06ee2b7d070a # chromium/4472
|
22 |
+
SHA512 aad8563ee65458a7865ec7c668d1f90ac2891583c569a22dcd2c557263b72b26386f56b74a7294398be2cf5c548df513159e4be53f3f096f19819ca06227d9ac
|
23 |
+
# On update check headers against opengl-registry
|
24 |
+
PATCHES
|
25 |
+
001-fix-uwp.patch
|
26 |
+
002-fix-builder-error.patch
|
27 |
+
003-fix-mingw.patch
|
28 |
+
)
|
29 |
+
|
30 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
31 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/angle_commit.h DESTINATION ${SOURCE_PATH})
|
32 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/angle_commit.h DESTINATION ${SOURCE_PATH}/src/common)
|
33 |
+
|
34 |
+
function(checkout_in_path_with_patches PATH URL REF PATCHES)
|
35 |
+
if(EXISTS "${PATH}")
|
36 |
+
return()
|
37 |
+
endif()
|
38 |
+
|
39 |
+
vcpkg_from_git(
|
40 |
+
OUT_SOURCE_PATH DEP_SOURCE_PATH
|
41 |
+
URL "${URL}"
|
42 |
+
REF "${REF}"
|
43 |
+
PATCHES ${PATCHES}
|
44 |
+
)
|
45 |
+
file(RENAME "${DEP_SOURCE_PATH}" "${PATH}")
|
46 |
+
file(REMOVE_RECURSE "${DEP_SOURCE_PATH}")
|
47 |
+
endfunction()
|
48 |
+
|
49 |
+
checkout_in_path_with_patches(
|
50 |
+
"${SOURCE_PATH}/third_party/zlib"
|
51 |
+
"https://chromium.googlesource.com/chromium/src/third_party/zlib"
|
52 |
+
"09490503d0f201b81e03f5ca0ab8ba8ee76d4a8e"
|
53 |
+
"third-party-zlib-far-undef.patch"
|
54 |
+
)
|
55 |
+
|
56 |
+
vcpkg_configure_cmake(
|
57 |
+
SOURCE_PATH ${SOURCE_PATH}
|
58 |
+
PREFER_NINJA
|
59 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=1
|
60 |
+
OPTIONS
|
61 |
+
-D${ANGLE_CPU_BITNESS}=1
|
62 |
+
)
|
63 |
+
|
64 |
+
vcpkg_install_cmake()
|
65 |
+
|
66 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-angle TARGET_PATH share/unofficial-angle)
|
67 |
+
|
68 |
+
vcpkg_copy_pdbs()
|
69 |
+
|
70 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
71 |
+
|
72 |
+
# File conflict with opengl-registry! Make sure headers are similar on Update!
|
73 |
+
# angle defines some additional entrypoints.
|
74 |
+
# opengl-registry probably needs an upstream update to account for those
|
75 |
+
# Due to that all angle headers get moved to include/angle.
|
76 |
+
# If you want to use those instead of the onces provided by opengl-registry make sure
|
77 |
+
# VCPKG_INSTALLED_DIR/include/angle is before VCPKG_INSTALLED_DIR/include
|
78 |
+
file(GLOB_RECURSE angle_includes "${CURRENT_PACKAGES_DIR}/include")
|
79 |
+
file(COPY ${angle_includes} DESTINATION "${CURRENT_PACKAGES_DIR}/include/angle")
|
80 |
+
|
81 |
+
set(_double_files
|
82 |
+
include/GLES/egl.h
|
83 |
+
include/GLES/gl.h
|
84 |
+
include/GLES/glext.h
|
85 |
+
include/GLES/glplatform.h
|
86 |
+
include/GLES2/gl2.h
|
87 |
+
include/GLES2/gl2ext.h
|
88 |
+
include/GLES2/gl2platform.h
|
89 |
+
include/GLES3/gl3.h
|
90 |
+
include/GLES3/gl31.h
|
91 |
+
include/GLES3/gl32.h
|
92 |
+
include/GLES3/gl3platform.h)
|
93 |
+
foreach(_file ${_double_files})
|
94 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/${_file}")
|
95 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/${_file}")
|
96 |
+
endif()
|
97 |
+
endforeach()
|
98 |
+
|
99 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/third-party-zlib-far-undef.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/google/compression_utils_portable.h b/google/compression_utils_portable.h
|
2 |
+
--- a/google/compression_utils_portable.h
|
3 |
+
+++ b/google/compression_utils_portable.h
|
4 |
+
@@ -13,6 +13,9 @@
|
5 |
+
* zlib.
|
6 |
+
*/
|
7 |
+
#if defined(USE_SYSTEM_ZLIB)
|
8 |
+
+# if defined(WIN32) && defined(FAR)
|
9 |
+
+# undef FAR
|
10 |
+
+# endif
|
11 |
+
#include <zlib.h>
|
12 |
+
/* AOSP build requires relative paths. */
|
13 |
+
#else
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/angle/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "angle",
|
3 |
+
"version-string": "chromium_4472",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": [
|
6 |
+
"A conformant OpenGL ES implementation for Windows, Mac and Linux.",
|
7 |
+
"The goal of ANGLE is to allow users of multiple operating systems to seamlessly run WebGL and other OpenGL ES content by translating OpenGL ES API calls to one of the hardware-supported APIs available for that platform. ANGLE currently provides translation from OpenGL ES 2.0 and 3.0 to desktop OpenGL, OpenGL ES, Direct3D 9, and Direct3D 11. Support for translation from OpenGL ES to Vulkan is underway, and future plans include compute shader support (ES 3.1) and MacOS support."
|
8 |
+
],
|
9 |
+
"homepage": "https://github.com/google/angle",
|
10 |
+
"dependencies": [
|
11 |
+
"egl-registry",
|
12 |
+
"opengl-registry",
|
13 |
+
"zlib"
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/antlr4/export_guid.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -urN a/runtime/src/support/Guid.h b/runtime/src/support/Guid.h
|
2 |
+
--- a/runtime/src/support/Guid.h
|
3 |
+
+++ b/runtime/src/support/Guid.h
|
4 |
+
@@ -42,7 +42,7 @@ namespace antlrcpp {
|
5 |
+
// 16 byte value that can be passed around by value. It also supports
|
6 |
+
// conversion to string (via the stream operator <<) and conversion from a
|
7 |
+
// string via constructor.
|
8 |
+
-class Guid final {
|
9 |
+
+class ANTLR4CPP_PUBLIC Guid final {
|
10 |
+
public:
|
11 |
+
using size_type = typename std::array<uint8_t, 16>::size_type;
|
12 |
+
using pointer = typename std::array<uint8_t, 16>::pointer;
|
13 |
+
@@ -131,7 +131,7 @@ private:
|
14 |
+
// function would no longer be cross-platform if we parameterized the android
|
15 |
+
// version. Instead, construction of the GuidGenerator may be different on
|
16 |
+
// each platform, but the use of newGuid is uniform.
|
17 |
+
-class GuidGenerator final {
|
18 |
+
+class ANTLR4CPP_PUBLIC GuidGenerator final {
|
19 |
+
public:
|
20 |
+
#ifdef GUID_ANDROID
|
21 |
+
GuidGenerator(JNIEnv *env);
|
22 |
+
|