1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval
$(call gb_ExternalProject_ExternalProject
,serf
))
12 $(eval
$(call gb_ExternalProject_use_externals
,serf
,\
16 $(eval
$(call gb_ExternalProject_register_targets
,serf
,\
20 $(eval
$(call gb_ExternalProject_use_nmake
,serf
,build
))
23 $(call gb_ExternalProject_get_state_target
,serf
,build
):
24 $(call gb_ExternalProject_run
,build
,\
26 APRUTIL_SRC
="..\apr_util" \
27 OPENSSL_SRC
="..\openssl" \
29 nmake
-nologo
-f serf.mak \
30 $(if
$(MSVC_USE_DEBUG_RUNTIME
),DEBUG_BUILD
=T Debug
,Release
)/serf-1.lib \
34 # serf is using SERF_LIBS variable, so pass it empty
35 $(call gb_ExternalProject_get_state_target
,serf
,build
):
36 +$(call gb_ExternalProject_run
,build
,\
37 .
/configure SERF_LIBS
= \
38 --enable-option-checking
=fatal \
39 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
))\
40 $(if
$(SYSTEM_APR
),,--with-apr
=$(call gb_UnpackedTarball_get_dir
,apr
)/apr-1-config
) \
41 $(if
$(SYSTEM_APR
),,--with-apr-util
=$(call gb_UnpackedTarball_get_dir
,apr_util
)/apu-1-config
) \
42 $(if
$(SYSTEM_OPENSSL
),,--with-openssl
=$(call gb_UnpackedTarball_get_dir
,openssl
)) \
43 && $(MAKE
) libserf-1.la \
48 # vim: set noet sw=4 ts=4: