1*e95f39f8SAndre Fischer#/**************************************************************
2*e95f39f8SAndre Fischer# *
3*e95f39f8SAndre Fischer# * Licensed to the Apache Software Foundation (ASF) under one
4*e95f39f8SAndre Fischer# * or more contributor license agreements.  See the NOTICE file
5*e95f39f8SAndre Fischer# * distributed with this work for additional information
6*e95f39f8SAndre Fischer# * regarding copyright ownership.  The ASF licenses this file
7*e95f39f8SAndre Fischer# * to you under the Apache License, Version 2.0 (the
8*e95f39f8SAndre Fischer# * "License"); you may not use this file except in compliance
9*e95f39f8SAndre Fischer# * with the License.  You may obtain a copy of the License at
10*e95f39f8SAndre Fischer# *
11*e95f39f8SAndre Fischer# *   http://www.apache.org/licenses/LICENSE-2.0
12*e95f39f8SAndre Fischer# *
13*e95f39f8SAndre Fischer# * Unless required by applicable law or agreed to in writing,
14*e95f39f8SAndre Fischer# * software distributed under the License is distributed on an
15*e95f39f8SAndre Fischer# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*e95f39f8SAndre Fischer# * KIND, either express or implied.  See the License for the
17*e95f39f8SAndre Fischer# * specific language governing permissions and limitations
18*e95f39f8SAndre Fischer# * under the License.
19*e95f39f8SAndre Fischer# *
20*e95f39f8SAndre Fischer# *************************************************************/
21*e95f39f8SAndre Fischer
22*e95f39f8SAndre Fischer$(eval $(call gb_Library_Library,serf))
23*e95f39f8SAndre Fischer
24*e95f39f8SAndre Fischer$(eval $(call gb_Library_add_package_headers,serf,serf_inc))
25*e95f39f8SAndre Fischer
26*e95f39f8SAndre Fischer$(eval $(call gb_Library_set_include,serf,\
27*e95f39f8SAndre Fischer	$$(INCLUDE) \
28*e95f39f8SAndre Fischer	-I. \
29*e95f39f8SAndre Fischer	-I$(OUTDIR)/inc/apr \
30*e95f39f8SAndre Fischer	-I$(OUTDIR)/inc/apr-util \
31*e95f39f8SAndre Fischer	-I$(OUTDIR)/inc/external/zlib \
32*e95f39f8SAndre Fischer))
33*e95f39f8SAndre Fischer
34*e95f39f8SAndre Fischer$(eval $(call gb_Library_set_defs,serf,\
35*e95f39f8SAndre Fischer	$$(DEFS) \
36*e95f39f8SAndre Fischer	-DWIN32 -DNDEBUG -D_WINDOWS -D_USRDLL -DWIN32_EXPORTS \
37*e95f39f8SAndre Fischer))
38*e95f39f8SAndre Fischer
39*e95f39f8SAndre FischerORIGINAL_DEF_FILE=build/serf.def
40*e95f39f8SAndre FischerFIXED_DEF_FILE=build/fixed-serf.def
41*e95f39f8SAndre Fischer
42*e95f39f8SAndre Fischer$(call gb_LinkTarget_get_target,$(call gb_Library__get_linktargetname,serf)) : $(FIXED_DEF_FILE)
43*e95f39f8SAndre Fischer$(FIXED_DEF_FILE) : $(ORIGINAL_DEF_FILE)
44*e95f39f8SAndre Fischer	cp $< $@
45*e95f39f8SAndre Fischer	echo serf_bucket_request_set_CL >> $@
46*e95f39f8SAndre Fischer
47*e95f39f8SAndre Fischer$(eval $(call gb_Library_set_ldflags,serf,\
48*e95f39f8SAndre Fischer	$$(LDFLAGS) \
49*e95f39f8SAndre Fischer	-DEF:$(FIXED_DEF_FILE)	\
50*e95f39f8SAndre Fischer))
51*e95f39f8SAndre Fischer
52*e95f39f8SAndre Fischer$(eval $(call gb_Library_add_linked_libs,serf,\
53*e95f39f8SAndre Fischer	apr \
54*e95f39f8SAndre Fischer	apr-util \
55*e95f39f8SAndre Fischer	libeay32 \
56*e95f39f8SAndre Fischer	ssleay32 \
57*e95f39f8SAndre Fischer	zlib \
58*e95f39f8SAndre Fischer    $(gb_STDLIBS) \
59*e95f39f8SAndre Fischer))
60*e95f39f8SAndre Fischer
61*e95f39f8SAndre Fischer$(eval $(call gb_Library_add_cobjects,serf,\
62*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/aggregate_buckets \
63*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/request_buckets \
64*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/buckets \
65*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/simple_buckets \
66*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/file_buckets \
67*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/mmap_buckets \
68*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/socket_buckets \
69*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/response_buckets \
70*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/headers_buckets \
71*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/allocator \
72*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/dechunk_buckets \
73*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/deflate_buckets \
74*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/limit_buckets \
75*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/ssl_buckets \
76*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/barrier_buckets \
77*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/chunk_buckets \
78*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/bwtp_buckets \
79*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/buckets/iovec_buckets \
80*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/auth/auth \
81*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/auth/auth_basic \
82*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/auth/auth_digest \
83*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/auth/auth_kerb \
84*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/auth/auth_kerb_gss \
85*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/context \
86*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/incoming \
87*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/outgoing \
88*e95f39f8SAndre Fischer	serf/$(INPATH)/misc/build/serf-1.1.0/ssltunnel \
89*e95f39f8SAndre Fischer))
90