summaryrefslogtreecommitdiffstats
path: root/webkit/build/V8Bindings/prebuild.bat
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/build/V8Bindings/prebuild.bat')
-rw-r--r--webkit/build/V8Bindings/prebuild.bat21
1 files changed, 21 insertions, 0 deletions
diff --git a/webkit/build/V8Bindings/prebuild.bat b/webkit/build/V8Bindings/prebuild.bat
new file mode 100644
index 0000000..de43b15
--- /dev/null
+++ b/webkit/build/V8Bindings/prebuild.bat
@@ -0,0 +1,21 @@
+@echo off
+
+setlocal
+set OUTDIR=%1
+set INTDIR=%2
+set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\
+set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files
+
+set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32
+
+:: Ensure that the cygwin mount points are defined
+CALL %CYGWIN_ROOT%setup_mount.bat > NUL
+
+:: Fix file access on vista: without this flag, the files may not be accessible.
+set CYGWIN=nontsec
+
+:: Copy files that the V8 bindings share with the KJS bindings.
+call copy_files.bat %IntDir%\SharedSources
+
+:: Build the generated files from IDL files.
+bash build-generated-files.sh ..\..\..\third_party\WebKit\WebCore ..\..\port "%OUTDIR%" "%INTDIR%"