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" && "$(SYSTEM_NSS)"!="YES" 105.IF "$(NSPR_LIB)" != "" 106SHL2STDLIBS += $(NSPR_LIB) 107.ENDIF 108.IF "$(NSS_LIB)" != "" 109SHL2STDLIBS += $(NSS_LIB) 110.ENDIF 111.ENDIF 112 113.IF "$(CRYPTO_ENGINE)" == "mscrypto" 114SHL2STDLIBS+= $(MSCRYPTOLIBS) 115# SHL2STDLIBS+= $(XMLSECLIB) $(LIBXML2LIB) $(NSS3LIB) $(NSPR4LIB) $(PLC4LIB) 116SHL2STDLIBS+= $(NSS3LIB) $(NSPR4LIB) 117.ELSE 118SHL2STDLIBS+= $(NSSCRYPTOLIBS) 119.ENDIF 120 121 122SHL2IMPLIB = $(SHL2TARGET) 123SHL2DEF = $(MISC)$/$(SHL2TARGET).def 124DEF2NAME = $(SHL2TARGET) 125.IF "$(CRYPTO_ENGINE)" == "mscrypto" 126DEF2EXPORTFILE = exports_xsmscrypt.dxp 127.ENDIF 128 129DEF2EXPORTFILE = exports_xsnss.dxp 130 131SRSFILELIST= \ 132 $(SRS)$/component.srs \ 133 $(SRS)$/dialogs.srs 134 135RESLIB1NAME=xmlsec 136RESLIB1IMAGES=$(PRJ)$/res 137RESLIB1SRSFILES= $(SRSFILELIST) 138 139SHL4TARGET=$(TARGET) 140.IF "$(GUI)"=="OS2" 141SHL4TARGET=xmlsecur 142.ENDIF 143SHL4LIBS=\ 144 $(SLB)$/helper.lib \ 145 $(SLB)$/dialogs.lib \ 146 $(SLB)$/component.lib 147 148SHL4STDLIBS=\ 149 $(CPPULIB) \ 150 $(CPPUHELPERLIB) \ 151 $(COMPHELPERLIB) \ 152 $(UCBHELPERLIB) \ 153 $(UNOTOOLSLIB) \ 154 $(VCLLIB) \ 155 $(TOOLSLIB) \ 156 $(SVTOOLLIB) \ 157 $(SALLIB) \ 158 $(SVLLIB) \ 159 $(XMLOFFLIB) \ 160 $(SVXCORELIB) 161 162SHL4VERSIONMAP = $(SOLARENV)/src/component.map 163SHL4DEPN= 164SHL4IMPLIB=i$(TARGET) 165SHL4DEF=$(MISC)$/$(SHL4TARGET).def 166DEF4NAME=$(SHL4TARGET) 167 168# --- Targets ---------------------------------------------------------- 169 170.INCLUDE : target.mk 171 172# --- Filter ----------------------------------------------------------- 173 174$(MISC)$/$(SHL3TARGET).flt: makefile.mk 175 $(TYPE) $(SHL3TARGET).flt > $@ 176 177ALLTAR : \ 178 $(MISC)/xmlsecurity.component \ 179 $(MISC)/xsec_fw.component \ 180 $(MISC)/xsec_xmlsec.component 181 182.IF "$(OS)" == "WNT" 183my_platform = .windows 184.END 185 186$(MISC)/xmlsecurity.component .ERRREMOVE : \ 187 $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component 188 $(XSLTPROC) --nonet --stringparam uri \ 189 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \ 190 $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component 191 192$(MISC)/xsec_fw.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 193 xsec_fw.component 194 $(XSLTPROC) --nonet --stringparam uri \ 195 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 196 $(SOLARENV)/bin/createcomponent.xslt xsec_fw.component 197 198$(MISC)/xsec_xmlsec.component .ERRREMOVE : \ 199 $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec.component 200 $(XSLTPROC) --nonet --stringparam uri \ 201 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \ 202 $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec$(my_platform).component 203