<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>176475</bug_id>
          
          <creation_ts>2017-09-06 13:42:57 -0700</creation_ts>
          <short_desc>[WPE][CMake] The “install” target should install all public API headers</short_desc>
          <delta_ts>2017-10-10 04:30:46 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WPE WebKit</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=178100</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=178104</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>178125</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Adrian Perez">aperez</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>clopez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1346084</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2017-09-06 13:42:57 -0700</bug_when>
    <thetext>Today while working in bug #176448 I noticed that the “install” target
for WPE only installs the JavaScriptCore headers (see the log below).
The rest of the public API headers should be installed as well.


---

[100%] Built target WebProcess
Install the project...
-- Install configuration: &quot;Release&quot;
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/include/wpe-0.1/WPE/JavaScriptCore/JSBase.h
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/include/wpe-0.1/WPE/JavaScriptCore/JSContextRef.h
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/include/wpe-0.1/WPE/JavaScriptCore/JSObjectRef.h
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/include/wpe-0.1/WPE/JavaScriptCore/JSStringRef.h
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/include/wpe-0.1/WPE/JavaScriptCore/JSTypedArray.h
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/include/wpe-0.1/WPE/JavaScriptCore/JSValueRef.h
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/include/wpe-0.1/WPE/JavaScriptCore/JavaScript.h
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/include/wpe-0.1/WPE/JavaScriptCore/WebKitAvailability.h
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/lib/libWPEWebInspectorResources.so
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/bin/WPEStorageProcess
-- Set runtime path of &quot;/home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/bin/WPEStorageProcess&quot; to &quot;&quot;
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/lib/libWPEWebKit.so.0.0.20170728
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/lib/libWPEWebKit.so.0
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/lib/libWPEWebKit.so
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/bin/WPEWebProcess
-- Set runtime path of &quot;/home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/bin/WPEWebProcess&quot; to &quot;&quot;
-- Installing: /home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/bin/WPENetworkProcess
-- Set runtime path of &quot;/home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728/_install/bin/WPENetworkProcess&quot; to &quot;&quot;
/home/aperez/devel/wpe/WebKit/WebKitBuild/Release/wpewebkit-0.0.20170728.tar (1/1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1358441</commentid>
    <comment_count>1</comment_count>
      <attachid>323226</attachid>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2017-10-09 14:53:27 -0700</bug_when>
    <thetext>Created attachment 323226
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1358455</commentid>
    <comment_count>2</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2017-10-09 15:16:22 -0700</bug_when>
    <thetext>With the patch applied, the “tree” command generates the output below.
The idea is that programs using the WPE WebKit port would use:

  #include &lt;wpe/webkit.h&gt;

The deprecated WebKit2 C API is still around and disabled by default.
It can be installed in parallel passing “-DEXPORT_DEPRECATED_WEBKIT2_C_API”
to CMake when configuring.

----8&lt;----------------- tree output -------------------8&lt;----

/home/aperez/devel/wpe/buildroot/output/target/usr/include/wpe-0.1/
└── WPE
    ├── JavaScriptCore
    │   ├── JavaScript.h
    │   ├── JSBase.h
    │   ├── JSContextRef.h
    │   ├── JSObjectRef.h
    │   ├── JSStringRef.h
    │   ├── JSTypedArray.h
    │   ├── JSValueRef.h
    │   └── WebKitAvailability.h
    └── wpe
        ├── WebKitApplicationInfo.h
        ├── WebKitAuthenticationRequest.h
        ├── WebKitAutomationSession.h
        ├── WebKitBackForwardList.h
        ├── WebKitBackForwardListItem.h
        ├── WebKitContextMenuActions.h
        ├── WebKitContextMenu.h
        ├── WebKitContextMenuItem.h
        ├── WebKitCookieManager.h
        ├── WebKitCredential.h
        ├── WebKitDefines.h
        ├── WebKitDownload.h
        ├── WebKitEditingCommands.h
        ├── WebKitEditorState.h
        ├── WebKitEnumTypes.h
        ├── WebKitError.h
        ├── WebKitFaviconDatabase.h
        ├── WebKitFindController.h
        ├── WebKitFormSubmissionRequest.h
        ├── WebKitGeolocationPermissionRequest.h
        ├── webkit.h
        ├── WebKitHitTestResult.h
        ├── WebKitInstallMissingMediaPluginsPermissionRequest.h
        ├── WebKitJavascriptResult.h
        ├── WebKitMimeInfo.h
        ├── WebKitNavigationAction.h
        ├── WebKitNavigationPolicyDecision.h
        ├── WebKitNetworkProxySettings.h
        ├── WebKitNotification.h
        ├── WebKitNotificationPermissionRequest.h
        ├── WebKitPermissionRequest.h
        ├── WebKitPlugin.h
        ├── WebKitPolicyDecision.h
        ├── WebKitResponsePolicyDecision.h
        ├── WebKitSecurityManager.h
        ├── WebKitSecurityOrigin.h
        ├── WebKitSettings.h
        ├── WebKitURIRequest.h
        ├── WebKitURIResponse.h
        ├── WebKitURISchemeRequest.h
        ├── WebKitUserContent.h
        ├── WebKitUserContentManager.h
        ├── WebKitUserMediaPermissionRequest.h
        ├── WebKitWebContext.h
        ├── WebKitWebResource.h
        ├── WebKitWebsiteData.h
        ├── WebKitWebsiteDataManager.h
        ├── WebKitWebView.h
        ├── WebKitWebViewSessionState.h
        └── WebKitWindowProperties.h

3 directories, 58 files</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1358704</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2017-10-10 03:51:46 -0700</bug_when>
    <thetext>(In reply to Adrian Perez from comment #2)
&gt; With the patch applied, the “tree” command generates the output below.
&gt; The idea is that programs using the WPE WebKit port would use:
&gt; 
&gt;   #include &lt;wpe/webkit.h&gt;
&gt; 
&gt; The deprecated WebKit2 C API is still around and disabled by default.
&gt; It can be installed in parallel passing “-DEXPORT_DEPRECATED_WEBKIT2_C_API”
&gt; to CMake when configuring.

We should not allow to install the C API in any case in upstream.

&gt; ----8&lt;----------------- tree output -------------------8&lt;----
&gt; 
&gt; /home/aperez/devel/wpe/buildroot/output/target/usr/include/wpe-0.1/
&gt; └── WPE
&gt;     ├── JavaScriptCore
&gt;     │   ├── JavaScript.h
&gt;     │   ├── JSBase.h
&gt;     │   ├── JSContextRef.h
&gt;     │   ├── JSObjectRef.h
&gt;     │   ├── JSStringRef.h
&gt;     │   ├── JSTypedArray.h
&gt;     │   ├── JSValueRef.h
&gt;     │   └── WebKitAvailability.h
&gt;     └── wpe
&gt;         ├── WebKitApplicationInfo.h
&gt;         ├── WebKitAuthenticationRequest.h
&gt;         ├── WebKitAutomationSession.h
&gt;         ├── WebKitBackForwardList.h
&gt;         ├── WebKitBackForwardListItem.h
&gt;         ├── WebKitContextMenuActions.h
&gt;         ├── WebKitContextMenu.h
&gt;         ├── WebKitContextMenuItem.h
&gt;         ├── WebKitCookieManager.h
&gt;         ├── WebKitCredential.h
&gt;         ├── WebKitDefines.h
&gt;         ├── WebKitDownload.h
&gt;         ├── WebKitEditingCommands.h
&gt;         ├── WebKitEditorState.h
&gt;         ├── WebKitEnumTypes.h
&gt;         ├── WebKitError.h
&gt;         ├── WebKitFaviconDatabase.h
&gt;         ├── WebKitFindController.h
&gt;         ├── WebKitFormSubmissionRequest.h
&gt;         ├── WebKitGeolocationPermissionRequest.h
&gt;         ├── webkit.h
&gt;         ├── WebKitHitTestResult.h
&gt;         ├── WebKitInstallMissingMediaPluginsPermissionRequest.h
&gt;         ├── WebKitJavascriptResult.h
&gt;         ├── WebKitMimeInfo.h
&gt;         ├── WebKitNavigationAction.h
&gt;         ├── WebKitNavigationPolicyDecision.h
&gt;         ├── WebKitNetworkProxySettings.h
&gt;         ├── WebKitNotification.h
&gt;         ├── WebKitNotificationPermissionRequest.h
&gt;         ├── WebKitPermissionRequest.h
&gt;         ├── WebKitPlugin.h
&gt;         ├── WebKitPolicyDecision.h
&gt;         ├── WebKitResponsePolicyDecision.h
&gt;         ├── WebKitSecurityManager.h
&gt;         ├── WebKitSecurityOrigin.h
&gt;         ├── WebKitSettings.h
&gt;         ├── WebKitURIRequest.h
&gt;         ├── WebKitURIResponse.h
&gt;         ├── WebKitURISchemeRequest.h
&gt;         ├── WebKitUserContent.h
&gt;         ├── WebKitUserContentManager.h
&gt;         ├── WebKitUserMediaPermissionRequest.h
&gt;         ├── WebKitWebContext.h
&gt;         ├── WebKitWebResource.h
&gt;         ├── WebKitWebsiteData.h
&gt;         ├── WebKitWebsiteDataManager.h
&gt;         ├── WebKitWebView.h
&gt;         ├── WebKitWebViewSessionState.h
&gt;         └── WebKitWindowProperties.h
&gt; 
&gt; 3 directories, 58 files</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1358713</commentid>
    <comment_count>4</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2017-10-10 04:27:08 -0700</bug_when>
    <thetext>(In reply to Carlos Garcia Campos from comment #3)
&gt; (In reply to Adrian Perez from comment #2)
&gt; &gt; With the patch applied, the “tree” command generates the output below.
&gt; &gt; The idea is that programs using the WPE WebKit port would use:
&gt; &gt; 
&gt; &gt;   #include &lt;wpe/webkit.h&gt;
&gt; &gt; 
&gt; &gt; The deprecated WebKit2 C API is still around and disabled by default.
&gt; &gt; It can be installed in parallel passing “-DEXPORT_DEPRECATED_WEBKIT2_C_API”
&gt; &gt; to CMake when configuring.
&gt; 
&gt; We should not allow to install the C API in any case in upstream.

I completely agree with this, but I was afraid that there might be
someone still using the C API so it seemed better to leave it around
for now and handle its removal in a separate bug+patch. I have just
filed bug #178125 for that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1358714</commentid>
    <comment_count>5</comment_count>
      <attachid>323226</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-10-10 04:27:43 -0700</bug_when>
    <thetext>Comment on attachment 323226
Patch

Clearing flags on attachment: 323226

Committed r223128: &lt;http://trac.webkit.org/changeset/223128&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1358715</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-10-10 04:27:45 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>323226</attachid>
            <date>2017-10-09 14:53:27 -0700</date>
            <delta_ts>2017-10-10 04:27:43 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-176475-20171009235326.patch</filename>
            <type>text/plain</type>
            <size>1801</size>
            <attacher name="Adrian Perez">aperez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjIzMDcwCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IGQ3OTZmODk0YWYxMjBmYTIz
Zjg3YmJjMjI4NGE0Yjc5YzVjYWRlZWEuLjhlMDFiNzUyZDVmNWUwNmJjYjFlZTMyZDhkOTYzYjA0
NzA1ODcwMTEgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCisrKyBiL1NvdXJj
ZS9XZWJLaXQvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTctMTAtMDkgIEFkcmlhbiBQ
ZXJleiBkZSBDYXN0cm8gIDxhcGVyZXpAaWd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