Branch libreoffice-24-8-3
[LibreOffice.git] / external / libnumbertext / ExternalProject_libnumbertext.mk
blob71376be45dbd6b5f1d75f99a0d319ce9659cd165
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,libnumbertext))
12 $(eval $(call gb_ExternalProject_use_externals,libnumbertext, \
15 $(eval $(call gb_ExternalProject_register_targets,libnumbertext,\
16 build \
19 libnumbertext_CXXFLAGS=$(CXXFLAGS) $(CXXFLAGS_CXX11) $(gb_EMSCRIPTEN_CXXFLAGS)
21 libnumbertext_CPPFLAGS+=$(gb_COMPILERDEFS_STDLIB_DEBUG) $(gb_EMSCRIPTEN_CPPFLAGS)
23 $(call gb_ExternalProject_get_state_target,libnumbertext,build):
24 $(call gb_Trace_StartRange,libnumbertext,EXTERNAL)
25 $(call gb_ExternalProject_run,build,\
26 LIBS="$(gb_STDLIBS) $(LIBS)" \
27 $(SHELL) $(gb_RUN_CONFIGURE) ./configure --disable-shared --with-pic \
28 $(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
29 $(if $(ENABLE_WERROR),--enable-werror,--disable-werror) \
30 $(gb_CONFIGURE_PLATFORMS) \
31 $(if $(libnumbertext_CPPFLAGS),CPPFLAGS='$(libnumbertext_CPPFLAGS)') \
32 CXXFLAGS="$(libnumbertext_CXXFLAGS) \
33 $(call gb_ExternalProject_get_build_flags,libnumbertext) \
34 $(gb_VISIBILITY_FLAGS) $(gb_VISIBILITY_FLAGS_CXX)" \
35 LDFLAGS="$(call gb_ExternalProject_get_link_flags,libnumbertext)" \
36 && cd src && $(MAKE) \
38 $(call gb_Trace_EndRange,libnumbertext,EXTERNAL)
40 # vim: set noet sw=4 ts=4: