blob: addcc02d0a6672abdb8727c34fbede1a468b96ce [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.
Raphael Mollfe21e0b2010-11-11 16:03:07 -080026if [[ "$1" == "-q" ]]; then
Raphael Mollfe21e0b2010-11-11 16:03:07 -080027 shift
Raphael2a26b072011-02-01 12:51:24 -080028else
29 echo "Win SDK: $0 $*"
Raphael Moll077432c2014-05-09 16:34:17 -070030 set -x # show bash commands
Raphael Mollfe21e0b2010-11-11 16:03:07 -080031fi
32
33TEMP_SDK_DIR=$1
34WIN_OUT_DIR=$2
35TOPDIR=${TOPDIR:-$3}
36
Raphael2eb3f742011-09-14 21:11:30 -070037# Invoke atree to copy the files
Raphael Moll077432c2014-05-09 16:34:17 -070038if [[ -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
43fi
Raphael Mollfe21e0b2010-11-11 16:03:07 -080044