blob: fd7b878292f87e1237a7399b75db3c2ef6744a7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
|