Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdan Gheorghe2013-08-27 15:28:17 -0400
committerBogdan Gheorghe2013-08-27 15:28:17 -0400
commit21f2a03fbe7694f7be1fca5b3a734e7312dc1b23 (patch)
tree4ae7c5ae01630db380375e00feee6fdea635411f
parent5d9e335eafaf3e2d406e37a692e61f7c67a737e1 (diff)
downloadeclipse.platform.swt-21f2a03fbe7694f7be1fca5b3a734e7312dc1b23.tar.gz
eclipse.platform.swt-21f2a03fbe7694f7be1fca5b3a734e7312dc1b23.tar.xz
eclipse.platform.swt-21f2a03fbe7694f7be1fca5b3a734e7312dc1b23.zip
"Bug 415783 - Do not build libswt-gnome.so for GTK_VERSION=3.0""
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh8
-rw-r--r--bundles/org.eclipse.swt/buildSWT.xml3
2 files changed, 8 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh
index 689616e0c9..440c28aee3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh
@@ -455,12 +455,14 @@ if [ ${MODEL} = 'x86' -a ${SWT_OS} = 'linux' ]; then
export SWT_LFLAGS SWT_PTR_CFLAGS
fi
-if [ x`pkg-config --exists gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 && echo YES` = "xYES" -a ${MODEL} != "sparc64" -a ${MODEL} != 'ia64' ]; then
+if [ x`pkg-config --exists gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 && echo YES` = "xYES" -a ${MODEL} != "sparc64" -a ${MODEL} != 'ia64' -a ${GTK_VERSION} != '3.0' ]; then
echo "libgnomeui-2.0 found, compiling SWT program support using GNOME"
MAKE_GNOME=make_gnome
else
- echo "libgnome-2.0 and libgnomeui-2.0 not found:"
- echo " *** SWT Program support for GNOME will not be compiled."
+ if [ ${GTK_VERSION} != '3.0' ]; then
+ echo "libgnome-2.0 and libgnomeui-2.0 not found:"
+ echo " *** SWT Program support for GNOME will not be compiled."
+ fi
fi
if [ x`pkg-config --exists cairo && echo YES` = "xYES" ]; then
diff --git a/bundles/org.eclipse.swt/buildSWT.xml b/bundles/org.eclipse.swt/buildSWT.xml
index 8288c35a37..32551ae9d8 100644
--- a/bundles/org.eclipse.swt/buildSWT.xml
+++ b/bundles/org.eclipse.swt/buildSWT.xml
@@ -938,6 +938,7 @@
<param name="build_targets" value="install"/>
<param name="libs" value="*pi3*"/>
<param name="exports" value="export GTK_VERSION=3.0;"/>
+ <param name="gtk_version" value="3.0"/>
</antcall>
</target>
@@ -1001,8 +1002,10 @@
</target>
<target name="build_local">
+ <property name="gtk_version" value="2.0" />
<exec dir="${build_dir}" executable="sh" failonerror="true">
<arg line="build.sh"/>
+ <env key="GTK_VERSION" value="${gtk_version}"/>
<env key="MODEL" value="${swt.arch}"/>
<env key="OUTPUT_DIR" value="${output_dir}"/>
<arg line="${targets}"/>

Back to the top