Chris Banes | e17c519 | 2016-06-01 13:36:05 +0100 | [diff] [blame] | 1 | ///////////////////////////// |
| 2 | // |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 3 | // Buildscript utils |
| 4 | // |
| 5 | ///////////////////////////// |
| 6 | |
| 7 | |
| 8 | // Calling includeProject(name, filePath) is shorthand for: |
| 9 | // |
| 10 | // include(name) |
| 11 | // project(name).projectDir = new File(filePath) |
| 12 | // |
| 13 | // Note that <name> directly controls the Gradle project name, and also indirectly sets: |
| 14 | // the project name in the IDE |
| 15 | // the Maven artifactId |
| 16 | // |
| 17 | def includeProject(name, filePath) { |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 18 | settings.include(name) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 19 | |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 20 | def file |
| 21 | if (filePath instanceof String) { |
| 22 | file = new File(filePath) |
| 23 | } else { |
| 24 | file = filePath |
| 25 | } |
| 26 | project(name).projectDir = file |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 30 | ///////////////////////////// |
| 31 | // |
Chris Banes | e17c519 | 2016-06-01 13:36:05 +0100 | [diff] [blame] | 32 | // Libraries |
| 33 | // |
| 34 | ///////////////////////////// |
| 35 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 36 | includeProject(":animated-vector-drawable", "graphics/drawable/animated") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 37 | includeProject(":appcompat-v7", "v7/appcompat") |
Aurimas Liutikas | 9064fa4 | 2018-02-13 15:17:37 -0800 | [diff] [blame] | 38 | includeProject(":asynclayoutinflater", "asynclayoutinflater") |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 39 | includeProject(":car", "car") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 40 | includeProject(":cardview-v7", "v7/cardview") |
Jake Wharton | df3c420 | 2018-02-13 20:14:32 -0500 | [diff] [blame] | 41 | includeProject(":collections", "collections") |
Aurimas Liutikas | d4219a7 | 2018-02-08 16:00:17 -0800 | [diff] [blame] | 42 | includeProject(":coordinatorlayout", "coordinatorlayout") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 43 | includeProject(":customtabs", "customtabs") |
Aurimas Liutikas | 2ffc579 | 2018-02-09 17:17:47 -0800 | [diff] [blame] | 44 | includeProject(":customview", "customview") |
Aurimas Liutikas | 9d274e1 | 2018-02-13 17:57:56 -0800 | [diff] [blame] | 45 | includeProject(":documentfile", "documentfile") |
Aurimas Liutikas | 629ed7f | 2018-02-12 14:47:46 -0800 | [diff] [blame] | 46 | includeProject(":drawerlayout", "drawerlayout") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 47 | includeProject(":exifinterface", "exifinterface") |
| 48 | includeProject(":gridlayout-v7", "v7/gridlayout") |
Chong Zhang | 7cabcac | 2018-01-25 16:18:44 -0800 | [diff] [blame] | 49 | includeProject(":heifwriter", "heifwriter") |
Aurimas Liutikas | 368a8e5 | 2018-02-13 09:55:20 -0800 | [diff] [blame] | 50 | includeProject(":interpolator", "interpolator") |
Jeff Gaston | a2208ae | 2018-01-29 17:48:21 -0500 | [diff] [blame] | 51 | includeProject(":jetifier-core", "jetifier/jetifier/core") |
| 52 | includeProject(":jetifier-gradle-plugin", "jetifier/jetifier/gradle-plugin") |
| 53 | includeProject(":jetifier-standalone", "jetifier/jetifier/standalone") |
| 54 | includeProject(":jetifier-preprocessor", "jetifier/jetifier/preprocessor") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 55 | includeProject(":leanback-v17", "leanback") |
Aurimas Liutikas | 9c9c464 | 2018-02-13 18:26:36 -0800 | [diff] [blame] | 56 | includeProject(":localbroadcastmanager", "localbroadcastmanager") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 57 | includeProject(":mediarouter-v7", "v7/mediarouter") |
| 58 | includeProject(":palette-v7", "v7/palette") |
| 59 | includeProject(":percent", "percent") |
| 60 | includeProject(":preference-v7", "v7/preference") |
| 61 | includeProject(":preference-v14", "v14/preference") |
| 62 | includeProject(":preference-leanback-v17", "preference-leanback") |
Aurimas Liutikas | a00210b | 2018-02-13 18:40:38 -0800 | [diff] [blame] | 63 | includeProject(":print", "print") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 64 | includeProject(":recommendation", "recommendation") |
| 65 | includeProject(":recyclerview-v7", "v7/recyclerview") |
| 66 | includeProject(":recyclerview-selection", "recyclerview-selection") |
| 67 | includeProject(":slices-core", "slices/core") |
| 68 | includeProject(":slices-view", "slices/view") |
| 69 | includeProject(":slices-builders", "slices/builders") |
Aurimas Liutikas | 0888e16 | 2018-02-12 14:59:46 -0800 | [diff] [blame] | 70 | includeProject(":slidingpanelayout", "slidingpanelayout") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 71 | includeProject(":support-annotations", "annotations") |
| 72 | includeProject(":support-compat", "compat") |
| 73 | includeProject(":support-content", "content") |
| 74 | includeProject(":support-core-ui", "core-ui") |
| 75 | includeProject(":support-core-utils", "core-utils") |
| 76 | includeProject(":support-dynamic-animation", "dynamic-animation") |
| 77 | includeProject(":support-emoji", "emoji/core") |
| 78 | includeProject(":support-emoji-bundled", "emoji/bundled") |
| 79 | includeProject(":support-emoji-appcompat", "emoji/appcompat") |
| 80 | includeProject(":support-fragment", "fragment") |
| 81 | includeProject(":support-media-compat", "media-compat") |
| 82 | includeProject(":support-tv-provider", "tv-provider") |
| 83 | includeProject(":support-vector-drawable", "graphics/drawable/static") |
| 84 | includeProject(":support-v4", "v4") |
| 85 | includeProject(":support-v13", "v13") |
Aurimas Liutikas | 368a8e5 | 2018-02-13 09:55:20 -0800 | [diff] [blame] | 86 | includeProject(":swiperefreshlayout", "swiperefreshlayout") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 87 | includeProject(":textclassifier", "textclassifier") |
| 88 | includeProject(":transition", "transition") |
Aurimas Liutikas | f1efe44 | 2018-02-08 14:21:20 -0800 | [diff] [blame] | 89 | includeProject(":viewpager", "viewpager") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 90 | includeProject(":viewpager2", "viewpager2") |
| 91 | includeProject(":wear", "wear") |
| 92 | includeProject(":webkit", "webkit") |
| 93 | includeProject(":webkit-codegen", "webkit-codegen") |
Gustav Sennton | 18f68e7 | 2017-12-15 12:00:40 +0000 | [diff] [blame] | 94 | |
Chris Banes | e17c519 | 2016-06-01 13:36:05 +0100 | [diff] [blame] | 95 | ///////////////////////////// |
| 96 | // |
| 97 | // Samples |
| 98 | // |
| 99 | ///////////////////////////// |
| 100 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 101 | File samplesRoot = new File(rootDir, "samples") |
Chris Banes | e17c519 | 2016-06-01 13:36:05 +0100 | [diff] [blame] | 102 | |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 103 | includeProject(":support-animation-demos", new File(samplesRoot, "SupportAnimationDemos")) |
| 104 | includeProject(":support-app-navigation", new File(samplesRoot, "SupportAppNavigation")) |
| 105 | includeProject(":support-car-demos", new File(samplesRoot, "SupportCarDemos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 106 | includeProject(":support-content-demos", new File(samplesRoot, "SupportContentDemos")) |
| 107 | includeProject(":support-design-demos", new File(samplesRoot, "SupportDesignDemos")) |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 108 | includeProject(":support-emoji-demos", new File(samplesRoot, "SupportEmojiDemos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 109 | includeProject(":support-leanback-demos", new File(samplesRoot, "SupportLeanbackDemos")) |
| 110 | includeProject(":support-leanback-jank", new File(samplesRoot, "SupportLeanbackJank")) |
| 111 | includeProject(":support-percent-demos", new File(samplesRoot, "SupportPercentDemos")) |
| 112 | includeProject(":support-preference-demos", new File(samplesRoot, "SupportPreferenceDemos")) |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 113 | includeProject(":support-slices-demos", new File(samplesRoot, "SupportSliceDemos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 114 | includeProject(":support-transition-demos", new File(samplesRoot, "SupportTransitionDemos")) |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 115 | includeProject(":support-vector-drawable-demos", new File(samplesRoot, "SupportVectorDrawableDemos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 116 | includeProject(":support-v4-demos", new File(samplesRoot, "Support4Demos")) |
| 117 | includeProject(":support-v7-demos", new File(samplesRoot, "Support7Demos")) |
| 118 | includeProject(":support-v13-demos", new File(samplesRoot, "Support13Demos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 119 | includeProject(":support-wear-demos", new File(samplesRoot, "SupportWearDemos")) |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 120 | includeProject(":viewpager2-demos", new File(samplesRoot, "ViewPager2Demos")) |
Jason Monk | b2c4579 | 2017-12-14 17:30:21 -0500 | [diff] [blame] | 121 | |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 122 | ///////////////////////////// |
| 123 | // |
Aurimas Liutikas | 6d20a52 | 2017-03-10 17:13:03 -0800 | [diff] [blame] | 124 | // Testing libraries |
| 125 | // |
| 126 | ///////////////////////////// |
| 127 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 128 | includeProject(":support-testutils", "testutils") |
Aurimas Liutikas | 6d20a52 | 2017-03-10 17:13:03 -0800 | [diff] [blame] | 129 | |
| 130 | ///////////////////////////// |
| 131 | // |
Hyundo Moon | da9ee6b | 2017-07-21 14:32:12 +0900 | [diff] [blame] | 132 | // Applications and libraries for tests |
Hyundo Moon | 72e64db | 2017-07-20 14:09:13 +0900 | [diff] [blame] | 133 | // |
| 134 | ///////////////////////////// |
| 135 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 136 | includeProject(":support-media-compat-test-client", "media-compat/version-compat-tests/current/client") |
| 137 | includeProject(":support-media-compat-test-client-previous", "media-compat/version-compat-tests/previous/client") |
| 138 | includeProject(":support-media-compat-test-service", "media-compat/version-compat-tests/current/service") |
| 139 | includeProject(":support-media-compat-test-service-previous", "media-compat/version-compat-tests/previous/service") |
| 140 | includeProject(":support-media-compat-test-lib", "media-compat/version-compat-tests/lib") |
Hyundo Moon | da9ee6b | 2017-07-21 14:32:12 +0900 | [diff] [blame] | 141 | |
Hyundo Moon | 72e64db | 2017-07-20 14:09:13 +0900 | [diff] [blame] | 142 | ///////////////////////////// |
| 143 | // |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 144 | // External |
| 145 | // |
| 146 | ///////////////////////////// |
| 147 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 148 | apply(from: "include-composite-deps.gradle") |
| 149 | File externalRoot = new File(rootDir, "../../external") |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 150 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 151 | includeProject(":noto-emoji-compat", new File(externalRoot, "noto-fonts/emoji-compat")) |
Gustav Sennton | f9916c3 | 2018-02-14 14:27:45 +0000 | [diff] [blame] | 152 | includeProject(":webview-support-interfaces", new File(externalRoot, "webview_support_interfaces")) |
Siyamed Sinir | 75b9131 | 2017-04-21 19:10:41 -0700 | [diff] [blame] | 153 | |
Yigit Boyar | 95c6a87 | 2017-03-03 10:54:49 -0800 | [diff] [blame] | 154 | ///// FLATFOOT START |
| 155 | |
Steve McKay | c01ec96 | 2017-05-23 14:32:58 -0700 | [diff] [blame] | 156 | ///// FLATFOOT END |