diff options
author | Ross Burton <ross.burton@intel.com> | 2013-01-20 22:47:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-21 10:22:09 +0000 |
commit | 3d3555839dac4fcd44313fd9fb4e47a421b09278 (patch) | |
tree | 1ba92bc0d99a5d72c414cbbc5eb18186c8114568 | |
parent | 4287f703413a14d190152e46593bb69b141e80b4 (diff) | |
download | poky-3d3555839dac4fcd44313fd9fb4e47a421b09278.tar.gz |
gtk+3: refresh cross.patch
cross.patch was accepted upstream, so update this patch with the commit that was
merged.
(From OE-Core rev: 8e5ffa370c4259f925a0454fe7fd81c80ef2174b)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-gnome/gtk+/gtk+3/cross.patch | 63 |
1 files changed, 36 insertions, 27 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+3/cross.patch b/meta/recipes-gnome/gtk+/gtk+3/cross.patch index 7b2a1583b6..f2ea99b16c 100644 --- a/meta/recipes-gnome/gtk+/gtk+3/cross.patch +++ b/meta/recipes-gnome/gtk+/gtk+3/cross.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | Upstream-Status: Submitted [#691301] | 1 | Upstream-Status: Backport [SHA 53083ea7b423482b203372f02d097edbef894a7d] |
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | 2 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
3 | 3 | ||
4 | From 2ce72e5d53e84a2eba8c3f2cb6af25ffffc46ea9 Mon Sep 17 00:00:00 2001 | 4 | From b670abe861e8dde067f544b9131edc28575d63ab Mon Sep 17 00:00:00 2001 |
5 | From: Ross Burton <ross.burton@intel.com> | 5 | From: Ross Burton <ross.burton@intel.com> |
6 | Date: Mon, 7 Jan 2013 12:49:27 +0000 | 6 | Date: Mon, 7 Jan 2013 12:49:27 +0000 |
7 | Subject: [PATCH] build: support cross-compilation by natively building | 7 | Subject: [PATCH] build: support cross-compilation by natively building |
@@ -17,16 +17,16 @@ assumes that you'd set PKG_CONFIG_FOR_BUILD to a host pkg-config binary. | |||
17 | 17 | ||
18 | https://bugzilla.gnome.org/show_bug.cgi?id=691301 | 18 | https://bugzilla.gnome.org/show_bug.cgi?id=691301 |
19 | --- | 19 | --- |
20 | configure.ac | 25 +++++++-- | 20 | configure.ac | 39 ++++++++++---- |
21 | gtk/Makefile.am | 12 ++++- | 21 | gtk/Makefile.am | 12 ++++- |
22 | gtk/native/Makefile.am | 12 +++++ | 22 | gtk/native/Makefile.am | 12 +++++ |
23 | m4/ax_prog_cc_for_build.m4 | 125 ++++++++++++++++++++++++++++++++++++++++++++ | 23 | m4/ax_prog_cc_for_build.m4 | 125 ++++++++++++++++++++++++++++++++++++++++++++ |
24 | 4 files changed, 168 insertions(+), 6 deletions(-) | 24 | 4 files changed, 177 insertions(+), 11 deletions(-) |
25 | create mode 100644 gtk/native/Makefile.am | 25 | create mode 100644 gtk/native/Makefile.am |
26 | create mode 100644 m4/ax_prog_cc_for_build.m4 | 26 | create mode 100644 m4/ax_prog_cc_for_build.m4 |
27 | 27 | ||
28 | diff --git a/configure.ac b/configure.ac | 28 | diff --git a/configure.ac b/configure.ac |
29 | index 0069a9f..35b5f27 100644 | 29 | index 0069a9f..f502e06 100644 |
30 | --- a/configure.ac | 30 | --- a/configure.ac |
31 | +++ b/configure.ac | 31 | +++ b/configure.ac |
32 | @@ -29,6 +29,9 @@ AC_CONFIG_SRCDIR([gdk/gdktypes.h]) | 32 | @@ -29,6 +29,9 @@ AC_CONFIG_SRCDIR([gdk/gdktypes.h]) |
@@ -56,38 +56,47 @@ index 0069a9f..35b5f27 100644 | |||
56 | MATH_LIB=-lm | 56 | MATH_LIB=-lm |
57 | AC_MSG_CHECKING([for native Win32]) | 57 | AC_MSG_CHECKING([for native Win32]) |
58 | LIB_EXE_MACHINE_FLAG=X86 | 58 | LIB_EXE_MACHINE_FLAG=X86 |
59 | @@ -868,14 +870,28 @@ dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling | 59 | @@ -868,14 +870,32 @@ dnl Look for a host system's gdk-pixbuf-csource if we are cross-compiling |
60 | 60 | ||
61 | AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) | 61 | AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes) |
62 | 62 | ||
63 | -if test "x$cross_compiling" = xyes || test "x$enable_gtk2_dependency" = xyes; then | 63 | -if test "x$cross_compiling" = xyes || test "x$enable_gtk2_dependency" = xyes; then |
64 | +if test "x$enable_gtk2_dependency" = xyes; then | 64 | - AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no) |
65 | AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no) | 65 | - if test x$GTK_UPDATE_ICON_CACHE = xno; then |
66 | if test x$GTK_UPDATE_ICON_CACHE = xno; then | 66 | - REBUILD_PNGS=# |
67 | REBUILD_PNGS=# | 67 | - fi |
68 | fi | 68 | -fi |
69 | +elif test "x$cross_compiling" = xyes; then | 69 | +AS_IF([test "x$enable_gtk2_dependency" = xyes], |
70 | + # If no GTK+2 dependency and cross compiling, we need to find a host gdk-pixbuf. | 70 | + [AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no) |
71 | + # pkg.m4 blocks all variable starting with PKG, so allow this one | 71 | + if test x$GTK_UPDATE_ICON_CACHE = xno; then |
72 | + m4_pattern_allow([PKG_CONFIG_FOR_BUILD]) | 72 | + REBUILD_PNGS=# |
73 | + AC_MSG_CHECKING([for native gdk-pixbuf]) | 73 | + fi], |
74 | + if AC_RUN_LOG([$PKG_CONFIG_FOR_BUILD --exists --print-errors gdk-pixbuf-2.0]); then | 74 | + |
75 | + AC_MSG_RESULT([yes]) | 75 | + [test "x$cross_compiling" = xyes], |
76 | + else | 76 | + [# If no GTK+2 dependency and cross compiling, we need to find a host gdk-pixbuf. |
77 | + AC_MSG_ERROR([native gdk-pixbuf not found]) | 77 | + # pkg.m4 blocks all variable starting with PKG, so allow this one |
78 | + fi | 78 | + m4_pattern_allow([PKG_CONFIG_FOR_BUILD]) |
79 | + NATIVE_GDKPIXBUF_CFLAGS=`$PKG_CONFIG_FOR_BUILD --cflags gdk-pixbuf-2.0` | 79 | + |
80 | + NATIVE_GDKPIXBUF_LIBS=`$PKG_CONFIG_FOR_BUILD --libs gdk-pixbuf-2.0` | 80 | + AS_IF([test x$PKG_CONFIG_FOR_BUILD = x], |
81 | + AC_SUBST(NATIVE_GDKPIXBUF_CFLAGS) | 81 | + [AC_MSG_ERROR([You must define PKG_CONFIG_FOR_BUILD when cross compiling])]) |
82 | + AC_SUBST(NATIVE_GDKPIXBUF_LIBS) | 82 | + |
83 | fi | 83 | + AC_MSG_CHECKING([for native gdk-pixbuf]) |
84 | + AS_IF([AC_RUN_LOG([$PKG_CONFIG_FOR_BUILD --exists --print-errors gdk-pixbuf-2.0])], | ||
85 | + [AC_MSG_RESULT([yes])], | ||
86 | + [AC_MSG_ERROR([native gdk-pixbuf not found])]) | ||
87 | + | ||
88 | + NATIVE_GDKPIXBUF_CFLAGS=`$PKG_CONFIG_FOR_BUILD --cflags gdk-pixbuf-2.0` | ||
89 | + NATIVE_GDKPIXBUF_LIBS=`$PKG_CONFIG_FOR_BUILD --libs gdk-pixbuf-2.0` | ||
90 | + AC_SUBST(NATIVE_GDKPIXBUF_CFLAGS) | ||
91 | + AC_SUBST(NATIVE_GDKPIXBUF_LIBS)] | ||
92 | +) | ||
84 | 93 | ||
85 | -AM_CONDITIONAL(USE_EXTERNAL_ICON_CACHE, [test "x$cross_compiling" = xyes || test "x$enable_gtk2_dependency" = xyes]) | 94 | -AM_CONDITIONAL(USE_EXTERNAL_ICON_CACHE, [test "x$cross_compiling" = xyes || test "x$enable_gtk2_dependency" = xyes]) |
86 | +AM_CONDITIONAL(USE_EXTERNAL_ICON_CACHE, [test "x$enable_gtk2_dependency" = xyes]) | 95 | +AM_CONDITIONAL(USE_EXTERNAL_ICON_CACHE, [test "x$enable_gtk2_dependency" = xyes]) |
87 | 96 | ||
88 | AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no) | 97 | AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no) |
89 | 98 | ||
90 | @@ -1742,6 +1758,7 @@ gtk/makefile.msc | 99 | @@ -1742,6 +1762,7 @@ gtk/makefile.msc |
91 | gtk/gtkversion.h | 100 | gtk/gtkversion.h |
92 | gtk/gtk-win32.rc | 101 | gtk/gtk-win32.rc |
93 | gtk/a11y/Makefile | 102 | gtk/a11y/Makefile |