Branch libreoffice-24-8-3
[LibreOffice.git] / external / libgpg-error / ExternalProject_libgpg-error.mk
blob88b9b2be504ad1f7cfca2997c996d189b80482cf
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,libgpg-error))
12 $(eval $(call gb_ExternalProject_register_targets,libgpg-error,\
13 build \
16 $(eval $(call gb_ExternalProject_use_autoconf,libgpg-error,build))
18 ifeq ($(COM),MSC)
19 $(call gb_ExternalProject_get_state_target,libgpg-error,build): $(call gb_Executable_get_target_for_build,cpp)
20 $(call gb_Trace_StartRange,libgpg-error,EXTERNAL)
21 $(call gb_ExternalProject_run,build,\
22 $(gb_WIN_GPG_cross_setup_exports) \
23 && MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
24 --enable-static \
25 --disable-shared \
26 --disable-rpath \
27 --disable-languages \
28 --disable-doc \
29 --disable-tests \
30 $(gb_WIN_GPG_platform_switches) \
31 && $(MAKE) \
33 $(call gb_Trace_EndRange,libgpg-error,EXTERNAL)
34 else
35 $(call gb_ExternalProject_get_state_target,libgpg-error,build):
36 $(call gb_Trace_StartRange,libgpg-error,EXTERNAL)
37 $(call gb_ExternalProject_run,build,\
38 MAKE=$(MAKE) $(gb_RUN_CONFIGURE) ./configure \
39 --disable-rpath \
40 --disable-languages \
41 --disable-doc \
42 CFLAGS="$(CFLAGS) $(call gb_ExternalProject_get_build_flags,libgpg-error)" \
43 CPPFLAGS="$(SOLARINC)" \
44 $(gb_CONFIGURE_PLATFORMS) \
45 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
46 $(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
47 && $(MAKE) \
49 $(call gb_Trace_EndRange,libgpg-error,EXTERNAL)
51 endif
52 # vim: set noet sw=4 ts=4: