@@ -4,7 +4,34 @@ Xamarin.Android
44Xamarin.Android provides open-source bindings of the Android SDK for use with
55.NET managed languages such as C#.
66
7- # Build Configuration
7+ # Configuration.Overrides.props
8+
9+ The Xamarin.Android build is heavily dependent on MSBuild, with the * intention*
10+ that it should (eventually?) be possible to build the project simply by
11+ checking out the repo, loading ` Xamarin.Android.sln ` into an IDE, and Building
12+ the solution. (This isn't currently possible, and may never be, but it's
13+ the * vision* .)
14+
15+ However, some properties may need to be altered in order to suit your
16+ requirements, such as the location of a cache directory to store
17+ the Android SDK and NDK.
18+
19+ To modify the build process, copy
20+ [ ` Configuration.Override.props.in ` ] [ Configuration.Override.props.in ]
21+ to ` Configuration.Override.props ` , and edit the file as appropriate.
22+ ` Configuration.Override.props ` is ` <Import/> ` ed by ` Configuration.props `
23+ and will override any default values specified in ` Configuration.props ` .
24+
25+ Overridable MSBuild properties include:
26+
27+ * ` $(AndroidToolchainCacheDirectory) ` : The directory to cache the downloaded
28+ Android NDK and SDK files. This value defaults to
29+ ` $(HOME)\android-archives ` .
30+ * ` $(AndroidToolchainDirectory) ` : The directory to install the downloaded
31+ Android NDK and SDK files. This value defaults to
32+ ` $(HOME)\android-toolchain ` .
33+
34+ # Build Requirements
835
936Building Xamarin.Android requires the Java Development Kit (JDK), several
1037pieces of the Android SDK, and the Android NDK.
@@ -17,20 +44,8 @@ The Java Development Kit may be downloaded from the
1744To simplify building Xamarin.Android, important pieces of the Android SDK
1845and Android NDK will be automatically downloaded and installed from
1946Google's website. Downloaded files are cached locally, by default into
20- ` $(HOME)\android-archives ` . The Android NDK and SDK will be installed by
21- default into ` $(HOME)\android-toolchain ` .
22-
23- These directories may be changed by creating the file
24- ` Configuration.Override.props ` in the toplevel directory and editing
25- the MSBuild properties:
26-
27- * ` $(AndroidToolchainCacheDirectory) ` : The directory to cache the downloaded
28- Android NDK and SDK files.
29- * ` $(AndroidToolchainDirectory) ` : The directory to install the downloaded
30- Android NDK and SDK files.
31-
32- The file [ Configuration.Override.props.in] [ Configuration.Override.props.in ]
33- may be used as a template file for creating ` Configuration.Override.props ` .
47+ ` $(AndroidToolchainDirectory) ` . The Android NDK and SDK will be installed by
48+ default into ` $(AndroidToolchainDirectory) ` .
3449
3550The files that will be downloaded and installed are controlled by
3651[ build-tools/android-toolchain/android-toolchain.projitems] [ android-toolchain.projitems ]
0 commit comments