-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build scripts. Newer commit id. (#1)
* Update travis build scripts. * Quick fix. * Try not executing install-build-deps.sh script. * Small fix. * Small fix 2. * Fix Mac a bit. * Fix and tests. * Add fake_pom.xml * Use newer version of github-release tool. * Attempt to fix appveyor.yml * Small fix. * Try to fix appveyor build. * Fix to PATH setting. * Try different bash * Try git-bash * Try full path of git-bash * Try escaping slashes. * Quotes. * Missed some slashes. * shader_translator will have exe extension on Windows. * modify bash command again * Try another way of starting bash * Add DEPOT_TOOLS_WIN_TOOLCHAIN=0 * is_clang=false for Windows. * Fix appveyor release and re-enable travis build.
- Loading branch information
1 parent
8cc5b4a
commit a6dc81d
Showing
10 changed files
with
214 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,48 @@ | ||
|
||
language: generic | ||
|
||
env: | ||
global: | ||
- CO=f0b30dd8bd2bd68d6aad0e161f5fc3816d5a5077 | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
env: BUILD_PLATFORM="Linux-x64" Configuration="Debug" | ||
env: BUILD_PLATFORM="Linux_x64" Configuration="Debug" | ||
- os: linux | ||
dist: trusty | ||
sudo: required | ||
env: BUILD_PLATFORM="Linux-x64" Configuration="Release" | ||
env: BUILD_PLATFORM="Linux_x64" Configuration="Release" | ||
- os: osx | ||
osx_image: xcode7.3 | ||
env: BUILD_PLATFORM="Darwin-x64" Configuration="Debug" | ||
osx_image: xcode8.3 | ||
env: BUILD_PLATFORM="Mac_x64" Configuration="Debug" | ||
cache: | ||
directories: | ||
- $HOME/Library/Caches/Homebrew | ||
- os: osx | ||
osx_image: xcode7.3 | ||
env: BUILD_PLATFORM="Darwin-x64" Configuration="Release" | ||
osx_image: xcode8.3 | ||
env: BUILD_PLATFORM="Mac_x64" Configuration="Release" | ||
cache: | ||
directories: | ||
- $HOME/Library/Caches/Homebrew | ||
|
||
install: | ||
- export CLONE_DIR="angle" | ||
- export PATH=/data/bin:/data/depot_tools:$PATH | ||
- export GITHUB_USER="paulthomson" | ||
- export GITHUB_REPO="build-angle" | ||
- export COMMIT_ID="${TRAVIS_COMMIT}" | ||
- export GROUP_DOTS="github.${GITHUB_USER}" | ||
- export GROUP_SLASHES="github/${GITHUB_USER}" | ||
- export ARTIFACT="${GITHUB_REPO}" | ||
- export VERSION="${COMMIT_ID}" | ||
- export POM_FILE="${GITHUB_REPO}-${VERSION}.pom" | ||
- export TAG="${GROUP_SLASHES}/${ARTIFACT}/${VERSION}" | ||
- export CLASSIFIER="${BUILD_PLATFORM}_${Configuration}" | ||
- export INSTALL_DIR="${ARTIFACT}-${VERSION}-${CLASSIFIER}" | ||
- ./1-install-deps-travis.sh | ||
- export PATH=/data/bin:$PATH | ||
|
||
script: | ||
- echo Building ${CO} | ||
- git clone https://github.com/google/angle.git | ||
- wget https://storage.googleapis.com/chrome-infra/depot_tools.zip | ||
- 7z x depot_tools.zip -odepot_tools | ||
- export PATH=$(pwd)/depot_tools:$PATH | ||
- gclient | ||
- export GYP_GENERATORS=ninja | ||
- cd angle | ||
- git checkout ${CO} | ||
- python scripts/bootstrap.py | ||
- gclient sync | ||
- git checkout ${CO} | ||
- ninja -C "out/${Configuration}" | ||
- cd .. | ||
- ./2-build-travis.sh | ||
|
||
after_success: | ||
- cd angle/out | ||
- INSTALL_DIR="${Configuration}" COMMIT_ID="${TRAVIS_COMMIT}" RELEASE_ZIP="${BUILD_PLATFORM}-${Configuration}" ../../3-release-travis.sh | ||
|
||
|
||
- ./3-release-travis.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -x | ||
set -e | ||
set -u | ||
|
||
cd "${CLONE_DIR}" | ||
|
||
if [ "${Configuration}" = "Debug" ]; then | ||
IS_DEBUG="true" | ||
else | ||
IS_DEBUG="false" | ||
fi | ||
|
||
gn gen "out/${Configuration}" "--args=is_debug=${IS_DEBUG} target_cpu=\"x64\" is_clang=false" | ||
ninja -C "out/${Configuration}" | ||
|
||
mkdir -p "${INSTALL_DIR}/bin" | ||
mkdir -p "${INSTALL_DIR}/lib" | ||
|
||
cp "out/${Configuration}/libEGL"* "${INSTALL_DIR}/lib/" | ||
cp "out/${Configuration}/libGLES"* "${INSTALL_DIR}/lib/" | ||
cp "out/${Configuration}/shader_translator"* "${INSTALL_DIR}/bin/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -x | ||
set -e | ||
set -u | ||
|
||
cd "${CLONE_DIR}" | ||
|
||
if [ "${Configuration}" = "Debug" ]; then | ||
IS_DEBUG="true" | ||
else | ||
IS_DEBUG="false" | ||
fi | ||
|
||
gn gen "out/${Configuration}" "--args=is_debug=${IS_DEBUG} target_cpu=\"x64\"" | ||
ninja -C "out/${Configuration}" | ||
|
||
mkdir -p "${INSTALL_DIR}/bin" | ||
mkdir -p "${INSTALL_DIR}/lib" | ||
|
||
cp "out/${Configuration}/libEGL"* "${INSTALL_DIR}/lib/" | ||
cp "out/${Configuration}/libGLES"* "${INSTALL_DIR}/lib/" | ||
cp "out/${Configuration}/shader_translator" "${INSTALL_DIR}/bin/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c20ead32ad6d97a87ea64f7350f778959be91075 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>@GROUP@</groupId> | ||
<artifactId>@ARTIFACT@</artifactId> | ||
<version>@VERSION@</version> | ||
<packaging>pom</packaging> | ||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
</project> |