[gnome-build-meta/dylanmccall/webkitgtk-arm-gles2-3-36] sdk/WebKitGTK.bst: Enable GLES2 on arm architecture



commit 942c4c0e2dfdb0ec5c99ab46fec1f355021b2d57
Author: Dylan McCall <dylan endlessm com>
Date:   Thu Mar 26 15:06:54 2020 -0700

    sdk/WebKitGTK.bst: Enable GLES2 on arm architecture
    
    I am making the assumption that 32-bit arm devices will generally
    require OpenGL ES, rather than OpenGL, for hardware acceleration. The
    build environment for WebKitGTK always includes libgl, so we need to
    build with the `ENABLE_GLES2` option to enable OpenGL ES.

 elements/sdk/WebKitGTK.bst | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/elements/sdk/WebKitGTK.bst b/elements/sdk/WebKitGTK.bst
index 472f5c72..b28dec92 100644
--- a/elements/sdk/WebKitGTK.bst
+++ b/elements/sdk/WebKitGTK.bst
@@ -43,13 +43,18 @@ depends:
 - freedesktop-sdk.bst:bootstrap-import.bst
 variables:
   webkitgtk_toolchain: ''
+  webkitgtk_arch_options: ''
   (?):
   - arch == "i686" or arch == "arm":
       webkitgtk_toolchain: -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=toolchain.%{arch}
+  - arch == "arm":
+      webkitgtk_arch_options: |
+        -DENABLE_GLES2=ON
   cmake-local: >-
     -DPORT=GTK
     -DENABLE_BUBBLEWRAP_SANDBOX=OFF
     %{webkitgtk_toolchain}
+    %{webkitgtk_arch_options}
 (?):
 - arch == "i686":
     environment:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]