Convert display_unittests to run exclusively on Swarming
[chromium-blink-merge.git] / tools / memory_inspector / chrome_app / assets / generate_bitmaps.sh
blob70f6d153fe462ccb78c01597414343cd5353eef2
1 #!/bin/bash
3 # Copyright 2015 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
7 ASSETS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
8 CHROME_APP_DIR="$(cd "${ASSETS_DIR}/.." && pwd)"
9 IMAGES_DIR="$(cd "${CHROME_APP_DIR}/template/images" && pwd)"
11 SRC_FILES=("icon.svg" "icon.svg" "icon.svg" "body.svg" "cog1.svg" "cog2.svg")
12 DST_FILES=( \
13 "icon_16.png" "icon_48.png" "icon_128.png" "body.png" "cog1.png" "cog2.png")
14 DST_SIZES=(16 48 128 300 60 30)
16 # Generate bitmap images.
17 for i in "${!SRC_FILES[@]}"; do
18 src_file="${ASSETS_DIR}/${SRC_FILES[$i]}"
19 dst_file="${IMAGES_DIR}/${DST_FILES[$i]}"
20 size="${DST_SIZES[$i]}"
21 echo "Generating ${dst_file}"
22 inkscape -z -e "${dst_file}" -w "${size}" -h "${size}" "${src_file}" > \
23 /dev/null
24 done