Check in updated JSCore project that tracks generated file dependencies properly.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2006 21:05:29 +0000 (21:05 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2006 21:05:29 +0000 (21:05 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@12033 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj
JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/build-generated-files.sh [new file with mode: 0755]

index 7293c63..22f984a 100644 (file)
                        IntermediateDirectory="$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate"
                        ConfigurationType="4"
                        CharacterSet="1"
+                       DeleteExtensionsOnClean="*.obj;*.ilk;*.tlb;*.tli;*.tlh;*.tmp;*.rsp;*.pgc;*.pgd;$(TargetPath)"
                        >
                        <Tool
                                Name="VCPreBuildEventTool"
                                Description="Constructing generated files..."
-                               CommandLine="if not exist &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate&quot; mkdir &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate&quot;&#x0D;&#x0A;if not exist &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)&quot; mkdir &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)&quot;&#x0D;&#x0A;if not exist &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate&quot; mkdir &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate&quot;&#x0D;&#x0A;if not exist &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources&quot; mkdir &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;$(WebkitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\dftables.intermediate\dftables.exe&quot; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\chartables.c&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\array_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\array_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\bool_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\bool_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\date_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\date_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\error_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\error_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\function_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\function_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\math_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\math_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\number_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\number_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\object_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\object_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\regexp_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\regexp_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\string_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\string_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\keywords.table&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\lexer.lut.h&quot; -i&#x0D;&#x0A;&quot;bison.exe&quot; -d -p kjsyy &quot;$(InputDir)\..\..\kjs\grammar.y&quot; -o &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\grammar.cpp&quot;&#x0D;&#x0A;move  &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\grammar.hpp&quot; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\grammar.h&quot;&#x0D;&#x0A;"
+                               CommandLine="bash build-generated-files.sh &quot;$(ConfigurationName)&quot; &quot;$(WebKitOutputDir)&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;$(WebkitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\dftables.intermediate\dftables.exe&quot; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\chartables.c&quot;&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCCustomBuildTool"
                        IntermediateDirectory="$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate"
                        ConfigurationType="4"
                        CharacterSet="1"
+                       DeleteExtensionsOnClean="*.obj;*.ilk;*.tlb;*.tli;*.tlh;*.tmp;*.rsp;*.pgc;*.pgd;$(TargetPath)"
                        WholeProgramOptimization="1"
                        >
                        <Tool
                                Name="VCPreBuildEventTool"
                                Description="Constructing generated files..."
-                               CommandLine="if not exist &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate&quot; mkdir &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate&quot;&#x0D;&#x0A;if not exist &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)&quot; mkdir &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)&quot;&#x0D;&#x0A;if not exist &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate&quot; mkdir &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate&quot;&#x0D;&#x0A;if not exist &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources&quot; mkdir &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;$(WebkitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\dftables.intermediate\dftables.exe&quot; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\chartables.c&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\array_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\array_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\bool_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\bool_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\date_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\date_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\error_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\error_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\function_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\function_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\math_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\math_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\number_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\number_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\object_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\object_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\regexp_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\regexp_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\string_object.cpp&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\string_object.lut.h&quot; -i&#x0D;&#x0A;&quot;perl.exe&quot; &quot;$(InputDir)\..\..\kjs\create_hash_table&quot; &quot;$(InputDir)\..\..\kjs\keywords.table&quot; &gt; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\lexer.lut.h&quot; -i&#x0D;&#x0A;&quot;bison.exe&quot; -d -p kjsyy &quot;$(InputDir)\..\..\kjs\grammar.y&quot; -o &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\grammar.cpp&quot;&#x0D;&#x0A;move  &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\grammar.hpp&quot; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\grammar.h&quot;&#x0D;&#x0A;"
+                               CommandLine="bash build-generated-files.sh &quot;$(ConfigurationName)&quot; &quot;$(WebKitOutputDir)&quot;&#x0D;&#x0A;&#x0D;&#x0A;&quot;$(WebkitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\dftables.intermediate\dftables.exe&quot; &quot;$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\DerivedSources\chartables.c&quot;&#x0D;&#x0A;"
                        />
                        <Tool
                                Name="VCCustomBuildTool"
diff --git a/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/build-generated-files.sh b/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/build-generated-files.sh
new file mode 100755 (executable)
index 0000000..15c184d
--- /dev/null
@@ -0,0 +1,60 @@
+#!/usr/bin/bash\r
+\r
+# Convert the DOS WebKitOutputDir variable to a unix path.\r
+WebKitUnixDir=`cygpath -a -u "$2"`\r
+\r
+# Set up the directory that will hold all our generated files.\r
+DerivedSourcesDir="$WebKitUnixDir/JavaScriptCore.intermediate/$1/JavaScriptCore.intermediate/DerivedSources"\r
+mkdir -p "$DerivedSourcesDir"\r
+\r
+# Invoke the create_hash_table perl script to create all of our lookup tables\r
+\r
+if [ ../../kjs/array_object.cpp -nt "$DerivedSourcesDir/array_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/array_object.cpp > "$DerivedSourcesDir/array_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/bool_object.cpp -nt "$DerivedSourcesDir/bool_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/bool_object.cpp > "$DerivedSourcesDir/bool_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/date_object.cpp -nt "$DerivedSourcesDir/date_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/date_object.cpp > "$DerivedSourcesDir/date_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/error_object.cpp -nt "$DerivedSourcesDir/error_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/error_object.cpp > "$DerivedSourcesDir/error_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/function_object.cpp -nt "$DerivedSourcesDir/function_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/function_object.cpp > "$DerivedSourcesDir/function_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/math_object.cpp -nt "$DerivedSourcesDir/math_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/math_object.cpp > "$DerivedSourcesDir/math_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/number_object.cpp -nt "$DerivedSourcesDir/number_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/number_object.cpp > "$DerivedSourcesDir/number_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/object_object.cpp -nt "$DerivedSourcesDir/object_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/object_object.cpp > "$DerivedSourcesDir/object_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/regexp_object.cpp -nt "$DerivedSourcesDir/regexp_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/regexp_object.cpp > "$DerivedSourcesDir/regexp_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/string_object.cpp -nt "$DerivedSourcesDir/string_object.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/string_object.cpp > "$DerivedSourcesDir/string_object.lut.h" -i\r
+fi\r
+\r
+if [ ../../kjs/string_object.cpp -nt "$DerivedSourcesDir/lexer.lut.h" ]; then\r
+  ../../kjs/create_hash_table ../../kjs/keywords.table > "$DerivedSourcesDir/lexer.lut.h" -i\r
+fi\r
+\r
+# Generate the grammar using bison\r
+if [ ../../kjs/grammar.y -nt "$DerivedSourcesDir/grammar.cpp" ]; then\r
+  bison -d -p kjsyy ../../kjs/grammar.y -o "$DerivedSourcesDir/grammar.cpp"\r
+  mv "$DerivedSourcesDir/grammar.hpp" "$DerivedSourcesDir/grammar.h"\r
+fi\r