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 23 24PRJ=.. 25 26PRJNAME=xmlsecurity 27TARGET=xmlsecurity 28 29# Disable '-z defs' due to broken libxpcom. 30#LINKFLAGSDEFS=$(0) 31USE_DEFFILE=TRUE 32 33# --- Settings ----------------------------------------------------- 34 35.INCLUDE : settings.mk 36.INCLUDE : $(PRJ)$/util$/target.pmk 37 38.IF "$(ENABLE_NSS_MODULE)" != "YES" 39@all: 40 @echo "No nss -> no libxmlsec -> no xmlsecurity..." 41.ENDIF 42 43# --- Files -------------------------------------------------------- 44 45BMP_IN=$(PRJ)$/res 46 47# --- Shared-Library ----------------------------------------------- 48 49# 50# The 1st shared library 51# 52SHL1NAME=xsec_fw 53SHL1TARGET= $(SHL1NAME) 54SHL1LIBS= $(SLB)$/fw.lib 55 56SHL1STDLIBS += \ 57 $(SALLIB) \ 58 $(CPPULIB) \ 59 $(CPPUHELPERLIB) 60 61SHL1IMPLIB = $(SHL1TARGET) 62SHL1DEF = $(MISC)$/$(SHL1TARGET).def 63DEF1NAME = $(SHL1TARGET) 64DEF1EXPORTFILE = xsec_fw.dxp 65 66# 67# The 2nd shared library 68# 69 70SHL2NAME=xsec_xmlsec 71.IF "$(GUI)"=="OS2" 72SHL2NAME=xsec_xs 73.ENDIF 74SHL2TARGET= $(SHL2NAME) 75 76 77SHL2LIBS= \ 78 $(SLB)$/xs_comm.lib 79 80.IF "$(CRYPTO_ENGINE)" == "mscrypto" 81SHL2LIBS += \ 82 $(SLB)$/xs_mscrypt.lib 83.ENDIF 84 85SHL2LIBS += \ 86 $(SLB)$/xs_nss.lib 87 88 89SHL2STDLIBS += \ 90 $(SALLIB) \ 91 $(CPPULIB) \ 92 $(CPPUHELPERLIB) \ 93 $(SALLIB) \ 94 $(SVLLIB) \ 95 $(TOOLSLIB) \ 96 $(COMPHELPERLIB) \ 97 $(CPPUHELPERLIB) \ 98 $(XMLOFFLIB) 99 100.IF "$(OS)"=="SOLARIS" 101SHL2STDLIBS +=-ldl 102.ENDIF 103 104.IF "$(ENABLE_NSS_MODULE)"=="YES" 105.IF "$(SYSTEM_NSS)"!="YES" 106.IF "$(NSPR_LIB)" != "" 107SHL2STDLIBS += $(NSPR_LIB) 108.ENDIF 109.IF "$(NSS_LIB)" != "" 110SHL2STDLIBS += $(NSS_LIB) 111.ENDIF 112.ELSE 113SHL2STDLIBS += $(NSS_LIBS) 114.ENDIF 115.ENDIF 116 117.IF "$(CRYPTO_ENGINE)" == "mscrypto" 118SHL2STDLIBS+= $(MSCRYPTOLIBS) 119# SHL2STDLIBS+= $(XMLSECLIB) $(LIBXML2LIB) $(NSS3LIB) $(NSPR4LIB) $(PLC4LIB) 120SHL2STDLIBS+= $(NSS3LIB) $(NSPR4LIB) 121.ELSE 122SHL2STDLIBS+= $(NSSCRYPTOLIBS) 123.ENDIF 124 125 126SHL2IMPLIB = $(SHL2TARGET) 127SHL2DEF = $(MISC)$/$(SHL2TARGET).def 128DEF2NAME = $(SHL2TARGET) 129.IF "$(CRYPTO_ENGINE)" == "mscrypto" 130DEF2EXPORTFILE = exports_xsmscrypt.dxp 131.ENDIF 132 133DEF2EXPORTFILE = exports_xsnss.dxp 134 135SRSFILELIST= \ 136 $(SRS)$/component.srs \ 137 $(SRS)$/dialogs.srs 138 139RESLIB1NAME=xmlsec 140RESLIB1IMAGES=$(PRJ)$/res 141RESLIB1SRSFILES= $(SRSFILELIST) 142 143SHL4TARGET=$(TARGET) 144SHL4LIBS=\ 145 $(SLB)$/helper.lib \ 146 $(SLB)$/dialogs.lib \ 147 $(SLB)$/component.lib 148 149SHL4STDLIBS=\ 150 $(CPPULIB) \ 151 $(CPPUHELPERLIB) \ 152 $(COMPHELPERLIB) \ 153 $(UCBHELPERLIB) \ 154 $(UNOTOOLSLIB) \ 155 $(VCLLIB) \ 156 $(TOOLSLIB) \ 157 $(SVTOOLLIB) \ 158 $(SALLIB) \ 159 $(SVLLIB) \ 160 $(XMLOFFLIB) \ 161 $(SVXCORELIB) 162 163SHL4VERSIONMAP = $(SOLARENV)/src/component.map 164SHL4DEPN= 165SHL4IMPLIB=i$(TARGET) 166SHL4DEF=$(MISC)$/$(SHL4TARGET).def 167DEF4NAME=$(SHL4TARGET) 168 169# --- Targets ---------------------------------------------------------- 170 171.INCLUDE : target.mk 172 173# --- Filter ----------------------------------------------------------- 174 175$(MISC)$/$(SHL3TARGET).flt: makefile.mk 176 $(TYPE) $(SHL3TARGET).flt > $@ 177 178ALLTAR : \ 179 $(MISC)/xmlsecurity.component \ 180 $(MISC)/xsec_fw.component \ 181 $(MISC)/xsec_xmlsec.component 182 183.IF "$(OS)" == "WNT" 184my_platform = .windows 185.END 186 187$(MISC)/xmlsecurity.component .ERRREMOVE : \ 188 $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component 189 $(XSLTPROC) --nonet --stringparam uri \ 190 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \ 191 $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component 192 193$(MISC)/xsec_fw.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 194 xsec_fw.component 195 $(XSLTPROC) --nonet --stringparam uri \ 196 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 197 $(SOLARENV)/bin/createcomponent.xslt xsec_fw.component 198 199$(MISC)/xsec_xmlsec.component .ERRREMOVE : \ 200 $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec.component 201 $(XSLTPROC) --nonet --stringparam uri \ 202 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \ 203 $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec$(my_platform).component 204