Home | History | Annotate | Download | only in build
      1 #!/bin/bash
      2 #
      3 # Copyright (C) 2009 The Android Open Source Project
      4 #
      5 # Licensed under the Apache License, Version 2.0 (the "License");
      6 # you may not use this file except in compliance with the License.
      7 # You may obtain a copy of the License at
      8 #
      9 #      http://www.apache.org/licenses/LICENSE-2.0
     10 #
     11 # Unless required by applicable law or agreed to in writing, software
     12 # distributed under the License is distributed on an "AS IS" BASIS,
     13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14 # See the License for the specific language governing permissions and
     15 # limitations under the License.
     16 #
     17 
     18 
     19 # This file is run by development/tools/build/windows_sdk.mk right
     20 # after development.git/tools/build/patch_windows_sdk.sh.
     21 # Please see the details in the other file.
     22 
     23 set -e # any error stops the build
     24 
     25 # Verbose by default. Use -q to make more silent.
     26 if [[ "$1" == "-q" ]]; then
     27   shift
     28 else
     29   echo "Win SDK: $0 $*"
     30   set -x # show bash commands
     31 fi
     32 
     33 TEMP_SDK_DIR=$1
     34 WIN_OUT_DIR=$2
     35 TOPDIR=${TOPDIR:-$3}
     36 
     37 # Invoke atree to copy the files
     38 if [[ -f ${TOPDIR}sdk/build/tools.windows.atree ]]; then
     39   ${TOPDIR}out/host/linux-x86/bin/atree -f ${TOPDIR}sdk/build/tools.windows.atree \
     40         -I $WIN_OUT_DIR/host/windows-x86 \
     41         -I ${TOPDIR:-.} \
     42         -o $TEMP_SDK_DIR
     43 fi
     44 
     45