| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 Use of this source code is governed by a BSD-style license that can be | 4 Use of this source code is governed by a BSD-style license that can be |
| 5 found in the LICENSE file. | 5 found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <project name="chrome_common_defines"> | 7 <project name="chrome_common_defines"> |
| 8 <!-- Common build properties for Chrome for android. --> | 8 <!-- Common build properties for Chrome for android. --> |
| 9 | 9 |
| 10 <!-- | 10 <!-- |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 <attribute name="name"/> | 46 <attribute name="name"/> |
| 47 <attribute name="location"/> | 47 <attribute name="location"/> |
| 48 <attribute name="check-exists" default="true"/> | 48 <attribute name="check-exists" default="true"/> |
| 49 <sequential> | 49 <sequential> |
| 50 <property name="@{name}" location="@{location}"/> | 50 <property name="@{name}" location="@{location}"/> |
| 51 <check-property-value property="@{name}"/> | 51 <check-property-value property="@{name}"/> |
| 52 <fail message="Location specified for @{name} : @{location} does not exist
."> | 52 <fail message="Location specified for @{name} : @{location} does not exist
."> |
| 53 <condition> | 53 <condition> |
| 54 <and> | 54 <and> |
| 55 <equals arg1="@{check-exists}" arg2="true"/> | 55 <equals arg1="@{check-exists}" arg2="true"/> |
| 56 <not><available type="dir" file="@{location}"/></not> | 56 <not><available file="@{location}"/></not> |
| 57 </and> | 57 </and> |
| 58 </condition> | 58 </condition> |
| 59 </fail> | 59 </fail> |
| 60 </sequential> | 60 </sequential> |
| 61 </macrodef> | 61 </macrodef> |
| 62 | 62 |
| 63 <!-- A safe setter for property values --> | 63 <!-- A safe setter for property values --> |
| 64 <macrodef name="property-value"> | 64 <macrodef name="property-value"> |
| 65 <attribute name="name"/> | 65 <attribute name="name"/> |
| 66 <attribute name="value"/> | 66 <attribute name="value"/> |
| 67 <sequential> | 67 <sequential> |
| 68 <property name="@{name}" value="@{value}"/> | 68 <property name="@{name}" value="@{value}"/> |
| 69 <check-property-value property="@{name}"/> | 69 <check-property-value property="@{name}"/> |
| 70 </sequential> | 70 </sequential> |
| 71 </macrodef> | 71 </macrodef> |
| 72 | 72 |
| 73 <!-- Common environment properties. --> | 73 <!-- Common environment properties. --> |
| 74 <property-location name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> | 74 <property-location name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> |
| 75 <property-value name="target" value="android-${ANDROID_SDK_VERSION}"/> | 75 <property-value name="target" value="android-${ANDROID_SDK_VERSION}"/> |
| 76 <property name="source.dir" location="src"/> | 76 <property name="source.dir" location="src"/> |
| 77 <property-location name="toolchain.dir" location="${ANDROID_TOOLCHAIN}"/> | 77 <property-location name="android.gdbserver" location="${ANDROID_GDBSERVER}"/> |
| 78 </project> | 78 </project> |
| OLD | NEW |