Include resources directory in google3 sync.

Also other minor improvements in sync scripts.

In BUILD.public, include all files under resources as data dependencies for DM. Omit newly failing DM tests and add newly passing DM tests.

Adds the OpenClipart "license" to LICENSE per comment in google3 CL 100158380.

Corresponding google3 CL is 105602927.

BUG=skia:

Review URL: https://codereview.chromium.org/1406283002
This commit is contained in:
benjaminwagner 2015-10-20 13:00:48 -07:00 коммит произвёл Commit bot
Родитель c752badbe3
Коммит 964eebae2d
6 изменённых файлов: 41 добавлений и 19 удалений

Просмотреть файл

@ -273,13 +273,12 @@ cc_test(
"--nogpu",
"--verbose",
# TODO(mtklein): maybe investigate why these fail?
"--match ~FontMgr ~Gif ~Scalar ~Canvas ~Codec_stripes ~Stream ~skps",
# TODO(benjaminwagner): dm can't find resources when running on TAP.
"--match ~FontMgr ~Scalar ~Canvas ~Codec_stripes ~Codec_Dimensions ~Codec ~Stream ~skps",
"--resourcePath %s/resources" % BASE_DIR,
"--images %s/resources" % BASE_DIR,
],
copts = COPTS,
data = glob(["resources/*"]),
data = glob(["resources/**/*"]),
defines = DEFINES,
includes = DM_INCLUDES,
deps = DM_EXTERNAL_DEPS + [

12
LICENSE
Просмотреть файл

@ -231,3 +231,15 @@ third_party/etc1 is under the following license:
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.
--------------------------------------------------------------------------------
Some files under resources are under the following license:
Unlimited Commercial Use
We try to make it clear that you may use all clipart from Openclipart even for unlimited commercial use. We believe that giving away our images is a great way to share with the world our talents and that will come back around in a better form.
May I Use Openclipart for?
We put together a small chart of as many possibilities and questions we have heard from people asking how they may use Openclipart. If you have an additional question, please email love@openclipart.org.
All Clipart are Released into the Public Domain.
Each artist at Openclipart releases all rights to the images they share at Openclipart. The reason is so that there is no friction in using and sharing images authors make available at this website so that each artist might also receive the same benefit in using other artists clipart totally for any possible reason.

Просмотреть файл

@ -10,9 +10,10 @@
# Usage:
# ./tools/create_skia_google3_client.sh <client_name>
source gbash.sh || exit
prodcertstatus -q || (echo "Please run prodaccess." 1>&2; exit 1)
source gbash.sh || exit 2
set -x -e
set -e
CLIENT="$1"
g4 citc "${CLIENT}"
@ -22,3 +23,5 @@ REV="$(cat README.google | grep -e "^Version" | sed "s/^Version: \(.*\)/\1/")"
MY_DIR="$(gbash::get_absolute_caller_dir)"
${MY_DIR}/git_clone_to_google3.sh --skia_rev "${REV}"
echo "Created client ${CLIENT} synced to ${REV}"

Просмотреть файл

@ -6,9 +6,10 @@
# Outputs the Last Known Good Revision of Skia.
source gbash.sh || exit
prodcertstatus -q || (echo "Please run prodaccess." 1>&2; exit 1)
source gbash.sh || exit 2
set -x -e
set -e
# Retrieve last known good revision. (App-engine script is very flaky, so retry
# 10 times.)

Просмотреть файл

@ -10,17 +10,13 @@
# Usage:
# ./tools/git_clone_to_google3.sh
source gbash.sh || exit
prodcertstatus -q || (echo "Please run prodaccess." 1>&2; exit 1)
source gbash.sh || exit 2
DEFINE_string skia_rev "" "Git hash of Skia revision to clone, default LKGR."
gbash::init_google "$@"
set -x -e
# To run this script after making edits, run:
# g4 revert -k git_clone_to_google3.sh
# To get the file back into your CL, run:
# g4 edit git_clone_to_google3.sh
#g4 opened | grep -q "//depot" && gbash::die "Must run in a clean client."
set -e
# Checkout LKGR of Skia in a temp location.
TMP=$(gbash::make_temp_dir)
@ -49,6 +45,7 @@ rsync -avzJ \
--include=/dm \
--include=/gm \
--include=/include \
--include=/resources \
--exclude=/src/animator \
--include=/src \
--include=/tests \

Просмотреть файл

@ -11,9 +11,10 @@
# Usage:
# ./tools/sync_google3.sh
source gbash.sh || exit
prodcertstatus -q || (echo "Please run prodaccess." 1>&2; exit 1)
source gbash.sh || exit 2
set -x -e
set -e
MY_DIR="$(gbash::get_absolute_caller_dir)"
LKGR="$(${MY_DIR}/get_skia_lkgr.sh)"
@ -27,6 +28,8 @@ fi
cd "${GOOGLE3}/third_party/skia/HEAD"
${MY_DIR}/git_clone_to_google3.sh --skia_rev "${LKGR}"
echo "Synced client ${CLIENT_NAME} to ${LKGR}"
# Update README.google.
sed --in-place "s/^Version: .*/Version: ${LKGR}/" README.google
sed --in-place "s/URL: http:\/\/skia.googlesource.com\/skia\/+archive\/.*\.tar\.gz/URL: http:\/\/skia.googlesource.com\/skia\/+archive\/${LKGR}.tar.gz/" README.google
@ -39,5 +42,12 @@ g4 reopen
CHANGE="$(g4 change --desc "Update skia HEAD to ${LKGR}.")"
CL="$(echo "${CHANGE}" | sed "s/Change \([0-9]\+\) created.*/\1/")"
# Run TAP.
tap_presubmit -c "${CL}" -p skia
echo "Created CL ${CL} (http://cl/${CL})"
# Run presubmit (will run TAP tests).
if g4 presubmit -c "${CL}"; then
echo "CL is ready for review and submit at http://cl/${CL}"
else
echo "Presubmit failed for CL ${CL} in client ${CLIENT_NAME}" 1>&2
exit 3
fi