DeprecatedSlideMeBuild » History » Version 38
Aaron Williamson -, 02/10/2010 03:59 AM
1 | 1 | Denis 'GNUtoo' Carikli | |
---|---|---|---|
2 | 38 | Aaron Williamson - | h1. HOWTO build FLOSS Dispenser |
3 | 1 | Denis 'GNUtoo' Carikli | |
4 | 38 | Aaron Williamson - | |
5 | |||
6 | h2. Install Maven |
||
7 | |||
8 | |||
9 | 1 | Denis 'GNUtoo' Carikli | On Debian/Ubuntu (as root): |
10 | 38 | Aaron Williamson - | <pre> |
11 | 1 | Denis 'GNUtoo' Carikli | apt-get install maven2 |
12 | 38 | Aaron Williamson - | </pre> |
13 | 1 | Denis 'GNUtoo' Carikli | |
14 | |||
15 | 38 | Aaron Williamson - | h2. Download the Android SDK |
16 | 1 | Denis 'GNUtoo' Carikli | |
17 | |||
18 | 38 | Aaron Williamson - | 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 [[FreeSDK|directions]] in our wiki. |
19 | 1 | Denis 'GNUtoo' Carikli | |
20 | 38 | Aaron Williamson - | * "the necessary SDK support":http://developer.android.com/sdk/adding-components.htmlInstall |
21 | ** Include at least Android 1.1, 1.5, and 2.0 |
||
22 | ** You may need to create a @temp@ directory at the top level of your SDK directory |
||
23 | ** You may also need to check the "Force HTTP" option under "Settings" |
||
24 | |||
25 | |||
26 | h2. Install maven-android-sdk-deployer |
||
27 | |||
28 | |||
29 | 1 | Denis 'GNUtoo' Carikli | This will allow us to set up a Maven dependency for particular versions of Android. |
30 | 33 | Aaron Williamson - | |
31 | 38 | Aaron Williamson - | ** Get "the latest stable version":http://github.com/mosabua/maven-android-sdk-deployer/archives/master of maven-android-sdk-deployer |
32 | ** Set your ANDROID_HOME environment variable to point to your copy of the Android SDK: |
||
33 | <pre> |
||
34 | 1 | Denis 'GNUtoo' Carikli | export ANDROID_HOME=/path/to/sdk/ |
35 | 38 | Aaron Williamson - | </pre> |
36 | ** Install maven-android-sdk-deployer |
||
37 | *** cd into the directory where you unpacked the maven-android-sdk-deployer sources. |
||
38 | *** 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). |
||
39 | 37 | Aaron Williamson - | |
40 | |||
41 | 38 | Aaron Williamson - | h2. Add SDK tools/ directories to PATH |
42 | |||
43 | |||
44 | 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. |
||
45 | <pre> |
||
46 | 33 | Aaron Williamson - | export PATH=${PATH}:<your_sdk_dir>/tools |
47 | 31 | Aaron Williamson - | export PATH=${PATH}:<your_sdk_dir>/platforms/android-1.5/tools |
48 | 38 | Aaron Williamson - | </pre> |
49 | 31 | Aaron Williamson - | |
50 | 38 | Aaron Williamson - | |
51 | h2. Get FLOSS Dispenser sources |
||
52 | |||
53 | <pre> |
||
54 | 25 | Denis 'GNUtoo' Carikli | mkdir fd-readonly |
55 | 22 | Denis 'GNUtoo' Carikli | cd fd-readonly |
56 | 1 | Denis 'GNUtoo' Carikli | git clone git://gitorious.org/replicant/floss-dispenser.git |
57 | 38 | Aaron Williamson - | </pre> |
58 | 1 | Denis 'GNUtoo' Carikli | |
59 | 38 | Aaron Williamson - | |
60 | h2. Download necessary libraries and build FLOSS Dispenser |
||
61 | |||
62 | <pre> |
||
63 | 1 | Denis 'GNUtoo' Carikli | mvn clean install |
64 | 38 | Aaron Williamson - | </pre> |