First Commit
This commit is contained in:
60
3rdparty/shaderc/kokoro/android-release/build-docker.sh
vendored
Executable file
60
3rdparty/shaderc/kokoro/android-release/build-docker.sh
vendored
Executable file
@@ -0,0 +1,60 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2017-2022 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.
|
||||
#
|
||||
# Android Build Script.
|
||||
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
|
||||
. /bin/using.sh # Declare the bash `using` function for configuring toolchains.
|
||||
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
using cmake-3.17.2
|
||||
using ninja-1.10.0
|
||||
using ndk-r25c # Sets ANDROID_NDK_HOME, pointing at the NDK's root dir
|
||||
|
||||
cd $ROOT_DIR
|
||||
./utils/git-sync-deps
|
||||
|
||||
mkdir build
|
||||
cd $ROOT_DIR/build
|
||||
|
||||
# Invoke the build.
|
||||
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
||||
echo $(date): Starting build...
|
||||
cmake \
|
||||
-GNinja \
|
||||
-DCMAKE_MAKE_PROGRAM=ninja \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DANDROID_ABI="$TARGET_ARCH" \
|
||||
-DSHADERC_SKIP_TESTS=ON \
|
||||
-DSPIRV_SKIP_TESTS=ON \
|
||||
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \
|
||||
-DANDROID_NDK=$ANDROID_NDK_HOME ..
|
||||
|
||||
echo $(date): Build glslang library...
|
||||
ninja glslang
|
||||
|
||||
echo $(date): Build everything...
|
||||
ninja
|
||||
|
||||
echo $(date): Check Shaderc for copyright notices...
|
||||
ninja check-copyright
|
||||
|
||||
echo $(date): Build completed.
|
||||
38
3rdparty/shaderc/kokoro/android-release/build.sh
vendored
Executable file
38
3rdparty/shaderc/kokoro/android-release/build.sh
vendored
Executable file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2020-2022 Google LLC
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
set -e # Fail on any error.
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"
|
||||
ROOT_DIR="$( cd "${SCRIPT_DIR}/../.." >/dev/null 2>&1 && pwd )"
|
||||
|
||||
TARGET_ARCH="$1"
|
||||
|
||||
# --privileged is required for some sanitizer builds, as they seem to require
|
||||
# PTRACE privileges
|
||||
docker run --rm -i \
|
||||
--privileged \
|
||||
--volume "${ROOT_DIR}:${ROOT_DIR}" \
|
||||
--volume "${KOKORO_ARTIFACTS_DIR}:${KOKORO_ARTIFACTS_DIR}" \
|
||||
--workdir "${ROOT_DIR}" \
|
||||
--env ROOT_DIR="${ROOT_DIR}" \
|
||||
--env SCRIPT_DIR="${SCRIPT_DIR}" \
|
||||
--env TARGET_ARCH="${TARGET_ARCH}" \
|
||||
--env KOKORO_ARTIFACTS_DIR="${KOKORO_ARTIFACTS_DIR}" \
|
||||
--entrypoint "${SCRIPT_DIR}/build-docker.sh" \
|
||||
"gcr.io/shaderc-build/radial-build:latest"
|
||||
25
3rdparty/shaderc/kokoro/android-release/build_arm.sh
vendored
Executable file
25
3rdparty/shaderc/kokoro/android-release/build_arm.sh
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Android Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh "armeabi-v7a with NEON"
|
||||
26
3rdparty/shaderc/kokoro/android-release/build_x86.sh
vendored
Executable file
26
3rdparty/shaderc/kokoro/android-release/build_x86.sh
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Android Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh x86
|
||||
|
||||
17
3rdparty/shaderc/kokoro/android-release/continuous_arm.cfg
vendored
Normal file
17
3rdparty/shaderc/kokoro/android-release/continuous_arm.cfg
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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/android-release/build_arm.sh"
|
||||
17
3rdparty/shaderc/kokoro/android-release/continuous_x86.cfg
vendored
Normal file
17
3rdparty/shaderc/kokoro/android-release/continuous_x86.cfg
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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/android-release/build_x86.sh"
|
||||
16
3rdparty/shaderc/kokoro/android-release/presubmit_arm.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/android-release/presubmit_arm.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/android-release/build_arm.sh"
|
||||
16
3rdparty/shaderc/kokoro/android-release/presubmit_x86.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/android-release/presubmit_x86.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/android-release/build_x86.sh"
|
||||
BIN
3rdparty/shaderc/kokoro/img/linux.png
vendored
Normal file
BIN
3rdparty/shaderc/kokoro/img/linux.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
3rdparty/shaderc/kokoro/img/macos.png
vendored
Normal file
BIN
3rdparty/shaderc/kokoro/img/macos.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
BIN
3rdparty/shaderc/kokoro/img/windows.png
vendored
Normal file
BIN
3rdparty/shaderc/kokoro/img/windows.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
101
3rdparty/shaderc/kokoro/linux/build-docker.sh
vendored
Executable file
101
3rdparty/shaderc/kokoro/linux/build-docker.sh
vendored
Executable file
@@ -0,0 +1,101 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
|
||||
# Linux Build Script run inside docker container.
|
||||
|
||||
set -e # Fail on any error.
|
||||
|
||||
. /bin/using.sh # Declare the bash `using` function for configuring toolchains.
|
||||
|
||||
set -x # Display commands being run.
|
||||
|
||||
SKIP_TESTS="False"
|
||||
BUILD_TYPE="Debug"
|
||||
|
||||
using cmake-3.17.2
|
||||
using ninja-1.10.0
|
||||
|
||||
if [ ! -z "$COMPILER" ]; then
|
||||
using "$COMPILER"
|
||||
fi
|
||||
|
||||
# Possible configurations are:
|
||||
# ASAN, COVERAGE, RELEASE, DEBUG, DEBUG_EXCEPTION, RELEASE_MINGW
|
||||
|
||||
if [ $CONFIG = "RELEASE" ] || [ $CONFIG = "RELEASE_MINGW" ]
|
||||
then
|
||||
BUILD_TYPE="RelWithDebInfo"
|
||||
fi
|
||||
|
||||
ADDITIONAL_CMAKE_FLAGS=""
|
||||
if [ $CONFIG = "ASAN" ]
|
||||
then
|
||||
ADDITIONAL_CMAKE_FLAGS="-DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_C_FLAGS=-fsanitize=address"
|
||||
elif [ $CONFIG = "COVERAGE" ]
|
||||
then
|
||||
ADDITIONAL_CMAKE_FLAGS="-DENABLE_CODE_COVERAGE=ON"
|
||||
SKIP_TESTS="True"
|
||||
elif [ $CONFIG = "DEBUG_EXCEPTION" ]
|
||||
then
|
||||
ADDITIONAL_CMAKE_FLAGS="-DDISABLE_EXCEPTIONS=ON -DDISABLE_RTTI=ON"
|
||||
elif [ $CONFIG = "RELEASE_MINGW" ]
|
||||
then
|
||||
ADDITIONAL_CMAKE_FLAGS="-DCMAKE_TOOLCHAIN_FILE=$ROOT_DIR/cmake/linux-mingw-toolchain.cmake"
|
||||
SKIP_TESTS="True"
|
||||
fi
|
||||
|
||||
cd $ROOT_DIR
|
||||
./utils/git-sync-deps
|
||||
|
||||
mkdir build
|
||||
cd $ROOT_DIR/build
|
||||
|
||||
# Invoke the build.
|
||||
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
||||
echo $(date): Starting build...
|
||||
cmake -GNinja -DCMAKE_INSTALL_PREFIX=$KOKORO_ARTIFACTS_DIR/install -DRE2_BUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=$BUILD_TYPE $ADDITIONAL_CMAKE_FLAGS ..
|
||||
|
||||
echo $(date): Build glslang...
|
||||
ninja glslang-standalone
|
||||
|
||||
echo $(date): Build everything...
|
||||
ninja
|
||||
echo $(date): Build completed.
|
||||
|
||||
echo $(date): Check Shaderc for copyright notices...
|
||||
ninja check-copyright
|
||||
|
||||
if [ $CONFIG = "COVERAGE" ]
|
||||
then
|
||||
echo $(date): Check coverage...
|
||||
ninja report-coverage
|
||||
echo $(date): Check coverage completed.
|
||||
fi
|
||||
|
||||
echo $(date): Starting ctest...
|
||||
if [ $SKIP_TESTS = "False" ]
|
||||
then
|
||||
ctest --output-on-failure -j4
|
||||
fi
|
||||
echo $(date): ctest completed.
|
||||
|
||||
# libshaderc_util/core is generated by the death test in shaderc_util_file_finder_test
|
||||
rm -f libshaderc_util/core
|
||||
|
||||
# Package the build.
|
||||
ninja install
|
||||
cd $KOKORO_ARTIFACTS_DIR
|
||||
tar czf install.tgz install
|
||||
40
3rdparty/shaderc/kokoro/linux/build.sh
vendored
Executable file
40
3rdparty/shaderc/kokoro/linux/build.sh
vendored
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2020 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
set -e # Fail on any error.
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"
|
||||
ROOT_DIR="$( cd "${SCRIPT_DIR}/../.." >/dev/null 2>&1 && pwd )"
|
||||
|
||||
CONFIG=$1
|
||||
COMPILER=$2
|
||||
|
||||
# --privileged is required for some sanitizer builds, as they seem to require
|
||||
# PTRACE privileges
|
||||
docker run --rm -i \
|
||||
--privileged \
|
||||
--volume "${ROOT_DIR}:${ROOT_DIR}" \
|
||||
--volume "${KOKORO_ARTIFACTS_DIR}:${KOKORO_ARTIFACTS_DIR}" \
|
||||
--workdir "${ROOT_DIR}" \
|
||||
--env ROOT_DIR="${ROOT_DIR}" \
|
||||
--env SCRIPT_DIR="${SCRIPT_DIR}" \
|
||||
--env CONFIG="${CONFIG}" \
|
||||
--env COMPILER="${COMPILER}" \
|
||||
--env KOKORO_ARTIFACTS_DIR="${KOKORO_ARTIFACTS_DIR}" \
|
||||
--entrypoint "${SCRIPT_DIR}/build-docker.sh" \
|
||||
"gcr.io/shaderc-build/radial-build:latest"
|
||||
25
3rdparty/shaderc/kokoro/linux/build_clang_asan.sh
vendored
Executable file
25
3rdparty/shaderc/kokoro/linux/build_clang_asan.sh
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh ASAN "clang-10.0.0"
|
||||
25
3rdparty/shaderc/kokoro/linux/build_clang_debug.sh
vendored
Executable file
25
3rdparty/shaderc/kokoro/linux/build_clang_debug.sh
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh DEBUG "clang-10.0.0"
|
||||
25
3rdparty/shaderc/kokoro/linux/build_clang_release.sh
vendored
Executable file
25
3rdparty/shaderc/kokoro/linux/build_clang_release.sh
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh RELEASE "clang-10.0.0"
|
||||
25
3rdparty/shaderc/kokoro/linux/build_gcc_coverage.sh
vendored
Executable file
25
3rdparty/shaderc/kokoro/linux/build_gcc_coverage.sh
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh COVERAGE "gcc-7" # gcc-8+ has issues with lcov
|
||||
25
3rdparty/shaderc/kokoro/linux/build_gcc_debug.sh
vendored
Executable file
25
3rdparty/shaderc/kokoro/linux/build_gcc_debug.sh
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh DEBUG "gcc-9"
|
||||
25
3rdparty/shaderc/kokoro/linux/build_gcc_debug_exception.sh
vendored
Executable file
25
3rdparty/shaderc/kokoro/linux/build_gcc_debug_exception.sh
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh DEBUG_EXCEPTION "gcc-9"
|
||||
25
3rdparty/shaderc/kokoro/linux/build_gcc_release.sh
vendored
Executable file
25
3rdparty/shaderc/kokoro/linux/build_gcc_release.sh
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh RELEASE "gcc-9"
|
||||
25
3rdparty/shaderc/kokoro/linux/build_mingw_release.sh
vendored
Executable file
25
3rdparty/shaderc/kokoro/linux/build_mingw_release.sh
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh RELEASE_MINGW
|
||||
16
3rdparty/shaderc/kokoro/linux/continuous_clang_asan.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/continuous_clang_asan.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.
|
||||
|
||||
# Continuous build configuration.
|
||||
build_file: "shaderc/kokoro/linux/build_clang_asan.sh"
|
||||
22
3rdparty/shaderc/kokoro/linux/continuous_clang_debug.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/linux/continuous_clang_debug.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/linux/build_clang_debug.sh"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.tgz"
|
||||
}
|
||||
}
|
||||
22
3rdparty/shaderc/kokoro/linux/continuous_clang_release.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/linux/continuous_clang_release.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/linux/build_clang_release.sh"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.tgz"
|
||||
}
|
||||
}
|
||||
22
3rdparty/shaderc/kokoro/linux/continuous_gcc_debug.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/linux/continuous_gcc_debug.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/linux/build_gcc_debug.sh"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.tgz"
|
||||
}
|
||||
}
|
||||
16
3rdparty/shaderc/kokoro/linux/continuous_gcc_debug_exception.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/continuous_gcc_debug_exception.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.
|
||||
|
||||
# Continuous build configuration.
|
||||
build_file: "shaderc/kokoro/linux/build_gcc_debug_exception.sh"
|
||||
22
3rdparty/shaderc/kokoro/linux/continuous_gcc_release.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/linux/continuous_gcc_release.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/linux/build_gcc_release.sh"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.tgz"
|
||||
}
|
||||
}
|
||||
16
3rdparty/shaderc/kokoro/linux/continuous_license_check.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/continuous_license_check.cfg
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright (C) 2020 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/linux/license_check.sh"
|
||||
16
3rdparty/shaderc/kokoro/linux/continuous_mingw_release.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/continuous_mingw_release.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.
|
||||
|
||||
# Continuous build configuration.
|
||||
build_file: "shaderc/kokoro/linux/build_mingw_release.sh"
|
||||
28
3rdparty/shaderc/kokoro/linux/license_check.sh
vendored
Executable file
28
3rdparty/shaderc/kokoro/linux/license_check.sh
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2020 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.
|
||||
|
||||
set -e # Fail on any error.
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"
|
||||
ROOT_DIR="$( cd "${SCRIPT_DIR}/../.." >/dev/null 2>&1 && pwd )"
|
||||
|
||||
docker run --rm -i \
|
||||
--volume "${ROOT_DIR}:${ROOT_DIR}:ro" \
|
||||
--workdir "${ROOT_DIR}" \
|
||||
--env ROOT_DIR="${ROOT_DIR}" \
|
||||
--env SCRIPT_DIR="${SCRIPT_DIR}" \
|
||||
--entrypoint "${SCRIPT_DIR}/license_check_docker.sh" \
|
||||
"gcr.io/shaderc-build/radial-build:latest"
|
||||
20
3rdparty/shaderc/kokoro/linux/license_check_docker.sh
vendored
Executable file
20
3rdparty/shaderc/kokoro/linux/license_check_docker.sh
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2020 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.
|
||||
|
||||
set -e # Fail on any error.
|
||||
set -x # Display commands being run.
|
||||
|
||||
license-checker --dir="$ROOT_DIR"
|
||||
16
3rdparty/shaderc/kokoro/linux/presubmit_clang_asan.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/presubmit_clang_asan.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/linux/build_clang_asan.sh"
|
||||
16
3rdparty/shaderc/kokoro/linux/presubmit_clang_debug.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/presubmit_clang_debug.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/linux/build_clang_debug.sh"
|
||||
16
3rdparty/shaderc/kokoro/linux/presubmit_clang_release.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/presubmit_clang_release.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/linux/build_clang_release.sh"
|
||||
17
3rdparty/shaderc/kokoro/linux/presubmit_gcc_debug.cfg
vendored
Normal file
17
3rdparty/shaderc/kokoro/linux/presubmit_gcc_debug.cfg
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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/linux/build_gcc_debug.sh"
|
||||
|
||||
16
3rdparty/shaderc/kokoro/linux/presubmit_gcc_release.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/presubmit_gcc_release.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/linux/build_gcc_release.sh"
|
||||
16
3rdparty/shaderc/kokoro/linux/presubmit_license_check.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/presubmit_license_check.cfg
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# Copyright (C) 2020 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/linux/license_check.sh"
|
||||
16
3rdparty/shaderc/kokoro/linux/presubmit_mingw_release.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/linux/presubmit_mingw_release.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/linux/build_mingw_release.sh"
|
||||
63
3rdparty/shaderc/kokoro/macos/build.sh
vendored
Normal file
63
3rdparty/shaderc/kokoro/macos/build.sh
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# MacOS Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
BUILD_ROOT=$PWD
|
||||
SRC=$PWD/github/shaderc
|
||||
BUILD_TYPE=$1
|
||||
|
||||
# Get NINJA.
|
||||
wget -q https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-mac.zip
|
||||
unzip -q ninja-mac.zip
|
||||
chmod +x ninja
|
||||
export PATH="$PWD:$PATH"
|
||||
|
||||
cd $SRC
|
||||
./utils/git-sync-deps
|
||||
|
||||
mkdir build
|
||||
cd $SRC/build
|
||||
|
||||
# Invoke the build.
|
||||
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
||||
echo $(date): Starting build...
|
||||
cmake -GNinja -DCMAKE_INSTALL_PREFIX=$KOKORO_ARTIFACTS_DIR/install -DRE2_BUILD_TESTING=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||
|
||||
echo $(date): Build glslang...
|
||||
ninja glslang-standalone
|
||||
|
||||
echo $(date): Build everything...
|
||||
ninja
|
||||
|
||||
echo $(date): Check Shaderc for copyright notices...
|
||||
ninja check-copyright
|
||||
|
||||
echo $(date): Build completed.
|
||||
|
||||
echo $(date): Starting ctest...
|
||||
ctest --output-on-failure -j4
|
||||
echo $(date): ctest completed.
|
||||
|
||||
# Package the build.
|
||||
ninja install
|
||||
cd $KOKORO_ARTIFACTS_DIR
|
||||
tar czf install.tgz install
|
||||
26
3rdparty/shaderc/kokoro/macos/build_clang_debug.sh
vendored
Normal file
26
3rdparty/shaderc/kokoro/macos/build_clang_debug.sh
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# MacOS Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh Debug
|
||||
|
||||
26
3rdparty/shaderc/kokoro/macos/build_clang_release.sh
vendored
Normal file
26
3rdparty/shaderc/kokoro/macos/build_clang_release.sh
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# MacOS Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh RelWithDebInfo
|
||||
|
||||
22
3rdparty/shaderc/kokoro/macos/continuous_clang_debug.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/macos/continuous_clang_debug.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/macos/build_clang_debug.sh"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.tgz"
|
||||
}
|
||||
}
|
||||
22
3rdparty/shaderc/kokoro/macos/continuous_clang_release.cfg
vendored
Normal file
22
3rdparty/shaderc/kokoro/macos/continuous_clang_release.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/macos/build_clang_release.sh"
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "install.tgz"
|
||||
}
|
||||
}
|
||||
16
3rdparty/shaderc/kokoro/macos/presubmit_clang_debug.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/macos/presubmit_clang_debug.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/macos/build_clang_debug.sh"
|
||||
16
3rdparty/shaderc/kokoro/macos/presubmit_clang_release.cfg
vendored
Normal file
16
3rdparty/shaderc/kokoro/macos/presubmit_clang_release.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/macos/build_clang_release.sh"
|
||||
71
3rdparty/shaderc/kokoro/ndk-build/build-docker.sh
vendored
Executable file
71
3rdparty/shaderc/kokoro/ndk-build/build-docker.sh
vendored
Executable file
@@ -0,0 +1,71 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2018 Google LLC.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
# This is required to run any git command in the docker since owner will
|
||||
# have changed between the clone environment, and the docker container.
|
||||
# Marking the root of the repo as safe for ownership changes.
|
||||
git config --global --add safe.directory $ROOT_DIR
|
||||
|
||||
. /bin/using.sh # Declare the bash `using` function for configuring toolchains.
|
||||
|
||||
cd $ROOT_DIR
|
||||
|
||||
function clean_dir() {
|
||||
dir=$1
|
||||
if [[ -d "$dir" ]]; then
|
||||
rm -fr "$dir"
|
||||
fi
|
||||
mkdir "$dir"
|
||||
}
|
||||
|
||||
# Get source for dependencies, as specified in the DEPS file
|
||||
/usr/bin/python3 utils/git-sync-deps --treeless
|
||||
|
||||
using ndk-r25c
|
||||
|
||||
clean_dir "$ROOT_DIR/build"
|
||||
cd "$ROOT_DIR/build"
|
||||
|
||||
function do_ndk_build () {
|
||||
echo $(date): Starting ndk-build $@...
|
||||
$ANDROID_NDK_HOME/ndk-build \
|
||||
-C $ROOT_DIR/android_test \
|
||||
NDK_PROJECT_PATH=. \
|
||||
NDK_LIBS_OUT=./libs \
|
||||
NDK_APP_OUT=./app \
|
||||
V=1 \
|
||||
SPVTOOLS_LOCAL_PATH=$ROOT_DIR/third_party/spirv-tools \
|
||||
SPVHEADERS_LOCAL_PATH=$ROOT_DIR/third_party/spirv-headers \
|
||||
-j8 $@
|
||||
}
|
||||
|
||||
# Builds all the ABIs (see APP_ABI in jni/Application.mk)
|
||||
do_ndk_build
|
||||
|
||||
# Check that libshaderc_combined builds
|
||||
# Explicitly set each ABI, otherwise it will only pick x86.
|
||||
# It seems to be the behaviour when specifying an explicit target.
|
||||
for abi in x86 x86_64 armeabi-v7a arm64-v8a; do
|
||||
do_ndk_build APP_ABI=$abi libshaderc_combined
|
||||
done
|
||||
|
||||
echo $(date): ndk-build completed.
|
||||
56
3rdparty/shaderc/kokoro/ndk-build/build.sh
vendored
Normal file
56
3rdparty/shaderc/kokoro/ndk-build/build.sh
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
#!/bin/bash
|
||||
# Copyright (c) 2021 Google LLC.
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"
|
||||
ROOT_DIR="$( cd "${SCRIPT_DIR}/../.." >/dev/null 2>&1 && pwd )"
|
||||
|
||||
BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT}
|
||||
|
||||
# chown the given directory to the current user, if it exists.
|
||||
# Docker creates files with the root user - this can upset the Kokoro artifact copier.
|
||||
function chown_dir() {
|
||||
dir=$1
|
||||
if [[ -d "$dir" ]]; then
|
||||
sudo chown -R "$(id -u):$(id -g)" "$dir"
|
||||
fi
|
||||
}
|
||||
|
||||
set +e
|
||||
# Allow build failures
|
||||
|
||||
# "--privileged" is required to run ptrace in the asan builds.
|
||||
docker run --rm -i \
|
||||
--privileged \
|
||||
--volume "${ROOT_DIR}:${ROOT_DIR}" \
|
||||
--volume "${KOKORO_ARTIFACTS_DIR}:${KOKORO_ARTIFACTS_DIR}" \
|
||||
--workdir "${ROOT_DIR}" \
|
||||
--env SCRIPT_DIR=${SCRIPT_DIR} \
|
||||
--env ROOT_DIR=${ROOT_DIR} \
|
||||
--env KOKORO_ARTIFACTS_DIR="${KOKORO_ARTIFACTS_DIR}" \
|
||||
--env BUILD_SHA="${BUILD_SHA}" \
|
||||
--entrypoint "${SCRIPT_DIR}/build-docker.sh" \
|
||||
"gcr.io/shaderc-build/radial-build:latest"
|
||||
RESULT=$?
|
||||
|
||||
# This is important. If the permissions are not fixed, kokoro will fail
|
||||
# to pull build artifacts, and put the build in tool-failure state, which
|
||||
# blocks the logs.
|
||||
chown_dir "${ROOT_DIR}/build"
|
||||
exit $RESULT
|
||||
25
3rdparty/shaderc/kokoro/ndk-build/build_khronos.sh
vendored
Normal file
25
3rdparty/shaderc/kokoro/ndk-build/build_khronos.sh
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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.
|
||||
#
|
||||
# Linux Build Script.
|
||||
|
||||
# Fail on any error.
|
||||
set -e
|
||||
# Display commands being run.
|
||||
set -x
|
||||
|
||||
SCRIPT_DIR=`dirname "$BASH_SOURCE"`
|
||||
source $SCRIPT_DIR/build.sh
|
||||
17
3rdparty/shaderc/kokoro/ndk-build/continuous_khronos.cfg
vendored
Normal file
17
3rdparty/shaderc/kokoro/ndk-build/continuous_khronos.cfg
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# 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/ndk-build/build_khronos.sh"
|
||||
17
3rdparty/shaderc/kokoro/ndk-build/presubmit_khronos.cfg
vendored
Normal file
17
3rdparty/shaderc/kokoro/ndk-build/presubmit_khronos.cfg
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# Copyright (C) 2018 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/ndk-build/build_khronos.sh"
|
||||
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