diff options
author | Francis Kung <fkung@redhat.com> | 2006-07-10 19:45:23 +0000 |
---|---|---|
committer | Francis Kung <fkung@redhat.com> | 2006-07-10 19:45:23 +0000 |
commit | f59ba6c6cd9f3e11f5e0d4dcb2eda85967118574 (patch) | |
tree | 86e50db5b77751aba8461bcc4f4bfa94d228578b /examples/README | |
parent | 3bcfba96207e6568b6003d68131775381d28ea30 (diff) | |
download | classpath-f59ba6c6cd9f3e11f5e0d4dcb2eda85967118574.tar.gz |
2006-07-10 Francis Kung <fkung@redhat.com>
* configure.ac (AC_CONFIG_FILES): Add examples/Makefile.java2d.
* examples/.cvsignore: Add Makefile.java2d.
* examples/Makefile.am: Add EXAMPLE_CH_FILES for C headers.
(ALL_EXAMPLE_FILES): Add C headers.
(install-data-local): Add Makefile.java2d.
(uninstall-local): Likewise.
(EXTRA_DIST): Add Makefile.java2d.in.
* examples/Makefile.java2d.in: New file.
* examples/README: Add java2d instructions.
* examples/gnu/classpath/examples/java2d/bench.c: New file.
* examples/gnu/classpath/examples/java2d/bench.h: New file.
Diffstat (limited to 'examples/README')
-rw-r--r-- | examples/README | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/README b/examples/README index 727677363..f7bf59962 100644 --- a/examples/README +++ b/examples/README @@ -46,6 +46,23 @@ You can then run the example as follows: export LD_LIBRARY_PATH=.:/usr/local/classpath/lib/classpath jamvm gnu.classpath.examples.jawt.DemoJAWT +The java2d benchmarking demos include a GTK widget to measure the native +speed of some basic java2d options, without the JNI overhead. + +You can invoke it with: + + make -f Makefile.java2d + +Or you can compile by hand as follows: + + gcc -g -O0 -Wall -I./gnu/classpath/examples/java2d \ + -o cairobench gnu/classpath/examples/java2d/bench.c \ + `pkg-config --libs --cflags gtk+-2.0` + +You can then run the example as follows: + + ./cairobench + All example code is distributed under the GNU General Public License (GPL). The example icons used in some of the examples come from gnome-icon-theme |