Roll out r164732 since it broke Production Mac builds.
[WebKit-https.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     runtime\r
58     yarr\r
59 ) do (\r
60     xcopy /y /d ..\%%d\*.h "%PrivateHeadersDirectory%" >NUL\r
61 )\r
62 \r
63 echo Copying Inspector scripts as if they were private headers...\r
64 for %%d in (\r
65     inspector\scripts\r
66 ) do (\r
67     xcopy /y /d ..\%%d\* "%PrivateHeadersDirectory%" >NUL\r
68 )\r
69 \r
70 echo Copying Inspector generated files as if they were private headers...\r
71 xcopy /y "%DerivedSourcesDirectory%\InspectorJS.json" "%PrivateHeadersDirectory%" >NUL\r
72 xcopy /y "%DerivedSourcesDirectory%\InspectorJSTypeBuilders.h" "%PrivateHeadersDirectory%" >NUL\r
73 xcopy /y "%DerivedSourcesDirectory%\InspectorJSBackendDispatchers.h" "%PrivateHeadersDirectory%" >NUL\r
74 xcopy /y "%DerivedSourcesDirectory%\InspectorJSFrontendDispatchers.h" "%PrivateHeadersDirectory%" >NUL\r
75 \r
76 echo Copying builtins header as if it were a private header...\r
77 xcopy /y "%DerivedSourcesDirectory%\JSCBuiltins.h" "%PrivateHeadersDirectory%" >NUL\r
78 \r
79 echo Copying resources...\r
80 mkdir "%ResourcesDirectory%" 2>NUL\r
81 xcopy /y /d JavaScriptCore.resources\* "%ResourcesDirectory%" >NUL\r
82 \r
83 goto :EOF\r
84 \r
85 :clean\r
86 \r
87 echo Deleting copied files...\r
88 if exist "%PublicHeadersDirectory%" rmdir /s /q "%PublicHeadersDirectory%" >NUL\r
89 if exist "%PrivateHeadersDirectory%" rmdir /s /q "%PrivateHeadersDirectory%" >NUL\r
90 if exist "%ResourcesDirectory%" rmdir /s /q "%ResourcesDirectory%" >NUL\r