[Libreoffice-commits] core.git: configure.ac external/epoxy

Caolán McNamara caolanm at redhat.com
Tue Dec 13 16:09:44 UTC 2016


 configure.ac                                |    1 -
 external/epoxy/Library_epoxy.mk             |   11 +++++++++++
 external/epoxy/UnpackedTarball_epoxy.mk     |    1 +
 external/epoxy/epoxy.noegl.by.default.patch |   11 +++++++++++
 4 files changed, 23 insertions(+), 1 deletion(-)

New commits:
commit 54491dce60ddce0cca509d030b0c38093a8be535
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Dec 13 16:08:14 2016 +0000

    turn off epoxy egl support by default and enable only when gtk3 is enabled
    
    to build on the festering baseline on which gtk3 is disabled
    
    Change-Id: I6c074382590fc60ae8572fbde225679e4309494e

diff --git a/configure.ac b/configure.ac
index f19048a..18815ad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10431,7 +10431,6 @@ elif test $_os = WINNT; then
 else
     if test "$USING_X11" = TRUE; then
         AC_CHECK_LIB(GL, glBegin, [:], AC_MSG_ERROR([libGL required.]))
-        AC_CHECK_LIB(EGL, eglMakeCurrent, [:], AC_MSG_ERROR([libEGL required.]))
         ENABLE_OPENGL_TRANSITIONS=TRUE
         AC_DEFINE(HAVE_FEATURE_OPENGL,1)
         ENABLE_OPENGL_CANVAS=TRUE
diff --git a/external/epoxy/Library_epoxy.mk b/external/epoxy/Library_epoxy.mk
index 28f9dab..10be001 100644
--- a/external/epoxy/Library_epoxy.mk
+++ b/external/epoxy/Library_epoxy.mk
@@ -55,9 +55,20 @@ else
 $(eval $(call gb_Library_add_generated_cobjects,epoxy,\
 	UnpackedTarball/epoxy/src/dispatch_glx \
 	UnpackedTarball/epoxy/src/glx_generated_dispatch \
+))
+ifeq ($(ENABLE_GTK3),TRUE)
+$(eval $(call gb_Library_add_cflags,epoxy,\
+	-DPLATFORM_HAS_EGL=1 \
+))
+$(eval $(call gb_Library_add_generated_cobjects,epoxy,\
 	UnpackedTarball/epoxy/src/dispatch_egl \
 	UnpackedTarball/epoxy/src/egl_generated_dispatch \
 ))
+else
+$(eval $(call gb_Library_add_cflags,epoxy,\
+	-DPLATFORM_HAS_EGL=0 \
+))
+endif
 endif
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/epoxy/UnpackedTarball_epoxy.mk b/external/epoxy/UnpackedTarball_epoxy.mk
index 76c0fdf..0d51548 100644
--- a/external/epoxy/UnpackedTarball_epoxy.mk
+++ b/external/epoxy/UnpackedTarball_epoxy.mk
@@ -15,6 +15,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,epoxy,0))
 
 $(eval $(call gb_UnpackedTarball_add_patches,epoxy, \
     external/epoxy/epoxy.windows.api.patch \
+    external/epoxy/epoxy.noegl.by.default.patch \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/epoxy/epoxy.noegl.by.default.patch b/external/epoxy/epoxy.noegl.by.default.patch
new file mode 100644
index 0000000..d80a3b9
--- /dev/null
+++ b/external/epoxy/epoxy.noegl.by.default.patch
@@ -0,0 +1,11 @@
+--- src/dispatch_common.h
++++ src/dispatch_common.h
+@@ -39,7 +39,7 @@
+ #define PLATFORM_HAS_WGL 0
+ #define EPOXY_IMPORTEXPORT
+ #else
+-#define PLATFORM_HAS_EGL 1
++
+ #define PLATFORM_HAS_GLX 1
+ #define PLATFORM_HAS_WGL 0
+ #define EPOXY_IMPORTEXPORT


More information about the Libreoffice-commits mailing list