Branch libreoffice-5-0-4
[LibreOffice.git] / bridges / Module_bridges.mk
blob534efda6936bdf49a4b02c552225ed0a7083576a
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_Module_Module,bridges))
12 $(eval $(call gb_Module_add_targets,bridges,\
13 Library_cpp_uno \
14 $(if $(ENABLE_JAVA),\
15 Jar_java_uno \
16 Library_java_uno \
17 $(if $(filter MACOSX,$(OS)),Package_jnilib_java_uno) \
18 ) \
19 $(if $(filter ARM,$(CPUNAME)),\
20 $(if $(filter IOS,$(OS)),\
21 CustomTarget_gcc3_ios_arm) \
22 $(if $(filter ANDROID LINUX,$(OS)),\
23 CustomTarget_gcc3_linux_arm) \
24 ) \
27 ifeq (,$(filter build,$(gb_Module_SKIPTARGETS)))
28 ifeq ($(strip $(bridges_SELECTED_BRIDGE)),)
29 $(call gb_Output_error,no bridge selected for build: bailing out)
30 else ifneq ($(words $(bridges_SELECTED_BRIDGE)),1)
31 $(call gb_Output_error,multiple bridges selected for build: $(bridges_SELECTED_BRIDGE))
32 endif
33 endif
35 # vim: set noet sw=4 ts=4: