What is the xawt sizer wrapper, really?
David Holmes
david.holmes at oracle.com
Thu Jun 14 12:14:56 UTC 2012
On 14/06/2012 10:10 PM, Magnus Ihse Bursie wrote:
> On 2012-06-14 13:52, David Holmes wrote:
>> As I understand this, sizers is to X11 Java code what the
>> UnixConstants program is to the filesystem code. It has to determine
>> various sizes of native data structures used by X11 so that those
>> values can be handled correctly in the Java code (storing pointer and
>> offsets in Java code to pass ot native). Unlike the UnixConstants
>> these values only seem to differ between 32-bit and 64-bit, not across
>> different OS
>
> To me it sounds like two checked in files, sizes-32.data and
> sizes-64.data, or whatever the names should be. And perhaps a script to
> re-generate those if the need should ever arise. But that need not be
> run as part of the build process.
>
> Anyone against such a solution?
That's something for Artem and other AWT folk to consider.
As I said we manage to work with this for cross-compiling by simply
building and running on the build host to get the data for the target
(which as far as I know is not OS specific - but I don't have absolute
confirmation on that). The only glitch we had was that when we started
cross-compiling on 64-bit linux it generated 64-bit data for a 32-bit
target (oops!) - but that was easily fixed.
David
> /Magnus
More information about the build-dev
mailing list