Bump for 4.0-15
[LibreOffice.git] / extensions / Executable_pluginapp.bin.mk
blob8bfea65f84f58be289e901bb6032738dc93896b9
1 # -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
3 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License or as specified alternatively below. You may obtain a copy of
8 # the License at http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
15 # The Initial Developer of the Original Code is
16 # Peter Foley <pefoley2@verizon.net>
17 # Portions created by the Initial Developer are Copyright (C) 2011 the
18 # Initial Developer. All Rights Reserved.
20 # Major Contributor(s):
22 # For minor contributions see the git repository.
24 # Alternatively, the contents of this file may be used under the terms of
25 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
26 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
27 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
28 # instead of those above.
31 $(eval $(call gb_Executable_Executable,pluginapp.bin))
33 $(eval $(call gb_Executable_use_external,pluginapp.bin,npapi_headers))
35 $(eval $(call gb_Executable_set_include,pluginapp.bin,\
36 $$(INCLUDE) \
37 -I$(SRCDIR)/extensions/source/plugin/inc \
40 $(eval $(call gb_Executable_use_sdk_api,pluginapp.bin))
42 $(eval $(call gb_Executable_add_exception_objects,pluginapp.bin,\
43 extensions/source/plugin/unx/npwrap \
44 extensions/source/plugin/unx/npnapi \
47 $(eval $(call gb_Executable_use_static_libraries,pluginapp.bin,\
48 plugcon \
51 $(eval $(call gb_Executable_use_libraries,pluginapp.bin,\
52 sal \
55 ifeq ($(OS),SOLARIS)
56 $(eval $(call gb_Executable_add_libs,pluginapp.bin,\
57 -lXm \
58 -lXt \
59 -lXext \
60 -lX11 \
61 -ldl \
63 else ifeq ($(filter-out FREEBSD NETBSD OPENBSD DRAGONFLY,$(OS)),)
64 $(eval $(call gb_Executable_add_libs,pluginapp.bin,\
65 -lXt \
66 -lXext \
67 -lX11 \
69 else ifeq ($(OS),AIX)
70 $(eval $(call gb_Executable_add_libs,pluginapp.bin,\
71 -lXpm \
72 -lXmu \
73 -lXt \
74 -lXext \
75 -lX11 \
76 -ldl \
78 else
79 $(eval $(call gb_Executable_add_libs,pluginapp.bin,\
80 -lXt \
81 -lXext \
82 -lX11 \
83 -ldl \
85 endif
88 ifeq ($(ENABLE_GTK),TRUE)
89 $(eval $(call gb_Executable_use_externals,pluginapp.bin,\
90 gthread \
91 gtk \
94 # the orignal dmakefile said: don't ask, it's ugly
95 ifeq ($(OS),SOLARIS)
96 $(eval $(call gb_Executable_set_ldflags,pluginapp.bin,\
97 -z nodefs \
99 endif
101 endif
103 # vim:set shiftwidth=4 softtabstop=4 expandtab: