Changeset 160368 in webkit


Ignore:
Timestamp:
Dec 10, 2013 8:43:25 AM (10 years ago)
Author:
Martin Robinson
Message:

[GTK] [CMake] Add support for building the WebKit injected bundle
https://bugs.webkit.org/show_bug.cgi?id=116373

Reviewed by Gustavo Noronha Silva.

  • PlatformGTK.cmake: Add support for building the InjectedBundle and link the WebKit2

shared library against the GObject DOM bindings.

  • WebProcess/gtk/WebGtkExtensionManager.h: Properly export symbols used by the InjectedBundle.
Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160364 r160368  
     12013-12-10  Martin Robinson  <mrobinson@igalia.com>
     2
     3        [GTK] [CMake] Add support for building the WebKit injected bundle
     4        https://bugs.webkit.org/show_bug.cgi?id=116373
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        * PlatformGTK.cmake: Add support for building the InjectedBundle and link the WebKit2
     9        shared library against the GObject DOM bindings.
     10        * WebProcess/gtk/WebGtkExtensionManager.h: Properly export symbols used by the InjectedBundle.
     11
    1122013-12-10  Kwang Yul Seo  <skyul@company100.net>
    213
  • trunk/Source/WebKit2/PlatformGTK.cmake

    r160363 r160368  
     1set(DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR ${DERIVED_SOURCES_DIR}/webkitdom)
    12set(DERIVED_SOURCES_WEBKIT2GTK_DIR ${DERIVED_SOURCES_DIR}/webkit2gtk)
    23set(WEBKIT2_BUILT_API_DIR ${DERIVED_SOURCES_WEBKIT2GTK_DIR}/webkit2)
     
    364365list(INSERT WebKit2_INCLUDE_DIRECTORIES 0
    365366    "${WEBKIT2_FORWARDING_HEADERS_DIR}"
     367    "${WEBKIT2_FORWARDING_HEADERS_DIR}/webkit2extension"
    366368    "${WEBKIT2_BUILT_API_DIR}"
    367369    "${DERIVED_SOURCES_WEBKIT2GTK_DIR}"
     
    386388    "${WEBKIT2_DIR}/UIProcess/gtk"
    387389    "${WEBKIT2_DIR}/UIProcess/soup"
     390    "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk"
    388391    "${WEBKIT2_DIR}/WebProcess/gtk"
    389392    "${WEBKIT2_DIR}/WebProcess/soup"
     
    435438)
    436439
     440add_custom_target(fake-installed-webextension-headers
     441    mkdir -p ${WEBKIT2_FORWARDING_HEADERS_DIR}/webkit2extension
     442    COMMAND ln -n -s -f ${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/gtk ${WEBKIT2_FORWARDING_HEADERS_DIR}/webkit2extension/webkit2
     443)
     444
    437445add_custom_target(gtk-forwarding-headers
    438446    COMMAND ${PERL_EXECUTABLE} ${WEBKIT2_DIR}/Scripts/generate-forwarding-headers.pl ${WEBKIT2_DIR} ${DERIVED_SOURCES_WEBKIT2_DIR}/include gtk
     
    447455     gtk-forwarding-headers
    448456     soup-forwarding-headers
     457     fake-installed-webextension-headers
    449458)
    450459
     
    471480    install(TARGETS ${PluginProcess_EXECUTABLE_NAME} DESTINATION "${EXEC_INSTALL_DIR}")
    472481endif () # ENABLE_PLUGIN_PROCESS
     482
     483# Commands for building the built-in injected bundle.
     484include_directories(
     485    "${WEBKIT2_DIR}/Platform"
     486    "${WEBKIT2_DIR}/Shared"
     487    "${WEBKIT2_DIR}/Shared/API/c"
     488    "${WEBKIT2_DIR}/UIProcess/API/C"
     489    "${WEBKIT2_DIR}/WebProcess/InjectedBundle"
     490    "${WEBKIT2_DIR}/WebProcess/InjectedBundle/API/c"
     491    "${DERIVED_SOURCES_DIR}"
     492    "${DERIVED_SOURCES_DIR}/InjectedBundle"
     493    "${DERIVED_SOURCES_GOBJECT_DOM_BINDINGS_DIR}"
     494    "${DERIVED_SOURCES_WEBKIT2_DIR}/include"
     495)
     496
     497add_library(webkit2gtkinjectedbundle MODULE
     498    "${WEBKIT2_DIR}/WebProcess/gtk/WebGtkInjectedBundleMain.cpp"
     499)
     500add_dependencies(webkit2gtkinjectedbundle GObjectDOMBindings)
     501list(APPEND WebKit2_LIBRARIES GObjectDOMBindings)
  • trunk/Source/WebKit2/WebProcess/gtk/WebGtkExtensionManager.h

    r139428 r160368  
    3939
    4040public:
    41     static WebGtkExtensionManager& shared();
     41    WK_EXPORT static WebGtkExtensionManager& shared();
    4242
    43     void initialize(WKBundleRef, WKTypeRef);
     43    WK_EXPORT void initialize(WKBundleRef, WKTypeRef);
    4444
    4545private:
Note: See TracChangeset for help on using the changeset viewer.