xref: /aoo41x/main/ucb/source/ucp/webdav/makefile.mk (revision 7871dc3e)
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
47.IF "$(SYSTEM_NEON)" != "YES"
48
49@all:
50    @echo "no system neon is used...."
51
52.ELSE
53
54NEONINCDIR=external$/neon
55
56.IF "$(SYSTEM_NEON)" != "YES"
57.INCLUDE: $(SOLARINCDIR)$/$(NEONINCDIR)$/version.mk
58.ENDIF
59
60CFLAGS+= -DNEON_VERSION=0x$(NEON_VERSION)
61
62.IF "$(SYSTEM_NEON)" == "YES"
63CFLAGS+= $(NEON_CFLAGS)
64.ELSE
65CFLAGS+= -I$(SOLARINCDIR)$/$(NEONINCDIR)
66.ENDIF
67
68.IF "$(SYSTEM_LIBXML)" == "YES"
69CFLAGS+= $(LIBXML_CFLAGS)
70.ELSE
71LIBXMLINCDIR=external$/libxml
72CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
73.ENDIF
74
75.IF "$(SYSTEM_OPENSSL)" == "YES"
76CFLAGS+= $(OPENSSL_CFLAGS)
77.ENDIF
78
79# --- General -----------------------------------------------------
80
81SLOFILES=\
82    $(SLO)$/webdavservices.obj \
83    $(SLO)$/webdavprovider.obj \
84    $(SLO)$/webdavcontent.obj \
85    $(SLO)$/webdavcontentcaps.obj \
86    $(SLO)$/webdavresultset.obj \
87    $(SLO)$/webdavdatasupplier.obj \
88    $(SLO)$/ContentProperties.obj \
89    $(SLO)$/DAVProperties.obj \
90    $(SLO)$/DAVSessionFactory.obj \
91    $(SLO)$/DAVResourceAccess.obj \
92    $(SLO)$/NeonUri.obj \
93    $(SLO)$/NeonInputStream.obj \
94    $(SLO)$/NeonPropFindRequest.obj \
95    $(SLO)$/NeonHeadRequest.obj \
96    $(SLO)$/NeonSession.obj \
97    $(SLO)$/NeonLockStore.obj \
98    $(SLO)$/DateTimeHelper.obj \
99    $(SLO)$/LinkSequence.obj \
100    $(SLO)$/LockSequence.obj \
101    $(SLO)$/LockEntrySequence.obj \
102    $(SLO)$/UCBDeadPropertyValue.obj
103
104LIB1TARGET=$(SLB)$/_$(TARGET).lib
105LIB1OBJFILES=$(SLOFILES)
106
107# --- Shared-Library ---------------------------------------------------
108
109SHL1TARGET=$(TARGET)$(UCP_VERSION)
110SHL1IMPLIB=i$(TARGET)
111
112SHL1VERSIONMAP=$(SOLARENV)/src/component.map
113
114SHL1STDLIBS=\
115        $(CPPUHELPERLIB) \
116        $(CPPULIB)       \
117        $(SALLIB)        \
118        $(SALHELPERLIB)  \
119        $(UCBHELPERLIB)  \
120        $(COMPHELPERLIB) \
121        $(NEON3RDLIB)    \
122        $(LIBXML2LIB)
123
124.IF "$(GUI)"=="WNT"
125SHL1STDLIBS+= $(WSOCK32LIB)
126.IF "$(WINDOWS_VISTA_PSDK)" != ""
127SHL1STDLIBS+= $(WS2_32LIB)
128.ENDIF
129SHL1STDLIBS+= $(OPENSSLLIB)
130.ELSE # WNT
131.IF "$(OS)"=="SOLARIS"
132SHL1STDLIBS+= -lnsl -lsocket -ldl
133.ENDIF # SOLARIS
134.IF "$(OS)"=="OS2"
135SHL1STDLIBS+= pthread.lib libz.lib
136.ENDIF # OS2
137.IF "$(SYSTEM_OPENSSL)"=="YES"
138SHL1STDLIBS+= $(OPENSSLLIB)
139.ELSE
140SHL1STDLIBS+= $(OPENSSLLIBST)
141.ENDIF
142.ENDIF # WNT
143
144SHL1DEF=$(MISC)$/$(SHL1TARGET).def
145SHL1LIBS=$(LIB1TARGET)
146
147# --- Def-File ---------------------------------------------------------
148
149DEF1NAME=$(SHL1TARGET)
150
151.ENDIF #"$(DISABLE_NEON)" == "TRUE"
152
153.ENDIF # L10N_framework
154# --- Targets ----------------------------------------------------------
155
156.INCLUDE: target.mk
157
158ALLTAR : $(MISC)/ucpdav1.component
159
160$(MISC)/ucpdav1.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \
161        ucpdav1.component
162    $(XSLTPROC) --nonet --stringparam uri \
163        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \
164        $(SOLARENV)/bin/createcomponent.xslt ucpdav1.component
165