blob: 6083053c699ec508ef107d9561769605f011d8bf [file] [log] [blame]
#**************************************************************
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
#**************************************************************
PRJ=..$/..
PRJNAME=scaddins
TARGET=date
ENABLE_EXCEPTIONS=TRUE
USE_DEFFILE=TRUE
LIBTARGET=NO
# --- Settings ----------------------------------
.INCLUDE : settings.mk
# --- Types -------------------------------------
UNOUCRRDB=$(SOLARBINDIR)$/types.rdb $(BIN)$/dateadd.rdb
UNOUCRDEP=$(UNOUCRRDB)
UNOUCROUT=$(OUT)$/inc$/$(PRJNAME)$/$(TARGET)
INCPRE+=$(UNOUCROUT)
# --- Types -------------------------------------
# comprehensive type info, so rdb needn't be installed
NO_OFFUH=TRUE
CPPUMAKERFLAGS*=-C
UNOTYPES=\
com.sun.star.sheet.addin.XDateFunctions \
com.sun.star.sheet.addin.XMiscFunctions \
com.sun.star.lang.XComponent \
com.sun.star.lang.XMultiServiceFactory \
com.sun.star.lang.XSingleComponentFactory \
com.sun.star.lang.XSingleServiceFactory \
com.sun.star.uno.TypeClass \
com.sun.star.uno.XInterface \
com.sun.star.registry.XImplementationRegistration \
com.sun.star.sheet.XAddIn \
com.sun.star.sheet.XCompatibilityNames \
com.sun.star.lang.XServiceName \
com.sun.star.lang.XServiceInfo \
com.sun.star.lang.XTypeProvider \
com.sun.star.uno.XWeak \
com.sun.star.uno.XAggregation \
com.sun.star.uno.XComponentContext \
com.sun.star.util.Date
# --- Files -------------------------------------
SLOFILES=\
$(SLO)$/datefunc.obj
ALLIDLFILES=\
dateadd.idl
SRS1NAME=$(TARGET)
SRC1FILES =\
datefunc.src
# --- Library -----------------------------------
SHL1TARGET=$(TARGET)$(DLLPOSTFIX)
SHL1OBJS=$(SLOFILES)
SHL1STDLIBS= \
$(TOOLSLIB) \
$(CPPUHELPERLIB) \
$(CPPULIB) \
$(SALLIB)
SHL1DEPN=makefile.mk
SHL1VERSIONMAP=$(SOLARENV)/src/component.map
SHL1DEF=$(MISC)$/$(SHL1TARGET).def
DEF1NAME=$(SHL1TARGET)
# --- Resourcen ----------------------------------------------------
RESLIB1LIST=\
$(SRS)$/date.srs
RESLIB1NAME=date
RESLIB1SRSFILES=\
$(RESLIB1LIST)
# --- Targets ----------------------------------
.INCLUDE : target.mk
$(BIN)$/dateadd.rdb: $(ALLIDLFILES)
$(IDLC) -I$(PRJ) -I$(SOLARIDLDIR) -O$(BIN) $?
$(REGMERGE) $@ /UCR $(BIN)$/{$(?:f:s/.idl/.urd/)}
touch $@
ALLTAR : $(MISC)/date.component
$(MISC)/date.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
date.component
$(XSLTPROC) --nonet --stringparam uri \
'$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
$(SOLARENV)/bin/createcomponent.xslt date.component