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
,libassuan
))
12 $(eval
$(call gb_ExternalProject_register_targets
,libassuan
,\
16 $(eval
$(call gb_ExternalProject_use_autoconf
,libassuan
,build
))
18 $(eval
$(call gb_ExternalProject_use_externals
,libassuan
,\
23 gb_ExternalProject_libassuan_host
:= $(if
$(filter INTEL
,$(CPUNAME
)),i686-mingw32
,x86_64-w64-mingw32
)
24 gb_ExternalProject_libassuan_target
:= $(if
$(filter INTEL
,$(CPUNAME
)),pe-i386
,pe-x86-64
)
25 $(call gb_ExternalProject_get_state_target
,libassuan
,build
): $(call gb_Executable_get_target
,cpp)
26 $(call gb_ExternalProject_run
,build
,\
32 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
33 CXXFLAGS
="$(CXXFLAGS)" \
34 GPG_ERROR_CFLAGS
="$(GPG_ERROR_CFLAGS)" \
35 GPG_ERROR_LIBS
="$(GPG_ERROR_LIBS)" \
36 --host
=$(gb_ExternalProject_libassuan_host
) \
37 RC
='windres -O COFF --target=$(gb_ExternalProject_libassuan_target) --preprocessor=$(call gb_Executable_get_target,cpp) --preprocessor-arg=-+ -DRC_INVOKED -DWINAPI_FAMILY=0 $(SOLARINC)' \
42 $(call gb_ExternalProject_get_state_target
,libassuan
,build
):
43 $(call gb_ExternalProject_run
,build
,\
47 GPG_ERROR_CFLAGS
="$(GPG_ERROR_CFLAGS)" \
48 GPG_ERROR_LIBS
="$(GPG_ERROR_LIBS)" \
49 $(if
$(filter LINUX
,$(OS
)), \
50 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
51 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
52 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
53 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
54 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
56 $(if
$(filter MACOSX
,$(OS
)),\
57 && $(PERL
) $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
58 $(EXTERNAL_WORKDIR
)/src
/.libs
/libassuan
.0.dylib \
63 # vim: set noet sw=4 ts=4: