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
8 if "%1" EQU "clean" goto :clean
9 if "%1" EQU "rebuild" call :clean
11 echo Copying public headers...
12 mkdir "%PublicHeadersDirectory%" 2>NUL
29 JSWeakObjectMapRefInternal.h
30 JSWeakObjectMapRefPrivate.h
36 xcopy /y /d ..\API\%%f "%PublicHeadersDirectory%" >NUL
39 echo Copying private headers...
40 mkdir "%PrivateHeadersDirectory%" 2>NUL
61 xcopy /y /d ..\%%d\*.h "%PrivateHeadersDirectory%" >NUL
64 echo Copying Inspector scripts as if they were private headers...
68 xcopy /y /d ..\%%d\* "%PrivateHeadersDirectory%" >NUL
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
77 echo Copying Web Replay scripts as if they were private headers...
81 xcopy /y /d ..\%%d\* "%PrivateHeadersDirectory%" >NUL
84 echo Copying Web Replay generated headers as if they were private headers...
85 xcopy /y "%DerivedSourcesDirectory%\JSReplayInputs.h" "%PrivateHeadersDirectory%" >NUL
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
91 echo Copying resources...
92 mkdir "%ResourcesDirectory%" 2>NUL
93 xcopy /y /d JavaScriptCore.resources\* "%ResourcesDirectory%" >NUL
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