xref: /aoo41x/main/ucb/source/ucp/webdav/makefile.mk (revision 58b02f87)
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
24# UCP Version - Increase, if UCP libraray becomes incompatible.
25UCP_VERSION=1
26
27# Name for the UCP. Will become part of the library name (See below).
28UCP_NAME=dav
29
30# Relative path to project root.
31PRJ = ..$/..$/..
32
33# Project Name.
34PRJNAME=ucb
35
36TARGET=ucp$(UCP_NAME)
37
38ENABLE_EXCEPTIONS=TRUE
39USE_DEFFILE=TRUE
40NO_BSYMBOLIC=TRUE
41
42# --- Settings ---------------------------------------------------------
43
44.INCLUDE: settings.mk
45.IF "$(L10N_framework)"==""
46
47APRINCDIR=apr
48APRUTILINCDIR=apr-util
49SERFINCDIR=serf
50
51#
52# Extend the list of include paths depending on whether we use locally built
53# or system versions of libraries apr, apr-util, serf, libxml
54#
55# We have to use CFLAGS for this because PRJINC is too inflexible (it adds /inc to everyting.)
56#
57
58.IF "$(SYSTEM_APR)" == "YES"
59CFLAGS+= $(APR_CFLAGS)
60SHL1STDLIBS+=$(APR_LIBS)
61.ELSE
62CFLAGS+= -I$(SOLARINCDIR)$/$(APRINCDIR)
63SHL1STDLIBS+=$(INTERNAL_APR_LIBS)
64.ENDIF
65
66.IF "$(SYSTEM_APR_UTIL)" == "YES"
67CFLAGS+= $(APR_UTIL_CFLAGS)
68SHL1STDLIBS+=$(APR_UTIL_LIBS)
69.ELSE
70CFLAGS+= -I$(SOLARINCDIR)$/$(APR_UTIL_INCDIR)
71SHL1STDLIBS+=$(INTERNAL_APR_UTIL_LIBS)
72.ENDIF
73
74.IF "$(SYSTEM_SERF)" == "YES"
75CFLAGS+= $(SERF_CFLAGS)
76SHL1STDLIBS+=$(SERF_LIBS)
77.ELSE
78CFLAGS+= -I$(SOLARINCDIR)$/$(SERFINCDIR)
79SHL1STDLIBS+=$(INTERNAL_SERF_LIBS)
80.ENDIF
81
82.IF "$(SYSTEM_LIBXML)" == "YES"
83CFLAGS+= $(LIBXML_CFLAGS)
84.ELSE
85LIBXMLINCDIR=external$/libxml
86CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
87.ENDIF
88
89.IF "$(SYSTEM_OPENSSL)" == "YES"
90CFLAGS+= -I$(OPENSSL_CFLAGS)
91SHL1STDLIBS+= $(OPENSSLLIB)
92.ELSE
93SHL1STDLIBS+= $(OPENSSLLIBST)
94.ENDIF
95
96# --- General -----------------------------------------------------
97
98SLOFILES=\
99    $(SLO)$/webdavservices.obj \
100    $(SLO)$/webdavprovider.obj \
101    $(SLO)$/webdavcontent.obj \
102    $(SLO)$/webdavcontentcaps.obj \
103    $(SLO)$/webdavresultset.obj \
104    $(SLO)$/webdavdatasupplier.obj \
105    $(SLO)$/ContentProperties.obj \
106    $(SLO)$/DAVProperties.obj \
107    $(SLO)$/DAVSessionFactory.obj \
108    $(SLO)$/DAVResourceAccess.obj \
109    $(SLO)$/AprEnv.obj \
110    $(SLO)$/webdavresponseparser.obj \
111    $(SLO)$/SerfUri.obj \
112    $(SLO)$/SerfRequestProcessor.obj \
113    $(SLO)$/SerfRequestProcessorImpl.obj \
114    $(SLO)$/SerfRequestProcessorImplFac.obj \
115    $(SLO)$/SerfPropFindReqProcImpl.obj \
116    $(SLO)$/SerfPropPatchReqProcImpl.obj \
117    $(SLO)$/SerfGetReqProcImpl.obj \
118    $(SLO)$/SerfHeadReqProcImpl.obj \
119    $(SLO)$/SerfPutReqProcImpl.obj \
120    $(SLO)$/SerfPostReqProcImpl.obj \
121    $(SLO)$/SerfDeleteReqProcImpl.obj \
122    $(SLO)$/SerfMkColReqProcImpl.obj \
123    $(SLO)$/SerfCopyReqProcImpl.obj \
124    $(SLO)$/SerfMoveReqProcImpl.obj \
125    $(SLO)$/SerfSession.obj \
126    $(SLO)$/SerfCallbacks.obj \
127    $(SLO)$/SerfInputStream.obj \
128    $(SLO)$/DateTimeHelper.obj \
129    $(SLO)$/UCBDeadPropertyValue.obj
130
131LIB1TARGET=$(SLB)$/_$(TARGET).lib
132LIB1OBJFILES=$(SLOFILES)
133
134# --- Shared-Library ---------------------------------------------------
135
136SHL1TARGET=$(TARGET)$(UCP_VERSION)
137SHL1IMPLIB=i$(TARGET)
138
139SHL1VERSIONMAP=$(SOLARENV)/src/component.map
140
141SHL1STDLIBS+=\
142        $(CPPUHELPERLIB) \
143        $(CPPULIB)       \
144        $(SALLIB)        \
145        $(SALHELPERLIB)  \
146        $(UCBHELPERLIB)  \
147        $(COMPHELPERLIB) \
148        $(LIBXML2LIB)
149
150.IF "$(GUI)"=="WNT"
151SHL1STDLIBS+= $(WSOCK32LIB)
152.IF "$(WINDOWS_VISTA_PSDK)" != ""
153SHL1STDLIBS+= $(WS2_32LIB)
154.ENDIF
155.ELSE # WNT
156.IF "$(OS)"=="SOLARIS"
157SHL1STDLIBS+= -lnsl -lsocket -ldl
158.ENDIF # SOLARIS
159.ENDIF # WNT
160
161SHL1DEF=$(MISC)$/$(SHL1TARGET).def
162SHL1LIBS=$(LIB1TARGET)
163
164# --- Def-File ---------------------------------------------------------
165
166DEF1NAME=$(SHL1TARGET)
167
168.ENDIF # L10N_framework
169# --- Targets ----------------------------------------------------------
170
171.INCLUDE: target.mk
172
173ALLTAR : $(MISC)/ucpdav1.component
174
175$(MISC)/ucpdav1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
176        ucpdav1.component
177    $(XSLTPROC) --nonet --stringparam uri \
178        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
179        $(SOLARENV)/bin/createcomponent.xslt ucpdav1.component
180