blob: 54fc7b7016a07f7f0eb683f4dad2d4a994c9ab73 [file] [log] [blame]
Raphael Mollfe21e0b2010-11-11 16:03:07 -08001#!/bin/bash
Raphael2eb3f742011-09-14 21:11:30 -07002#
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
Raphael Mollfe21e0b2010-11-11 16:03:07 -080018
Raphael2a26b072011-02-01 12:51:24 -080019# This file is run by development/tools/build/windows_sdk.mk right
20# after development.git/tools/build/patch_windows_sdk.sh.
Raphael Mollfe21e0b2010-11-11 16:03:07 -080021# Please see the details in the other file.
22
Raphael2a26b072011-02-01 12:51:24 -080023set -e # any error stops the build
Raphael Mollfe21e0b2010-11-11 16:03:07 -080024
25# Verbose by default. Use -q to make more silent.
Raphael2a26b072011-02-01 12:51:24 -080026V=""
Raphael Mollfe21e0b2010-11-11 16:03:07 -080027if [[ "$1" == "-q" ]]; then
Raphael Mollfe21e0b2010-11-11 16:03:07 -080028 shift
Raphael2a26b072011-02-01 12:51:24 -080029else
30 echo "Win SDK: $0 $*"
31 set -x # show bash commands; no need for V=-v
Raphael Mollfe21e0b2010-11-11 16:03:07 -080032fi
33
34TEMP_SDK_DIR=$1
35WIN_OUT_DIR=$2
36TOPDIR=${TOPDIR:-$3}
37
Raphael2eb3f742011-09-14 21:11:30 -070038# Invoke atree to copy the files
Raphael0ce2b7a2011-09-16 15:28:45 -070039# TODO: pass down OUT_HOST_EXECUTABLE to get the right bin/atree directory
40${TOPDIR}out/host/linux-x86/bin/atree -f ${TOPDIR}sdk/build/tools.windows.atree \
Raphael2eb3f742011-09-14 21:11:30 -070041 -I $WIN_OUT_DIR/host/windows-x86 \
42 -I ${TOPDIR:-.} \
43 -o $TEMP_SDK_DIR
Raphael Mollfe21e0b2010-11-11 16:03:07 -080044