Makefile (5bf47815) | Makefile (b1c5b4ce) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 30 unchanged lines hidden (view full) --- 39COMP_UNOPKG_MANIFEST = $(OUT_COMP_GEN)/$(COMP_NAME)/META-INF/manifest.xml 40COMP_MAPFILE = $(OUT_COMP_GEN)/$(COMP_NAME).uno.map 41COMP_COMPONENTS = $(OUT_COMP_GEN)/$(COMP_NAME).components 42COMP_REGISTERFLAG = $(OUT_MISC)/cpp_$(COMP_NAME)_register_component.flag 43COMP_TYPEFLAG = $(OUT_MISC)/cpp_$(COMP_NAME)_types.flag 44 45CXXFILES = \ 46 MyProtocolHandler.cxx \ | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 30 unchanged lines hidden (view full) --- 39COMP_UNOPKG_MANIFEST = $(OUT_COMP_GEN)/$(COMP_NAME)/META-INF/manifest.xml 40COMP_MAPFILE = $(OUT_COMP_GEN)/$(COMP_NAME).uno.map 41COMP_COMPONENTS = $(OUT_COMP_GEN)/$(COMP_NAME).components 42COMP_REGISTERFLAG = $(OUT_MISC)/cpp_$(COMP_NAME)_register_component.flag 43COMP_TYPEFLAG = $(OUT_MISC)/cpp_$(COMP_NAME)_types.flag 44 45CXXFILES = \ 46 MyProtocolHandler.cxx \ |
47 MyJob.cxx \ 48 MyListener.cxx \ 49 WriterListener.cxx \ 50 CalcListener.cxx \ | |
51 ListenerHelper.cxx \ 52 exports.cxx 53 54SLOFILES = $(patsubst %.cxx,$(OUT_COMP_SLO)/%.$(OBJ_EXT),$(CXXFILES)) 55 56# Add OSL_DEBUG_LEVEL to compiler the flags (for OSL_TRACE et. al.) 57ifeq "$(DEBUG)" "yes" 58CC_FLAGS += -DOSL_DEBUG_LEVEL=2 --- 54 unchanged lines hidden (view full) --- 113# @echo $(SQM) $(SQM)manifest:full-path="$(QM)$(subst /META-INF,,$(subst $(OUT_COMP_GEN)/,,$(UNOPKG_PLATFORM)/$(@D))).uno.$(SHAREDLIB_EXT)$(QM)"/$(CSEP) >> $@ 114 @echo $(OSEP)/manifest:manifest$(CSEP) >> $@ 115 116$(COMP_COMPONENTS) : 117 -$(MKDIR) $(subst /,$(PS),$(@D)) 118 @echo $(OSEP)?xml version="$(QM)1.0$(QM)" encoding="$(QM)UTF-8$(QM)"?$(CSEP) > $@ 119 @echo $(OSEP)components xmlns="$(QM)http://openoffice.org/2010/uno-components$(QM)"$(CSEP) >> $@ 120 @echo $(SQM) $(SQM)$(OSEP)component loader="$(QM)com.sun.star.loader.SharedLibrary$(QM)" uri="$(QM)$(UNOPKG_PLATFORM)/$(COMP_IMPL_NAME)$(QM)"$(CSEP) >> $@ | 47 ListenerHelper.cxx \ 48 exports.cxx 49 50SLOFILES = $(patsubst %.cxx,$(OUT_COMP_SLO)/%.$(OBJ_EXT),$(CXXFILES)) 51 52# Add OSL_DEBUG_LEVEL to compiler the flags (for OSL_TRACE et. al.) 53ifeq "$(DEBUG)" "yes" 54CC_FLAGS += -DOSL_DEBUG_LEVEL=2 --- 54 unchanged lines hidden (view full) --- 109# @echo $(SQM) $(SQM)manifest:full-path="$(QM)$(subst /META-INF,,$(subst $(OUT_COMP_GEN)/,,$(UNOPKG_PLATFORM)/$(@D))).uno.$(SHAREDLIB_EXT)$(QM)"/$(CSEP) >> $@ 110 @echo $(OSEP)/manifest:manifest$(CSEP) >> $@ 111 112$(COMP_COMPONENTS) : 113 -$(MKDIR) $(subst /,$(PS),$(@D)) 114 @echo $(OSEP)?xml version="$(QM)1.0$(QM)" encoding="$(QM)UTF-8$(QM)"?$(CSEP) > $@ 115 @echo $(OSEP)components xmlns="$(QM)http://openoffice.org/2010/uno-components$(QM)"$(CSEP) >> $@ 116 @echo $(SQM) $(SQM)$(OSEP)component loader="$(QM)com.sun.star.loader.SharedLibrary$(QM)" uri="$(QM)$(UNOPKG_PLATFORM)/$(COMP_IMPL_NAME)$(QM)"$(CSEP) >> $@ |
121 @echo $(SQM) $(SQM)$(OSEP)implementation name="$(QM)vnd.My.impl.NewDocListener$(QM)"$(CSEP) >> $@ 122 @echo $(SQM) $(SQM)$(OSEP)service name="$(QM)vnd.My.NewDocListener$(QM)"/$(CSEP) >> $@ 123 @echo $(SQM) $(SQM)$(OSEP)/implementation$(CSEP) >> $@ | |
124 @echo $(SQM) $(SQM)$(OSEP)implementation name="$(QM)vnd.demo.Impl.ProtocolHandler$(QM)"$(CSEP) >> $@ 125 @echo $(SQM) $(SQM)$(OSEP)service name="$(QM)vnd.demo.ProtocolHandler$(QM)"/$(CSEP) >> $@ 126 @echo $(SQM) $(SQM)$(OSEP)/implementation$(CSEP) >> $@ 127 @echo $(SQM) $(SQM)$(OSEP)/component$(CSEP) >> $@ 128 @echo $(OSEP)/components$(CSEP) >> $@ 129 130# rule for component package file 131$(COMP_PACKAGE) : $(SHAREDLIB_OUT)/$(COMP_IMPL_NAME) Addons.xcu ProtocolHandler.xcu $(COMP_UNOPKG_MANIFEST) $(COMP_COMPONENTS) --- 15 unchanged lines hidden (view full) --- 147 @echo If you want to install your component automatically, please set the environment 148 @echo variable SDK_AUTO_DEPLOYMENT = YES. But note that auto deployment is only 149 @echo possible if no office instance is running. 150 @echo -------------------------------------------------------------------------------- 151endif 152 153Example : $(COMP_REGISTERFLAG) 154 @echo -------------------------------------------------------------------------------- | 117 @echo $(SQM) $(SQM)$(OSEP)implementation name="$(QM)vnd.demo.Impl.ProtocolHandler$(QM)"$(CSEP) >> $@ 118 @echo $(SQM) $(SQM)$(OSEP)service name="$(QM)vnd.demo.ProtocolHandler$(QM)"/$(CSEP) >> $@ 119 @echo $(SQM) $(SQM)$(OSEP)/implementation$(CSEP) >> $@ 120 @echo $(SQM) $(SQM)$(OSEP)/component$(CSEP) >> $@ 121 @echo $(OSEP)/components$(CSEP) >> $@ 122 123# rule for component package file 124$(COMP_PACKAGE) : $(SHAREDLIB_OUT)/$(COMP_IMPL_NAME) Addons.xcu ProtocolHandler.xcu $(COMP_UNOPKG_MANIFEST) $(COMP_COMPONENTS) --- 15 unchanged lines hidden (view full) --- 140 @echo If you want to install your component automatically, please set the environment 141 @echo variable SDK_AUTO_DEPLOYMENT = YES. But note that auto deployment is only 142 @echo possible if no office instance is running. 143 @echo -------------------------------------------------------------------------------- 144endif 145 146Example : $(COMP_REGISTERFLAG) 147 @echo -------------------------------------------------------------------------------- |
155 @echo The "$(QM)ProtocolHandler$(QM)" addon component was installed if SDK_AUTO_DEPLOYMENT = YES. | 148 @echo The "$(QM)Complext Toolbar Controlls$(QM)" component was installed if SDK_AUTO_DEPLOYMENT = YES. |
156 @echo You can use this component inside your office installation, see the example 157 @echo description. 158 @echo -------------------------------------------------------------------------------- 159 160run: $(COMP1_COMP_REGISTERFLAG) 161 "$(OFFICE_PROGRAM_PATH)$(PS)soffice" -writer 162 163 164.PHONY: clean 165clean : 166 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_INC)) 167 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_GEN)) 168 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_SLO)) 169 -$(DEL) $(subst \\,\,$(subst /,$(PS),$(COMP_PACKAGE_URL))) 170 -$(DEL) $(subst \\,\,$(subst /,$(PS),$(COMP_REGISTERFLAG))) 171 -$(DEL) $(subst \\,\,$(subst /,$(PS),$(COMP_TYPEFLAG))) 172 -$(DEL) $(subst \\,\,$(subst /,$(PS),$(SHAREDLIB_OUT)/$(COMP_NAME).*)) | 149 @echo You can use this component inside your office installation, see the example 150 @echo description. 151 @echo -------------------------------------------------------------------------------- 152 153run: $(COMP1_COMP_REGISTERFLAG) 154 "$(OFFICE_PROGRAM_PATH)$(PS)soffice" -writer 155 156 157.PHONY: clean 158clean : 159 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_INC)) 160 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_GEN)) 161 -$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_SLO)) 162 -$(DEL) $(subst \\,\,$(subst /,$(PS),$(COMP_PACKAGE_URL))) 163 -$(DEL) $(subst \\,\,$(subst /,$(PS),$(COMP_REGISTERFLAG))) 164 -$(DEL) $(subst \\,\,$(subst /,$(PS),$(COMP_TYPEFLAG))) 165 -$(DEL) $(subst \\,\,$(subst /,$(PS),$(SHAREDLIB_OUT)/$(COMP_NAME).*)) |