DeprecatedSlideMeBuild » History » Version 37
Aaron Williamson -, 02/10/2010 03:59 AM
1 | 35 | Aaron Williamson - | = HOWTO build FLOSS Dispenser = |
---|---|---|---|
2 | 27 | Aaron Williamson - | |
3 | 34 | Aaron Williamson - | == Install Maven == |
4 | 31 | Aaron Williamson - | |
5 | 1 | Denis 'GNUtoo' Carikli | On Debian/Ubuntu (as root): |
6 | 31 | Aaron Williamson - | {{{ |
7 | apt-get install maven2 |
||
8 | }}} |
||
9 | |||
10 | 34 | Aaron Williamson - | == Download the Android SDK == |
11 | 1 | Denis 'GNUtoo' Carikli | |
12 | Unfortunately, the most convenient way to get the SDK is distributed by the Android ''Open Source'' Project, but that copy contains proprietary Google code and is wrapped in a restrictive proprietary license agreement. You can obtain a free SDK by following the [wiki:FreeSDK directions] in our wiki. |
||
13 | |||
14 | * [http://developer.android.com/sdk/adding-components.htmlInstall the necessary SDK support] |
||
15 | 33 | Aaron Williamson - | * Include at least Android 1.1, 1.5, and 2.0 |
16 | * You may need to create a `temp` directory at the top level of your SDK directory |
||
17 | * You may also need to check the "Force HTTP" option under "Settings" |
||
18 | 1 | Denis 'GNUtoo' Carikli | |
19 | 34 | Aaron Williamson - | == Install maven-android-sdk-deployer == |
20 | 1 | Denis 'GNUtoo' Carikli | |
21 | This will allow us to set up a Maven dependency for particular versions of Android. |
||
22 | |||
23 | 33 | Aaron Williamson - | * Get [http://github.com/mosabua/maven-android-sdk-deployer/archives/master the latest stable version] of maven-android-sdk-deployer |
24 | * Set your ANDROID_HOME environment variable to point to your copy of the Android SDK: |
||
25 | 1 | Denis 'GNUtoo' Carikli | {{{ |
26 | 31 | Aaron Williamson - | export ANDROID_HOME=/path/to/sdk/ |
27 | }}} |
||
28 | 33 | Aaron Williamson - | * Install maven-android-sdk-deployer |
29 | * cd into the directory where you unpacked the maven-android-sdk-deployer sources. |
||
30 | * Install maven-android-sdk-deployer according to the directions in the README file (either just `mvn install` for all platforms or `mvn install -P [platform]` if you want to install for just one). |
||
31 | 1 | Denis 'GNUtoo' Carikli | |
32 | 37 | Aaron Williamson - | == Add SDK tools/ directories to PATH == |
33 | 1 | Denis 'GNUtoo' Carikli | |
34 | 37 | Aaron Williamson - | Add the Android SDK's primary and platform tools directories to your path (to give `mvn` access to `aapt` and `apkbuilder`). Currently, the build process targets Android 1.5, but if you've changed it to target a different platform, use that one in the second export command. |
35 | {{{ |
||
36 | export PATH=${PATH}:<your_sdk_dir>/tools |
||
37 | export PATH=${PATH}:<your_sdk_dir>/platforms/android-1.5/tools |
||
38 | }}} |
||
39 | 36 | Aaron Williamson - | |
40 | 34 | Aaron Williamson - | == Get FLOSS Dispenser sources == |
41 | 33 | Aaron Williamson - | {{{ |
42 | 31 | Aaron Williamson - | mkdir fd-readonly |
43 | 1 | Denis 'GNUtoo' Carikli | cd fd-readonly |
44 | 31 | Aaron Williamson - | git clone git://gitorious.org/replicant/floss-dispenser.git |
45 | }}} |
||
46 | 26 | Denis 'GNUtoo' Carikli | |
47 | 25 | Denis 'GNUtoo' Carikli | == Download necessary libraries and build FLOSS Dispenser == |
48 | {{{ |
||
49 | mvn clean install |
||
50 | 22 | Denis 'GNUtoo' Carikli | }}} |