Changeset 4198 for libcaca


Ignore:
Timestamp:
Dec 24, 2009, 1:02:16 AM (10 years ago)
Author:
Sam Hocevar
Message:

Build Java examples and add wrapper scripts to run them.

Location:
libcaca/trunk/java
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/java/.gitignore

    r4197 r4198  
    11libjava.jar
     2examples/*.class
    23org_zoy_caca_*.h
    34org/zoy/caca/*.class
  • libcaca/trunk/java/Makefile.am

    r4197 r4198  
    55if USE_JAVA
    66jni_LTLIBRARIES = libcaca-java.la
     7noinst_DATA = examples/Driver.class examples/TrueColor.class
    78endif
    89
     
    7576        @touch org_zoy_caca_Font.h
    7677
    77 CLEANFILES = org/zoy/caca/*.class org_zoy_caca_[A-Z]*.h $(java_jar)
     78CLEANFILES = $(noinst_DATA) $(java_jar) \
     79             org/zoy/caca/*.class org_zoy_caca_[A-Z]*.h
    7880EXTRA_DIST = README
    7981
    8082if USE_JAVA
    8183BUILT_SOURCES = $(java_jni_headers) $(java_jni_classes)
     84endif
    8285
    8386libcaca_java_la_CPPFLAGS = $(JAVA_CFLAGS)
     
    9295libcaca_java_ladir = $(datadir)/java
    9396libcaca_java_la_DATA = $(java_jar)
    94 endif
     97
     98examples/Driver.class: examples/Driver.java
     99        $(JAVAC) $^
     100
     101examples/TrueColor.class: examples/TrueColor.java
     102        $(JAVAC) $^
     103
  • libcaca/trunk/java/examples/Driver.java

    r4197 r4198  
    2727    int i, cur = 0;
    2828    while(true) {
    29       cv.put(1, 0, "Availabl driver");
     29      cv.put(1, 0, "Available drivers");
    3030      driver = dp.getDriver();
    3131      Display.Driver[] list = Display.getDriverList();
  • libcaca/trunk/java/org/zoy/caca/Caca.java

    r4197 r4198  
    2424  synchronized public static void load() {
    2525    if (!alreadyLoaded) {
    26       System.loadLibrary("java");
     26      System.loadLibrary("caca-java");
    2727      alreadyLoaded = true;
    2828    }
Note: See TracChangeset for help on using the changeset viewer.