diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-01-28 10:13:50 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-01-28 10:40:12 +0100 |
commit | 093a5c95a3724eb4795713c5cb4472611ca22324 (patch) | |
tree | 2ae6ecf035bbd4ad20543483e1c5b2059d97c8ce /libmspub/ExternalProject_libmspub.mk | |
parent | 0c5225b871b6b1a1121c3f803d946392a4676e97 (diff) |
Upload libmspub 0.0.4
Change-Id: Icb47740815fabff2338196ec194a51a23f7adadd
Diffstat (limited to 'libmspub/ExternalProject_libmspub.mk')
-rw-r--r-- | libmspub/ExternalProject_libmspub.mk | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/libmspub/ExternalProject_libmspub.mk b/libmspub/ExternalProject_libmspub.mk new file mode 100644 index 000000000000..a971b750befa --- /dev/null +++ b/libmspub/ExternalProject_libmspub.mk @@ -0,0 +1,76 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_ExternalProject_ExternalProject,libmspub)) + +$(eval $(call gb_ExternalProject_use_unpacked,libmspub,mspub)) + +$(eval $(call gb_ExternalProject_register_targets,libmspub,\ + build \ +)) + +$(eval $(call gb_ExternalProject_use_externals,libmspub,\ + icu \ + wpd \ + wpg \ +)) + +ifeq ($(OS)$(COM),WNTMSC) + +ifeq ($(VCVER),90) +$(call gb_ExternalProject_get_state_target,libmspub,build) : + cd $(EXTERNAL_WORKDIR)/build/win32 \ + && export LIBWPD_INCLUDE_DIR=$(OUTDIR)/inc/external \ + && export LIBWPG_INCLUDE_DIR=$(OUTDIR)/inc/external \ + && export ZLIB_INCLUDE_DIR=$(OUTDIR)/inc/external/zlib \ + && export ICU_INCLUDE_DIR=$(OUTDIR)/inc/external \ + && $(COMPATH)/vcpackages/vcbuild.exe libmspub.vcproj "Release|Win32" \ + && touch $@ +else ifeq ($(VCVER),100) +$(call gb_ExternalProject_get_state_target,libmspub,build) : + cd $(EXTERNAL_WORKDIR)/build/win32 \ + && export LIBWPD_INCLUDE_DIR=$(OUTDIR)/inc/external \ + && export LIBWPG_INCLUDE_DIR=$(OUTDIR)/inc/external \ + && export ZLIB_INCLUDE_DIR=$(OUTDIR)/inc/external/zlib \ + && export ICU_INCLUDE_DIR=$(OUTDIR)/inc/external \ + && msbuild.exe libmspub.vcxproj /p:Configuration=Release \ + && touch $@ +else +$(call gb_ExternalProject_get_state_target,libmspub,build) : + cd $(EXTERNAL_WORKDIR)/build/win32 \ + && export LIBWPD_INCLUDE_DIR=$(OUTDIR)/inc/external \ + && export LIBWPG_INCLUDE_DIR=$(OUTDIR)/inc/external \ + && export ZLIB_INCLUDE_DIR=$(OUTDIR)/inc/external/zlib \ + && export ICU_INCLUDE_DIR=$(OUTDIR)/inc/external \ + && msbuild.exe libmspub.vcxproj /p:PlatformToolset=v110 /p:VisualStudioVersion=11.0 /p:Configuration=Release \ + && touch $@ +endif + +else + +$(call gb_ExternalProject_get_state_target,libmspub,build) : + cd $(EXTERNAL_WORKDIR) \ + && export PKG_CONFIG="" \ + && export ICU_LIBS=" " && export ICU_CFLAGS="-I$(OUTDIR)/inc/external" \ + && export LIBMSPUB_CFLAGS="$(WPG_CFLAGS) $(WPD_CFLAGS)" \ + && export LIBMSPUB_LIBS="$(WPG_LIBS) $(WPD_LIBS)" \ + && ./configure \ + --with-pic \ + --enable-static \ + --disable-shared \ + --without-docs \ + --disable-debug \ + --disable-werror \ + $(if $(filter YES,$(CROSS_COMPILING)),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \ + && (cd $(EXTERNAL_WORKDIR)/src/lib && $(MAKE)) \ + && touch $@ + +endif + +# vim: set noet sw=4 ts=4: |