1cb93a386Sopenharmony_ci@REM Copyright (c) 2019 Google Inc.
2cb93a386Sopenharmony_ci@REM
3cb93a386Sopenharmony_ci@REM Licensed under the Apache License, Version 2.0 (the "License");
4cb93a386Sopenharmony_ci@REM you may not use this file except in compliance with the License.
5cb93a386Sopenharmony_ci@REM You may obtain a copy of the License at
6cb93a386Sopenharmony_ci@REM
7cb93a386Sopenharmony_ci@REM     http://www.apache.org/licenses/LICENSE-2.0
8cb93a386Sopenharmony_ci@REM
9cb93a386Sopenharmony_ci@REM Unless required by applicable law or agreed to in writing, software
10cb93a386Sopenharmony_ci@REM distributed under the License is distributed on an "AS IS" BASIS,
11cb93a386Sopenharmony_ci@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12cb93a386Sopenharmony_ci@REM See the License for the specific language governing permissions and
13cb93a386Sopenharmony_ci@REM limitations under the License.
14cb93a386Sopenharmony_ci
15cb93a386Sopenharmony_ci@set EXT_PATH=%userprofile%\.vscode\extensions\google.spirvls-0.0.1
16cb93a386Sopenharmony_ci@set ROOT_PATH=%~dp0
17cb93a386Sopenharmony_ci
18cb93a386Sopenharmony_cigo run %ROOT_PATH%\src\tools\gen-grammar.go --cache %ROOT_PATH%\cache --template %ROOT_PATH%\spirv.json.tmpl --out %ROOT_PATH%\spirv.json
19cb93a386Sopenharmony_cigo run %ROOT_PATH%\src\tools\gen-grammar.go --cache %ROOT_PATH%\cache --template %ROOT_PATH%\src\schema\schema.go.tmpl --out %ROOT_PATH%\src\schema\schema.go
20cb93a386Sopenharmony_ci
21cb93a386Sopenharmony_ciif not exist %EXT_PATH% mkdir -p %EXT_PATH%
22cb93a386Sopenharmony_cicopy %ROOT_PATH%\extension.js %EXT_PATH%
23cb93a386Sopenharmony_cicopy %ROOT_PATH%\package.json %EXT_PATH%
24cb93a386Sopenharmony_cicopy %ROOT_PATH%\spirv.json %EXT_PATH%
25cb93a386Sopenharmony_ci
26cb93a386Sopenharmony_cigo build -o %EXT_PATH%\langsvr.exe %ROOT_PATH%\src\langsvr.go
27cb93a386Sopenharmony_ci
28cb93a386Sopenharmony_ci@pushd %EXT_PATH%
29cb93a386Sopenharmony_cicall npm install
30cb93a386Sopenharmony_ci@popd
31