Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcvs2svn2004-11-17 15:31:52 +0000
committercvs2svn2004-11-17 15:31:52 +0000
commit6c0fe7b1f3c9db0b22a43c2871bb0e1e12bdc313 (patch)
tree21671f8f567151a46b56d7ad9bb8cc22eff03e8c
parent9a8216f97baa3b9347e90ec47c075f4d7567d267 (diff)
downloadeclipse.platform.swt-6c0fe7b1f3c9db0b22a43c2871bb0e1e12bdc313.tar.gz
eclipse.platform.swt-6c0fe7b1f3c9db0b22a43c2871bb0e1e12bdc313.tar.xz
eclipse.platform.swt-6c0fe7b1f3c9db0b22a43c2871bb0e1e12bdc313.zip
This commit was manufactured by cvs2svn to create branch 'R3_0_maintenance'.
Cherrypick from master 2004-11-17 15:31:51 UTC Grant Gayed <ggayed> '*** empty log message ***': bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.xml bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_solaris.mak bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/mozilla_exports
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.xml37
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak207
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_solaris.mak210
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/mozilla_exports16
4 files changed, 470 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.xml b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.xml
new file mode 100644
index 0000000000..af63d2cff7
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project default="build_gtk_lib" basedir="../../..">
+
+<target name="init">
+ <eclipse.refreshLocal resource="org.eclipse.swt" depth="infinite" />
+ <eclipse.refreshLocal resource="org.eclipse.swt.tools" depth="infinite" />
+ <eclipse.incrementalBuild project="org.eclipse.swt" kind="incr" />
+</target>
+
+<!-- Build swt.so for GTK -->
+<target name="build_gtk_lib" depends="init">
+ <exec dir="./bin/library" executable="sh">
+ <arg line="${basedir}/bin/library/build.sh"/>
+ <arg line="make_mozilla"/>
+ <arg line="install"/>
+ </exec>
+ <eclipse.refreshLocal resource="org.eclipse.swt.gtk" depth="infinite" />
+</target>
+
+<!-- Build swt.so for GTK 64 -->
+<target name="build_gtk64_lib" depends="init">
+ <exec dir="./bin/library" executable="sh">
+ <arg line="${basedir}/bin/library/build.sh"/>
+ <arg line="install"/>
+ </exec>
+ <eclipse.refreshLocal resource="org.eclipse.swt.gtk64" depth="infinite" />
+</target>
+
+<target name="clean">
+ <exec dir="./bin/library" executable="sh">
+ <arg line="${basedir}/bin/library/build.sh"/>
+ <arg line="clean"/>
+ </exec>
+</target>
+
+</project> \ No newline at end of file
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak
new file mode 100644
index 0000000000..db1def952b
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak
@@ -0,0 +1,207 @@
+#*******************************************************************************
+# Copyright (c) 2000, 2004 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Common Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/cpl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+#*******************************************************************************
+
+# Makefile for creating SWT libraries for Linux GTK
+
+include make_common.mak
+
+SWT_VERSION=$(maj_ver)$(min_ver)
+
+# Define the various shared libraries to be build.
+WS_PREFIX = gtk
+SWT_PREFIX = swt
+AWT_PREFIX = swt-awt
+SWTPI_PREFIX = swt-pi
+ATK_PREFIX = swt-atk
+KDE_PREFIX = swt-kde
+GNOME_PREFIX = swt-gnome
+MOZILLA_PREFIX = swt-mozilla
+SWT_LIB = lib$(SWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+AWT_LIB = lib$(AWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+SWTPI_LIB = lib$(SWTPI_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+ATK_LIB = lib$(ATK_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+GNOME_LIB = lib$(GNOME_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+KDE_LIB = lib$(KDE_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+MOZILLA_LIB = lib$(MOZILLA_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+
+# Do not use pkg-config to get libs because it includes unnecessary dependencies (i.e. pangoxft-1.0)
+GTKCFLAGS = `pkg-config --cflags gtk+-2.0`
+GTKLIBS = `pkg-config --libs-only-L gtk+-2.0 gthread-2.0` -lgtk-x11-2.0 -lgthread-2.0 -L$(XTEST_LIB_PATH) -lXtst
+
+AWT_LIBS = -L$(AWT_LIB_PATH) -ljawt -shared
+
+ATKCFLAGS = `pkg-config --cflags atk gtk+-2.0`
+ATKLIBS = `pkg-config --libs-only-L atk gtk+-2.0`-latk-1.0 -lgtk-x11-2.0
+
+GNOMECFLAGS = `pkg-config --cflags gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0`
+GNOMELIBS = `pkg-config --libs-only-L gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` -lgnomevfs-2 -lgnome-2 -lgnomeui-2
+
+KDE_LIBS = -L/usr/lib -L$(QT_HOME)/lib -shared -lkdecore -lqt -lkparts
+KDE_CFLAGS = -fno-rtti -c -O -I/usr/include/kde -I$(QT_HOME)/include -I$(JAVA_HOME)/include
+
+# Uncomment for Native Stats tool
+#NATIVE_STATS = -DNATIVE_STATS
+
+MOZILLACFLAGS = -O \
+ -DXPCOM_GLUE=1 \
+ -DMOZILLA_STRICT_API=1 \
+ -fno-rtti \
+ -fno-exceptions \
+ -Wall \
+ -DSWT_VERSION=$(SWT_VERSION) $(NATIVE_STATS) \
+ -Wno-non-virtual-dtor \
+ -fPIC \
+ -I./ \
+ -I$(GECKO_SDK) \
+ -include $(GECKO_SDK)/mozilla-config.h \
+ -I$(GECKO_SDK)/nspr/include \
+ -I$(GECKO_SDK)/xpcom/include \
+ -I$(GECKO_SDK)/string/include \
+ -I$(GECKO_SDK)/embed_base/include \
+ -I$(GECKO_SDK)/embedstring/include
+MOZILLALIBS = -shared -Wl,--version-script=mozilla_exports -Bsymbolic \
+ -L$(GECKO_SDK)/embedstring/bin -lembedstring \
+ -L$(GECKO_SDK)/embed_base/bin -lembed_base_s \
+ -L$(GECKO_SDK)/xpcom/bin -lxpcomglue_s -lxpcom \
+ -L$(GECKO_SDK)/nspr/bin -lnspr4 -lplds4 -lplc4
+
+SWT_OBJECTS = swt.o callback.o
+AWT_OBJECTS = swt_awt.o
+SWTPI_OBJECTS = swt.o os.o os_structs.o os_custom.o os_stats.o
+ATK_OBJECTS = swt.o atk.o atk_structs.o atk_custom.o atk_stats.o
+GNOME_OBJECTS = swt.o gnome.o gnome_structs.o gnome_stats.o
+KDE_OBJS = swt.o kde.o kde_stats.o
+MOZILLA_OBJECTS = swt.o xpcom.o xpcom_custom.o xpcom_structs.o xpcom_stats.o
+
+CFLAGS = -O -Wall \
+ -DSWT_VERSION=$(SWT_VERSION) \
+ $(NATIVE_STATS) \
+ -DLINUX -DGTK \
+ -I$(JAVA_HOME)/include \
+ -fpic \
+ ${SWT_PTR_CFLAGS}
+LIBS = -shared -fpic
+
+
+all: make_swt make_atk make_gnome make_awt make_kde
+
+#
+# SWT libs
+#
+make_swt: $(SWT_LIB) $(SWTPI_LIB)
+
+$(SWT_LIB): $(SWT_OBJECTS)
+ $(LD) $(LIBS) -o $(SWT_LIB) $(SWT_OBJECTS)
+
+callback.o: callback.c callback.h
+ $(CC) $(CFLAGS) -c callback.c
+
+$(SWTPI_LIB): $(SWTPI_OBJECTS)
+ $(LD) $(LIBS) $(GTKLIBS) -o $(SWTPI_LIB) $(SWTPI_OBJECTS)
+
+swt.o: swt.c swt.h
+ $(CC) $(CFLAGS) -c swt.c
+os.o: os.c os.h swt.h os_custom.h
+ $(CC) $(CFLAGS) $(GTKCFLAGS) -c os.c
+os_structs.o: os_structs.c os_structs.h os.h swt.h
+ $(CC) $(CFLAGS) $(GTKCFLAGS) -c os_structs.c
+os_custom.o: os_custom.c os_structs.h os.h swt.h
+ $(CC) $(CFLAGS) $(GTKCFLAGS) -c os_custom.c
+os_stats.o: os_stats.c os_structs.h os.h os_stats.h swt.h
+ $(CC) $(CFLAGS) $(GTKCFLAGS) -c os_stats.c
+
+#
+# AWT lib
+#
+make_awt:$(AWT_LIB)
+
+$(AWT_LIB): $(AWT_OBJECTS)
+ $(LD) $(AWT_LIBS) -o $(AWT_LIB) $(AWT_OBJECTS)
+
+#
+# Atk lib
+#
+make_atk: $(ATK_LIB)
+
+$(ATK_LIB): $(ATK_OBJECTS)
+ $(LD) $(LIBS) $(ATKLIBS) -o $(ATK_LIB) $(ATK_OBJECTS)
+
+atk.o: atk.c atk.h
+ $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk.c
+atk_structs.o: atk_structs.c atk_structs.h atk.h
+ $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk_structs.c
+atk_custom.o: atk_custom.c atk_structs.h atk.h
+ $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk_custom.c
+atk_stats.o: atk_stats.c atk_structs.h atk_stats.h atk.h
+ $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk_stats.c
+
+#
+# Gnome lib
+#
+make_gnome: $(GNOME_LIB)
+
+$(GNOME_LIB): $(GNOME_OBJECTS)
+ $(LD) $(LIBS) $(GNOMELIBS) -o $(GNOME_LIB) $(GNOME_OBJECTS)
+
+gnome.o: gnome.c
+ $(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome.c
+
+gnome_structs.o: gnome_structs.c
+ $(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome_structs.c
+
+gnome_stats.o: gnome_stats.c gnome_stats.h
+ $(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome_stats.c
+
+#
+# KDE lib
+#
+make_kde: $(KDE_LIB)
+
+$(KDE_LIB): $(KDE_OBJS)
+ $(LD) -o $@ $(KDE_OBJS) $(KDE_LIBS)
+
+kde.o: kde.cpp
+ $(CXX) $(CFLAGS) $(KDE_CFLAGS) -o kde.o kde.cpp
+
+kde_stats.o: kde_stats.cpp
+ $(CXX) $(CFLAGS) $(KDE_CFLAGS) -o kde_stats.o kde_stats.cpp
+
+#
+# Mozilla lib
+#
+make_mozilla:$(MOZILLA_LIB)
+
+$(MOZILLA_LIB): $(MOZILLA_OBJECTS)
+ $(CXX) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS)
+
+xpcom.o: xpcom.cpp
+ $(CXX) $(MOZILLACFLAGS) -c xpcom.cpp
+
+xpcom_structs.o: xpcom_structs.cpp
+ $(CXX) $(MOZILLACFLAGS) -c xpcom_structs.cpp
+
+xpcom_custom.o: xpcom_custom.cpp
+ $(CXX) $(MOZILLACFLAGS) -c xpcom_custom.cpp
+
+xpcom_stats.o: xpcom_stats.cpp
+ $(CXX) $(MOZILLACFLAGS) -c xpcom_stats.cpp
+
+#
+# Install
+#
+install: all
+ cp *.so $(OUTPUT_DIR)
+
+#
+# Clean
+#
+clean:
+ rm -f *.o *.so
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_solaris.mak b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_solaris.mak
new file mode 100644
index 0000000000..444dc48a31
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_solaris.mak
@@ -0,0 +1,210 @@
+#*******************************************************************************
+# Copyright (c) 2000, 2004 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Common Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/cpl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+#*******************************************************************************
+
+# Makefile for creating SWT libraries for Solaris GTK
+
+include make_common.mak
+
+SWT_VERSION=$(maj_ver)$(min_ver)
+
+# Define the various shared libraries to be build.
+WS_PREFIX = gtk
+SWT_PREFIX = swt
+AWT_PREFIX = swt-awt
+SWTPI_PREFIX = swt-pi
+ATK_PREFIX = swt-atk
+KDE_PREFIX = swt-kde
+GNOME_PREFIX = swt-gnome
+MOZILLA_PREFIX = swt-mozilla
+SWT_LIB = lib$(SWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+AWT_LIB = lib$(AWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+SWTPI_LIB = lib$(SWTPI_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+ATK_LIB = lib$(ATK_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+GNOME_LIB = lib$(GNOME_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+KDE_LIB = lib$(KDE_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+MOZILLA_LIB = lib$(MOZILLA_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).so
+
+# Do not use pkg-config to get libs because it includes unnecessary dependencies (i.e. pangoxft-1.0)
+GTKCFLAGS = `pkg-config --cflags gtk+-2.0`
+GTKLIBS = `pkg-config --libs-only-L gtk+-2.0 gthread-2.0` -lgtk-x11-2.0 -lgthread-2.0
+#GTKLIBS = `pkg-config --libs-only-L gtk+-2.0 gthread-2.0` -lgtk-x11-2.0 -lgthread-2.0 -Wl,-rpath -Wl,$(XTEST_LIB_PATH) -lXtst
+
+AWT_LIBS = -L$(AWT_LIB_PATH) -ljawt -shared
+
+ATKCFLAGS = `pkg-config --cflags atk gtk+-2.0`
+ATKLIBS = `pkg-config --libs-only-L atk gtk+-2.0`-latk-1.0 -lgtk-x11-2.0
+
+GNOMECFLAGS = `pkg-config --cflags gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0`
+GNOMELIBS = `pkg-config --libs-only-L gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0` -lgnomevfs-2 -lgnome-2 -lgnomeui-2
+
+KDE_LIBS = -L/usr/lib -L$(QT_HOME)/lib -shared -lkdecore -lqt -lkparts
+KDE_CFLAGS = -fno-rtti -c -O -I/usr/include/kde -I$(QT_HOME)/include -I$(JAVA_HOME)/include
+
+# Uncomment for Native Stats tool
+#NATIVE_STATS = -DNATIVE_STATS
+
+MOZILLACFLAGS = -O \
+ -DXPCOM_GLUE=1 \
+ -DMOZILLA_STRICT_API=1 \
+ -fno-rtti \
+ -fno-exceptions \
+ -Wall \
+ -DSWT_VERSION=$(SWT_VERSION) $(NATIVE_STATS) \
+ -Wno-non-virtual-dtor \
+ -fPIC \
+ -I./ \
+ -I$(GECKO_SDK) \
+ -include $(GECKO_SDK)/mozilla-config.h \
+ -I$(GECKO_SDK)/nspr/include \
+ -I$(GECKO_SDK)/xpcom/include \
+ -I$(GECKO_SDK)/string/include \
+ -I$(GECKO_SDK)/embed_base/include \
+ -I$(GECKO_SDK)/embedstring/include
+MOZILLALIBS = -shared -Wl,--version-script=mozilla_exports -Bsymbolic \
+ -L$(GECKO_SDK)/embedstring/bin -lembedstring \
+ -L$(GECKO_SDK)/embed_base/bin -lembed_base_s \
+ -L$(GECKO_SDK)/xpcom/bin -lxpcomglue_s -lxpcom \
+ -L$(GECKO_SDK)/nspr/bin -lnspr4 -lplds4 -lplc4
+
+SWT_OBJECTS = swt.o callback.o
+AWT_OBJECTS = swt_awt.o
+SWTPI_OBJECTS = swt.o os.o os_structs.o os_custom.o os_stats.o
+ATK_OBJECTS = swt.o atk.o atk_structs.o atk_custom.o atk_stats.o
+GNOME_OBJECTS = swt.o gnome.o gnome_structs.o gnome_stats.o
+KDE_OBJS = swt.o kde.o kde_stats.o
+MOZILLA_OBJECTS = swt.o xpcom.o xpcom_custom.o xpcom_structs.o xpcom_stats.o
+
+CFLAGS = -O -Wall \
+ -DSWT_VERSION=$(SWT_VERSION) \
+ $(NATIVE_STATS) \
+ -DSOLARIS -DGTK \
+ -I$(JAVA_HOME)/include \
+ -I$(JAVA_HOME)/include/solaris \
+ -fpic \
+ ${SWT_PTR_CFLAGS}
+LIBS = -shared -fpic
+
+
+all: make_swt make_atk make_awt
+# make_gnome make_kde
+
+#
+# SWT libs
+#
+make_swt: $(SWT_LIB) $(SWTPI_LIB)
+
+$(SWT_LIB): $(SWT_OBJECTS)
+ $(LD) $(LIBS) -o $(SWT_LIB) $(SWT_OBJECTS)
+
+callback.o: callback.c callback.h
+ $(CC) $(CFLAGS) -c callback.c
+
+$(SWTPI_LIB): $(SWTPI_OBJECTS)
+ $(LD) $(LIBS) $(GTKLIBS) -o $(SWTPI_LIB) $(SWTPI_OBJECTS)
+
+swt.o: swt.c swt.h
+ $(CC) $(CFLAGS) -c swt.c
+os.o: os.c os.h swt.h os_custom.h
+ $(CC) $(CFLAGS) $(GTKCFLAGS) -c os.c
+os_structs.o: os_structs.c os_structs.h os.h swt.h
+ $(CC) $(CFLAGS) $(GTKCFLAGS) -c os_structs.c
+os_custom.o: os_custom.c os_structs.h os.h swt.h
+ $(CC) $(CFLAGS) $(GTKCFLAGS) -c os_custom.c
+os_stats.o: os_stats.c os_structs.h os.h os_stats.h swt.h
+ $(CC) $(CFLAGS) $(GTKCFLAGS) -c os_stats.c
+
+#
+# AWT lib
+#
+make_awt:$(AWT_LIB)
+
+$(AWT_LIB): $(AWT_OBJECTS)
+ $(LD) $(AWT_LIBS) -o $(AWT_LIB) $(AWT_OBJECTS)
+
+#
+# Atk lib
+#
+make_atk: $(ATK_LIB)
+
+$(ATK_LIB): $(ATK_OBJECTS)
+ $(LD) $(LIBS) $(ATKLIBS) -o $(ATK_LIB) $(ATK_OBJECTS)
+
+atk.o: atk.c atk.h
+ $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk.c
+atk_structs.o: atk_structs.c atk_structs.h atk.h
+ $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk_structs.c
+atk_custom.o: atk_custom.c atk_structs.h atk.h
+ $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk_custom.c
+atk_stats.o: atk_stats.c atk_structs.h atk_stats.h atk.h
+ $(CC) $(CFLAGS) $(ATKCFLAGS) -c atk_stats.c
+
+#
+# Gnome lib
+#
+make_gnome: $(GNOME_LIB)
+
+$(GNOME_LIB): $(GNOME_OBJECTS)
+ $(LD) $(LIBS) $(GNOMELIBS) -o $(GNOME_LIB) $(GNOME_OBJECTS)
+
+gnome.o: gnome.c
+ $(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome.c
+
+gnome_structs.o: gnome_structs.c
+ $(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome_structs.c
+
+gnome_stats.o: gnome_stats.c gnome_stats.h
+ $(CC) $(CFLAGS) $(GNOMECFLAGS) -c gnome_stats.c
+
+#
+# KDE lib
+#
+make_kde: $(KDE_LIB)
+
+$(KDE_LIB): $(KDE_OBJS)
+ $(LD) -o $@ $(KDE_OBJS) $(KDE_LIBS)
+
+kde.o: kde.cpp
+ $(CXX) $(CFLAGS) $(KDE_CFLAGS) -o kde.o kde.cpp
+
+kde_stats.o: kde_stats.cpp
+ $(CXX) $(CFLAGS) $(KDE_CFLAGS) -o kde_stats.o kde_stats.cpp
+
+#
+# Mozilla lib
+#
+make_mozilla:$(MOZILLA_LIB)
+
+$(MOZILLA_LIB): $(MOZILLA_OBJECTS)
+ $(CXX) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS)
+
+xpcom.o: xpcom.cpp
+ $(CXX) $(MOZILLACFLAGS) -c xpcom.cpp
+
+xpcom_structs.o: xpcom_structs.cpp
+ $(CXX) $(MOZILLACFLAGS) -c xpcom_structs.cpp
+
+xpcom_custom.o: xpcom_custom.cpp
+ $(CXX) $(MOZILLACFLAGS) -c xpcom_custom.cpp
+
+xpcom_stats.o: xpcom_stats.cpp
+ $(CXX) $(MOZILLACFLAGS) -c xpcom_stats.cpp
+
+#
+# Install
+#
+install: all
+ cp *.so $(OUTPUT_DIR)
+
+#
+# Clean
+#
+clean:
+ rm -f *.o *.so
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/mozilla_exports b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/mozilla_exports
new file mode 100644
index 0000000000..205295188a
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/mozilla_exports
@@ -0,0 +1,16 @@
+#*******************************************************************************
+# Copyright (c) 2000, 2004 IBM Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Common Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/cpl-v10.html
+#
+# Contributors:
+# IBM Corporation - initial API and implementation
+#*******************************************************************************
+EXPORTED {
+ global:
+ JNI_OnLoad;
+ Java_org_eclipse_swt*;
+ local: *;
+};

Back to the top