summaryrefslogtreecommitdiffstats
path: root/webkit/build/JavaScriptCore/prebuild.bat
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/build/JavaScriptCore/prebuild.bat')
-rw-r--r--webkit/build/JavaScriptCore/prebuild.bat32
1 files changed, 32 insertions, 0 deletions
diff --git a/webkit/build/JavaScriptCore/prebuild.bat b/webkit/build/JavaScriptCore/prebuild.bat
new file mode 100644
index 0000000..fd7b878
--- /dev/null
+++ b/webkit/build/JavaScriptCore/prebuild.bat
@@ -0,0 +1,32 @@
+REM @echo off
+
+setlocal
+set IntDir=%1
+set OutDir=%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 tempfile() on vista: without this flag, the files that it creates are not accessible.
+set CYGWIN=nontsec
+
+:: Help dftables script to find a usable temporary directory. For an unknown
+:: reason, /tmp is not defined on cygwin and this script looks at TMPDIR
+:: environment variable, which is usually not defined on Windows either.
+if "%TMPDIR%" == "" (
+ REM It fails in even stranger way if the TEMP folder is not owned by the
+ REM current user, so create a folder to make sure we are the owner.
+ set TMPDIR=%TEMP%\javascriptcore_pcre
+ mkdir %TEMP%\javascriptcore_pcre
+ bash build-generated-files.sh "%IntDir%" "..\..\..\third_party\WebKit"
+ rd /q /s %TEMP%\javascriptcore_pcre
+) else (
+ bash build-generated-files.sh "%IntDir%" "..\..\..\third_party\WebKit"
+)
+
+call copy_files.bat %IntDir%\JavaScriptCore
+endlocal