Upstream version 11.40.277.0
[platform/framework/web/crosswalk.git] / src / xwalk / build / android / envsetup.sh
1 #!/bin/bash
2 # Copyright (c) 2013 Intel Corporation. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 SCRIPT_DIR="$(dirname "${BASH_SOURCE:-$0}")"
7
8 . ${SCRIPT_DIR}/../../../build/android/envsetup.sh "$@"
9
10 export PATH=$PATH:${SCRIPT_DIR}/../../../xwalk/build/android
11
12 # The purpose of this function is to do the same as android_gyp(), but calling
13 # gyp_xwalk instead.
14 xwalk_android_gyp() {
15   echo "Deprecated: Please use xwalk/gyp_xwalk instead. xwalk_android_gyp \
16 is going away."
17   echo "Notice: Add '-DOS=android' explicity to generate android building \
18 environment."
19   "${SCRIPT_DIR}/../../../xwalk/gyp_xwalk" --check "$@"
20 }