diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 15:02:50 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 15:02:50 +0000 |
commit | f8450a55ed30d0efe3a94093a9568caeef6e8250 (patch) | |
tree | c35e2739dffc7ef06b6b996399cefc362342e365 /odk/examples/DevelopersGuide/Accessibility | |
parent | 4c3e5e96f3e4d2057a19203bbbb166eef2ce4507 (diff) |
INTEGRATION: CWS sdksample (1.4.4); FILE MERGED
2005/01/28 14:15:12 jsc 1.4.4.7: #i29308# prepare path for del command (windows only)
2004/10/29 07:33:38 jsc 1.4.4.6: #i29308# cleanup
2004/08/06 14:36:51 jsc 1.4.4.5: #i29308# use System.err for error output
2004/07/30 14:30:01 jsc 1.4.4.4: #i29308# use quotes for unopath option
2004/07/30 08:36:23 jsc 1.4.4.3: #i29308# adjust ECHOLINE for windows
2004/07/29 12:22:43 jsc 1.4.4.2: #i29308# insert ECHOLINE macro to dump an empty line in manifest files
2004/06/07 13:07:46 jsc 1.4.4.1: #i29308# use new bootstrap feature
Diffstat (limited to 'odk/examples/DevelopersGuide/Accessibility')
-rw-r--r-- | odk/examples/DevelopersGuide/Accessibility/Makefile | 50 |
1 files changed, 35 insertions, 15 deletions
diff --git a/odk/examples/DevelopersGuide/Accessibility/Makefile b/odk/examples/DevelopersGuide/Accessibility/Makefile index 9ca49d059b28..092320faae5f 100644 --- a/odk/examples/DevelopersGuide/Accessibility/Makefile +++ b/odk/examples/DevelopersGuide/Accessibility/Makefile @@ -2,9 +2,9 @@ # # $RCSfile: Makefile,v $ # -# $Revision: 1.4 $ +# $Revision: 1.5 $ # -# last change: $Author: rt $ $Date: 2004-05-18 13:19:56 $ +# last change: $Author: rt $ $Date: 2005-01-31 16:02:50 $ # # The Contents of this file are made available subject to the terms of # the BSD license. @@ -49,47 +49,67 @@ include $(SETTINGS)/std.mk include $(SETTINGS)/dk.mk # Define non-platform/compiler specific settings -COMPONENT_NAME =SSR -OUT_COMP_CLASS = $(OUT_CLASS)/$(COMPONENT_NAME) +EXAMPLE_NAME=DevGuideAccessibilityExample +OUT_APP_CLASS = $(OUT_CLASS)/$(EXAMPLE_NAME) + +APP1_NAME =SSR +APP1_JAR =$(OUT_APP_CLASS)/$(APP1_NAME).jar JAVAFILES = \ + MessageArea.java \ ConnectionTask.java \ EventHandler.java \ EventListenerProxy.java \ GraphicalDisplay.java \ - MessageArea.java \ NameProvider.java \ IAccessibleObjectDisplay.java \ RegistrationThread.java \ SSR.java \ TextualDisplay.java -CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/%.class,$(JAVAFILES)) +APP1_CLASSFILES = $(patsubst %.java,$(OUT_APP_CLASS)/%.class,$(JAVAFILES)) +APP1_CLASSNAMES = $(patsubst %.java,%.class,$(JAVAFILES)) SDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(CLASSPATH)\ - $(PATH_SEPARATOR)$(OUT_COMP_CLASS)) + $(PATH_SEPARATOR)$(OUT_APP_CLASS)) # Targets .PHONY: ALL -ALL : SSR +ALL : $(EXAMPLE_NAME) include $(SETTINGS)/stdtarget.mk -$(CLASSFILES) : $(JAVAFILES) +$(OUT_APP_CLASS)/%.class : %.java + -$(MKDIR) $(subst /,$(PS),$(@D)) + $(SDK_JAVAC) $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_APP_CLASS) $(JAVAFILES) + +$(OUT_APP_CLASS)/%.mf : + -$(MKDIR) $(subst /,$(PS),$(@D)) + @echo Main-Class: com.sun.star.lib.loader.Loader> $@ + $(ECHOLINE)>> $@ + @echo Name: com/sun/star/lib/loader/Loader.class>> $@ + @echo Application-Class: $*>> $@ + +$(APP1_JAR) : $(OUT_APP_CLASS)/$(APP1_NAME).mf $(APP1_CLASSFILES) + -$(DEL) $(subst \\,\,$(subst /,$(PS),$@)) -$(MKDIR) $(subst /,$(PS),$(@D)) - $(SDK_JAVAC) $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(JAVAFILES) + +cd $(subst /,$(PS),$(OUT_APP_CLASS)) && $(SDK_JAR) cvfm $(@F) $(basename $(@F)).mf $(APP1_CLASSNAMES) + +$(SDK_JAR) uvf $@ $(SDK_JAVA_UNO_BOOTSTRAP_FILES) + -SSR : $(CLASSFILES) +$(EXAMPLE_NAME) : $(APP1_JAR) @echo -------------------------------------------------------------------------------- + @echo Before you run this example you should start your office with at least a + @echo new empty document and you should have enabled the accessibility support. @echo Please use the following command to execute the Simple Screen Reader example! @echo - - @echo make SSR.run + @echo make $(APP1_NAME).run @echo -------------------------------------------------------------------------------- -%.run: $(OUT_COMP_CLASS)/%.class - $(SDK_JAVA) -classpath "$(SDK_CLASSPATH)" $(basename $@) +%.run: $(OUT_APP_CLASS)/%.jar + $(SDK_JAVA) -Dcom.sun.star.lib.loader.unopath="$(OFFICE_PROGRAM_PATH)" -jar $< .PHONY: clean clean : - -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_CLASS)) + -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_APP_CLASS)) |