First Commit
This commit is contained in:
97
3rdparty/shaderc/kokoro/windows/build.bat
vendored
Normal file
97
3rdparty/shaderc/kokoro/windows/build.bat
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
:: Copyright (C) 2017 Google Inc.
|
||||
::
|
||||
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||
:: you may not use this file except in compliance with the License.
|
||||
:: You may obtain a copy of the License at
|
||||
::
|
||||
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||
::
|
||||
:: Unless required by applicable law or agreed to in writing, software
|
||||
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
:: See the License for the specific language governing permissions and
|
||||
:: limitations under the License.
|
||||
::
|
||||
:: Windows Build Script.
|
||||
|
||||
@echo on
|
||||
|
||||
set BUILD_ROOT=%cd%
|
||||
set SRC=%cd%\github\shaderc
|
||||
set BUILD_TYPE=%1
|
||||
set VS_VERSION=%2
|
||||
|
||||
:: Force usage of python 3.6.
|
||||
set PATH=C:\python36;%PATH%
|
||||
|
||||
cd %SRC%
|
||||
python utils\git-sync-deps
|
||||
|
||||
cmake --version
|
||||
|
||||
mkdir build
|
||||
cd %SRC%\build
|
||||
|
||||
:: #########################################
|
||||
:: set up msvc build env
|
||||
:: #########################################
|
||||
if %VS_VERSION% == 2019 (
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
echo "Using VS 2019..."
|
||||
) else if %VS_VERSION% == 2017 (
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
echo "Using VS 2017..."
|
||||
)
|
||||
|
||||
:: #########################################
|
||||
:: Start building.
|
||||
:: #########################################
|
||||
echo "Starting build... %DATE% %TIME%"
|
||||
if "%KOKORO_GITHUB_COMMIT%." == "." (
|
||||
set BUILD_SHA=%KOKORO_GITHUB_PULL_REQUEST_COMMIT%
|
||||
) else (
|
||||
set BUILD_SHA=%KOKORO_GITHUB_COMMIT%
|
||||
)
|
||||
|
||||
set CMAKE_FLAGS=-DCMAKE_INSTALL_PREFIX=%KOKORO_ARTIFACTS_DIR%\install -DRE2_BUILD_TESTING=OFF -GNinja -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe
|
||||
|
||||
cmake %CMAKE_FLAGS% ..
|
||||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
|
||||
|
||||
echo "Build glslang... %DATE% %TIME%"
|
||||
ninja glslang-standalone
|
||||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
|
||||
|
||||
echo "Build everything... %DATE% %TIME%"
|
||||
ninja
|
||||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
|
||||
|
||||
echo "Check Shaderc for copyright notices... %DATE% %TIME%"
|
||||
ninja check-copyright
|
||||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
|
||||
echo "Build Completed %DATE% %TIME%"
|
||||
|
||||
:: This lets us use !ERRORLEVEL! inside an IF ... () and get the actual error at that point.
|
||||
setlocal ENABLEDELAYEDEXPANSION
|
||||
|
||||
:: ################################################
|
||||
:: Run the tests
|
||||
:: ################################################
|
||||
echo "Running tests... %DATE% %TIME%"
|
||||
ctest -C %BUILD_TYPE% --output-on-failure -j4
|
||||
if !ERRORLEVEL! NEQ 0 exit /b !ERRORLEVEL!
|
||||
echo "Tests passed %DATE% %TIME%"
|
||||
|
||||
:: ################################################
|
||||
:: Install and package.
|
||||
:: ################################################
|
||||
ninja install
|
||||
cd %KOKORO_ARTIFACTS_DIR%
|
||||
zip -r install.zip install
|
||||
|
||||
:: Clean up some directories.
|
||||
rm -rf %SRC%\build
|
||||
rm -rf %SRC%\install
|
||||
rm -rf %SRC%\third_party
|
||||
|
||||
exit /b 0
|
||||
23
3rdparty/shaderc/kokoro/windows/build_debug_2017.bat
vendored
Normal file
23
3rdparty/shaderc/kokoro/windows/build_debug_2017.bat
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
:: Copyright (C) 2017 Google Inc.
|
||||
::
|
||||
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||
:: you may not use this file except in compliance with the License.
|
||||
:: You may obtain a copy of the License at
|
||||
::
|
||||
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||
::
|
||||
:: Unless required by applicable law or agreed to in writing, software
|
||||
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
:: See the License for the specific language governing permissions and
|
||||
:: limitations under the License.
|
||||
::
|
||||
:: Windows Build Script.
|
||||
|
||||
@echo on
|
||||
|
||||
:: Find out the directory of the common build script.
|
||||
set SCRIPT_DIR=%~dp0
|
||||
|
||||
:: Call with correct parameter
|
||||
call %SCRIPT_DIR%\build.bat Debug 2017
|
||||
23
3rdparty/shaderc/kokoro/windows/build_debug_2019.bat
vendored
Normal file
23
3rdparty/shaderc/kokoro/windows/build_debug_2019.bat
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
:: Copyright (C) 2023 Google Inc.
|
||||
::
|
||||
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||
:: you may not use this file except in compliance with the License.
|
||||
:: You may obtain a copy of the License at
|
||||
::
|
||||
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||
::
|
||||
:: Unless required by applicable law or agreed to in writing, software
|
||||
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
:: See the License for the specific language governing permissions and
|
||||
:: limitations under the License.
|
||||
::
|
||||
:: Windows Build Script.
|
||||
|
||||
@echo on
|
||||
|
||||
:: Find out the directory of the common build script.
|
||||
set SCRIPT_DIR=%~dp0
|
||||
|
||||
:: Call with correct parameter
|
||||
call %SCRIPT_DIR%\build.bat Debug 2019
|
||||
24
3rdparty/shaderc/kokoro/windows/build_release_2017.bat
vendored
Normal file
24
3rdparty/shaderc/kokoro/windows/build_release_2017.bat
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
:: Copyright (C) 2017 Google Inc.
|
||||
::
|
||||
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||
:: you may not use this file except in compliance with the License.
|
||||
:: You may obtain a copy of the License at
|
||||
::
|
||||
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||
::
|
||||
:: Unless required by applicable law or agreed to in writing, software
|
||||
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
:: See the License for the specific language governing permissions and
|
||||
:: limitations under the License.
|
||||
::
|
||||
:: Windows Build Script.
|
||||
|
||||
@echo on
|
||||
|
||||
:: Find out the directory of the common build script.
|
||||
set SCRIPT_DIR=%~dp0
|
||||
|
||||
:: Call with correct parameter
|
||||
call %SCRIPT_DIR%\build.bat RelWithDebInfo 2017
|
||||
|
||||
23
3rdparty/shaderc/kokoro/windows/build_release_2019.bat
vendored
Normal file
23
3rdparty/shaderc/kokoro/windows/build_release_2019.bat
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
:: Copyright (C) 2023 Google Inc.
|
||||
::
|
||||
:: Licensed under the Apache License, Version 2.0 (the "License");
|
||||
:: you may not use this file except in compliance with the License.
|
||||
:: You may obtain a copy of the License at
|
||||
::
|
||||
:: http://www.apache.org/licenses/LICENSE-2.0
|
||||
::
|
||||
:: Unless required by applicable law or agreed to in writing, software
|
||||
:: distributed under the License is distributed on an "AS IS" BASIS,
|
||||
:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
:: See the License for the specific language governing permissions and
|
||||
:: limitations under the License.
|
||||
::
|
||||
:: Windows Build Script.
|
||||
|
||||
@echo on
|
||||
|
||||
:: Find out the directory of the common build script.
|
||||
set SCRIPT_DIR=%~dp0
|
||||
|
||||
:: Call with correct parameter
|
||||
call %SCRIPT_DIR%\build.bat RelWithDebInfo 2019
|
||||
22
3rdparty/shaderc/kokoro/windows/continuous_debug_2017.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/windows/continuous_debug_2017.cfg
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright (C) 2017 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Continuous build configuration.
|
||||
build_file: "shaderc/kokoro/windows/build_debug_2017.bat"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.zip"
|
||||
}
|
||||
}
|
||||
22
3rdparty/shaderc/kokoro/windows/continuous_debug_2019.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/windows/continuous_debug_2019.cfg
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright (C) 2023 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Continuous build configuration.
|
||||
build_file: "shaderc/kokoro/windows/build_debug_2019.bat"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.zip"
|
||||
}
|
||||
}
|
||||
22
3rdparty/shaderc/kokoro/windows/continuous_release_2017.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/windows/continuous_release_2017.cfg
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright (C) 2017 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Continuous build configuration.
|
||||
build_file: "shaderc/kokoro/windows/build_release_2017.bat"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.zip"
|
||||
}
|
||||
}
|
||||
22
3rdparty/shaderc/kokoro/windows/continuous_release_2019.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/windows/continuous_release_2019.cfg
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Copyright (C) 2023 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Continuous build configuration.
|
||||
build_file: "shaderc/kokoro/windows/build_release_2019.bat"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.zip"
|
||||
}
|
||||
}
|
||||
16
3rdparty/shaderc/kokoro/windows/presubmit_debug_2017.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/windows/presubmit_debug_2017.cfg
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright (C) 2017 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Presubmit build configuration.
|
||||
build_file: "shaderc/kokoro/windows/build_debug_2017.bat"
|
||||
16
3rdparty/shaderc/kokoro/windows/presubmit_debug_2019.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/windows/presubmit_debug_2019.cfg
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright (C) 2023 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Presubmit build configuration.
|
||||
build_file: "shaderc/kokoro/windows/build_debug_2019.bat"
|
||||
16
3rdparty/shaderc/kokoro/windows/presubmit_release_2017.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/windows/presubmit_release_2017.cfg
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright (C) 2017 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Presubmit build configuration.
|
||||
build_file: "shaderc/kokoro/windows/build_release_2017.bat"
|
||||
16
3rdparty/shaderc/kokoro/windows/presubmit_release_2019.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/windows/presubmit_release_2019.cfg
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright (C) 2023 Google Inc.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Presubmit build configuration.
|
||||
build_file: "shaderc/kokoro/windows/build_release_2019.bat"
|
||||
Reference in New Issue
Block a user