Version 4.0.2.1, tag libreoffice-4.0.2.1
[LibreOffice.git] / libvisio / ExternalProject_libvisio.mk
blob38627990d270eccbaeacd7c6c7540f2d392ece77
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,\
15 build \
18 $(eval $(call gb_ExternalProject_use_externals,libvisio,\
19 boost_headers \
20 wpd \
21 wpg \
24 ifeq ($(OS)$(COM),WNTMSC)
26 ifeq ($(VCVER),90)
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" \
35 && touch $@
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 \
45 && touch $@
46 else
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 \
55 && touch $@
56 endif
58 else
60 $(call gb_ExternalProject_get_state_target,libvisio,build) :
61 cd $(EXTERNAL_WORKDIR) \
62 && PKG_CONFIG="" \
63 ./configure \
64 --with-pic \
65 --enable-static \
66 --disable-shared \
67 --without-docs \
68 --disable-debug \
69 --disable-werror \
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)) \
73 && touch $@
75 endif
77 # vim: set noet sw=4 ts=4: