]>
Commit | Line | Data |
---|---|---|
93a37866 A |
1 | @echo off\r |
2 | \r | |
3 | set PublicHeadersDirectory=%CONFIGURATIONBUILDDIR%\include\JavaScriptCore\r | |
4 | set PrivateHeadersDirectory=%CONFIGURATIONBUILDDIR%\include\private\JavaScriptCore\r | |
81345200 A |
5 | set ResourcesDirectory=%CONFIGURATIONBUILDDIR%\bin%PlatformArchitecture%\JavaScriptCore.resources\r |
6 | set DerivedSourcesDirectory=%CONFIGURATIONBUILDDIR%\obj%PlatformArchitecture%\JavaScriptCore\DerivedSources\r | |
93a37866 A |
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 | |
ed1e77d3 | 12 | @mkdir "%PublicHeadersDirectory%" 2>NUL\r |
93a37866 A |
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 | |
81345200 | 20 | JSCTestRunnerUtils.h\r |
93a37866 A |
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 | |
ed1e77d3 | 36 | @xcopy /y /d ..\API\%%f "%PublicHeadersDirectory%" >NUL\r |
93a37866 A |
37 | )\r |
38 | \r | |
39 | echo Copying private headers...\r | |
40 | mkdir "%PrivateHeadersDirectory%" 2>NUL\r | |
41 | for %%d in (\r | |
42 | assembler\r | |
81345200 | 43 | bindings\r |
93a37866 | 44 | bytecode\r |
81345200 | 45 | builtins\r |
93a37866 A |
46 | dfg\r |
47 | disassembler\r | |
48 | heap\r | |
49 | debugger\r | |
81345200 A |
50 | inspector\r |
51 | inspector\agents\r | |
93a37866 A |
52 | interpreter\r |
53 | jit\r | |
54 | llint\r | |
55 | parser\r | |
56 | profiler\r | |
81345200 | 57 | replay\r |
93a37866 A |
58 | runtime\r |
59 | yarr\r | |
60 | ) do (\r | |
ed1e77d3 | 61 | @xcopy /y /d ..\%%d\*.h "%PrivateHeadersDirectory%" >NUL\r |
93a37866 A |
62 | )\r |
63 | \r | |
81345200 A |
64 | echo Copying Inspector scripts as if they were private headers...\r |
65 | for %%d in (\r | |
66 | inspector\scripts\r | |
ed1e77d3 | 67 | inspector\scripts\codegen\r |
81345200 | 68 | ) do (\r |
ed1e77d3 | 69 | @xcopy /y /d ..\%%d\* "%PrivateHeadersDirectory%" >NUL\r |
81345200 A |
70 | )\r |
71 | \r | |
72 | echo Copying Inspector generated files as if they were private headers...\r | |
ed1e77d3 A |
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 | |
81345200 A |
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 | |
ed1e77d3 | 83 | @xcopy /y /d ..\%%d\* "%PrivateHeadersDirectory%" >NUL\r |
81345200 A |
84 | )\r |
85 | \r | |
86 | echo Copying Web Replay generated headers as if they were private headers...\r | |
ed1e77d3 A |
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 | |
81345200 A |
91 | \r |
92 | echo Copying builtins header as if it were a private header...\r | |
ed1e77d3 A |
93 | @xcopy /y "%DerivedSourcesDirectory%\JSCBuiltins.h" "%PrivateHeadersDirectory%" >NUL\r |
94 | @xcopy /y "%DerivedSourcesDirectory%\Bytecodes.h" "%PrivateHeadersDirectory%" >NUL\r | |
81345200 | 95 | \r |
93a37866 | 96 | echo Copying resources...\r |
ed1e77d3 A |
97 | @mkdir "%ResourcesDirectory%" 2>NUL\r |
98 | @xcopy /y /d JavaScriptCore.resources\* "%ResourcesDirectory%" >NUL\r | |
93a37866 A |
99 | \r |
100 | goto :EOF\r | |
101 | \r | |
102 | :clean\r | |
103 | \r | |
104 | echo Deleting copied files...\r | |
ed1e77d3 A |
105 | @if exist "%PublicHeadersDirectory%" rmdir /s /q "%PublicHeadersDirectory%" >NUL 2>NUL\r |
106 | @if exist "%PrivateHeadersDirectory%" rmdir /s /q "%PrivateHeadersDirectory%" >NUL 2>NUL\r | |
107 | @if exist "%ResourcesDirectory%" rmdir /s /q "%ResourcesDirectory%" >NUL 2>NUL\r |