Disable stack execution on plugins
[claws.git] / src / plugins / litehtml_viewer / Makefile.am
blob323fa2e60417b7655b4b137380f0db86d0c1c894
1 # Copyright 1999-2022 the Claws Mail team.
2 # This file is part of Claws Mail package, and distributed under the
3 # terms of the General Public License version 3 (or later).
4 # See COPYING file for license details.
6 include $(srcdir)/../win_plugin.mk
8 SUBDIRS = litehtml
10 IFLAGS = \
11         -I$(top_builddir)/src \
12         -I$(top_srcdir)/src \
13         -I$(top_srcdir)/src/common \
14         -I$(top_srcdir)/src/gtk \
15         -I$(top_srcdir)/src/plugins/litehtml_viewer/litehtml
17 plugin_cppflags =
19 if OS_WIN32
21 plugin_cppflags += -DLITEHTML_UTF8
23 endif
25 plugindir = $(pkglibdir)/plugins
27 if BUILD_LITEHTML_VIEWER_PLUGIN
28 plugin_LTLIBRARIES = litehtml_viewer.la
29 endif
31 litehtml_viewer_la_LDFLAGS = \
32         $(plugin_ldflags) \
33         -avoid-version -module -z noexecstack
35 EXTRA_litehtml_viewer_la_DEPENDENCIES = $(plugin_extra_deps) \
36         litehtml/liblitehtml.la
38 litehtml_viewer_la_LIBADD = $(plugin_libadd) \
39         $(GTK_LIBS) \
40         $(FONTCONFIG_LIBS) \
41         $(CAIRO_LIBS) \
42         $(CURL_LIBS) \
43         $(LIBGUMBO_LIBS) \
44         litehtml/liblitehtml.la
46 litehtml_viewer_la_CPPFLAGS = \
47         $(plugin_cppflags) \
48         $(IFLAGS) \
49         $(GLIB_CFLAGS) \
50         $(GTK_CFLAGS) \
51         $(ENCHANT_CFLAGS) \
52         $(FONTCONFIG_CFLAGS) \
53         $(CAIRO_CFLAGS) \
54         $(CURL_CFLAGS) \
55         $(LIBGUMBO_CFLAGS)
57 litehtml_viewer_la_CXXFLAGS = -std=c++11
58 litehtml_viewer_la_CFLAGS = -std=c99
60 litehtml_viewer_la_SOURCES = \
61         container_linux.cpp \
62         container_linux.h \
63         container_linux_images.cpp \
64         http.cpp \
65         http.h \
66         lh_prefs.c \
67         lh_prefs.h \
68         lh_viewer.c \
69         lh_viewer.h \
70         lh_widget.cpp \
71         lh_widget.h \
72         lh_widget_wrapped.h \
73         plugin.c
75 .PHONY: test