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
,libvisio
))
12 $(eval
$(call gb_ExternalProject_use_unpacked
,libvisio
,visio
))
14 $(eval
$(call gb_ExternalProject_register_targets
,libvisio
,\
18 $(eval
$(call gb_ExternalProject_use_externals
,libvisio
,\
24 ifeq ($(OS
)$(COM
),WNTMSC
)
27 $(call gb_ExternalProject_get_state_target
,libvisio
,build
) :
28 cd
$(EXTERNAL_WORKDIR
)/build
/win32 \
29 && export BOOST_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
30 && export LIBWPD_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
31 && export LIBWPG_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
32 && export LIBXML_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
33 && export ZLIB_INCLUDE_DIR
=$(OUTDIR
)/inc
/external
/zlib \
34 && $(COMPATH
)/vcpackages
/vcbuild.exe libvisio.vcproj
"Release|Win32" \
36 else ifeq ($(VCVER
),100)
37 $(call gb_ExternalProject_get_state_target
,libvisio
,build
) :
38 cd
$(EXTERNAL_WORKDIR
)/build
/win32 \
39 && export BOOST_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
40 && export LIBWPD_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
41 && export LIBWPG_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
42 && export LIBXML_INCLUDE_DIR
=$(OUTDIR
)/inc
/extrenal \
43 && export ZLIB_INCLUDE_DIR
=$(OUTDIR
)/inc
/external
/zlib \
44 && msbuild.exe libvisio.vcxproj
/p
:Configuration
=Release \
47 $(call gb_ExternalProject_get_state_target
,libvisio
,build
) :
48 cd
$(EXTERNAL_WORKDIR
)/build
/win32 \
49 && export BOOST_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
50 && export LIBWPD_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
51 && export LIBWPG_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
52 && export LIBXML_INCLUDE_DIR
=$(OUTDIR
)/inc
/external \
53 && export ZLIB_INCLUDE_DIR
=$(OUTDIR
)/inc
/external
/zlib \
54 && msbuild.exe libvisio.vcxproj
/p
:PlatformToolset
=v110
/p
:Configuration
=Release \
60 $(call gb_ExternalProject_get_state_target
,libvisio
,build
) :
61 cd
$(EXTERNAL_WORKDIR
) \
70 $(if
$(filter NO
,$(SYSTEM_BOOST
)),CXXFLAGS
=-I
$(OUTDIR
)/inc
/external
) \
71 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
72 && (cd
$(EXTERNAL_WORKDIR
)/src
/lib
&& $(MAKE
)) \
77 # vim: set noet sw=4 ts=4: