From http://www.jwz.org/xscreensaver/xscreensaver-5.34.tar.gz
[xscreensaver] / android / project / GLWallpaperService / build.gradle
1 apply plugin: 'android-library'
2
3 dependencies {
4     compile fileTree(include: '*.jar', dir: 'libs')
5 }
6
7 android {
8     compileSdkVersion 21
9     buildToolsVersion "21.1.2"
10     compileOptions {
11         sourceCompatibility JavaVersion.VERSION_1_7
12         targetCompatibility JavaVersion.VERSION_1_7
13     }
14     sourceSets {
15         main {
16             manifest.srcFile 'AndroidManifest.xml'
17             java.srcDirs = ['src']
18             resources.srcDirs = ['src']
19             aidl.srcDirs = ['src']
20             renderscript.srcDirs = ['src']
21             res.srcDirs = ['res']
22             assets.srcDirs = ['assets']
23         }
24
25         // Move the tests to tests/java, tests/res, etc...
26         instrumentTest.setRoot('tests')
27
28         // Move the build types to build-types/<type>
29         // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
30         // This moves them out of them default location under src/<type>/... which would
31         // conflict with src/ being used by the main source set.
32         // Adding new build types or product flavors should be accompanied
33         // by a similar customization.
34         debug.setRoot('build-types/debug')
35         release.setRoot('build-types/release')
36     }
37     defaultConfig {
38         minSdkVersion 15
39         targetSdkVersion 21
40     }
41     productFlavors {
42     }
43 }