2009-06-03 09:22:46 +08:00
|
|
|
SUBDIRS = com
|
2013-10-04 05:26:35 +08:00
|
|
|
scrollview_path = @datadir@/tessdata
|
2008-02-01 08:49:38 +08:00
|
|
|
|
2012-03-16 05:05:12 +08:00
|
|
|
JAVAC = javac
|
|
|
|
JAR = jar
|
|
|
|
|
2012-09-22 01:36:27 +08:00
|
|
|
if !GRAPHICS_DISABLED
|
2012-03-16 05:05:12 +08:00
|
|
|
SCROLLVIEW_FILES = \
|
2013-10-04 05:26:35 +08:00
|
|
|
$(srcdir)/com/google/scrollview/ui/SVAbstractMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVCheckboxMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVEmptyMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/events/SVEvent.java \
|
|
|
|
$(srcdir)/com/google/scrollview/events/SVEventHandler.java \
|
|
|
|
$(srcdir)/com/google/scrollview/events/SVEventType.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVImageHandler.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVMenuBar.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVPopupMenu.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVSubMenuItem.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ui/SVWindow.java \
|
|
|
|
$(srcdir)/com/google/scrollview/ScrollView.java
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
SCROLLVIEW_CLASSES = \
|
2013-10-06 05:33:07 +08:00
|
|
|
com/google/scrollview/ui/SVAbstractMenuItem.class \
|
|
|
|
com/google/scrollview/ui/SVCheckboxMenuItem.class \
|
|
|
|
com/google/scrollview/ui/SVEmptyMenuItem.class \
|
|
|
|
com/google/scrollview/events/SVEvent.class \
|
|
|
|
com/google/scrollview/events/SVEventHandler.class \
|
|
|
|
com/google/scrollview/events/SVEventType.class \
|
|
|
|
com/google/scrollview/ui/SVImageHandler.class \
|
|
|
|
com/google/scrollview/ui/SVMenuBar.class \
|
|
|
|
com/google/scrollview/ui/SVMenuItem.class \
|
|
|
|
com/google/scrollview/ui/SVPopupMenu.class \
|
|
|
|
com/google/scrollview/ui/SVSubMenuItem.class \
|
|
|
|
com/google/scrollview/ui/SVWindow.class \
|
|
|
|
com/google/scrollview/ScrollView.class
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
SCROLLVIEW_LIBS = \
|
2020-01-16 22:27:41 +08:00
|
|
|
piccolo2d-core-3.0.1.jar \
|
|
|
|
piccolo2d-extras-3.0.1.jar \
|
2018-10-10 16:42:39 +08:00
|
|
|
jaxb-api-2.3.1.jar
|
2012-03-16 05:05:12 +08:00
|
|
|
|
2020-01-16 22:27:41 +08:00
|
|
|
CLASSPATH = piccolo2d-core-3.0.1.jar:piccolo2d-extras-3.0.1.jar:jaxb-api-2.3.1.jar
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
ScrollView.jar : $(SCROLLVIEW_CLASSES)
|
2016-12-12 05:04:17 +08:00
|
|
|
$(JAR) cfm $@ $(srcdir)/Manifest.txt com/google/scrollview/*.class \
|
2013-10-06 05:33:07 +08:00
|
|
|
com/google/scrollview/events/*.class com/google/scrollview/ui/*.class
|
2012-03-16 05:05:12 +08:00
|
|
|
|
2016-12-12 05:04:17 +08:00
|
|
|
$(SCROLLVIEW_CLASSES) : $(SCROLLVIEW_FILES) $(SCROLLVIEW_LIBS)
|
2013-10-06 05:33:07 +08:00
|
|
|
$(JAVAC) -encoding UTF8 -sourcepath $(srcdir) -classpath $(CLASSPATH) $(SCROLLVIEW_FILES) -d $(builddir)
|
2013-10-04 05:26:35 +08:00
|
|
|
|
2016-12-12 05:04:17 +08:00
|
|
|
.PHONY: fetch-jars
|
|
|
|
fetch-jars $(SCROLLVIEW_LIBS):
|
2024-11-02 14:17:46 +08:00
|
|
|
curl -sSLO https://repo1.maven.org/maven2/org/piccolo2d/piccolo2d-core/3.0.1/piccolo2d-core-3.0.1.jar
|
|
|
|
curl -sSLO https://repo1.maven.org/maven2/org/piccolo2d/piccolo2d-extras/3.0.1/piccolo2d-extras-3.0.1.jar
|
|
|
|
curl -sSLO https://repo1.maven.org/maven2/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar
|
2015-06-24 04:19:18 +08:00
|
|
|
|
2013-10-04 05:26:35 +08:00
|
|
|
.PHONY: install-jars
|
|
|
|
install-jars : ScrollView.jar
|
|
|
|
@if [ ! -d $(scrollview_path) ]; then mkdir -p $(scrollview_path); fi;
|
2013-10-06 05:33:07 +08:00
|
|
|
$(INSTALL) -m 644 $(SCROLLVIEW_LIBS) $(scrollview_path);
|
2013-10-04 05:26:35 +08:00
|
|
|
$(INSTALL) -m 644 ScrollView.jar $(scrollview_path);
|
2015-09-15 04:18:44 +08:00
|
|
|
@echo "Don't forget to set environment variable SCROLLVIEW_PATH to $(scrollview_path)";
|
2013-10-04 05:26:35 +08:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(scrollview_path)/*.jar
|
2012-09-22 01:36:27 +08:00
|
|
|
endif
|
2012-03-16 05:05:12 +08:00
|
|
|
|
2017-05-16 02:08:54 +08:00
|
|
|
clean-local:
|
2016-12-12 05:04:17 +08:00
|
|
|
rm -f ScrollView.jar $(SCROLLVIEW_CLASSES)
|
2012-03-16 05:05:12 +08:00
|
|
|
|
|
|
|
# all-am does nothing, to make the java part optional.
|
|
|
|
all all-am install :
|