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 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22PRJ=..$/.. 23PRJNAME=scaddins 24 25TARGET=date 26 27ENABLE_EXCEPTIONS=TRUE 28USE_DEFFILE=TRUE 29LIBTARGET=NO 30 31# --- Settings ---------------------------------- 32 33.INCLUDE : settings.mk 34 35# --- Types ------------------------------------- 36 37UNOUCRRDB=$(SOLARBINDIR)$/types.rdb $(BIN)$/dateadd.rdb 38UNOUCRDEP=$(UNOUCRRDB) 39 40UNOUCROUT=$(OUT)$/inc$/$(PRJNAME)$/$(TARGET) 41INCPRE+=$(UNOUCROUT) 42 43# --- Types ------------------------------------- 44 45# comprehensive type info, so rdb needn't be installed 46NO_OFFUH=TRUE 47CPPUMAKERFLAGS*=-C 48 49UNOTYPES=\ 50 com.sun.star.sheet.addin.XDateFunctions \ 51 com.sun.star.sheet.addin.XMiscFunctions \ 52 com.sun.star.lang.XComponent \ 53 com.sun.star.lang.XMultiServiceFactory \ 54 com.sun.star.lang.XSingleComponentFactory \ 55 com.sun.star.lang.XSingleServiceFactory \ 56 com.sun.star.uno.TypeClass \ 57 com.sun.star.uno.XInterface \ 58 com.sun.star.registry.XImplementationRegistration \ 59 com.sun.star.sheet.XAddIn \ 60 com.sun.star.sheet.XCompatibilityNames \ 61 com.sun.star.lang.XServiceName \ 62 com.sun.star.lang.XServiceInfo \ 63 com.sun.star.lang.XTypeProvider \ 64 com.sun.star.uno.XWeak \ 65 com.sun.star.uno.XAggregation \ 66 com.sun.star.uno.XComponentContext \ 67 com.sun.star.util.Date 68 69# --- Files ------------------------------------- 70 71SLOFILES=\ 72 $(SLO)$/datefunc.obj 73 74ALLIDLFILES=\ 75 dateadd.idl 76 77SRS1NAME=$(TARGET) 78SRC1FILES =\ 79 datefunc.src 80 81# --- Library ----------------------------------- 82 83SHL1TARGET=$(TARGET)$(DLLPOSTFIX) 84SHL1OBJS=$(SLOFILES) 85SHL1STDLIBS= \ 86 $(TOOLSLIB) \ 87 $(CPPUHELPERLIB) \ 88 $(CPPULIB) \ 89 $(SALLIB) 90 91SHL1DEPN=makefile.mk 92 93SHL1VERSIONMAP=$(SOLARENV)/src/component.map 94SHL1DEF=$(MISC)$/$(SHL1TARGET).def 95DEF1NAME=$(SHL1TARGET) 96 97# --- Resourcen ---------------------------------------------------- 98 99RESLIB1LIST=\ 100 $(SRS)$/date.srs 101 102RESLIB1NAME=date 103RESLIB1SRSFILES=\ 104 $(RESLIB1LIST) 105 106# --- Targets ---------------------------------- 107 108.INCLUDE : target.mk 109 110$(BIN)$/dateadd.rdb: $(ALLIDLFILES) 111 $(IDLC) -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $? 112 $(REGMERGE) $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)} 113 touch $@ 114 115 116 117ALLTAR : $(MISC)/date.component 118 119$(MISC)/date.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 120 date.component 121 $(XSLTPROC) --nonet --stringparam uri \ 122 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 123 $(SOLARENV)/bin/createcomponent.xslt date.component 124