| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 | 2 |
| 3 # Copyright 2014 Google Inc. | 3 # Copyright 2014 Google Inc. |
| 4 # | 4 # |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 | 7 |
| 8 usage() { | 8 usage() { |
| 9 cat >&2 <<EOF | 9 cat >&2 <<EOF |
| 10 arm64_make - this script builds a AArch64 version of skia that | 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 | 11 does not depend on external libraries, perfect for putting in an |
| 12 embedded system running Linux. | 12 embedded system running Linux. |
| 13 | 13 |
| 14 Assumes that you have already run the download_deps script. | 14 Assumes that you have already run the download_deps script. |
| 15 | 15 |
| 16 Usage: | 16 Usage: |
| 17 $0 \\ | 17 $0 \\ |
| 18 [-o SKIA_OUT_DIR] [-c CC_EXE] [-x CXX_EXE] \\ | 18 [-o SKIA_OUT_DIR] [-c CC_EXE] [-x CXX_EXE] \\ |
| 19 [-t Debug | Release | Coverage | Release_Developer] \\ | 19 [-t Debug | Release | Coverage | Release_Developer] \\ |
| 20 | 20 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 o) export SKIA_OUT="$OPTARG";; | 38 o) export SKIA_OUT="$OPTARG";; |
| 39 t) BUILD_TYPE="$OPTARG";; | 39 t) BUILD_TYPE="$OPTARG";; |
| 40 h) usage || exit;; | 40 h) usage || exit;; |
| 41 ?) echo "unknown option '$OPTARG'" >&2; | 41 ?) echo "unknown option '$OPTARG'" >&2; |
| 42 usage || exit;; | 42 usage || exit;; |
| 43 esac | 43 esac |
| 44 done | 44 done |
| 45 | 45 |
| 46 export GYP_DEFINES="${GYP_DEFINES} \ | 46 export GYP_DEFINES="${GYP_DEFINES} \ |
| 47 skia_gpu=0 \ | 47 skia_gpu=0 \ |
| 48 skia_arch_type=arm64 \ | 48 skia_arch_type=arm \ |
| 49 skia_arch_width=64 \ |
| 50 armv7=1 \ |
| 51 armv8=1 \ |
| 52 arm_neon=0 \ |
| 53 arm_thumb=0 \ |
| 49 " | 54 " |
| 50 | 55 |
| 51 "$(dirname "$0")/barelinux_make" -t "$BUILD_TYPE" | 56 "$(dirname "$0")/barelinux_make" -t "$BUILD_TYPE" |
| 52 | 57 |
| OLD | NEW |