Changeset 133059 in webkit


Ignore:
Timestamp:
Oct 31, 2012 12:29:17 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Enable webkit2 introspection
https://bugs.webkit.org/show_bug.cgi?id=94313

Patch by Jesse van den Kieboom <jessevdk@gnome.org> on 2012-10-31
Reviewed by Martin Robinson.

This patch enables generation of introspection information for webkit2
in the same was as it is done for webkit. The resulting gir and
typelib file are named WebKit2-3.0.{gir,typelib}.

  • GNUmakefile.am:
  • UIProcess/API/gtk/WebKitBackForwardList.cpp:
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/gtk/GNUmakefile.am

    r129651 r133059  
    330330typelibs_DATA += $(JSCORE_GIRSOURCES:.gir=.typelib) $(WEBKIT_GIRSOURCES:.gir=.typelib)
    331331
    332 %.typelib: %.gir $(G_IR_COMPILER)
     332WebKit-@WEBKITGTK_API_VERSION@.typelib: WebKit-@WEBKITGTK_API_VERSION@.gir $(G_IR_COMPILER)
     333        $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(WebKit) --includedir $(top_builddir) $< -o $@
     334
     335JSCore-@WEBKITGTK_API_VERSION@.typelib: JSCore-@WEBKITGTK_API_VERSION@.gir $(G_IR_COMPILER)
    333336        $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(WebKit) --includedir $(top_builddir) $< -o $@
    334337
  • trunk/Source/WebKit2/ChangeLog

    r133057 r133059  
     12012-10-31  Jesse van den Kieboom  <jessevdk@gnome.org>
     2
     3        Enable webkit2 introspection
     4        https://bugs.webkit.org/show_bug.cgi?id=94313
     5
     6        Reviewed by Martin Robinson.
     7
     8        This patch enables generation of introspection information for webkit2
     9        in the same was as it is done for webkit. The resulting gir and
     10        typelib file are named WebKit2-3.0.{gir,typelib}.
     11
     12        * GNUmakefile.am:
     13        * UIProcess/API/gtk/WebKitBackForwardList.cpp:
     14
    1152012-10-31  Christophe Dumez  <christophe.dumez@intel.com>
    216
  • trunk/Source/WebKit2/GNUmakefile.am

    r131292 r133059  
    204204endif
    205205
     206if ENABLE_INTROSPECTION
     207
     208WebKit2-@WEBKITGTK_API_VERSION@.gir: $(G_IR_SCANNER) libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la
     209        $(AM_V_GEN)$(G_IR_SCANNER) -v --warn-all \
     210             --symbol-prefix=webkit \
     211             --identifier-prefix=WebKit \
     212             --namespace=WebKit2 \
     213             --nsversion=@WEBKITGTK_API_VERSION@ \
     214             --include=GObject-2.0 \
     215             --include=Gtk-3.0 \
     216             --include=Soup-2.4 \
     217             --library=webkit2gtk-@WEBKITGTK_API_VERSION@ \
     218             --library=javascriptcoregtk-@WEBKITGTK_API_VERSION@ \
     219             --libtool="$(LIBTOOL)" \
     220             --pkg=gobject-2.0 \
     221             --pkg=gtk+-@GTK_API_VERSION@ \
     222             --pkg=libsoup-2.4 \
     223             --pkg-export=webkit2gtk-@WEBKITGTK_API_VERSION@ \
     224             --output=$@ \
     225             --add-include-path=$(WebKit2) \
     226             --add-include-path=$(top_builddir) \
     227             --c-include="webkit2/webkit2.h" \
     228             -I$(srcdir)/Source \
     229             -I$(WebKit2) \
     230             -I$(GENSOURCES) \
     231             -I$(GENSOURCES_WEBKIT2) \
     232             -I$(top_builddir)/Source/WebKit2/UIProcess/API/gtk \
     233             -I$(top_srcdir)/Source/JavaScriptCore/ForwardingHeaders \
     234             -I$(top_srcdir) \
     235             -I$(GENSOURCES_WEBKIT2)/webkit2gtk/include \
     236             -I$(GENSOURCES_WEBKIT2)/webkit2gtk \
     237             -DWEBKIT2_COMPILATION \
     238             $(GENSOURCES_WEBKIT2)/webkit2gtk/webkit2/WebKitEnumTypes.h \
     239             $(webkit2gtk_h_api) \
     240             $(WebKit2)/UIProcess/API/gtk/*.cpp
     241
     242gir2dir = $(datadir)/gir-1.0
     243gir2_DATA = WebKit2-@WEBKITGTK_API_VERSION@.gir
     244
     245typelibs2dir = $(libdir)/girepository-1.0
     246typelibs2_DATA = WebKit2-@WEBKITGTK_API_VERSION@.typelib
     247
     248WebKit2-@WEBKITGTK_API_VERSION@.typelib: WebKit2-@WEBKITGTK_API_VERSION@.gir $(G_IR_COMPILER)
     249        $(AM_V_GEN)$(G_IR_COMPILER) --includedir $(WebKit2) --includedir $(top_builddir) $< -o $@
     250
     251CLEANFILES += WebKit2-@WEBKITGTK_API_VERSION@.gir WebKit2-@WEBKITGTK_API_VERSION@.typelib
     252
     253endif
     254
    206255# WebKit2 specific variables
    207256forwarding_headers := $(GENSOURCES_WEBKIT2)/include
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitBackForwardList.cpp

    r131760 r133059  
    249249 * @back_forward_list: a #WebKitBackForwardList
    250250 *
    251  * Returns: (element-type WebKit.BackForwardListItem) (transfer container): a #GList of
     251 * Returns: (element-type WebKit2.BackForwardListItem) (transfer container): a #GList of
    252252 *    items preceding the current item.
    253253 */
     
    264264 * @limit: the number of items to retrieve
    265265 *
    266  * Returns: (element-type WebKit.BackForwardListItem) (transfer container): a #GList of
     266 * Returns: (element-type WebKit2.BackForwardListItem) (transfer container): a #GList of
    267267 *    items preceding the current item limited by @limit.
    268268 */
     
    279279 * @back_forward_list: a #WebKitBackForwardList
    280280 *
    281  * Returns: (element-type WebKit.BackForwardListItem) (transfer container): a #GList of
     281 * Returns: (element-type WebKit2.BackForwardListItem) (transfer container): a #GList of
    282282 *    items following the current item.
    283283 */
     
    294294 * @limit: the number of items to retrieve
    295295 *
    296  * Returns: (element-type WebKit.BackForwardListItem) (transfer container): a #GList of
     296 * Returns: (element-type WebKit2.BackForwardListItem) (transfer container): a #GList of
    297297 *    items following the current item limited by @limit.
    298298 */
Note: See TracChangeset for help on using the changeset viewer.