2011-12-19 15:09:48 -06:00
|
|
|
# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
|
2011-12-17 15:11:57 -06:00
|
|
|
#
|
|
|
|
#
|
2013-04-24 11:14:03 -05:00
|
|
|
# This file is part of the LibreOffice project.
|
2011-12-17 15:11:57 -06:00
|
|
|
#
|
2013-04-24 11:14:03 -05:00
|
|
|
# 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/.
|
2011-12-17 15:11:57 -06:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
$(eval $(call gb_Executable_Executable,pluginapp.bin))
|
|
|
|
|
2012-11-15 11:09:55 -06:00
|
|
|
$(eval $(call gb_Executable_use_external,pluginapp.bin,npapi_headers))
|
2012-01-11 11:20:48 -06:00
|
|
|
|
2011-12-17 15:11:57 -06:00
|
|
|
$(eval $(call gb_Executable_set_include,pluginapp.bin,\
|
|
|
|
$$(INCLUDE) \
|
2011-12-17 15:11:57 -06:00
|
|
|
-I$(SRCDIR)/extensions/source/plugin/inc \
|
2011-12-17 15:11:57 -06:00
|
|
|
))
|
|
|
|
|
2012-07-02 08:55:53 -05:00
|
|
|
$(eval $(call gb_Executable_use_sdk_api,pluginapp.bin))
|
2011-12-17 15:11:57 -06:00
|
|
|
|
|
|
|
$(eval $(call gb_Executable_add_exception_objects,pluginapp.bin,\
|
|
|
|
extensions/source/plugin/unx/npwrap \
|
|
|
|
extensions/source/plugin/unx/npnapi \
|
2012-03-12 10:24:34 -05:00
|
|
|
))
|
|
|
|
|
2012-04-07 16:22:08 -05:00
|
|
|
$(eval $(call gb_Executable_use_static_libraries,pluginapp.bin,\
|
2012-03-12 10:24:34 -05:00
|
|
|
plugcon \
|
2011-12-17 15:11:57 -06:00
|
|
|
))
|
|
|
|
|
2012-04-07 16:22:08 -05:00
|
|
|
$(eval $(call gb_Executable_use_libraries,pluginapp.bin,\
|
2011-12-17 15:11:57 -06:00
|
|
|
sal \
|
|
|
|
))
|
|
|
|
|
|
|
|
ifeq ($(OS),SOLARIS)
|
|
|
|
$(eval $(call gb_Executable_add_libs,pluginapp.bin,\
|
|
|
|
-lXm \
|
|
|
|
-lXt \
|
|
|
|
-lXext \
|
|
|
|
-lX11 \
|
|
|
|
-ldl \
|
|
|
|
))
|
|
|
|
else ifeq ($(filter-out FREEBSD NETBSD OPENBSD DRAGONFLY,$(OS)),)
|
|
|
|
$(eval $(call gb_Executable_add_libs,pluginapp.bin,\
|
|
|
|
-lXt \
|
|
|
|
-lXext \
|
|
|
|
-lX11 \
|
|
|
|
))
|
|
|
|
else ifeq ($(OS),AIX)
|
|
|
|
$(eval $(call gb_Executable_add_libs,pluginapp.bin,\
|
|
|
|
-lXpm \
|
|
|
|
-lXmu \
|
|
|
|
-lXt \
|
|
|
|
-lXext \
|
|
|
|
-lX11 \
|
|
|
|
-ldl \
|
|
|
|
))
|
|
|
|
else
|
|
|
|
$(eval $(call gb_Executable_add_libs,pluginapp.bin,\
|
|
|
|
-lXt \
|
|
|
|
-lXext \
|
|
|
|
-lX11 \
|
|
|
|
-ldl \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(ENABLE_GTK),TRUE)
|
2012-01-07 05:54:16 -06:00
|
|
|
$(eval $(call gb_Executable_use_externals,pluginapp.bin,\
|
|
|
|
gthread \
|
|
|
|
gtk \
|
|
|
|
))
|
2011-12-17 15:11:57 -06:00
|
|
|
|
2011-12-17 15:11:57 -06:00
|
|
|
# the orignal dmakefile said: don't ask, it's ugly
|
2011-12-17 15:11:57 -06:00
|
|
|
ifeq ($(OS),SOLARIS)
|
|
|
|
$(eval $(call gb_Executable_set_ldflags,pluginapp.bin,\
|
|
|
|
-z nodefs \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2013-01-26 15:19:07 -06:00
|
|
|
# vim:set noet sw=4 ts=4:
|