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