diff options
Diffstat (limited to 'recipes/webkit/webkit-gtk/GNUmakefile.am')
-rw-r--r-- | recipes/webkit/webkit-gtk/GNUmakefile.am | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/recipes/webkit/webkit-gtk/GNUmakefile.am b/recipes/webkit/webkit-gtk/GNUmakefile.am index 9e97e67387..13cf5eefa1 100644 --- a/recipes/webkit/webkit-gtk/GNUmakefile.am +++ b/recipes/webkit/webkit-gtk/GNUmakefile.am @@ -47,6 +47,8 @@ lib_LIBRARIES := IDL_BINDINGS := +TEST_PROGS := + # Global flags to CPP global_cppflags := @@ -463,29 +465,43 @@ include JavaScriptCore/GNUmakefile.am include WebCore/GNUmakefile.am include WebKitTools/GNUmakefile.am -# Build unit test -noinst_PROGRAMS += Programs/UnitTests -Programs_UnitTests_CPPFLAGS = \ - -I$(srcdir)/WebKit/gtk \ - -I$(top_builddir)/WebKit/gtk \ - $(global_cppflags) \ - $(javascriptcore_cppflags) - -Programs_UnitTests_SOURCES = \ - WebKit/gtk/tests/main.c +# Build unit tests +noinst_PROGRAMS += $(TEST_PROGS) -Programs_UnitTests_CFLAGS = \ +webkit_tests_cflags = \ -fno-strict-aliasing \ -O2 \ + -I$(srcdir)/JavaScriptCore/ForwardingHeaders \ + -I$(srcdir)/WebKit/gtk \ + -I$(top_builddir)/WebKit/gtk \ $(global_cflags) \ $(GLIB_CFLAGS) \ $(GTK_CFLAGS) \ $(LIBSOUP_CFLAGS) -Programs_UnitTests_LDADD = \ +webkit_tests_ldadd = \ libwebkit-1.0.la \ $(GTK_LIBS) \ - $(GLIB_LIBS) + $(GLIB_LIBS) \ + $(LIBSOUP_LIBS) + +TEST_PROGS += Programs/unittests/testwebframe \ + Programs/unittests/testwebbackforwardlist \ + Programs/unittests/testwebhistoryitem + +# Add additional tests here +Programs_unittests_testwebframe_SOURCES = WebKit/gtk/tests/testwebframe.c +Programs_unittests_testwebframe_CFLAGS = $(webkit_tests_cflags) +Programs_unittests_testwebframe_LDADD = $(webkit_tests_ldadd) + +Programs_unittests_testwebbackforwardlist_SOURCES = WebKit/gtk/tests/testwebbackforwardlist.c +Programs_unittests_testwebbackforwardlist_CFLAGS = $(webkit_tests_cflags) +Programs_unittests_testwebbackforwardlist_LDADD = $(webkit_tests_ldadd) + +Programs_unittests_testwebhistoryitem_SOURCES = WebKit/gtk/tests/testwebhistoryitem.c +Programs_unittests_testwebhistoryitem_CFLAGS = $(webkit_tests_cflags) +Programs_unittests_testwebhistoryitem_LDADD = $(webkit_tests_ldadd) + # Autogenerated sources BUILT_SOURCES := \ |