Refactor image loading to a separate class. Add dependency to curl
[claws.git] / src / plugins / litehtml_viewer / Makefile.am
1 # Copyright 1999-2018 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.
5
6 SUBDIRS = litehtml
7 EXTRA_DIST = claws.def plugin.def version.rc css.inc
8
9 IFLAGS = \
10         -I$(top_srcdir)/src \
11         -I$(top_srcdir)/src/common \
12         -I$(top_builddir)/src \
13         -I$(top_srcdir)/src/gtk \
14         -I$(top_srcdir)/src/plugins/litehtml_viewer/litehtml
15
16 plugin_res =
17 plugin_res_ldflag =
18 export_symbols =
19 plugin_deps =
20 plugin_ldadd =
21
22 no_undefined =
23
24 cygwin_export_lib =
25
26 plugindir = $(pkglibdir)/plugins
27
28 #if BUILD_LITEHTML_VIEWER_PLUGIN
29 plugin_LTLIBRARIES = litehtml_viewer.la
30 #endif
31
32 litehtml_viewer_la_DEPENDENCIES = $(plugin_deps)
33
34 litehtml_viewer_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
35         $(top_builddir)/src/plugins/litehtml_viewer/litehtml/liblitehtml.la \
36         $(GTK_LIBS)
37
38 litehtml_viewer_la_CXXFLAGS = -std=c++11
39 litehtml_viewer_la_CFLAGS = -std=c99
40
41 litehtml_viewer_la_SOURCES = \
42         container_linux.cpp \
43         plugin.c \
44         lh_viewer.c \
45         lh_widget.cpp \
46         container_linux.h \
47         lh_viewer.h \
48         lh_widget.h \
49         lh_widget_wrapped.h \
50         http.h \
51         http.cpp
52
53 litehtml_viewer_la_LDFLAGS = \
54         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
55         -avoid-version -module \
56         $(GTK_LIBS) \
57         $(FONTCONFIG_LIBS) \
58         $(CAIRO_LIBS) \
59         $(CURL_LIBS)
60
61 litehtml_viewer_la_CPPFLAGS = \
62         $(IFLAGS) \
63         $(GLIB_CFLAGS) \
64         $(GTK_CFLAGS) \
65         $(FONTCONFIG_CFLAGS) \
66         $(CAIRO_CFLAGS) \
67         $(CURL_FLAGS)
68
69 .PHONY: test
70