update contributors list
[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 if OS_WIN32
17
18 LTRCCOMPILE = $(LIBTOOL) --mode=compile --tag=RC $(RC) \
19                 `echo $(DEFS) $(DEFAULT_INCLUDES) $(IFLAGS) | \
20                 sed -e 's/-I/--include-dir /g;s/-D/--define /g'`
21
22 %.lo: %.rc
23         $(LTRCCOMPILE) -i $< -o $@
24
25 plugin_res = version.lo
26 plugin_res_ldflag = -Wl,.libs/version.o
27 export_symbols = -export-symbols $(srcdir)/plugin.def
28 plugin_deps = libclaws.a $(plugin_res) plugin.def
29 plugin_ldadd = -L. -lclaws
30
31 libclaws.a: claws.def
32         $(DLLTOOL) --output-lib $@ --def $<
33 else
34 plugin_res =
35 plugin_res_ldflag =
36 export_symbols =
37 plugin_deps =
38 plugin_ldadd =
39 endif
40
41 if PLATFORM_WIN32
42 no_undefined = -no-undefined
43 def_win32 = -DWIN32
44 else
45 no_undefined =
46 def_win32 =
47 endif
48
49 export def_win32
50
51 if CYGWIN
52 cygwin_export_lib = -L$(top_builddir)/src -lclaws-mail
53 else
54 cygwin_export_lib =
55 endif
56
57 plugindir = $(pkglibdir)/plugins
58
59 if BUILD_LITEHTML_VIEWER_PLUGIN
60 plugin_LTLIBRARIES = litehtml_viewer.la
61 endif
62
63 litehtml_viewer_la_DEPENDENCIES = $(plugin_deps) litehtml/liblitehtml.la
64
65 litehtml_viewer_la_LIBADD = $(plugin_ldadd) $(cygwin_export_lib) \
66         $(top_builddir)/src/plugins/litehtml_viewer/litehtml/liblitehtml.la \
67         $(GTK_LIBS)
68
69 litehtml_viewer_la_CXXFLAGS = -std=c++11
70 litehtml_viewer_la_CFLAGS = -std=c99
71
72 litehtml_viewer_la_SOURCES = \
73         container_linux.cpp \
74         container_linux_images.cpp \
75         plugin.c \
76         lh_prefs.c \
77         lh_viewer.c \
78         lh_widget.cpp \
79         lh_widget_text.cpp \
80         container_linux.h \
81         lh_prefs.h \
82         lh_viewer.h \
83         lh_widget.h \
84         lh_widget_wrapped.h \
85         http.h \
86         http.cpp
87
88 litehtml_viewer_la_LDFLAGS = \
89         $(plugin_res_ldflag) $(no_undefined) $(export_symbols) \
90         -avoid-version -module \
91         $(GTK_LIBS) \
92         $(FONTCONFIG_LIBS) \
93         $(CAIRO_LIBS) \
94         $(CURL_LIBS) \
95         $(LIBGUMBO_LIBS)
96
97 litehtml_viewer_la_CPPFLAGS = \
98         $(def_win32) \
99         $(IFLAGS) \
100         $(GLIB_CFLAGS) \
101         $(GTK_CFLAGS) \
102         $(ENCHANT_CFLAGS) \
103         $(FONTCONFIG_CFLAGS) \
104         $(CAIRO_CFLAGS) \
105         $(CURL_CFLAGS) \
106         $(LIBGUMBO_CFLAGS)
107
108 .PHONY: test
109