alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 1 | # Top-level Makefile rule for automake |
| 2 | # |
| 3 | # Variable conventions: |
| 4 | # |
| 5 | # _h_api = API headers that will be installed and included in the distribution |
| 6 | # _cppflags = flags that will be passed to the C/CXX Preprocessor |
| 7 | # _sources = sources that will be compiled and included in the distribution |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 8 | # _built_sources = files that will be autogenerated by the build system and |
| 9 | # will be part of the _SOURCES primary |
| 10 | # _built_nosources = files that are autogenerated but are not part of the |
| 11 | # _SOURCES primary |
| 12 | # _cleanfiles = files that will be removed by the clean target |
| 13 | # |
| 14 | # Sources, headers, flags, etc... should be added to the respective variables |
| 15 | # with the above suffix, e.g, webcore-specific sources should go to |
alp@webkit.org | f1dbca6 | 2008-06-02 16:36:32 +0000 | [diff] [blame] | 16 | # webcore_sources, gtk port API and WebCoreSupport parts to webkitgtk_sources, |
| 17 | # etc... The only exceptions are the global variables. See Global Variables |
| 18 | # below. |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 19 | # |
| 20 | # Global Variables |
| 21 | # |
| 22 | # global_cppflags = CPPFLAGS that apply to JSC, WebCore, and to any |
| 23 | # specific port |
mrowe@apple.com | 84cdb08 | 2008-02-05 03:25:59 +0000 | [diff] [blame] | 24 | # global_cflags = CFLAGS that apply to JSC, WebCore, and to |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 25 | # any specific port |
mrowe@apple.com | 84cdb08 | 2008-02-05 03:25:59 +0000 | [diff] [blame] | 26 | # global_cxxflags = CXXFLAGS that apply to JSC, WebCore, and to any |
| 27 | # specific port |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 28 | |
| 29 | srcdir = @srcdir@ |
| 30 | VPATH = @srcdir@ |
| 31 | |
| 32 | # Directory for autogenerated sources |
| 33 | GENSOURCES := $(top_builddir)/DerivedSources |
alp@webkit.org | c04fee2 | 2008-04-19 05:16:00 +0000 | [diff] [blame] | 34 | GENPROGRAMS := $(top_builddir)/Programs |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 35 | |
| 36 | # Script for creating hash tables |
alp@webkit.org | 4c29a2f | 2008-11-06 08:58:53 +0000 | [diff] [blame] | 37 | CREATE_HASH_TABLE = $(srcdir)/JavaScriptCore/create_hash_table |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 38 | |
jmalonzo@webkit.org | c9b4de4 | 2009-05-18 11:30:53 +0000 | [diff] [blame] | 39 | # Programs to run the WebKitGtk unit tests |
| 40 | GTESTER = gtester |
| 41 | GTESTER_REPORT = gtester-report |
| 42 | |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 43 | # Libraries and support components |
alp@webkit.org | 643f3ef | 2008-06-15 11:46:18 +0000 | [diff] [blame] | 44 | bin_PROGRAMS := |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 45 | noinst_PROGRAMS := |
alp@webkit.org | 9388fc8 | 2008-08-10 18:21:21 +0000 | [diff] [blame] | 46 | noinst_HEADERS := |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 47 | lib_LIBRARIES := |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 48 | IDL_BINDINGS := |
jmalonzo@webkit.org | 27bbbab | 2009-03-20 19:45:05 +0000 | [diff] [blame] | 49 | TEST_PROGS := |
kov@webkit.org | 774c23b | 2009-04-06 19:39:14 +0000 | [diff] [blame] | 50 | POFILES := |
kov@webkit.org | 774c23b | 2009-04-06 19:39:14 +0000 | [diff] [blame] | 51 | MOFILES := |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 52 | javascriptcore_h_api := |
| 53 | javascriptcore_cppflags:= |
| 54 | javascriptcore_sources := |
| 55 | javascriptcore_built_sources := |
| 56 | javascriptcore_built_nosources := |
| 57 | javascriptcore_dist := |
| 58 | webcore_cppflags := |
| 59 | webcore_sources := |
| 60 | webcore_libadd := |
| 61 | webcore_built_sources := |
| 62 | webcore_built_nosources := |
| 63 | webcore_dist := |
| 64 | webcoregtk_cppflags := |
| 65 | webcoregtk_sources := |
| 66 | webkitgtk_h_api := |
| 67 | webkitgtk_sources := |
| 68 | webkitgtk_cppflags := |
| 69 | webkitgtk_built_sources := |
| 70 | webkitgtk_built_nosources := |
| 71 | webkitgtk_cleanfiles := |
alp@webkit.org | 040ad8b | 2008-02-04 11:00:43 +0000 | [diff] [blame] | 72 | global_cppflags := |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 73 | global_cflags := |
| 74 | global_cxxflags := |
| 75 | corekit_cflags := |
| 76 | corekit_cppflags := |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 77 | |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 78 | # CFLAGS/CXXFLAGS used by WebCore and WebKit |
| 79 | # |
jmalonzo@webkit.org | 249f7ce | 2009-05-18 11:30:41 +0000 | [diff] [blame] | 80 | # gtk+.pc already include glib, cairo, freetype and pango CFLAGS |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 81 | # Don't include them for now to reduce the noise when compiling |
| 82 | # $(GLIB_CFLAGS) $(CAIRO_CFLAGS) $(PANGO_CFLAGS) $(FREETYPE_CFLAGS) |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 83 | corekit_cflags += \ |
| 84 | -fno-strict-aliasing \ |
| 85 | $(COVERAGE_CFLAGS) \ |
| 86 | $(ENCHANT_CFLAGS) \ |
xan@webkit.org | 21f12d5 | 2009-06-10 13:10:16 +0000 | [diff] [blame] | 87 | $(GAIL_CFLAGS) \ |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 88 | $(GEOCLUE_CFLAGS) \ |
| 89 | $(GLIB_CFLAGS) \ |
| 90 | $(GNOMEKEYRING_CFLAGS) \ |
| 91 | $(GSTREAMER_CFLAGS) \ |
| 92 | $(GTK_CFLAGS) \ |
| 93 | $(HILDON_CFLAGS) \ |
| 94 | $(LIBSOUP_CFLAGS) \ |
| 95 | $(LIBXML_CFLAGS) \ |
| 96 | $(LIBXSLT_CFLAGS) \ |
| 97 | $(SQLITE3_CFLAGS) \ |
| 98 | $(UNICODE_CFLAGS) \ |
| 99 | $(XT_CFLAGS) |
| 100 | |
| 101 | # When building webcore/webkit, we want WebCore/config.h and NOT |
jmalonzo@webkit.org | 249f7ce | 2009-05-18 11:30:41 +0000 | [diff] [blame] | 102 | # JavaScriptCore/config.h, hence, it's important that WebCore/ should come first |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 103 | # before JavaScriptCore in the include path. |
| 104 | corekit_cppflags += \ |
| 105 | $(global_cppflags) \ |
| 106 | $(webcore_cppflags) \ |
| 107 | $(webcoregtk_cppflags) \ |
| 108 | $(javascriptcore_cppflags) |
| 109 | |
jmalonzo@webkit.org | 249f7ce | 2009-05-18 11:30:41 +0000 | [diff] [blame] | 110 | if TARGET_X11 |
| 111 | corekit_cppflags += -DXP_UNIX |
| 112 | endif |
alp@webkit.org | d28cae0 | 2008-03-10 00:49:15 +0000 | [diff] [blame] | 113 | |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 114 | # Default compiler flags |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 115 | global_cflags += \ |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 116 | -Wall -W -Wcast-align -Wchar-subscripts -Wreturn-type \ |
| 117 | -Wformat -Wformat-security -Wno-format-y2k -Wundef \ |
| 118 | -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings \ |
alp@webkit.org | 491d909 | 2008-11-03 17:27:55 +0000 | [diff] [blame] | 119 | -Wno-unused-parameter -Wno-parentheses \ |
| 120 | -fno-exceptions |
mrowe@apple.com | 84cdb08 | 2008-02-05 03:25:59 +0000 | [diff] [blame] | 121 | |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 122 | global_cxxflags += \ |
| 123 | $(global_cflags) \ |
alp@webkit.org | 491d909 | 2008-11-03 17:27:55 +0000 | [diff] [blame] | 124 | $(SYMBOL_VISIBILITY_INLINES) \ |
| 125 | -fno-rtti |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 126 | |
alp@webkit.org | 15ef3c4 | 2008-06-03 00:30:19 +0000 | [diff] [blame] | 127 | # -no-undefined required for building DLLs on Windows |
| 128 | # It breaks the build on other platforms, so we use it conditionally |
| 129 | if OS_WIN32 |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 130 | no_undefined = -no-undefined |
alp@webkit.org | 15ef3c4 | 2008-06-03 00:30:19 +0000 | [diff] [blame] | 131 | endif |
| 132 | |
jmalonzo@webkit.org | a897fea | 2008-09-24 07:42:51 +0000 | [diff] [blame] | 133 | if OS_GNU |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 134 | version_script = -Wl,--version-script,$(srcdir)/autotools/symbols.filter |
jmalonzo@webkit.org | a897fea | 2008-09-24 07:42:51 +0000 | [diff] [blame] | 135 | endif |
| 136 | |
alp@webkit.org | 36d6549 | 2008-01-13 07:33:53 +0000 | [diff] [blame] | 137 | # Shared libraries |
| 138 | lib_LTLIBRARIES = \ |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 139 | libwebkit-1.0.la |
alp@webkit.org | 36d6549 | 2008-01-13 07:33:53 +0000 | [diff] [blame] | 140 | |
| 141 | # Convenience libraries |
| 142 | noinst_LTLIBRARIES = \ |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 143 | libJavaScriptCore.la \ |
| 144 | libWebCore.la |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 145 | |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 146 | # JavaScriptCore |
zecke@webkit.org | 5d48737 | 2008-03-21 18:21:25 +0000 | [diff] [blame] | 147 | javascriptcore_cppflags += \ |
zecke@webkit.org | 5d48737 | 2008-03-21 18:21:25 +0000 | [diff] [blame] | 148 | -I$(srcdir)/JavaScriptCore/ForwardingHeaders \ |
cwzwarich@webkit.org | b77ab3a | 2008-11-07 07:41:18 +0000 | [diff] [blame] | 149 | -I$(srcdir)/JavaScriptCore/parser \ |
zecke@webkit.org | 5d48737 | 2008-03-21 18:21:25 +0000 | [diff] [blame] | 150 | -I$(srcdir)/JavaScriptCore/wtf \ |
zecke@webkit.org | 5d48737 | 2008-03-21 18:21:25 +0000 | [diff] [blame] | 151 | -I$(top_builddir)/DerivedSources |
| 152 | |
alp@webkit.org | c04fee2 | 2008-04-19 05:16:00 +0000 | [diff] [blame] | 153 | nodist_EXTRA_libJavaScriptCore_la_SOURCES = \ |
alp@webkit.org | 8151494 | 2008-04-23 03:14:26 +0000 | [diff] [blame] | 154 | $(javascriptcore_built_nosources) |
| 155 | |
| 156 | nodist_libJavaScriptCore_la_SOURCES = \ |
alp@webkit.org | c04fee2 | 2008-04-19 05:16:00 +0000 | [diff] [blame] | 157 | $(javascriptcore_built_sources) |
| 158 | |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 159 | libJavaScriptCore_ladir = $(prefix)/include/webkit-1.0/JavaScriptCore |
alp@webkit.org | 36d6549 | 2008-01-13 07:33:53 +0000 | [diff] [blame] | 160 | libJavaScriptCore_la_HEADERS = $(javascriptcore_h_api) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 161 | |
alp@webkit.org | 36d6549 | 2008-01-13 07:33:53 +0000 | [diff] [blame] | 162 | libJavaScriptCore_la_SOURCES = \ |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 163 | $(javascriptcore_sources) |
| 164 | |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 165 | libJavaScriptCore_la_LIBADD = \ |
| 166 | $(UNICODE_LIBS) \ |
| 167 | $(GLIB_LIBS) \ |
| 168 | -lpthread |
| 169 | |
darin@apple.com | 47e2c23 | 2008-02-24 05:42:29 +0000 | [diff] [blame] | 170 | libJavaScriptCore_la_CXXFLAGS = \ |
pewtermoose@webkit.org | 7a953d9 | 2008-02-24 07:07:03 +0000 | [diff] [blame] | 171 | $(global_cxxflags) \ |
alp@webkit.org | 139345a | 2008-09-20 06:34:35 +0000 | [diff] [blame] | 172 | $(libJavaScriptCore_la_CFLAGS) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 173 | |
darin@apple.com | 47e2c23 | 2008-02-24 05:42:29 +0000 | [diff] [blame] | 174 | libJavaScriptCore_la_CFLAGS = \ |
alp@webkit.org | 2d181c5 | 2008-06-08 16:10:16 +0000 | [diff] [blame] | 175 | -fstrict-aliasing \ |
| 176 | -O3 \ |
pewtermoose@webkit.org | 7a953d9 | 2008-02-24 07:07:03 +0000 | [diff] [blame] | 177 | $(global_cflags) \ |
jmalonzo@webkit.org | 06d65c10 | 2009-01-31 09:36:45 +0000 | [diff] [blame] | 178 | $(GLIB_CFLAGS) \ |
alp@webkit.org | 2d181c5 | 2008-06-08 16:10:16 +0000 | [diff] [blame] | 179 | $(UNICODE_CFLAGS) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 180 | |
alp@webkit.org | f49bd1e | 2008-01-21 23:06:23 +0000 | [diff] [blame] | 181 | libJavaScriptCore_la_CPPFLAGS = \ |
| 182 | $(global_cppflags) \ |
alp@webkit.org | d28cae0 | 2008-03-10 00:49:15 +0000 | [diff] [blame] | 183 | $(javascriptcore_cppflags) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 184 | |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 185 | # WebCore |
alp@webkit.org | 76e7f9a | 2008-10-08 00:42:37 +0000 | [diff] [blame] | 186 | nodist_EXTRA_libWebCore_la_SOURCES = \ |
| 187 | $(webcore_built_nosources) |
| 188 | |
alp@webkit.org | c04fee2 | 2008-04-19 05:16:00 +0000 | [diff] [blame] | 189 | nodist_libWebCore_la_SOURCES = \ |
| 190 | $(webcore_built_sources) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 191 | |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 192 | libWebCore_la_SOURCES = \ |
alp@webkit.org | f1dbca6 | 2008-06-02 16:36:32 +0000 | [diff] [blame] | 193 | $(webcore_sources) \ |
alp@webkit.org | f1dbca6 | 2008-06-02 16:36:32 +0000 | [diff] [blame] | 194 | $(webcoregtk_sources) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 195 | |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 196 | libWebCore_la_CXXFLAGS = \ |
mrowe@apple.com | 84cdb08 | 2008-02-05 03:25:59 +0000 | [diff] [blame] | 197 | $(global_cxxflags) \ |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 198 | $(corekit_cflags) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 199 | |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 200 | libWebCore_la_CFLAGS = \ |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 201 | $(global_cflags) \ |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 202 | $(corekit_cflags) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 203 | |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 204 | libWebCore_la_CPPFLAGS = \ |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 205 | $(corekit_cppflags) |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 206 | |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 207 | # WebKit |
alp@webkit.org | c04fee2 | 2008-04-19 05:16:00 +0000 | [diff] [blame] | 208 | nodist_libwebkit_1_0_la_SOURCES = \ |
| 209 | $(webkitgtk_built_sources) |
| 210 | |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 211 | libwebkit_1_0_ladir = $(prefix)/include/webkit-1.0/webkit |
jmalonzo@webkit.org | d1815718 | 2008-06-18 20:04:18 +0000 | [diff] [blame] | 212 | libwebkit_1_0_la_HEADERS = \ |
| 213 | $(webkitgtk_h_api) \ |
| 214 | WebKit/gtk/webkit/webkitenumtypes.h |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 215 | |
| 216 | libwebkit_1_0_la_SOURCES = \ |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 217 | $(webkitgtk_sources) |
| 218 | |
| 219 | libwebkit_1_0_la_CXXFLAGS = \ |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 220 | $(global_cxxflags) \ |
| 221 | $(corekit_cflags) |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 222 | |
| 223 | libwebkit_1_0_la_CFLAGS = \ |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 224 | $(global_cflags) \ |
| 225 | $(corekit_cflags) |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 226 | |
| 227 | libwebkit_1_0_la_CPPFLAGS = \ |
jmalonzo@webkit.org | a332756 | 2009-05-18 11:30:06 +0000 | [diff] [blame] | 228 | $(corekit_cppflags) \ |
| 229 | $(webkitgtk_cppflags) \ |
| 230 | $(HILDON_CPPFLAGS) |
alp@webkit.org | 66551a1 | 2008-03-02 19:51:26 +0000 | [diff] [blame] | 231 | |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 232 | libwebkit_1_0_la_LDFLAGS = \ |
alp@webkit.org | 15ef3c4 | 2008-06-03 00:30:19 +0000 | [diff] [blame] | 233 | -version-info @LIBWEBKITGTK_VERSION@ \ |
jmalonzo@webkit.org | a897fea | 2008-09-24 07:42:51 +0000 | [diff] [blame] | 234 | $(version_script) \ |
alp@webkit.org | 15ef3c4 | 2008-06-03 00:30:19 +0000 | [diff] [blame] | 235 | $(no_undefined) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 236 | |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 237 | libwebkit_1_0_la_LIBADD = \ |
jmalonzo@webkit.org | 290fe61 | 2009-05-23 22:20:31 +0000 | [diff] [blame] | 238 | -lpthread \ |
| 239 | libJavaScriptCore.la \ |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 240 | libWebCore.la \ |
jmalonzo@webkit.org | 290fe61 | 2009-05-23 22:20:31 +0000 | [diff] [blame] | 241 | libWebCoreJS.la \ |
| 242 | $(webcore_ldflags) \ |
| 243 | $(CAIRO_LIBS) \ |
| 244 | $(COVERAGE_LDFLAGS) \ |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 245 | $(ENCHANT_LIBS) \ |
jmalonzo@webkit.org | 290fe61 | 2009-05-23 22:20:31 +0000 | [diff] [blame] | 246 | $(FREETYPE_LIBS) \ |
xan@webkit.org | 21f12d5 | 2009-06-10 13:10:16 +0000 | [diff] [blame] | 247 | $(GAIL_LIBS) \ |
jmalonzo@webkit.org | 290fe61 | 2009-05-23 22:20:31 +0000 | [diff] [blame] | 248 | $(GEOCLUE_LIBS) \ |
| 249 | $(GLIB_LIBS) \ |
| 250 | $(GNOMEKEYRING_LIBS) \ |
| 251 | $(GSTREAMER_LIBS) \ |
| 252 | $(GTK_LIBS) \ |
| 253 | $(HILDON_LIBS) \ |
| 254 | $(JPEG_LIBS) \ |
| 255 | $(LIBSOUP_LIBS) \ |
| 256 | $(LIBXML_LIBS) \ |
| 257 | $(LIBXSLT_LIBS) \ |
| 258 | $(PANGO_LIBS) \ |
| 259 | $(PNG_LIBS) \ |
| 260 | $(SQLITE3_LIBS) \ |
| 261 | $(UNICODE_LIBS) \ |
| 262 | $(XT_LIBS) |
xan@webkit.org | 0a81801 | 2009-05-13 13:49:06 +0000 | [diff] [blame] | 263 | |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 264 | # |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 265 | # Extra checks and flags |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 266 | global_cppflags += \ |
alp@webkit.org | f1dbca6 | 2008-06-02 16:36:32 +0000 | [diff] [blame] | 267 | -DBUILDING_CAIRO__=1 \ |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 268 | -DBUILDING_GTK__=1 \ |
kov@webkit.org | eba9e74 | 2009-05-22 18:06:51 +0000 | [diff] [blame] | 269 | -DWTF_CHANGES |
| 270 | |
| 271 | if USE_ICU_UNICODE |
| 272 | global_cppflags += \ |
jmalonzo@webkit.org | 249f7ce | 2009-05-18 11:30:41 +0000 | [diff] [blame] | 273 | -DWTF_USE_ICU_UNICODE=1 |
kov@webkit.org | eba9e74 | 2009-05-22 18:06:51 +0000 | [diff] [blame] | 274 | endif |
| 275 | |
| 276 | if USE_GLIB_UNICODE |
| 277 | # https://bugs.webkit.org/show_bug.cgi?id=15914 |
| 278 | # In patch 1/4 we are compiling a hybrid version of GLib WTF Unicode |
| 279 | # functionality mixed with ICU-based text codecs and TextBreakIterator. |
| 280 | # For the transition, introducing an interim HYBRID macro. |
| 281 | # This macro is required for compiling WTF with GLib Unicode backend, |
| 282 | # but at the same time keeping ICU dependency for codecs and break iterator. |
| 283 | # It will be removed with patch 3/4 of the above bug. |
| 284 | global_cppflags += \ |
| 285 | -DWTF_USE_GLIB_UNICODE=1 \ |
| 286 | -DWTF_USE_GLIB_ICU_UNICODE_HYBRID=1 |
| 287 | endif |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 288 | |
alp@webkit.org | 27f95c4 | 2008-01-12 07:40:52 +0000 | [diff] [blame] | 289 | if !ENABLE_FAST_MALLOC |
| 290 | global_cppflags += \ |
| 291 | -DUSE_SYSTEM_MALLOC |
| 292 | endif |
| 293 | |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 294 | if !ENABLE_DEBUG |
| 295 | global_cppflags += -DNDEBUG |
jmalonzo@webkit.org | 249f7ce | 2009-05-18 11:30:41 +0000 | [diff] [blame] | 296 | global_cflags += $(SYMBOL_VISIBILITY) |
| 297 | |
alp@webkit.org | 040ad8b | 2008-02-04 11:00:43 +0000 | [diff] [blame] | 298 | else |
alp@webkit.org | f1dbca6 | 2008-06-02 16:36:32 +0000 | [diff] [blame] | 299 | webcoregtk_cppflags += \ |
alp@webkit.org | 11a31a7 | 2007-12-27 23:14:27 +0000 | [diff] [blame] | 300 | -DG_DISABLE_DEPRECATED \ |
| 301 | -DGDK_PIXBUF_DISABLE_DEPRECATED \ |
| 302 | -DGDK_DISABLE_DEPRECATED \ |
| 303 | -DGTK_DISABLE_DEPRECATED \ |
zecke@webkit.org | 48bc6f4 | 2008-01-03 02:07:28 +0000 | [diff] [blame] | 304 | -DPANGO_DISABLE_DEPRECATED |
| 305 | |
| 306 | # Might be useful in the future |
| 307 | # -DGDK_MULTIHEAD_SAFE \ |
| 308 | # -DGTK_MULTIHEAD_SAFE |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 309 | endif |
| 310 | |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 311 | if ENABLE_COVERAGE |
| 312 | global_cppflags += \ |
| 313 | -DGCC_GENERATE_TEST_COVERAGE_FILES \ |
| 314 | -DGCC_INSTRUMENT_PROGRAM_FLOW_ARCS |
| 315 | endif |
| 316 | |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 317 | webkitgtk_h_api += \ |
alp@webkit.org | 94c0655 | 2008-01-31 23:51:53 +0000 | [diff] [blame] | 318 | WebKit/gtk/webkit/webkit.h \ |
| 319 | WebKit/gtk/webkit/webkitdefines.h \ |
kov@webkit.org | 7d05c79 | 2009-03-03 19:48:22 +0000 | [diff] [blame] | 320 | WebKit/gtk/webkit/webkitdownload.h \ |
jmalonzo@webkit.org | 5f5c6c8 | 2009-04-25 09:19:42 +0000 | [diff] [blame] | 321 | WebKit/gtk/webkit/webkiterror.h \ |
alp@webkit.org | 94c0655 | 2008-01-31 23:51:53 +0000 | [diff] [blame] | 322 | WebKit/gtk/webkit/webkitnetworkrequest.h \ |
xan@webkit.org | aa45873 | 2009-03-04 20:57:38 +0000 | [diff] [blame] | 323 | WebKit/gtk/webkit/webkitsoupauthdialog.h \ |
christian@webkit.org | 56f0069 | 2008-06-05 22:50:40 +0000 | [diff] [blame] | 324 | WebKit/gtk/webkit/webkitversion.h \ |
alp@webkit.org | 94c0655 | 2008-01-31 23:51:53 +0000 | [diff] [blame] | 325 | WebKit/gtk/webkit/webkitwebbackforwardlist.h \ |
| 326 | WebKit/gtk/webkit/webkitwebframe.h \ |
| 327 | WebKit/gtk/webkit/webkitwebhistoryitem.h \ |
zecke@webkit.org | bcca41d | 2008-10-29 22:39:18 +0000 | [diff] [blame] | 328 | WebKit/gtk/webkit/webkitwebinspector.h \ |
zecke@webkit.org | 2d40b85 | 2008-12-20 03:18:31 +0000 | [diff] [blame] | 329 | WebKit/gtk/webkit/webkitwebnavigationaction.h \ |
| 330 | WebKit/gtk/webkit/webkitwebpolicydecision.h \ |
alp@webkit.org | 94c0655 | 2008-01-31 23:51:53 +0000 | [diff] [blame] | 331 | WebKit/gtk/webkit/webkitwebsettings.h \ |
zecke@webkit.org | dfb3868 | 2008-11-29 00:20:56 +0000 | [diff] [blame] | 332 | WebKit/gtk/webkit/webkitwebwindowfeatures.h \ |
alp@webkit.org | 040ad8b | 2008-02-04 11:00:43 +0000 | [diff] [blame] | 333 | WebKit/gtk/webkit/webkitwebview.h |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 334 | |
| 335 | webkitgtk_built_sources += \ |
jmalonzo@webkit.org | d1815718 | 2008-06-18 20:04:18 +0000 | [diff] [blame] | 336 | DerivedSources/webkitenumtypes.cpp \ |
alp@webkit.org | 9388fc8 | 2008-08-10 18:21:21 +0000 | [diff] [blame] | 337 | DerivedSources/webkitmarshal.cpp \ |
| 338 | DerivedSources/webkitmarshal.h \ |
jmalonzo@webkit.org | d1815718 | 2008-06-18 20:04:18 +0000 | [diff] [blame] | 339 | WebKit/gtk/webkit/webkitenumtypes.h |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 340 | |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 341 | webkitgtk_sources += \ |
alp@webkit.org | 9388fc8 | 2008-08-10 18:21:21 +0000 | [diff] [blame] | 342 | WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp \ |
| 343 | WebKit/gtk/WebCoreSupport/ChromeClientGtk.h \ |
| 344 | WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.cpp \ |
| 345 | WebKit/gtk/WebCoreSupport/ContextMenuClientGtk.h \ |
| 346 | WebKit/gtk/WebCoreSupport/DragClientGtk.cpp \ |
| 347 | WebKit/gtk/WebCoreSupport/DragClientGtk.h \ |
| 348 | WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp \ |
| 349 | WebKit/gtk/WebCoreSupport/EditorClientGtk.h \ |
| 350 | WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp \ |
| 351 | WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.h \ |
| 352 | WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp \ |
| 353 | WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \ |
| 354 | WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.cpp \ |
| 355 | WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \ |
jmalonzo@webkit.org | 5f5c6c8 | 2009-04-25 09:19:42 +0000 | [diff] [blame] | 356 | WebKit/gtk/webkit/webkitdownload.cpp \ |
| 357 | WebKit/gtk/webkit/webkiterror.cpp \ |
alp@webkit.org | 94c0655 | 2008-01-31 23:51:53 +0000 | [diff] [blame] | 358 | WebKit/gtk/webkit/webkitnetworkrequest.cpp \ |
| 359 | WebKit/gtk/webkit/webkitprivate.cpp \ |
alp@webkit.org | 9388fc8 | 2008-08-10 18:21:21 +0000 | [diff] [blame] | 360 | WebKit/gtk/webkit/webkitprivate.h \ |
xan@webkit.org | aa45873 | 2009-03-04 20:57:38 +0000 | [diff] [blame] | 361 | WebKit/gtk/webkit/webkitsoupauthdialog.c \ |
christian@webkit.org | 56f0069 | 2008-06-05 22:50:40 +0000 | [diff] [blame] | 362 | WebKit/gtk/webkit/webkitversion.cpp \ |
alp@webkit.org | 94c0655 | 2008-01-31 23:51:53 +0000 | [diff] [blame] | 363 | WebKit/gtk/webkit/webkitwebbackforwardlist.cpp \ |
| 364 | WebKit/gtk/webkit/webkitwebframe.cpp \ |
| 365 | WebKit/gtk/webkit/webkitwebhistoryitem.cpp \ |
zecke@webkit.org | bcca41d | 2008-10-29 22:39:18 +0000 | [diff] [blame] | 366 | WebKit/gtk/webkit/webkitwebinspector.cpp \ |
zecke@webkit.org | 2d40b85 | 2008-12-20 03:18:31 +0000 | [diff] [blame] | 367 | WebKit/gtk/webkit/webkitwebnavigationaction.cpp \ |
| 368 | WebKit/gtk/webkit/webkitwebpolicydecision.cpp \ |
alp@webkit.org | 94c0655 | 2008-01-31 23:51:53 +0000 | [diff] [blame] | 369 | WebKit/gtk/webkit/webkitwebsettings.cpp \ |
zecke@webkit.org | dfb3868 | 2008-11-29 00:20:56 +0000 | [diff] [blame] | 370 | WebKit/gtk/webkit/webkitwebview.cpp \ |
| 371 | WebKit/gtk/webkit/webkitwebwindowfeatures.cpp |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 372 | |
alp@webkit.org | 7c86990 | 2008-06-08 19:04:23 +0000 | [diff] [blame] | 373 | webkitgtk_cppflags += \ |
| 374 | -DBUILDING_WEBKIT \ |
jmalonzo@webkit.org | 249f7ce | 2009-05-18 11:30:41 +0000 | [diff] [blame] | 375 | -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \ |
| 376 | -DDATA_DIR=\"${datadir}\" \ |
alp@webkit.org | 7c86990 | 2008-06-08 19:04:23 +0000 | [diff] [blame] | 377 | -I$(srcdir)/WebKit/gtk \ |
| 378 | -I$(srcdir)/WebKit/gtk/WebCoreSupport \ |
| 379 | -I$(srcdir)/WebKit/gtk/webkit \ |
| 380 | -I$(top_builddir)/WebKit/gtk/webkit |
| 381 | |
jmalonzo@webkit.org | 249f7ce | 2009-05-18 11:30:41 +0000 | [diff] [blame] | 382 | if USE_GNOMEKEYRING |
| 383 | webkitgtk_cppflags += \ |
| 384 | -DWTF_USE_GNOMEKEYRING=1 |
| 385 | endif |
| 386 | |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 387 | webkitgtk_cleanfiles += \ |
kov@webkit.org | 53600a9 | 2009-05-28 17:48:25 +0000 | [diff] [blame] | 388 | $(top_builddir)/WebKit/gtk/docs/version.xml \ |
| 389 | $(top_builddir)/WebKit/gtk/docs/GNUmakefile \ |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 390 | $(top_builddir)/Programs/GtkLauncher \ |
alp@webkit.org | e359c84 | 2008-11-04 04:25:52 +0000 | [diff] [blame] | 391 | $(top_builddir)/WebKit/gtk/webkit-1.0.pc \ |
jmalonzo@webkit.org | 249f7ce | 2009-05-18 11:30:41 +0000 | [diff] [blame] | 392 | $(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h \ |
| 393 | $(top_builddir)/WebKit/gtk/webkit/webkitversion.h |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 394 | |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 395 | pkgconfigdir = $(libdir)/pkgconfig |
alp@webkit.org | 1205732 | 2008-02-01 07:01:18 +0000 | [diff] [blame] | 396 | pkgconfig_DATA = WebKit/gtk/webkit-1.0.pc |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 397 | |
jmalonzo@webkit.org | b589521 | 2008-06-18 17:16:12 +0000 | [diff] [blame] | 398 | stamp_files := \ |
christian@webkit.org | e0a030f | 2008-07-30 18:17:24 +0000 | [diff] [blame] | 399 | stamp-webkitmarshal.cpp \ |
| 400 | stamp-webkitmarshal.h \ |
jmalonzo@webkit.org | d1815718 | 2008-06-18 20:04:18 +0000 | [diff] [blame] | 401 | stamp-webkitenumtypes.cpp \ |
| 402 | stamp-webkitenumtypes.h |
| 403 | |
christian@webkit.org | e0a030f | 2008-07-30 18:17:24 +0000 | [diff] [blame] | 404 | WEBKIT_MARSHAL = $(GENSOURCES)/webkitmarshal |
zecke@webkit.org | fa53038 | 2009-02-26 16:48:58 +0000 | [diff] [blame] | 405 | WEBKIT_MARSHAL_LIST = $(top_srcdir)/WebKit/gtk/webkitmarshal.list |
christian@webkit.org | e0a030f | 2008-07-30 18:17:24 +0000 | [diff] [blame] | 406 | |
| 407 | $(WEBKIT_MARSHAL).cpp: stamp-webkitmarshal.cpp |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 408 | @true |
| 409 | |
christian@webkit.org | e0a030f | 2008-07-30 18:17:24 +0000 | [diff] [blame] | 410 | $(WEBKIT_MARSHAL).h: stamp-webkitmarshal.h |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 411 | @true |
| 412 | |
christian@webkit.org | e0a030f | 2008-07-30 18:17:24 +0000 | [diff] [blame] | 413 | stamp-webkitmarshal.cpp: $(WEBKIT_MARSHAL_LIST) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 414 | echo "extern \"C\" {" > $(WEBKIT_MARSHAL).cpp && \ |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 415 | $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --body >> $(WEBKIT_MARSHAL).cpp && echo '}' >> $(WEBKIT_MARSHAL).cpp && \ |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 416 | echo timestamp > $(@F) |
| 417 | |
christian@webkit.org | e0a030f | 2008-07-30 18:17:24 +0000 | [diff] [blame] | 418 | stamp-webkitmarshal.h: $(WEBKIT_MARSHAL_LIST) |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 419 | $(GLIB_GENMARSHAL) --prefix=webkit_marshal $(WEBKIT_MARSHAL_LIST) --header > $(WEBKIT_MARSHAL).h && \ |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 420 | echo timestamp > $(@F) |
| 421 | |
jmalonzo@webkit.org | d1815718 | 2008-06-18 20:04:18 +0000 | [diff] [blame] | 422 | WebKit/gtk/webkit/webkitenumtypes.h: stamp-webkitenumtypes.h |
| 423 | @true |
jmalonzo@webkit.org | 46fd3f4 | 2008-08-06 12:40:53 +0000 | [diff] [blame] | 424 | stamp-webkitenumtypes.h: $(webkitgtk_h_api) GNUmakefile |
jmalonzo@webkit.org | d1815718 | 2008-06-18 20:04:18 +0000 | [diff] [blame] | 425 | (cd $(srcdir) \ |
| 426 | && glib-mkenums \ |
| 427 | --fhead "#ifndef WEBKIT_ENUM_TYPES_H\n" \ |
| 428 | --fhead "#define WEBKIT_ENUM_TYPES_H\n\n" \ |
| 429 | --fhead "#include <glib-object.h>\n\n" \ |
| 430 | --fhead "#include <webkit/webkitdefines.h>\n\n" \ |
| 431 | --fhead "G_BEGIN_DECLS\n\n" \ |
| 432 | --ftail "G_END_DECLS\n\n" \ |
| 433 | --ftail "#endif\n" \ |
| 434 | --fprod "#include <@filename@>\n\n" \ |
| 435 | --eprod "#define WEBKIT_TYPE_@ENUMSHORT@ @enum_name@_get_type()\n\n" \ |
| 436 | --eprod "WEBKIT_API GType\n@enum_name@_get_type(void);\n\n" \ |
| 437 | $(webkitgtk_h_api) | \ |
| 438 | sed 's,WebKit/gtk/,,' | \ |
| 439 | sed 's,web_kit,webkit,' | \ |
| 440 | sed 's,WEBKIT_TYPE_KIT,WEBKIT_TYPE,' \ |
| 441 | ) > xgen-gth \ |
| 442 | && (cmp -s xgen-gth WebKit/gtk/webkit/webkitenumtypes.h || cp xgen-gth WebKit/gtk/webkit/webkitenumtypes.h) \ |
| 443 | && rm -f xgen-gth \ |
| 444 | && echo timestamp > $(@F) |
| 445 | |
jmalonzo@webkit.org | 46fd3f4 | 2008-08-06 12:40:53 +0000 | [diff] [blame] | 446 | DerivedSources/webkitenumtypes.cpp: $(webkitgtk_h_api) GNUmakefile |
jmalonzo@webkit.org | d1815718 | 2008-06-18 20:04:18 +0000 | [diff] [blame] | 447 | (cd $(srcdir) \ |
| 448 | && glib-mkenums \ |
| 449 | --fhead "#include <config.h>\n" \ |
| 450 | --fhead "#include <glib-object.h>\n" \ |
| 451 | --fhead "#include \"$(top_builddir)/WebKit/gtk/webkit/webkitenumtypes.h\"\n\n" \ |
| 452 | --fhead "extern \"C\" {\n\n" \ |
| 453 | --fprod "\n/* enumerations from \"@filename@\" */" \ |
| 454 | --vhead "static const G@Type@Value _@enum_name@_values[] = {" \ |
| 455 | --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ |
| 456 | --vtail " { 0, NULL, NULL }\n};\n\n" \ |
| 457 | --vtail "GType @enum_name@_get_type(void)\n{\n" \ |
| 458 | --vtail " static GType type = 0;\n\n" \ |
| 459 | --vtail " if (!type)\n" \ |
| 460 | --vtail " type = g_@type@_register_static(\"@EnumName@\", _@enum_name@_values);\n\n" \ |
| 461 | --vtail " return type;\n}\n\n" \ |
| 462 | --ftail "}\n" \ |
| 463 | $(webkitgtk_h_api) | \ |
| 464 | sed 's,web_kit,webkit,' \ |
| 465 | ) > xgen-gtc \ |
| 466 | && cp xgen-gtc $@ \ |
| 467 | && rm -f xgen-gtc |
| 468 | |
alp@webkit.org | 9388fc8 | 2008-08-10 18:21:21 +0000 | [diff] [blame] | 469 | # Files that will be distributed |
| 470 | EXTRA_DIST = \ |
kov@webkit.org | 1edd5ac | 2009-05-08 21:37:09 +0000 | [diff] [blame] | 471 | $(srcdir)/gtk-doc.make \ |
alp@webkit.org | 2ab3695 | 2008-10-28 12:53:51 +0000 | [diff] [blame] | 472 | WebKit/LICENSE \ |
alp@webkit.org | 9388fc8 | 2008-08-10 18:21:21 +0000 | [diff] [blame] | 473 | $(javascriptcore_dist) \ |
alp@webkit.org | 97d8c10 | 2008-08-29 05:09:39 +0000 | [diff] [blame] | 474 | $(webcore_dist) \ |
kov@webkit.org | 9551eb6 | 2009-02-28 03:44:42 +0000 | [diff] [blame] | 475 | $(srcdir)/autotools/symbols.filter \ |
kov@webkit.org | 485273b | 2009-03-02 14:56:41 +0000 | [diff] [blame] | 476 | $(srcdir)/WebKit/gtk/ChangeLog \ |
| 477 | $(srcdir)/WebKit/gtk/NEWS \ |
kov@webkit.org | 166f8e504 | 2009-04-01 16:37:52 +0000 | [diff] [blame] | 478 | $(srcdir)/WebKit/gtk/webkitmarshal.list \ |
| 479 | $(srcdir)/WebKit/gtk/docs/GNUmakefile.* \ |
| 480 | $(srcdir)/WebKit/gtk/docs/webkitenvironment.xml \ |
| 481 | $(srcdir)/WebKit/gtk/docs/webkitgtk-docs.sgml \ |
| 482 | $(srcdir)/WebKit/gtk/docs/webkitgtk-sections.txt \ |
kov@webkit.org | 774c23b | 2009-04-06 19:39:14 +0000 | [diff] [blame] | 483 | $(srcdir)/WebKit/gtk/docs/version.xml.in \ |
jmalonzo@webkit.org | 7ffddf15 | 2009-04-25 09:19:20 +0000 | [diff] [blame] | 484 | $(srcdir)/WebKit/gtk/po/* \ |
| 485 | $(srcdir)/WebKit/gtk/resources/* |
| 486 | |
| 487 | # extra resource files |
| 488 | resourcesdir = ${datadir}/webkit-1.0/resources |
| 489 | dist_resources_DATA = \ |
| 490 | $(shell ls $(srcdir)/WebKit/gtk/resources/*.html) |
| 491 | |
| 492 | # END WEBKIT GTK+ |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 493 | |
| 494 | # Files that will be cleaned |
jmalonzo@webkit.org | 249f7ce | 2009-05-18 11:30:41 +0000 | [diff] [blame] | 495 | MAINTAINERCLEANFILES := $(stamp_files) $(BUILT_SOURCES) doltcompile doltlibtool |
| 496 | DISTCLEANFILES := $(stamp_files) $(BUILT_SOURCES) doltcompile doltlibtool |
| 497 | CLEANFILES := $(stamp_files) $(BUILT_SOURCES) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 498 | |
| 499 | # Include module makefiles |
| 500 | include JavaScriptCore/GNUmakefile.am |
| 501 | include WebCore/GNUmakefile.am |
| 502 | include WebKitTools/GNUmakefile.am |
kov@webkit.org | 774c23b | 2009-04-06 19:39:14 +0000 | [diff] [blame] | 503 | include WebKit/gtk/po/GNUmakefile.am |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 504 | |
jmalonzo@webkit.org | 27bbbab | 2009-03-20 19:45:05 +0000 | [diff] [blame] | 505 | # Build unit tests |
| 506 | noinst_PROGRAMS += $(TEST_PROGS) |
zecke@webkit.org | c31c511 | 2008-12-07 19:16:17 +0000 | [diff] [blame] | 507 | |
jmalonzo@webkit.org | 27bbbab | 2009-03-20 19:45:05 +0000 | [diff] [blame] | 508 | webkit_tests_cflags = \ |
zecke@webkit.org | c31c511 | 2008-12-07 19:16:17 +0000 | [diff] [blame] | 509 | -fno-strict-aliasing \ |
jmalonzo@webkit.org | 27bbbab | 2009-03-20 19:45:05 +0000 | [diff] [blame] | 510 | -I$(srcdir)/JavaScriptCore/ForwardingHeaders \ |
| 511 | -I$(srcdir)/WebKit/gtk \ |
| 512 | -I$(top_builddir)/WebKit/gtk \ |
zecke@webkit.org | c31c511 | 2008-12-07 19:16:17 +0000 | [diff] [blame] | 513 | $(global_cflags) \ |
| 514 | $(GLIB_CFLAGS) \ |
christian@webkit.org | 3a74ebf | 2009-02-23 11:15:30 +0000 | [diff] [blame] | 515 | $(GTK_CFLAGS) \ |
| 516 | $(LIBSOUP_CFLAGS) |
zecke@webkit.org | c31c511 | 2008-12-07 19:16:17 +0000 | [diff] [blame] | 517 | |
jmalonzo@webkit.org | 27bbbab | 2009-03-20 19:45:05 +0000 | [diff] [blame] | 518 | webkit_tests_ldadd = \ |
zecke@webkit.org | c31c511 | 2008-12-07 19:16:17 +0000 | [diff] [blame] | 519 | libwebkit-1.0.la \ |
christian@webkit.org | 2c1a0db | 2009-02-19 21:41:25 +0000 | [diff] [blame] | 520 | $(GTK_LIBS) \ |
jmalonzo@webkit.org | 27bbbab | 2009-03-20 19:45:05 +0000 | [diff] [blame] | 521 | $(GLIB_LIBS) \ |
| 522 | $(LIBSOUP_LIBS) |
| 523 | |
jmalonzo@webkit.org | b6766c5 | 2009-05-18 11:30:25 +0000 | [diff] [blame] | 524 | webkit_tests_ldflags = \ |
| 525 | -no-install \ |
| 526 | -no-fast-install |
| 527 | |
kov@webkit.org | b693494 | 2009-05-29 14:48:33 +0000 | [diff] [blame] | 528 | TEST_PROGS += Programs/unittests/testhttpbackend \ |
kov@webkit.org | 74a9b76 | 2009-06-11 02:48:29 +0000 | [diff] [blame^] | 529 | Programs/unittests/testnetworkrequest \ |
kov@webkit.org | b693494 | 2009-05-29 14:48:33 +0000 | [diff] [blame] | 530 | Programs/unittests/testwebframe \ |
jmalonzo@webkit.org | a4ae29c | 2009-03-20 20:23:12 +0000 | [diff] [blame] | 531 | Programs/unittests/testwebbackforwardlist \ |
christian@webkit.org | 278d4cd | 2009-04-01 19:48:20 +0000 | [diff] [blame] | 532 | Programs/unittests/testwebhistoryitem \ |
xan@webkit.org | 5151f5b | 2009-05-28 18:20:01 +0000 | [diff] [blame] | 533 | Programs/unittests/testdownload \ |
| 534 | Programs/unittests/testatk |
jmalonzo@webkit.org | 27bbbab | 2009-03-20 19:45:05 +0000 | [diff] [blame] | 535 | |
| 536 | # Add additional tests here |
kov@webkit.org | b693494 | 2009-05-29 14:48:33 +0000 | [diff] [blame] | 537 | Programs_unittests_testhttpbackend_SOURCES = WebKit/gtk/tests/testhttpbackend.c |
| 538 | Programs_unittests_testhttpbackend_CFLAGS = $(webkit_tests_cflags) |
| 539 | Programs_unittests_testhttpbackend_LDADD = $(webkit_tests_ldadd) |
| 540 | Programs_unittests_testhttpbackend_LDFLAGS = $(webkit_tests_ldflags) |
| 541 | |
kov@webkit.org | 74a9b76 | 2009-06-11 02:48:29 +0000 | [diff] [blame^] | 542 | Programs_unittests_testnetworkrequest_SOURCES = WebKit/gtk/tests/testnetworkrequest.c |
| 543 | Programs_unittests_testnetworkrequest_CFLAGS = $(webkit_tests_cflags) |
| 544 | Programs_unittests_testnetworkrequest_LDADD = $(webkit_tests_ldadd) |
| 545 | Programs_unittests_testnetworkrequest_LDFLAGS = $(webkit_tests_ldflags) |
| 546 | |
jmalonzo@webkit.org | 27bbbab | 2009-03-20 19:45:05 +0000 | [diff] [blame] | 547 | Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c |
| 548 | Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags) |
| 549 | Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd) |
jmalonzo@webkit.org | b6766c5 | 2009-05-18 11:30:25 +0000 | [diff] [blame] | 550 | Programs_unittests_testwebframe_LDFLAGS = $(webkit_tests_ldflags) |
jmalonzo@webkit.org | 27bbbab | 2009-03-20 19:45:05 +0000 | [diff] [blame] | 551 | |
| 552 | Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c |
| 553 | Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags) |
| 554 | Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd) |
jmalonzo@webkit.org | b6766c5 | 2009-05-18 11:30:25 +0000 | [diff] [blame] | 555 | Programs_unittests_testwebbackforwardlist_LDFLAGS = $(webkit_tests_ldflags) |
zecke@webkit.org | c31c511 | 2008-12-07 19:16:17 +0000 | [diff] [blame] | 556 | |
jmalonzo@webkit.org | a4ae29c | 2009-03-20 20:23:12 +0000 | [diff] [blame] | 557 | Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c |
| 558 | Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags) |
| 559 | Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd) |
jmalonzo@webkit.org | b6766c5 | 2009-05-18 11:30:25 +0000 | [diff] [blame] | 560 | Programs_unittests_testwebhistoryitem_LDFLAGS = $(webkit_tests_ldflags) |
jmalonzo@webkit.org | a4ae29c | 2009-03-20 20:23:12 +0000 | [diff] [blame] | 561 | |
christian@webkit.org | 278d4cd | 2009-04-01 19:48:20 +0000 | [diff] [blame] | 562 | Programs_unittests_testdownload_SOURCES = WebKit/gtk/tests/testdownload.c |
| 563 | Programs_unittests_testdownload_CFLAGS = $(webkit_tests_cflags) |
| 564 | Programs_unittests_testdownload_LDADD = $(webkit_tests_ldadd) |
jmalonzo@webkit.org | b6766c5 | 2009-05-18 11:30:25 +0000 | [diff] [blame] | 565 | Programs_unittests_testdownload_LDFLAGS = $(webkit_tests_ldflags) |
jmalonzo@webkit.org | a4ae29c | 2009-03-20 20:23:12 +0000 | [diff] [blame] | 566 | |
xan@webkit.org | 5151f5b | 2009-05-28 18:20:01 +0000 | [diff] [blame] | 567 | Programs_unittests_testatk_SOURCES = WebKit/gtk/tests/testatk.c |
| 568 | Programs_unittests_testatk_CFLAGS = $(webkit_tests_cflags) |
| 569 | Programs_unittests_testatk_LDADD = $(webkit_tests_ldadd) |
| 570 | Programs_unittests_testatk_LDFLAGS = $(webkit_tests_ldflags) |
| 571 | |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 572 | # Autogenerated sources |
alp@webkit.org | e124466 | 2008-10-07 18:28:43 +0000 | [diff] [blame] | 573 | BUILT_SOURCES := \ |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 574 | $(javascriptcore_built_sources) \ |
| 575 | $(javascriptcore_built_nosources) \ |
| 576 | $(webcore_built_sources) \ |
| 577 | $(webcore_built_nosources) \ |
| 578 | $(webkitgtk_built_sources) \ |
| 579 | $(webkitgtk_built_nosources) |
| 580 | |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 581 | # Project-wide clean rules |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 582 | CLEANFILES += \ |
alp@webkit.org | c04fee2 | 2008-04-19 05:16:00 +0000 | [diff] [blame] | 583 | $(webkitgtk_cleanfiles) |
alp@webkit.org | 278f125 | 2007-12-27 06:05:21 +0000 | [diff] [blame] | 584 | |
alp@webkit.org | f93619a | 2007-12-30 03:33:44 +0000 | [diff] [blame] | 585 | MAINTAINERCLEANFILES += \ |
| 586 | $(srcdir)/aconfig.h.in \ |
jmalonzo@webkit.org | 15d8330 | 2009-03-11 11:57:43 +0000 | [diff] [blame] | 587 | $(srcdir)/autotools/config.* \ |
| 588 | $(srcdir)/autotools/compile \ |
| 589 | $(srcdir)/autotools/depcomp \ |
| 590 | $(srcdir)/autotools/install-sh \ |
| 591 | $(srcdir)/autotools/missing \ |
| 592 | $(srcdir)/configure \ |
| 593 | $(srcdir)/GNUmakefile.in \ |
| 594 | $(srcdir)/INSTALL \ |
| 595 | $(srcdir)/README \ |
| 596 | $(top_builddir)/config.* |
alp@webkit.org | c04fee2 | 2008-04-19 05:16:00 +0000 | [diff] [blame] | 597 | |
alp@webkit.org | 76e7f9a | 2008-10-08 00:42:37 +0000 | [diff] [blame] | 598 | # Older automake versions (1.7) place Plo files in a different place so we need |
| 599 | # to create the output directory manually. |
kov@webkit.org | 774c23b | 2009-04-06 19:39:14 +0000 | [diff] [blame] | 600 | all-local: stamp-po |
| 601 | $(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources |
alp@webkit.org | 76e7f9a | 2008-10-08 00:42:37 +0000 | [diff] [blame] | 602 | |
alp@webkit.org | c04fee2 | 2008-04-19 05:16:00 +0000 | [diff] [blame] | 603 | # remove built sources and program directories |
| 604 | clean-local: |
jmalonzo@webkit.org | 15d8330 | 2009-03-11 11:57:43 +0000 | [diff] [blame] | 605 | -rm -rf $(GENPROGRAMS) |
| 606 | |
xan@webkit.org | 233d51e | 2009-03-14 20:22:13 +0000 | [diff] [blame] | 607 | maintainer-clean-local: distclean-local |
| 608 | |
| 609 | distclean-local: |
alp@webkit.org | c04fee2 | 2008-04-19 05:16:00 +0000 | [diff] [blame] | 610 | -rm -rf $(GENSOURCES) $(GENPROGRAMS) |
kov@webkit.org | 774c23b | 2009-04-06 19:39:14 +0000 | [diff] [blame] | 611 | |
| 612 | install-data-local: po-install-data-local |
| 613 | |
| 614 | installdirs-data-local: po-installdirs-data-local |
| 615 | |
jmalonzo@webkit.org | 7ffddf15 | 2009-04-25 09:19:20 +0000 | [diff] [blame] | 616 | uninstall-local: po-uninstall-local |
jmalonzo@webkit.org | c9b4de4 | 2009-05-18 11:30:53 +0000 | [diff] [blame] | 617 | |
| 618 | # Run all tests in cwd |
| 619 | # FIXME: we should run this under xvfb |
| 620 | test: $(TEST_PROGS) |
| 621 | $(GTESTER) --verbose $(TEST_PROGS); |
| 622 | |
| 623 | # test-report: run tests in cwd and generate report |
| 624 | # full-report: run tests in cwd with -m perf and -m slow and generate report |
| 625 | # perf-report: run tests in cwd with -m perf and generate report |
| 626 | test-report full-report perf-report: $(TEST_PROGS) |
| 627 | @ case $@ in \ |
| 628 | test-report) test_options="-k";; \ |
| 629 | full-report) test_options="-k -m=perf";; \ |
| 630 | perf-report) test_options="-k -m=perf -m=slow";; \ |
| 631 | esac ; \ |
| 632 | $(GTESTER) --verbose $$test_options -o test-report.xml $(TEST_PROGS); \ |
| 633 | $(GTESTER_REPORT) test-report.xml > test-report.html ; |
| 634 | |
| 635 | .PHONY: test test-report perf-report full-report |
| 636 | check-local: test |