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...
67 inspector\scripts\codegen
69 @xcopy /y /d ..\%%d\* "%PrivateHeadersDirectory%" >NUL
72 echo Copying Inspector generated files as if they were private headers...
73 @xcopy /y "%DerivedSourcesDirectory%\CombinedDomains.json" "%PrivateHeadersDirectory%" >NUL
74 @xcopy /y "%DerivedSourcesDirectory%\InspectorProtocolObjects.h" "%PrivateHeadersDirectory%" >NUL
75 @xcopy /y "%DerivedSourcesDirectory%\InspectorBackendDispatchers.h" "%PrivateHeadersDirectory%" >NUL
76 @xcopy /y "%DerivedSourcesDirectory%\InspectorFrontendDispatchers.h" "%PrivateHeadersDirectory%" >NUL
77 @xcopy /y "%DerivedSourcesDirectory%\InspectorBackendCommands.js" "%PrivateHeadersDirectory%" >NUL
79 echo Copying Web Replay scripts as if they were private headers...
83 @xcopy /y /d ..\%%d\* "%PrivateHeadersDirectory%" >NUL
86 echo Copying Web Replay generated headers as if they were private headers...
87 @xcopy /y "%DerivedSourcesDirectory%\JSReplayInputs.h" "%PrivateHeadersDirectory%" >NUL
89 echo Copying Web Replay specification files as if they were private headers...
90 @xcopy /y /d ..\replay\*.json "%PrivateHeadersDirectory%" >NUL
92 echo Copying builtins header as if it were a private header...
93 @xcopy /y "%DerivedSourcesDirectory%\JSCBuiltins.h" "%PrivateHeadersDirectory%" >NUL
94 @xcopy /y "%DerivedSourcesDirectory%\Bytecodes.h" "%PrivateHeadersDirectory%" >NUL
96 echo Copying resources...
97 @mkdir "%ResourcesDirectory%" 2>NUL
98 @xcopy /y /d JavaScriptCore.resources\* "%ResourcesDirectory%" >NUL
104 echo Deleting copied files...
105 @if exist "%PublicHeadersDirectory%" rmdir /s /q "%PublicHeadersDirectory%" >NUL 2>NUL
106 @if exist "%PrivateHeadersDirectory%" rmdir /s /q "%PrivateHeadersDirectory%" >NUL 2>NUL
107 @if exist "%ResourcesDirectory%" rmdir /s /q "%ResourcesDirectory%" >NUL 2>NUL