LOK: tilebench improvements
[LibreOffice.git] / external / serf / ExternalProject_serf.mk
blobafa2018a73fa0dcf1505a95d0756963888202695
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,\
13 apr \
16 $(eval $(call gb_ExternalProject_register_targets,serf,\
17 build \
20 $(eval $(call gb_ExternalProject_use_nmake,serf,build))
22 ifeq ($(COM),MSC)
23 $(call gb_ExternalProject_get_state_target,serf,build):
24 $(call gb_ExternalProject_run,build,\
25 APR_SRC="..\apr" \
26 APRUTIL_SRC="..\apr_util" \
27 OPENSSL_SRC="..\openssl" \
28 ZLIB_SRC="..\zlib" \
29 nmake -nologo -f serf.mak \
30 $(if $(MSVC_USE_DEBUG_RUNTIME),DEBUG_BUILD=T Debug,Release)/serf-1.lib \
33 else
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 \
46 endif
48 # vim: set noet sw=4 ts=4: