<?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>170797</bug_id>
          
          <creation_ts>2017-04-12 17:39:31 -0700</creation_ts>
          <short_desc>[WinCairo] Assign WEBKIT_LIBRARIES_DIR to CMAKE_PREFIX_PATH</short_desc>
          <delta_ts>2017-04-13 10:54:25 -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>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Don Olmstead">don.olmstead</reporter>
          <assigned_to name="Don Olmstead">don.olmstead</assigned_to>
          <cc>achristensen</cc>
    
    <cc>commit-queue</cc>
    
    <cc>don.olmstead</cc>
    
    <cc>fujii</cc>
    
    <cc>lforschler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1296890</commentid>
    <comment_count>0</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-04-12 17:39:31 -0700</bug_when>
    <thetext>Currently WinCairo cannot use find_package for any of the third party libraries that have build in support within CMake (cURL, ZLIB, etc). CMAKE_PREFIX_PATH can be used to set a search path for those libraries. By adding WEBKIT_LIBRARIES_DIR to the CMAKE_PREFIX_PATH find_package works as expected. This also requires setting a global hint for CMake to look into lib32/lib64 directories to match the current directory structure.

This also means that the explicit including of WEBKIT_LIBRARIES_DIR within the WebKit specific finds (Cairo) are not necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1296892</commentid>
    <comment_count>1</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-04-12 17:41:17 -0700</bug_when>
    <thetext>Just a heads up that FIND_LIBRARY_USE_LIB32_PATHS doesn&apos;t appear to be available until CMake 3.7. This means the same ideas cannot currently be applied to AppleWin. WinCairo only does 64 bit builds so this limitation isn&apos;t there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1296895</commentid>
    <comment_count>2</comment_count>
      <attachid>306957</attachid>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-04-12 17:59:10 -0700</bug_when>
    <thetext>Created attachment 306957
Patch with CMake changes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1296950</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-04-12 22:28:07 -0700</bug_when>
    <thetext>(In reply to Don Olmstead from comment #1)
&gt; Just a heads up that FIND_LIBRARY_USE_LIB32_PATHS doesn&apos;t appear to be
&gt; available until CMake 3.7. This means the same ideas cannot currently be
&gt; applied to AppleWin. WinCairo only does 64 bit builds so this limitation
&gt; isn&apos;t there.

Then we shouldn&apos;t use it yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1297018</commentid>
    <comment_count>4</comment_count>
    <who name="Don Olmstead">don.olmstead</who>
    <bug_when>2017-04-13 10:18:33 -0700</bug_when>
    <thetext>(In reply to Alex Christensen from comment #3)
&gt; (In reply to Don Olmstead from comment #1)
&gt; &gt; Just a heads up that FIND_LIBRARY_USE_LIB32_PATHS doesn&apos;t appear to be
&gt; &gt; available until CMake 3.7. This means the same ideas cannot currently be
&gt; &gt; applied to AppleWin. WinCairo only does 64 bit builds so this limitation
&gt; &gt; isn&apos;t there.
&gt; 
&gt; Then we shouldn&apos;t use it yet.

When do the AppleWin bots get updated? Our WinCairo buildbot has CMake 3.7.2 and should soon have 3.8.0 installed on it.

I foresee us requiring at least 3.8.0 for WinCairo development in the near future as we&apos;re about ready to update the libraries and find_package(OpenSSL) does not properly detect libressl on Windows until 3.8.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1297022</commentid>
    <comment_count>5</comment_count>
      <attachid>306957</attachid>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2017-04-13 10:25:41 -0700</bug_when>
    <thetext>Comment on attachment 306957
Patch with CMake changes

Let&apos;s assume updating anything in the AppleWin build tools takes a really long time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1297036</commentid>
    <comment_count>6</comment_count>
      <attachid>306957</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-04-13 10:54:24 -0700</bug_when>
    <thetext>Comment on attachment 306957
Patch with CMake changes

Clearing flags on attachment: 306957

Committed r215326: &lt;http://trac.webkit.org/changeset/215326&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1297037</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-04-13 10:54:25 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>306957</attachid>
            <date>2017-04-12 17:59:10 -0700</date>
            <delta_ts>2017-04-13 10:54:24 -0700</delta_ts>
            <desc>Patch with CMake changes</desc>
            <filename>bug170797.diff</filename>
            <type>text/plain</type>
            <size>2660</size>
            <attacher name="Don Olmstead">don.olmstead</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0NoYW5nZUxvZyBiL0NoYW5nZUxvZwppbmRleCBlYjNmOGI0Li5jMGJkYjU5
IDEwMDY0NAotLS0gYS9DaGFuZ2VMb2cKKysrIGIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTMgQEAK
KzIwMT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