INTEGRATION: CWS sdksample (1.5.4); FILE MERGED
2005/01/28 14:15:15 jsc 1.5.4.9: #i29308# prepare path for del command (windows only) 2004/11/16 08:28:33 jsc 1.5.4.8: #i29308# cleanup 2004/10/29 07:33:40 jsc 1.5.4.7: #i29308# cleanup 2004/10/25 12:58:49 jsc 1.5.4.6: #i29308# minimize exported symbols 2004/10/22 14:19:15 jsc 1.5.4.5: #i29308# replace DKREGISTRYNAME with OFFICE_TYPE_LIBRARY 2004/10/22 13:12:35 jsc 1.5.4.4: #i35871# adapt for Java 5.0 2004/10/08 13:58:37 jsc 1.5.4.3: #i29308# insert package manifest 2004/08/24 15:04:21 jsc 1.5.4.2: #i29308# use of new UNO package extension 2004/06/24 09:38:57 jsc 1.5.4.1: #i26335# use zip for packaging
This commit is contained in:
@@ -2,9 +2,9 @@
|
|||||||
#
|
#
|
||||||
# $RCSfile: Makefile,v $
|
# $RCSfile: Makefile,v $
|
||||||
#
|
#
|
||||||
# $Revision: 1.5 $
|
# $Revision: 1.6 $
|
||||||
#
|
#
|
||||||
# last change: $Author: rt $ $Date: 2004-05-18 13:20:50 $
|
# last change: $Author: rt $ $Date: 2005-01-31 16:12:09 $
|
||||||
#
|
#
|
||||||
# The Contents of this file are made available subject to the terms of
|
# The Contents of this file are made available subject to the terms of
|
||||||
# the BSD license.
|
# the BSD license.
|
||||||
@@ -50,13 +50,13 @@ include $(SETTINGS)/dk.mk
|
|||||||
# Define non-platform/compiler specific settings
|
# Define non-platform/compiler specific settings
|
||||||
COMPONENT_NAME=ProtocolHandlerAddon_cpp
|
COMPONENT_NAME=ProtocolHandlerAddon_cpp
|
||||||
COMPONENT_IMPL_NAME=$(COMPONENT_NAME).uno.$(SHAREDLIB_EXT)
|
COMPONENT_IMPL_NAME=$(COMPONENT_NAME).uno.$(SHAREDLIB_EXT)
|
||||||
COMPONENT_XML=$(COMPONENT_NAME).uno.xml
|
|
||||||
COMPONENT_PACKAGE = $(OUT_BIN)/$(COMPONENT_NAME).uno.zip
|
|
||||||
COMPONENT_PACKAGE_URL = $(subst \\,\,"$(COMPONENT_PACKAGE_DIR)$(PS)$(COMPONENT_NAME).uno.zip")
|
|
||||||
|
|
||||||
OUT_COMP_INC=$(OUT_INC)/$(COMPONENT_NAME)
|
OUT_COMP_INC=$(OUT_INC)/$(COMPONENT_NAME)
|
||||||
OUT_COMP_GEN=$(OUT_MISC)/$(COMPONENT_NAME)
|
OUT_COMP_GEN=$(OUT_MISC)/$(COMPONENT_NAME)
|
||||||
OUT_COMP_SLO=$(OUT_SLO)/$(COMPONENT_NAME)
|
OUT_COMP_SLO=$(OUT_SLO)/$(COMPONENT_NAME)
|
||||||
|
COMPONENT_XML=$(COMPONENT_NAME).uno.xml
|
||||||
|
COMPONENT_PACKAGE = $(OUT_BIN)/$(COMPONENT_NAME).$(UNOPKG_EXT)
|
||||||
|
COMPONENT_PACKAGE_URL = $(subst \\,\,"$(COMP_PACKAGE_DIR)$(PS)$(COMPONENT_NAME).$(UNOPKG_EXT)")
|
||||||
|
COMPONENT_UNOPKG_MANIFEST = $(OUT_COMP_GEN)/$(COMPONENT_NAME)/META-INF/manifest.xml
|
||||||
|
|
||||||
REGISTERFLAG = $(OUT_MISC)/cpp_$(COMPONENT_NAME)_register_component.flag
|
REGISTERFLAG = $(OUT_MISC)/cpp_$(COMPONENT_NAME)_register_component.flag
|
||||||
COMPONENT_TYPEFLAG = $(OUT_MISC)/cpp_$(COMPONENT_NAME)_types.flag
|
COMPONENT_TYPEFLAG = $(OUT_MISC)/cpp_$(COMPONENT_NAME)_types.flag
|
||||||
@@ -77,46 +77,55 @@ ALL : \
|
|||||||
include $(SETTINGS)/stdtarget.mk
|
include $(SETTINGS)/stdtarget.mk
|
||||||
|
|
||||||
$(COMPONENT_TYPEFLAG) : $(COMPONENT_XML)
|
$(COMPONENT_TYPEFLAG) : $(COMPONENT_XML)
|
||||||
|
-$(DEL) $(subst \\,\,$(subst /,$(PS),$@))
|
||||||
-$(MKDIR) $(subst /,$(PS),$(@D))
|
-$(MKDIR) $(subst /,$(PS),$(@D))
|
||||||
-$(DEL) $(subst /,$(PS),$(COMPONENT_TYPEFLAG))
|
$(CPPUMAKER) -Gc -BUCR -O$(OUT_COMP_INC) $(TYPESLIST) $(OFFICE_TYPE_LIBRARY)
|
||||||
$(CPPUMAKER) -Gc -BUCR -O$(OUT_COMP_INC) $(TYPESLIST) $(DKREGISTRYNAME)
|
|
||||||
echo flagged > $@
|
echo flagged > $@
|
||||||
|
|
||||||
$(OUT_COMP_SLO)/%.$(OBJ_EXT) : %.cxx $(COMPONENT_TYPEFLAG)
|
$(OUT_COMP_SLO)/%.$(OBJ_EXT) : %.cxx $(COMPONENT_TYPEFLAG)
|
||||||
-$(MKDIR) $(subst /,$(PS),$(@D))
|
-$(MKDIR) $(subst /,$(PS),$(@D))
|
||||||
$(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(OUT_COMP_INC) $(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
|
$(CC) $(CC_FLAGS) $(CC_INCLUDES) -I$(OUT_COMP_INC) $(CC_DEFINES) $(CC_OUTPUT_SWITCH)$(subst /,$(PS),$@) $<
|
||||||
|
|
||||||
$(OUT_COMP_GEN)/%.def : exports.dxp
|
|
||||||
ifeq "$(OS)" "WIN"
|
ifeq "$(OS)" "WIN"
|
||||||
|
$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES)
|
||||||
-$(MKDIR) $(subst /,$(PS),$(@D))
|
-$(MKDIR) $(subst /,$(PS),$(@D))
|
||||||
@echo EXPORTS > $@
|
-$(MKDIR) $(subst /,$(PS),$(OUT_COMP_GEN))
|
||||||
$(CAT) exports.dxp >> $@
|
$(LINK) $(COMP_LINK_FLAGS) /OUT:$@ \
|
||||||
endif
|
/MAP:$(OUT_COMP_GEN)/$(subst $(SHAREDLIB_EXT),map,$(@F)) $(SLOFILES) \
|
||||||
|
|
||||||
ifeq "$(OS)" "WIN"
|
|
||||||
$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES) $(OUT_COMP_GEN)/%.def
|
|
||||||
-$(MKDIR) $(subst /,$(PS),$(@D))
|
|
||||||
$(LINK) $(LIBRARY_LINK_FLAGS) /OUT:$@ /MAP:$(OUT_COMP_GEN)/$(subst $(SHAREDLIB_EXT),map,$(@F)) \
|
|
||||||
/DEF:$(OUT_COMP_GEN)/$(subst $(SHAREDLIB_EXT),def,$(@F)) $(SLOFILES) \
|
|
||||||
$(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STLPORTLIB) msvcrt.lib kernel32.lib
|
$(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STLPORTLIB) msvcrt.lib kernel32.lib
|
||||||
else
|
else
|
||||||
$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES)
|
$(SHAREDLIB_OUT)/%.$(SHAREDLIB_EXT) : $(SLOFILES)
|
||||||
-$(MKDIR) $(subst /,$(PS),$(@D))
|
-$(MKDIR) $(subst /,$(PS),$(@D))
|
||||||
$(LINK) $(LIBRARY_LINK_FLAGS) $(LINK_LIBS) -o $@ $^\
|
$(LINK) $(COMP_LINK_FLAGS) $(LINK_LIBS) -o $@ $^\
|
||||||
$(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STLPORTLIB) $(STC++LIB)
|
$(CPPUHELPERLIB) $(CPPULIB) $(SALLIB) $(STLPORTLIB) $(STC++LIB)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(COMPONENT_PACKAGE) : $(SHAREDLIB_OUT)/$(COMPONENT_IMPL_NAME) Addons.xcu ProtocolHandler.xcu
|
# rule for component package manifest
|
||||||
|
$(OUT_COMP_GEN)/%/manifest.xml :
|
||||||
-$(MKDIR) $(subst /,$(PS),$(@D))
|
-$(MKDIR) $(subst /,$(PS),$(@D))
|
||||||
-$(MKDIR) $(subst /,$(PS),$(OUT_COMP_GEN)/$(PACKAGE_LIB_DIR))
|
@echo $(OSEP)?xml version="$(QM)1.0$(QM)" encoding="$(QM)UTF-8$(QM)"?$(CSEP) > $@
|
||||||
$(COPY) $(subst /,$(PS),$<) $(subst /,$(PS),$(OUT_COMP_GEN)/$(PACKAGE_LIB_DIR))
|
@echo $(OSEP)!DOCTYPE manifest:manifest PUBLIC "$(QM)-//OpenOffice.org//DTD Manifest 1.0//EN$(QM)" "$(QM)Manifest.dtd$(QM)"$(CSEP) >> $@
|
||||||
$(COPY) Addons.xcu $(subst /,$(PS),$(OUT_COMP_GEN))
|
@echo $(OSEP)manifest:manifest xmlns:manifest="$(QM)http://openoffice.org/2001/manifest$(QM)"$(CSEP) >> $@
|
||||||
$(COPY) ProtocolHandler.xcu $(subst /,$(PS),$(OUT_COMP_GEN))
|
@echo $(SQM) $(SQM)$(OSEP)manifest:file-entry manifest:media-type="$(QM)application/vnd.sun.star.configuration-data$(QM)" >> $@
|
||||||
cd $(subst /,$(PS),$(OUT_COMP_GEN)) && $(SDK_JAR) cvfM ../../bin/$(@F) $(PACKAGE_LIB_DIR)/$(<F) Addons.xcu ProtocolHandler.xcu
|
@echo $(SQM) $(SQM)manifest:full-path="$(QM)Addons.xcu$(QM)"/$(CSEP) >> $@
|
||||||
|
@echo $(SQM) $(SQM)$(OSEP)manifest:file-entry manifest:media-type="$(QM)application/vnd.sun.star.configuration-data$(QM)" >> $@
|
||||||
|
@echo $(SQM) $(SQM)manifest:full-path="$(QM)ProtocolHandler.xcu$(QM)"/$(CSEP) >> $@
|
||||||
|
@echo $(SQM) $(SQM)$(OSEP)manifest:file-entry manifest:media-type="$(QM)application/vnd.sun.star.uno-component;type=native;platform=$(UNOPKG_PLATFORM)$(QM)" >> $@
|
||||||
|
@echo $(SQM) $(SQM)manifest:full-path="$(QM)$(subst /META-INF,,$(subst $(OUT_COMP_GEN)/,,$(UNOPKG_PLATFORM)/$(@D))).uno.$(SHAREDLIB_EXT)$(QM)"/$(CSEP) >> $@
|
||||||
|
@echo $(OSEP)/manifest:manifest$(CSEP) >> $@
|
||||||
|
|
||||||
|
# rule for component package file
|
||||||
|
$(COMPONENT_PACKAGE) : $(SHAREDLIB_OUT)/$(COMPONENT_IMPL_NAME) Addons.xcu ProtocolHandler.xcu $(COMPONENT_UNOPKG_MANIFEST)
|
||||||
|
-$(MKDIR) $(subst /,$(PS),$(@D)) && $(DEL) $(subst \\,\,$(subst /,$(PS),$@))
|
||||||
|
-$(MKDIR) $(subst /,$(PS),$(OUT_COMP_GEN)/$(UNOPKG_PLATFORM))
|
||||||
|
$(COPY) $(subst /,$(PS),$<) $(subst /,$(PS),$(OUT_COMP_GEN)/$(UNOPKG_PLATFORM))
|
||||||
|
cd $(subst /,$(PS),$(OUT_COMP_GEN)) && $(SDK_ZIP) ../../bin/$(@F) $(UNOPKG_PLATFORM)/$(<F)
|
||||||
|
$(SDK_ZIP) -u $@ Addons.xcu ProtocolHandler.xcu
|
||||||
|
cd $(subst /,$(PS),$(OUT_COMP_GEN)/$(subst .$(UNOPKG_EXT),,$(@F))) && $(SDK_ZIP) -u ../../../bin/$(@F) META-INF/manifest.xml
|
||||||
|
|
||||||
$(REGISTERFLAG) : $(COMPONENT_PACKAGE)
|
$(REGISTERFLAG) : $(COMPONENT_PACKAGE)
|
||||||
ifeq "$(SDK_AUTO_DEPLOYMENT)" "YES"
|
ifeq "$(SDK_AUTO_DEPLOYMENT)" "YES"
|
||||||
-$(DEL) $(subst /,$(PS),$@)
|
-$(DEL) $(subst \\,\,$(subst /,$(PS),$@))
|
||||||
$(DEPLOYTOOL) $(COMPONENT_PACKAGE_URL)
|
$(DEPLOYTOOL) $(COMPONENT_PACKAGE_URL)
|
||||||
@echo flagged > $(subst /,$(PS),$@)
|
@echo flagged > $(subst /,$(PS),$@)
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user