Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/bin/sh | |
| 2 | |
| 3 # Copyright 2014 Google Inc. | |
| 4 # | |
| 5 # Use of this source code is governed by a BSD-style license that can be | |
| 6 # found in the LICENSE file. | |
| 7 | |
| 8 usage() { | |
| 9 cat >&2 <<EOF | |
| 10 arm64_make - this script builds a ARMv7 Aarch64 version of skia that | |
| 11 does not depend on external libraries, perfect for putting in an | |
| 12 embedded system running Linux. | |
| 13 | |
| 14 Assumes that you have already run the download_deps script. | |
| 15 | |
| 16 Usage: | |
| 17 $0 \\ | |
| 18 [-o SKIA_OUT_DIR] [-c CC_EXE] [-x CXX_EXE] \\ | |
| 19 [-t Debug | Release | Coverage | Release_Developer] \\ | |
| 20 | |
| 21 Example use: | |
| 22 $0 \\ | |
| 23 -o ~/build/skia/arg64gcc \\ | |
| 24 -c ~/local/arm64/bin/aarch64-linux-gnu-gcc \\ | |
| 25 -x ~/local/arm64/bin/aarch64-linux-gnu-g++ \\ | |
| 26 EOF | |
| 27 return 1 | |
| 28 } | |
| 29 | |
| 30 # BUILD_TYPE should be one of: | |
| 31 # Coverage, Debug, Release, or Release_Developer | |
| 32 BUILD_TYPE='Debug' | |
|
borenet
2014/03/25 13:38:55
We support the following in our "make" builds:
$
hal.canary
2014/03/25 14:04:38
(discussed in person why I did this: parsing argu
| |
| 33 | |
| 34 while getopts ":c:x:o:t:h" opt ; do | |
| 35 case $opt in | |
| 36 c) export CC="$OPTARG" ;; | |
| 37 x) export CXX="$OPTARG" ;; | |
| 38 o) export SKIA_OUT="$OPTARG";; | |
| 39 t) BUILD_TYPE="$OPTARG";; | |
| 40 h) usage || exit;; | |
| 41 ?) echo "unknown option '$OPTARG'" >&2; | |
| 42 usage || exit;; | |
| 43 esac | |
| 44 done | |
| 45 | |
| 46 "$(dirname "$0")/barelinux_make" \ | |
| 47 skia_gpu=0 \ | |
| 48 skia_arch_type=arm \ | |
| 49 skia_arch_width=64 \ | |
| 50 armv7=1 \ | |
| 51 armv8=1 \ | |
| 52 arm_neon=0 \ | |
| 53 arm_thumb=0 | |
|
borenet
2014/03/25 13:38:55
Shouldn't these be gathered into a GYP_DEFINES var
hal.canary
2014/03/25 14:04:38
Done.
| |
| 54 | |
| OLD | NEW |