Branch libreoffice-5-0-4
[LibreOffice.git] / extensions / StaticLibrary_plugcon.mk
blob4992309c62cc18eeaa21e631f11626c0566a4709
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
4 # This file is part of the LibreOffice project.
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 ifeq ($(OS),WNT)
12 $(error only for UNX)
13 endif
15 $(eval $(call gb_StaticLibrary_StaticLibrary,plugcon))
17 $(eval $(call gb_StaticLibrary_use_externals,plugcon,\
18 boost_headers \
19 npapi_headers \
22 $(eval $(call gb_StaticLibrary_set_include,plugcon,\
23 $$(INCLUDE) \
24 -I$(SRCDIR)/extensions/source/plugin/inc \
27 $(eval $(call gb_StaticLibrary_use_api,plugcon,\
28 offapi \
29 udkapi \
32 ifeq ($(ENABLE_JAVA),TRUE)
33 $(eval $(call gb_StaticLibrary_add_defs,plugcon,\
34 -DOJI \
37 endif # ENABLE_JAVA=YES
39 ifeq ($(SYSTEM_MOZILLA),YES)
40 $(eval $(call gb_StaticLibrary_add_defs,plugcon,\
41 -DSYSTEM_MOZILLA \
43 endif # SYSTEM_MOZILLA=YES
45 ifeq ($(ENABLE_GTK),TRUE)
46 $(eval $(call gb_StaticLibrary_add_defs,plugcon,\
47 -DENABLE_GTK \
50 $(eval $(call gb_StaticLibrary_use_external,plugcon,gtk))
52 # Gtk uses cairo, and if we build internal cairo, the linker could
53 # pick up our cairo libs before they're fully ready, causing problems
54 # (e.g. using our libpixman and system libcairo). Depend on cairo
55 # to delay build until cairo is done.
56 ifeq ($(SYSTEM_CAIRO),)
57 $(eval $(call gb_StaticLibrary_use_external,plugcon,cairo))
58 endif
59 endif # ENABLE_GTK=TRUE
61 $(eval $(call gb_StaticLibrary_add_exception_objects,plugcon,\
62 extensions/source/plugin/unx/mediator \
63 extensions/source/plugin/unx/plugcon \
66 # vim:set noet sw=4 ts=4: