diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-03 11:57:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-03 16:50:23 +0200 |
commit | f6e663e4bb725102ebcff03cd0fea5ded9d8bc10 (patch) | |
tree | 8832b5768b8f3be9634e6b89ffab30141a8acd8d /external | |
parent | 32bf3097805d3d688fad25f661f3f16b62d2a345 (diff) |
Related: tdf#124942 upgrade epoxy to 1.5.3
https://github.com/anholt/libepoxy/issues/180 sounds very similar and
1.5.3 apparently fixes that
Change-Id: I009f5bc82f9e8326a7028ed29d86733cce649d15
Reviewed-on: https://gerrit.libreoffice.org/71733
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/epoxy/Library_epoxy.mk | 2 | ||||
-rw-r--r-- | external/epoxy/UnpackedTarball_epoxy.mk | 12 | ||||
-rw-r--r-- | external/epoxy/epoxy.noegl.by.default.patch | 3 | ||||
-rw-r--r-- | external/epoxy/epoxy.windows.api.patch | 78 |
4 files changed, 14 insertions, 81 deletions
diff --git a/external/epoxy/Library_epoxy.mk b/external/epoxy/Library_epoxy.mk index be435725f102..12424b1af13f 100644 --- a/external/epoxy/Library_epoxy.mk +++ b/external/epoxy/Library_epoxy.mk @@ -19,7 +19,7 @@ $(eval $(call gb_Library_set_include,epoxy,\ $$(INCLUDE) \ )) -# epoxy is riddled with warnings... let's spare use +# epoxy is riddled with warnings... let's spare us # the pointless spamming $(eval $(call gb_Library_add_cxxflags,epoxy,\ -w \ diff --git a/external/epoxy/UnpackedTarball_epoxy.mk b/external/epoxy/UnpackedTarball_epoxy.mk index 55d4012ef642..8dce1ba9d745 100644 --- a/external/epoxy/UnpackedTarball_epoxy.mk +++ b/external/epoxy/UnpackedTarball_epoxy.mk @@ -11,6 +11,18 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,epoxy)) $(eval $(call gb_UnpackedTarball_set_tarball,epoxy,$(EPOXY_TARBALL))) +$(call gb_UnpackedTarball_get_target,epoxy) :| $(call gb_ExternalExecutable_get_dependencies,python) + +epoxy_PYTHON := $(call gb_ExternalExecutable_get_command,python) + +# previous versions of epoxy bundled the output, but now it has to be generated +$(eval $(call gb_UnpackedTarball_set_pre_action,epoxy,\ + $(epoxy_PYTHON) ./src/gen_dispatch.py --srcdir src --includedir include/epoxy registry/gl.xml && \ + $(epoxy_PYTHON) ./src/gen_dispatch.py --srcdir src --includedir include/epoxy registry/glx.xml && \ + $(epoxy_PYTHON) ./src/gen_dispatch.py --srcdir src --includedir include/epoxy registry/egl.xml && \ + $(epoxy_PYTHON) ./src/gen_dispatch.py --srcdir src --includedir include/epoxy registry/wgl.xml \ +)) + $(eval $(call gb_UnpackedTarball_set_patchlevel,epoxy,0)) $(eval $(call gb_UnpackedTarball_add_patches,epoxy, \ diff --git a/external/epoxy/epoxy.noegl.by.default.patch b/external/epoxy/epoxy.noegl.by.default.patch index b562af433198..bf89453363fa 100644 --- a/external/epoxy/epoxy.noegl.by.default.patch +++ b/external/epoxy/epoxy.noegl.by.default.patch @@ -10,9 +10,8 @@ +#define PLATFORM_HAS_GLX 0 #define PLATFORM_HAS_WGL 1 #elif defined(__APPLE__) --#define PLATFORM_HAS_EGL ENABLE_EGL + #define PLATFORM_HAS_EGL 0 -#define PLATFORM_HAS_GLX ENABLE_GLX -+#define PLATFORM_HAS_EGL 0 +#define PLATFORM_HAS_GLX 0 #define PLATFORM_HAS_WGL 0 #elif defined(ANDROID) diff --git a/external/epoxy/epoxy.windows.api.patch b/external/epoxy/epoxy.windows.api.patch index 12d2afb6a6ad..985f2d880839 100644 --- a/external/epoxy/epoxy.windows.api.patch +++ b/external/epoxy/epoxy.windows.api.patch @@ -10,81 +10,3 @@ #endif #ifndef GLAPIENTRY ---- src/egl_generated_dispatch.c -+++ src/egl_generated_dispatch.c -@@ -128,7 +128,11 @@ - }; - - #if USING_DISPATCH_TABLE -+#if defined (_MSC_VER) -+static __inline struct dispatch_table * -+#else - static inline struct dispatch_table * -+#endif - get_dispatch_table(void); - - #endif -@@ -1642,7 +1646,11 @@ - uint32_t egl_tls_index; - uint32_t egl_tls_size = sizeof(struct dispatch_table); - -+#if defined (_MSC_VER) -+static __inline struct dispatch_table * -+#else - static inline struct dispatch_table * -+#endif - get_dispatch_table(void) - { - return TlsGetValue(egl_tls_index); ---- src/gl_generated_dispatch.c -+++ src/gl_generated_dispatch.c -@@ -3122,7 +3122,11 @@ - }; - - #if USING_DISPATCH_TABLE -+#if defined (_MSC_VER) -+static __inline struct dispatch_table * -+#else - static inline struct dispatch_table * -+#endif - get_dispatch_table(void); - - #endif -@@ -51507,7 +51511,11 @@ - uint32_t gl_tls_index; - uint32_t gl_tls_size = sizeof(struct dispatch_table); - -+#if defined (_MSC_VER) -+static __inline struct dispatch_table * -+#else - static inline struct dispatch_table * -+#endif - get_dispatch_table(void) - { - return TlsGetValue(gl_tls_index); ---- src/wgl_generated_dispatch.c -+++ src/wgl_generated_dispatch.c -@@ -157,7 +157,11 @@ - }; - - #if USING_DISPATCH_TABLE -+#if defined (_MSC_VER) -+static __inline struct dispatch_table * -+#else - static inline struct dispatch_table * -+#endif - get_dispatch_table(void); - - #endif -@@ -1701,7 +1705,11 @@ - uint32_t wgl_tls_index; - uint32_t wgl_tls_size = sizeof(struct dispatch_table); - -+#if defined (_MSC_VER) -+static __inline struct dispatch_table * -+#else - static inline struct dispatch_table * -+#endif - get_dispatch_table(void) - { - return TlsGetValue(wgl_tls_index); |