This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH/RFC: --enable-java-awt=gtk (was: Building the GTK peers...)


>>>>> "Laurent" == Laurent Bardet <l.bardet@magic.fr> writes:

Laurent> - cross/native configuration: I want to enable this option
Laurent> for cross compilation (i.e. with gtk win32, I should be able
Laurent> to run AWT-based application build for mingw).

You'll have to experiment here to see if it is even possible.  I doubt
that the existing AM_PATH_GTK macro will work for cross-compilation.
You may need to change it or write new configury code.  It is sort of
a pain here since in the cross-compilation case we can't run any link
tests...

Laurent> On link command I link against -lgcjgtk -lgtk -lgdk -lglib
Laurent> -lgthread, and I set awt.toolkit property to the correct peer
Laurent> implementation: -Dawt.toolkit=gnu.awt.gtk.GtkToolkit, to
Laurent> override the Toolkit default which comes from classpath.

Can't we link the library itself against the Gtk libs and thus avoid
the need for the user to link them in?  At least for systems that
support this feature, like Linux?

Laurent> P.S. should I forward also to java@gcc.gnu.org and
Laurent> classpath@gnu.org ?

Nope, this list is fine.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]