xref: /aoo42x/main/xmlsecurity/util/makefile.mk (revision cc99daad)
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
71SHL2TARGET= $(SHL2NAME)
72
73
74SHL2LIBS= \
75	$(SLB)$/xs_comm.lib
76
77.IF "$(CRYPTO_ENGINE)" == "mscrypto"
78SHL2LIBS += \
79	$(SLB)$/xs_mscrypt.lib
80.ENDIF
81
82SHL2LIBS += \
83	$(SLB)$/xs_nss.lib
84
85
86SHL2STDLIBS +=			\
87	$(SALLIB)			\
88	$(CPPULIB)			\
89	$(CPPUHELPERLIB)	\
90	$(SALLIB)	\
91	$(SVLLIB)			\
92	$(TOOLSLIB)			\
93	$(COMPHELPERLIB)	\
94	$(CPPUHELPERLIB)	\
95	$(XMLOFFLIB)
96
97.IF "$(OS)"=="SOLARIS"
98SHL2STDLIBS +=-ldl
99.ENDIF
100
101.IF "$(SYSTEM_MOZILLA)" == "YES"
102.IF "$(NSPR_LIB)" != ""
103SHL2STDLIBS += $(NSPR_LIB)
104.ENDIF
105.IF "$(NSS_LIB)" != ""
106SHL2STDLIBS += $(NSS_LIB)
107.ENDIF
108.ENDIF
109
110.IF "$(CRYPTO_ENGINE)" == "mscrypto"
111SHL2STDLIBS+= $(MSCRYPTOLIBS)
112# SHL2STDLIBS+= $(XMLSECLIB) $(LIBXML2LIB) $(NSS3LIB) $(NSPR4LIB) $(PLC4LIB)
113SHL2STDLIBS+= $(NSS3LIB) $(NSPR4LIB)
114.ELSE
115SHL2STDLIBS+= $(NSSCRYPTOLIBS)
116.ENDIF
117
118
119SHL2IMPLIB = $(SHL2TARGET)
120SHL2DEF = $(MISC)$/$(SHL2TARGET).def
121DEF2NAME = $(SHL2TARGET)
122.IF "$(CRYPTO_ENGINE)" == "mscrypto"
123DEF2EXPORTFILE = exports_xsmscrypt.dxp
124.ENDIF
125
126DEF2EXPORTFILE = exports_xsnss.dxp
127
128SRSFILELIST=	\
129                $(SRS)$/component.srs   \
130                $(SRS)$/dialogs.srs
131
132RESLIB1NAME=xmlsec
133RESLIB1IMAGES=$(PRJ)$/res
134RESLIB1SRSFILES= $(SRSFILELIST)
135
136SHL4TARGET=$(TARGET)
137SHL4LIBS=\
138                $(SLB)$/helper.lib      \
139                $(SLB)$/dialogs.lib     \
140                $(SLB)$/component.lib
141
142SHL4STDLIBS=\
143                $(CPPULIB)			\
144				$(CPPUHELPERLIB)	\
145				$(COMPHELPERLIB)	\
146				$(UCBHELPERLIB)	    \
147				$(UNOTOOLSLIB)	    \
148				$(VCLLIB)			\
149				$(TOOLSLIB) 		\
150				$(SVTOOLLIB) 		\
151				$(SALLIB)			\
152				$(SVLLIB)			\
153				$(XMLOFFLIB)		\
154				$(SVXCORELIB)
155
156SHL4VERSIONMAP = $(SOLARENV)/src/component.map
157SHL4DEPN=
158SHL4IMPLIB=i$(TARGET)
159SHL4DEF=$(MISC)$/$(SHL4TARGET).def
160DEF4NAME=$(SHL4TARGET)
161
162# --- Targets ----------------------------------------------------------
163
164.INCLUDE :  target.mk
165
166# --- Filter -----------------------------------------------------------
167
168$(MISC)$/$(SHL3TARGET).flt: makefile.mk
169	$(TYPE) $(SHL3TARGET).flt > $@
170
171ALLTAR : \
172    $(MISC)/xmlsecurity.component \
173    $(MISC)/xsec_fw.component \
174    $(MISC)/xsec_xmlsec.component
175
176.IF "$(OS)" == "WNT"
177my_platform = .windows
178.END
179
180$(MISC)/xmlsecurity.component .ERRREMOVE : \
181        $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
182    $(XSLTPROC) --nonet --stringparam uri \
183        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \
184        $(SOLARENV)/bin/createcomponent.xslt xmlsecurity.component
185
186$(MISC)/xsec_fw.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
187        xsec_fw.component
188    $(XSLTPROC) --nonet --stringparam uri \
189        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
190        $(SOLARENV)/bin/createcomponent.xslt xsec_fw.component
191
192$(MISC)/xsec_xmlsec.component .ERRREMOVE : \
193        $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec.component
194    $(XSLTPROC) --nonet --stringparam uri \
195        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL2TARGETN:f)' -o $@ \
196        $(SOLARENV)/bin/createcomponent.xslt xsec_xmlsec$(my_platform).component
197