[gnome-sdk-images/wip/tvb/aarch64: 8/9] webkitgtk4: Use straight cmake and support arm & i386
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-sdk-images/wip/tvb/aarch64: 8/9] webkitgtk4: Use straight cmake and support arm & i386
- Date: Tue, 10 May 2016 14:52:23 +0000 (UTC)
commit 9da1e88c0ca7ebf0f13eb268fe6ac513a4666566
Author: Tristan Van Berkom <tristan vanberkom codethink co uk>
Date: Thu May 5 12:30:24 2016 -0400
webkitgtk4: Use straight cmake and support arm & i386
When building for i386 on an x86_64 system, or building for arm
on an aarch64 system, one must specify -DCMAKE_SYSTEM_PROCESSOR
to ensure that webkitgtk build scripts select the correct assembly
code paths.
Note: when building the "i386" arch, we specify i586 as the system
processor because the compiler in the base runtime is actually
i586-unknown-linux-gnu.
org.gnome.Sdk.json.in | 39 +++++++++++++++++++++++++++++------
webkitgtk-configure | 53 -------------------------------------------------
2 files changed, 32 insertions(+), 60 deletions(-)
---
diff --git a/org.gnome.Sdk.json.in b/org.gnome.Sdk.json.in
index fae934e..f3ac2ee 100644
--- a/org.gnome.Sdk.json.in
+++ b/org.gnome.Sdk.json.in
@@ -616,11 +616,41 @@
},
{
"name": "webkitgtk4",
+ "cmake": true,
"build-options" : {
"cflags": "-O2 -g1",
- "cxxflags": "-O2 -g1"
+ "cxxflags": "-O2 -g1",
+ "arch" : {
+ "i386" : {
+ "config-opts" : [
+ "-DCMAKE_SYSTEM_PROCESSOR=i586"
+ ]
+ },
+ "arm" : {
+ "config-opts" : [
+ "-DCMAKE_SYSTEM_PROCESSOR=arm"
+ ]
+ }
+ }
},
- "sources": [
+ "config-opts": [
+ "-DPORT=GTK",
+ "-DCMAKE_BUILD_TYPE=Release",
+ "-DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG",
+ "-DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG",
+ "-DENABLE_ACCELERATED_2D_CANVAS=OFF",
+ "-DCMAKE_INSTALL_PREFIX:PATH=/usr",
+ "-DLIB_INSTALL_DIR:PATH=/usr/lib",
+ "-DSYSCONF_INSTALL_DIR:PATH=/usr/etc",
+ "-DSHARE_INSTALL_PREFIX:PATH=/usr/share",
+ "-DINCLUDE_INSTALL_DIR:PATH=/usr/include",
+ "-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON",
+ "-DBUILD_SHARED_LIBS:BOOL=ON",
+ "-DENABLE_GTKDOC=OFF",
+ "-DENABLE_VIDEO=ON",
+ "-DENABLE_WEB_AUDIO=ON"
+ ],
+ "sources": [
{
"type": "archive",
"url": "http://www.webkitgtk.org/releases/webkitgtk-2.11.5.tar.xz",
@@ -629,11 +659,6 @@
{
"type": "patch",
"path": "webkitgtk-cmake-buildapi.patch"
- },
- {
- "type": "file",
- "path": "webkitgtk-configure",
- "dest-filename": "configure"
}
]
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]