<?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>223250</bug_id>
          
          <creation_ts>2021-03-16 05:29:51 -0700</creation_ts>
          <short_desc>adjust-angle-include-paths.py is making the maintenance more difficult than it should be</short_desc>
          <delta_ts>2021-03-23 05:30:16 -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>WebGL</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>223470</dependson>
          <blocked>221664</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Kimmo Kinnunen">kkinnunen</assigned_to>
          <cc>ap</cc>
    
    <cc>dino</cc>
    
    <cc>kbr</cc>
    
    <cc>kkinnunen</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1739908</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-16 05:29:51 -0700</bug_when>
    <thetext>adjust-angle-include-paths.py is making the maintenance more difficult than it should be

Problems:
* The WebCore part has to jump multiple hoops just to include angle headers
* Angle headers are not complete, preventing explicit context API usage

Currently:
1) copy partial amount of public headers
2) regex-patch the headers to fix the shortcoming that the folder structure was flattened by 1


Most likely the problem should be solved one of
a) publish the public headers via publishing the folder reference of ANGLE/include
b) copy public headers via script

https://stackoverflow.com/questions/3807241/keeping-directory-structure-when-creating-frameworks-in-xcode</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741617</commentid>
    <comment_count>1</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-19 01:10:06 -0700</bug_when>
    <thetext>In this bug we could address the difference, if it&apos;s desired:

WTF has &quot;Copy WTF Headers&quot; build target where it rsyncs the headers, preserving the directory structure, to the header path.
wtf does not have Xcode public/private headers, only project headers.

libwebrtc has &quot;Copy libwebrtc headers&quot; build target where it rsyncs the headers, preserving the directory structure, to the header path.
libwebrtc does not have Xcode public/private headers, only project headers.


ANGLE has &quot;Adjust ANGLE paths&quot; *build phase* where it regex-replaces some #includes to not have directories.
ANGLE has Xcode public headers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741618</commentid>
    <comment_count>2</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-19 01:14:13 -0700</bug_when>
    <thetext>The explicit headers part is addressed by bug 223470</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1741787</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-03-19 10:57:59 -0700</bug_when>
    <thetext>At some point, we should be switching from script phases to using a copy headers phase with APPLY_RULES_IN_COPY_HEADERS, as that enables a much easier way to track dependencies. This feature is new build system only, so it cannot be done right now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742761</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-23 05:30:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/75734268&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>