]> git.saurik.com Git - apple/javascriptcore.git/blob - JavaScriptCore.vcxproj/copy-files.cmd
JavaScriptCore-7600.1.4.16.1.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%\bin%PlatformArchitecture%\JavaScriptCore.resources
6 set DerivedSourcesDirectory=%CONFIGURATIONBUILDDIR%\obj%PlatformArchitecture%\JavaScriptCore\DerivedSources
7
8 if "%1" EQU "clean" goto :clean
9 if "%1" EQU "rebuild" call :clean
10
11 echo Copying public headers...
12 mkdir "%PublicHeadersDirectory%" 2>NUL
13 for %%f in (
14 APICast.h
15 APIShims.h
16 JSBase.h
17 JSClassRef.h
18 JSContextRef.h
19 JSContextRefPrivate.h
20 JSCTestRunnerUtils.h
21 JSObjectRef.h
22 JSObjectRefPrivate.h
23 JSRetainPtr.h
24 JSRetainPtr.h
25 JSStringRef.h
26 JSStringRefBSTR.h
27 JSStringRefCF.h
28 JSValueRef.h
29 JSWeakObjectMapRefInternal.h
30 JSWeakObjectMapRefPrivate.h
31 JavaScript.h
32 JavaScriptCore.h
33 OpaqueJSString.h
34 WebKitAvailability.h
35 ) do (
36 xcopy /y /d ..\API\%%f "%PublicHeadersDirectory%" >NUL
37 )
38
39 echo Copying private headers...
40 mkdir "%PrivateHeadersDirectory%" 2>NUL
41 for %%d in (
42 assembler
43 bindings
44 bytecode
45 builtins
46 dfg
47 disassembler
48 heap
49 debugger
50 inspector
51 inspector\agents
52 interpreter
53 jit
54 llint
55 parser
56 profiler
57 replay
58 runtime
59 yarr
60 ) do (
61 xcopy /y /d ..\%%d\*.h "%PrivateHeadersDirectory%" >NUL
62 )
63
64 echo Copying Inspector scripts as if they were private headers...
65 for %%d in (
66 inspector\scripts
67 ) do (
68 xcopy /y /d ..\%%d\* "%PrivateHeadersDirectory%" >NUL
69 )
70
71 echo Copying Inspector generated files as if they were private headers...
72 xcopy /y "%DerivedSourcesDirectory%\InspectorJS.json" "%PrivateHeadersDirectory%" >NUL
73 xcopy /y "%DerivedSourcesDirectory%\InspectorJSTypeBuilders.h" "%PrivateHeadersDirectory%" >NUL
74 xcopy /y "%DerivedSourcesDirectory%\InspectorJSBackendDispatchers.h" "%PrivateHeadersDirectory%" >NUL
75 xcopy /y "%DerivedSourcesDirectory%\InspectorJSFrontendDispatchers.h" "%PrivateHeadersDirectory%" >NUL
76
77 echo Copying Web Replay scripts as if they were private headers...
78 for %%d in (
79 replay\scripts
80 ) do (
81 xcopy /y /d ..\%%d\* "%PrivateHeadersDirectory%" >NUL
82 )
83
84 echo Copying Web Replay generated headers as if they were private headers...
85 xcopy /y "%DerivedSourcesDirectory%\JSReplayInputs.h" "%PrivateHeadersDirectory%" >NUL
86
87 echo Copying builtins header as if it were a private header...
88 xcopy /y "%DerivedSourcesDirectory%\JSCBuiltins.h" "%PrivateHeadersDirectory%" >NUL
89 xcopy /y "%DerivedSourcesDirectory%\Bytecodes.h" "%PrivateHeadersDirectory%" >NUL
90
91 echo Copying resources...
92 mkdir "%ResourcesDirectory%" 2>NUL
93 xcopy /y /d JavaScriptCore.resources\* "%ResourcesDirectory%" >NUL
94
95 goto :EOF
96
97 :clean
98
99 echo Deleting copied files...
100 if exist "%PublicHeadersDirectory%" rmdir /s /q "%PublicHeadersDirectory%" >NUL
101 if exist "%PrivateHeadersDirectory%" rmdir /s /q "%PrivateHeadersDirectory%" >NUL
102 if exist "%ResourcesDirectory%" rmdir /s /q "%ResourcesDirectory%" >NUL