Script which adjusts include paths in ANGLE's copied headers breaks incremental builds
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Jun 2019 01:44:53 +0000 (01:44 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Jun 2019 01:44:53 +0000 (01:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=199212

Patch by Kenneth Russell <kbr@chromium.org> on 2019-06-25
Reviewed by Darin Adler.

Maintain and test a timestamp in adjust-angle-include-paths.sh
in order to avoid touching the headers during each build.

* adjust-angle-include-paths.sh:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@246825 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/ThirdParty/ANGLE/ChangeLog
Source/ThirdParty/ANGLE/adjust-angle-include-paths.sh

index 53e972d..eb1affd 100644 (file)
@@ -1,3 +1,15 @@
+2019-06-25  Kenneth Russell  <kbr@chromium.org>
+
+        Script which adjusts include paths in ANGLE's copied headers breaks incremental builds
+        https://bugs.webkit.org/show_bug.cgi?id=199212
+
+        Reviewed by Darin Adler.
+
+        Maintain and test a timestamp in adjust-angle-include-paths.sh
+        in order to avoid touching the headers during each build.
+
+       * adjust-angle-include-paths.sh:
+
 2019-06-18  Kenneth Russell  <kbr@chromium.org>
 
         Add preliminary ANGLE backend to WebCore
index 4d50ef0..dc1d965 100755 (executable)
@@ -28,7 +28,8 @@ else
 fi
 
 for i in $output_dir/*.h ; do
-    sed -e '
+    if [ ! -f $output_dir/angle.timestamp ] || [ $i -nt $output_dir/angle.timestamp ] ; then
+        sed -e '
 s/^#include <EGL\/\(.*\)>/#include <ANGLE\/\1>/
 s/^#include <GLES2\/\(.*\)>/#include <ANGLE\/\1>/
 s/^#include <GLES3\/\(.*\)>/#include <ANGLE\/\1>/
@@ -36,4 +37,8 @@ s/^#include <KHR\/\(.*\)>/#include <ANGLE\/\1>/
 s/^#include <export.h>/#include <ANGLE\/export.h>/
 s/^#include "\(eglext_angle\|gl2ext_angle\|ShaderVars\).h"/#include <ANGLE\/\1.h>/
 ' -i "" $i
+        echo Postprocessed ANGLE header $i
+    fi
 done
+
+touch $output_dir/angle.timestamp