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 22 23PRJ = ..$/.. 24PRJNAME = filter 25PACKAGE = com/sun/star/comp/xsltfilter 26TARGET =XSLTFilter 27ENABLE_EXCEPTIONS=TRUE 28LIBTARGET=NO 29 30# --- Settings ----------------------------------------------------- 31CLASSDIR!:=$(CLASSDIR)$/$(TARGET) 32.INCLUDE: settings.mk 33 34.IF "$(DISABLE_SAXON)" == "" 35 36SLOFILES= \ 37 $(SLO)$/XSLTFilter.obj \ 38 $(SLO)$/uof2storage.obj \ 39 $(SLO)$/uof2merge.obj \ 40 $(SLO)$/XMLBase64Codec.obj \ 41 $(SLO)$/uof2splithandler.obj \ 42 $(SLO)$/uof2splitter.obj 43 44LIBNAME=xsltfilter 45SHL1TARGETDEPN=makefile.mk 46SHL1OBJS=$(SLOFILES) 47SHL1TARGET=$(LIBNAME)$(DLLPOSTFIX) 48SHL1IMPLIB=i$(LIBNAME) 49SHL1VERSIONMAP=$(SOLARENV)/src/component.map 50SHL1DEF=$(MISC)$/$(SHL1TARGET).def 51DEF1NAME=$(SHL1TARGET) 52 53SHL1STDLIBS= \ 54 $(TOOLSLIB) \ 55 $(CPPUHELPERLIB) \ 56 $(CPPULIB) \ 57 $(XMLOFFLIB) \ 58 $(SALLIB) \ 59 $(COMPHELPERLIB) 60 61.IF "$(SOLAR_JAVA)"!="" 62 63#USE_UDK_EXTENDED_MANIFESTFILE=TRUE 64#USE_EXTENDED_MANIFESTFILE=TRUE 65JARFILES = ridl.jar unoil.jar jurt.jar juh.jar 66 67JAVAFILES = $(subst,$(CLASSDIR)$/, $(subst,.class,.java $(JAVACLASSFILES))) 68CUSTOMMANIFESTFILE = Manifest 69 70JARCOMPRESS = TRUE 71JARCLASSDIRS = com/sun/star/comp/xsltfilter 72JARTARGET = $(TARGET).jar 73 74.IF "$(SYSTEM_SAXON)" == "YES" 75XCLASSPATH:=$(XCLASSPATH)$(PATH_SEPERATOR)$(SAXON_JAR) 76.ELSE 77JARFILES += saxon9.jar 78.ENDIF 79 80# --- Files -------------------------------------------------------- 81JAVACLASSFILES= \ 82 $(CLASSDIR)/com/sun/star/comp/xsltfilter/XSLTransformer.class \ 83 $(CLASSDIR)/com/sun/star/comp/xsltfilter/XSLTFilterOLEExtracter.class \ 84 $(CLASSDIR)/com/sun/star/comp/xsltfilter/Base64.class \ 85 86.ENDIF 87 88# --- Targets ------------------------------------------------------ 89.INCLUDE : target.mk 90.IF "$(SOLAR_JAVA)"!="" 91$(JAVACLASSFILES) : $(CLASSDIR) 92 93$(CLASSDIR) : 94 $(MKDIR) $(CLASSDIR) 95.ENDIF 96 97ALLTAR : $(MISC)/XSLTFilter.jar.component $(MISC)/xsltfilter.component 98 99$(MISC)/XSLTFilter.jar.component .ERRREMOVE : \ 100 $(SOLARENV)/bin/createcomponent.xslt XSLTFilter.jar.component 101 $(XSLTPROC) --nonet --stringparam uri \ 102 '$(COMPONENTPREFIX_BASIS_JAVA)$(JARTARGET)' -o $@ \ 103 $(SOLARENV)/bin/createcomponent.xslt XSLTFilter.jar.component 104 105$(MISC)/xsltfilter.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 106 xsltfilter.component 107 $(XSLTPROC) --nonet --stringparam uri \ 108 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 109 $(SOLARENV)/bin/createcomponent.xslt xsltfilter.component 110 111.ELSE 112all: 113 @echo "saxon disabled" 114.ENDIF 115