diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-06-10 09:15:01 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-06-10 09:15:01 +0000 |
commit | ee9162c88dafe5fb546c957f52d4c327a26a8eed (patch) | |
tree | 8499e865de083e933647c267b7c2ba8f30c8a9f0 /odk/examples/DevelopersGuide/Components/Thumbs | |
parent | 4bf6826e32ad84c866eb7e11c8439d9bf3fd021c (diff) |
INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED
2003/05/14 11:03:25 jsc 1.1.2.2: #109045# insert JAVAC_FLAGS option
2003/05/09 10:44:40 jsc 1.1.2.1: #109045# insert new and remove example zip file
Diffstat (limited to 'odk/examples/DevelopersGuide/Components/Thumbs')
-rw-r--r-- | odk/examples/DevelopersGuide/Components/Thumbs/org/openoffice/comp/test/Makefile | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/odk/examples/DevelopersGuide/Components/Thumbs/org/openoffice/comp/test/Makefile b/odk/examples/DevelopersGuide/Components/Thumbs/org/openoffice/comp/test/Makefile new file mode 100644 index 000000000000..a8a4e3afd28c --- /dev/null +++ b/odk/examples/DevelopersGuide/Components/Thumbs/org/openoffice/comp/test/Makefile @@ -0,0 +1,73 @@ +# Builds the SpreadSheet examples of the Developers Guide. + +PRJ=../../../../../../../.. +SETTINGS=$(PRJ)/settings + +include $(SETTINGS)/settings.mk +include $(SETTINGS)/std.mk +include $(SETTINGS)/dk.mk + +include ../../../../thumbs.mk + +# Define non-platform/compiler specific settings + +PACKAGE = org/openoffice/comp/test + +JAVAFILES = \ + ImageShrink.java \ + Thumbs.java + +CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/$(PACKAGE)/%.class,$(JAVAFILES)) + +SDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(OFFICE_CLASSES_DIR)/jurt.jar\ + $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/unoil.jar\ + $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/ridl.jar\ + $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/sandbox.jar\ + $(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/juh.jar\ + $(PATH_SEPARATOR)$(OUT_COMP_CLASS)) + + +# Targets +.PHONY: ALL +ALL : \ + $(REGISTERFLAG) + +include $(SETTINGS)/stdtarget.mk + +$(OUT_COMP_CLASS)/%.Manifest : + -$(MKDIR) $(subst /,$(PS),$(@D)) + @echo RegistrationClassName: $(subst /,.,$(PACKAGE)).$(basename $(basename $(@F)))> $@ + +$(CLASSFILES) : $(JAVAFILES) + -$(MKDIR) $(subst /,$(PS),$(@D)) + javac $(JAVAC_FLAGS) -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(JAVAFILES) + +$(OUT_CLASS)/%.jar : $(OUT_COMP_CLASS)/%.Manifest $(CLASSFILES) + -$(MKDIR) $(subst /,$(PS),$(@D)) + jar cvfm $@ $< -C $(OUT_COMP_CLASS) . + +$(OUT_BIN)/%.zip : $(OUT_COMP_GEN)/%.rdb $(OUT_CLASS)/%.jar + -$(MKDIR) $(subst /,$(PS),$(@D)) + $(COPY) $(subst /,$(PS),$<) $(subst /,$(PS),$(OUT_CLASS)) + cd $(OUT_CLASS) && jar cvfM ../bin/$(@F) $(^F) + $(DEL) $(subst /,$(PS),$(OUT_CLASS)/$(<F)) + +$(REGISTERFLAG) : $(COMPONENT1_PACKAGE) +ifneq "$(SDK_AUTO_DEPLOYMENT)" "" + -$(MKDIR) $(subst /,$(PS),$(@D)) + -$(DEL) $(subst /,$(PS),$@) + $(DEPLOYTOOL) $(COMPONENT1_PACKAGE_URL) + @echo flagged > $(subst /,$(PS),$@) +else + @echo -------------------------------------------------------------------------------- + @echo If you want to install your component automatically, please set the environment + @echo variable SDK_AUTO_DEPLOYMENT = YES. But note that auto deployment is only + @echo possible if no office instance is running. + @echo -------------------------------------------------------------------------------- +endif + +.PHONY: clean +clean : + -$(DEL) $(subst /,$(PS),$(COMPONENT1_PACKAGE_URL)) + -$(DEL) $(subst /,$(PS),$(COMPONENT1_JAR)) + -$(DEL) $(subst /,$(PS),$(REGISTERFLAG)) |