Clean up plugin build files for Windows
[claws.git] / src / plugins / litehtml_viewer / Makefile.am
blob771261d7fdd30ff5d87219afb012bfe0370ffb11
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
9 EXTRA_DIST = css.inc
11 IFLAGS = \
12         -I$(top_builddir)/src \
13         -I$(top_srcdir)/src \
14         -I$(top_srcdir)/src/common \
15         -I$(top_srcdir)/src/gtk \
16         -I$(top_srcdir)/src/plugins/litehtml_viewer/litehtml
18 plugin_cppflags =
20 if OS_WIN32
22 plugin_cppflags += -DLITEHTML_UTF8
24 endif
26 plugindir = $(pkglibdir)/plugins
28 if BUILD_LITEHTML_VIEWER_PLUGIN
29 plugin_LTLIBRARIES = litehtml_viewer.la
30 endif
32 litehtml_viewer_la_LDFLAGS = \
33         $(plugin_ldflags) \
34         -avoid-version -module
36 EXTRA_litehtml_viewer_la_DEPENDENCIES = $(plugin_extra_deps) \
37         litehtml/liblitehtml.la
39 litehtml_viewer_la_LIBADD = $(plugin_libadd) \
40         $(GTK_LIBS) \
41         $(FONTCONFIG_LIBS) \
42         $(CAIRO_LIBS) \
43         $(CURL_LIBS) \
44         $(LIBGUMBO_LIBS) \
45         litehtml/liblitehtml.la
47 litehtml_viewer_la_CPPFLAGS = \
48         $(plugin_cppflags) \
49         $(IFLAGS) \
50         $(GLIB_CFLAGS) \
51         $(GTK_CFLAGS) \
52         $(ENCHANT_CFLAGS) \
53         $(FONTCONFIG_CFLAGS) \
54         $(CAIRO_CFLAGS) \
55         $(CURL_CFLAGS) \
56         $(LIBGUMBO_CFLAGS)
58 litehtml_viewer_la_CXXFLAGS = -std=c++11
59 litehtml_viewer_la_CFLAGS = -std=c99
61 litehtml_viewer_la_SOURCES = \
62         container_linux.cpp \
63         container_linux.h \
64         container_linux_images.cpp \
65         http.cpp \
66         http.h \
67         lh_prefs.c \
68         lh_prefs.h \
69         lh_viewer.c \
70         lh_viewer.h \
71         lh_widget.cpp \
72         lh_widget.h \
73         lh_widget_text.cpp \
74         lh_widget_wrapped.h \
75         plugin.c
77 .PHONY: test