]> git.saurik.com Git - apple/javascriptcore.git/blob - JavaScriptCore.vcxproj/copy-files.cmd
JavaScriptCore-1218.35.tar.gz
[apple/javascriptcore.git] / JavaScriptCore.vcxproj / copy-files.cmd
1 @echo off
2
3 set PublicHeadersDirectory=%CONFIGURATIONBUILDDIR%\include\JavaScriptCore
4 set PrivateHeadersDirectory=%CONFIGURATIONBUILDDIR%\include\private\JavaScriptCore
5 set ResourcesDirectory=%CONFIGURATIONBUILDDIR%\bin32\JavaScriptCore.resources
6
7 if "%1" EQU "clean" goto :clean
8 if "%1" EQU "rebuild" call :clean
9
10 echo Copying public headers...
11 mkdir "%PublicHeadersDirectory%" 2>NUL
12 for %%f in (
13 APICast.h
14 APIShims.h
15 JSBase.h
16 JSClassRef.h
17 JSContextRef.h
18 JSContextRefPrivate.h
19 JSObjectRef.h
20 JSObjectRefPrivate.h
21 JSRetainPtr.h
22 JSRetainPtr.h
23 JSStringRef.h
24 JSStringRefBSTR.h
25 JSStringRefCF.h
26 JSValueRef.h
27 JSWeakObjectMapRefInternal.h
28 JSWeakObjectMapRefPrivate.h
29 JavaScript.h
30 JavaScriptCore.h
31 OpaqueJSString.h
32 WebKitAvailability.h
33 ) do (
34 xcopy /y /d ..\API\%%f "%PublicHeadersDirectory%" >NUL
35 )
36
37 echo Copying private headers...
38 mkdir "%PrivateHeadersDirectory%" 2>NUL
39 for %%d in (
40 assembler
41 bytecode
42 dfg
43 disassembler
44 heap
45 debugger
46 interpreter
47 jit
48 llint
49 parser
50 profiler
51 runtime
52 yarr
53 ) do (
54 xcopy /y /d ..\%%d\*.h "%PrivateHeadersDirectory%" >NUL
55 )
56
57 echo Copying resources...
58 mkdir "%ResourcesDirectory%" 2>NUL
59 xcopy /y /d JavaScriptCore.resources\* "%ResourcesDirectory%" >NUL
60
61 goto :EOF
62
63 :clean
64
65 echo Deleting copied files...
66 if exist "%PublicHeadersDirectory%" rmdir /s /q "%PublicHeadersDirectory%" >NUL
67 if exist "%PrivateHeadersDirectory%" rmdir /s /q "%PrivateHeadersDirectory%" >NUL
68 if exist "%ResourcesDirectory%" rmdir /s /q "%ResourcesDirectory%" >NUL