| set PublicHeadersDirectory=%CONFIGURATIONBUILDDIR%\include\JavaScriptCore
|
| set PrivateHeadersDirectory=%CONFIGURATIONBUILDDIR%\include\private\JavaScriptCore
|
| set ResourcesDirectory=%CONFIGURATIONBUILDDIR%\bin%PlatformArchitecture%\JavaScriptCore.resources
|
| if "%1" EQU "clean" goto :clean
|
| if "%1" EQU "rebuild" call :clean
|
| echo Copying public headers...
|
| mkdir "%PublicHeadersDirectory%" 2>NUL
|
| JSWeakObjectMapRefInternal.h
|
| JSWeakObjectMapRefPrivate.h
|
| xcopy /y /d ..\API\%%f "%PublicHeadersDirectory%" >NUL
|
| echo Copying private headers...
|
| mkdir "%PrivateHeadersDirectory%" 2>NUL
|
| xcopy /y /d ..\%%d\*.h "%PrivateHeadersDirectory%" >NUL
|
| echo Copying resources...
|
| mkdir "%ResourcesDirectory%" 2>NUL
|
| xcopy /y /d JavaScriptCore.resources\* "%ResourcesDirectory%" >NUL
|
| echo Deleting copied files...
|
| if exist "%PublicHeadersDirectory%" rmdir /s /q "%PublicHeadersDirectory%" >NUL
|
| if exist "%PrivateHeadersDirectory%" rmdir /s /q "%PrivateHeadersDirectory%" >NUL
|
| if exist "%ResourcesDirectory%" rmdir /s /q "%ResourcesDirectory%" >NUL
|