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 | |
Aurimas Liutikas | e8fcac1 | 2018-03-14 17:10:10 -0700 | [diff] [blame] | 36 | includeProject(":annotation", "annotations") |
Aurimas Liutikas | ac5fe7c | 2018-03-06 14:40:53 -0800 | [diff] [blame] | 37 | includeProject(":appcompat", "v7/appcompat") |
Aurimas Liutikas | 9064fa4 | 2018-02-13 15:17:37 -0800 | [diff] [blame] | 38 | includeProject(":asynclayoutinflater", "asynclayoutinflater") |
Aurimas Liutikas | e8fcac1 | 2018-03-14 17:10:10 -0700 | [diff] [blame] | 39 | includeProject(":browser", "browser") |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 40 | includeProject(":car", "car") |
Jake Wharton | e94ca66 | 2018-03-09 09:50:16 -0500 | [diff] [blame] | 41 | includeProject(":cardview", "cardview") |
Jake Wharton | 3f4d91b | 2018-03-08 12:23:52 -0500 | [diff] [blame] | 42 | includeProject(":collection", "collection") |
Jake Wharton | b9b8af24 | 2018-03-15 16:54:55 -0400 | [diff] [blame^] | 43 | includeProject(":collection-ktx", "collection/ktx") |
Aurimas Liutikas | e8fcac1 | 2018-03-14 17:10:10 -0700 | [diff] [blame] | 44 | includeProject(":contentpaging", "content") |
Aurimas Liutikas | d4219a7 | 2018-02-08 16:00:17 -0800 | [diff] [blame] | 45 | includeProject(":coordinatorlayout", "coordinatorlayout") |
Aurimas Liutikas | e8fcac1 | 2018-03-14 17:10:10 -0700 | [diff] [blame] | 46 | includeProject(":core", "compat") |
Aurimas Liutikas | fa72a48 | 2018-02-21 11:48:48 -0800 | [diff] [blame] | 47 | includeProject(":cursoradapter", "cursoradapter") |
Aurimas Liutikas | 2ffc579 | 2018-02-09 17:17:47 -0800 | [diff] [blame] | 48 | includeProject(":customview", "customview") |
Aurimas Liutikas | 9d274e1 | 2018-02-13 17:57:56 -0800 | [diff] [blame] | 49 | includeProject(":documentfile", "documentfile") |
Aurimas Liutikas | 629ed7f | 2018-02-12 14:47:46 -0800 | [diff] [blame] | 50 | includeProject(":drawerlayout", "drawerlayout") |
Aurimas Liutikas | e8fcac1 | 2018-03-14 17:10:10 -0700 | [diff] [blame] | 51 | includeProject(":dynamicanimation", "dynamic-animation") |
| 52 | includeProject(":emoji", "emoji/core") |
| 53 | includeProject(":emoji-bundled", "emoji/bundled") |
| 54 | includeProject(":emoji-appcompat", "emoji/appcompat") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 55 | includeProject(":exifinterface", "exifinterface") |
Aurimas Liutikas | e8fcac1 | 2018-03-14 17:10:10 -0700 | [diff] [blame] | 56 | includeProject(":fragment", "fragment") |
Jake Wharton | e94ca66 | 2018-03-09 09:50:16 -0500 | [diff] [blame] | 57 | includeProject(":gridlayout", "gridlayout") |
Chong Zhang | 7cabcac | 2018-01-25 16:18:44 -0800 | [diff] [blame] | 58 | includeProject(":heifwriter", "heifwriter") |
Aurimas Liutikas | 368a8e5 | 2018-02-13 09:55:20 -0800 | [diff] [blame] | 59 | includeProject(":interpolator", "interpolator") |
Jeff Gaston | a2208ae | 2018-01-29 17:48:21 -0500 | [diff] [blame] | 60 | includeProject(":jetifier-core", "jetifier/jetifier/core") |
| 61 | includeProject(":jetifier-gradle-plugin", "jetifier/jetifier/gradle-plugin") |
| 62 | includeProject(":jetifier-standalone", "jetifier/jetifier/standalone") |
| 63 | includeProject(":jetifier-preprocessor", "jetifier/jetifier/preprocessor") |
Aurimas Liutikas | ac5fe7c | 2018-03-06 14:40:53 -0800 | [diff] [blame] | 64 | includeProject(":leanback", "leanback") |
Aurimas Liutikas | e8fcac1 | 2018-03-14 17:10:10 -0700 | [diff] [blame] | 65 | includeProject(":leanback-preference", "leanback-preference") |
Ian Lake | 2e77297 | 2018-02-16 16:22:47 -0800 | [diff] [blame] | 66 | includeProject(":loader", "loader") |
Aurimas Liutikas | 9c9c464 | 2018-02-13 18:26:36 -0800 | [diff] [blame] | 67 | includeProject(":localbroadcastmanager", "localbroadcastmanager") |
Aurimas Liutikas | e8fcac1 | 2018-03-14 17:10:10 -0700 | [diff] [blame] | 68 | includeProject(":media", "media") |
Jake Wharton | e94ca66 | 2018-03-09 09:50:16 -0500 | [diff] [blame] | 69 | includeProject(":mediarouter", "mediarouter") |
| 70 | includeProject(":palette", "palette") |
Jake Wharton | b9b8af24 | 2018-03-15 16:54:55 -0400 | [diff] [blame^] | 71 | includeProject(":palette-ktx", "palette/ktx") |
Aurimas Liutikas | ac5fe7c | 2018-03-06 14:40:53 -0800 | [diff] [blame] | 72 | includeProject(":percentlayout", "percent") |
Jake Wharton | e94ca66 | 2018-03-09 09:50:16 -0500 | [diff] [blame] | 73 | includeProject(":preference", "preference") |
Aurimas Liutikas | a00210b | 2018-02-13 18:40:38 -0800 | [diff] [blame] | 74 | includeProject(":print", "print") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 75 | includeProject(":recommendation", "recommendation") |
Aurimas Liutikas | ac5fe7c | 2018-03-06 14:40:53 -0800 | [diff] [blame] | 76 | includeProject(":recyclerview", "v7/recyclerview") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 77 | includeProject(":recyclerview-selection", "recyclerview-selection") |
| 78 | includeProject(":slices-core", "slices/core") |
| 79 | includeProject(":slices-view", "slices/view") |
| 80 | includeProject(":slices-builders", "slices/builders") |
Aurimas Liutikas | 0888e16 | 2018-02-12 14:59:46 -0800 | [diff] [blame] | 81 | includeProject(":slidingpanelayout", "slidingpanelayout") |
Jake Wharton | 50a6d03 | 2018-03-15 15:16:17 -0400 | [diff] [blame] | 82 | includeProject(":fragment-ktx", "fragment/ktx") |
Aurimas Liutikas | 368a8e5 | 2018-02-13 09:55:20 -0800 | [diff] [blame] | 83 | includeProject(":swiperefreshlayout", "swiperefreshlayout") |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 84 | includeProject(":textclassifier", "textclassifier") |
| 85 | includeProject(":transition", "transition") |
Aurimas Liutikas | e8fcac1 | 2018-03-14 17:10:10 -0700 | [diff] [blame] | 86 | includeProject(":tvprovider", "tv-provider") |
| 87 | includeProject(":vectordrawable", "graphics/drawable/static") |
| 88 | includeProject(":vectordrawable-animated", "graphics/drawable/animated") |
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 | // |
Jake Wharton | 65c15e1c | 2018-03-08 12:56:46 -0500 | [diff] [blame] | 97 | // Legacy |
| 98 | // |
| 99 | ///////////////////////////// |
| 100 | |
| 101 | includeProject(":legacy-support-core-ui", "legacy/core-ui") |
| 102 | includeProject(":legacy-support-core-utils", "legacy/core-utils") |
| 103 | includeProject(":legacy-support-v4", "legacy/v4") |
| 104 | includeProject(":legacy-support-v13", "legacy/v13") |
| 105 | includeProject(":legacy-preference-v14", "legacy/preference-v14") |
| 106 | |
| 107 | ///////////////////////////// |
| 108 | // |
Chris Banes | e17c519 | 2016-06-01 13:36:05 +0100 | [diff] [blame] | 109 | // Samples |
| 110 | // |
| 111 | ///////////////////////////// |
| 112 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 113 | File samplesRoot = new File(rootDir, "samples") |
Chris Banes | e17c519 | 2016-06-01 13:36:05 +0100 | [diff] [blame] | 114 | |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 115 | includeProject(":support-animation-demos", new File(samplesRoot, "SupportAnimationDemos")) |
| 116 | includeProject(":support-app-navigation", new File(samplesRoot, "SupportAppNavigation")) |
Aurimas Liutikas | f27b1ff | 2018-03-06 22:38:27 +0000 | [diff] [blame] | 117 | includeProject(":support-car-demos", new File(samplesRoot, "SupportCarDemos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 118 | includeProject(":support-content-demos", new File(samplesRoot, "SupportContentDemos")) |
Aurimas Liutikas | f27b1ff | 2018-03-06 22:38:27 +0000 | [diff] [blame] | 119 | includeProject(":support-design-demos", new File(samplesRoot, "SupportDesignDemos")) |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 120 | includeProject(":support-emoji-demos", new File(samplesRoot, "SupportEmojiDemos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 121 | includeProject(":support-leanback-demos", new File(samplesRoot, "SupportLeanbackDemos")) |
Aurimas Liutikas | 690af25 | 2018-03-20 09:55:04 -0700 | [diff] [blame] | 122 | //includeProject(":support-leanback-jank", new File(samplesRoot, "SupportLeanbackJank")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 123 | includeProject(":support-percent-demos", new File(samplesRoot, "SupportPercentDemos")) |
| 124 | includeProject(":support-preference-demos", new File(samplesRoot, "SupportPreferenceDemos")) |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 125 | includeProject(":support-slices-demos", new File(samplesRoot, "SupportSliceDemos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 126 | includeProject(":support-transition-demos", new File(samplesRoot, "SupportTransitionDemos")) |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 127 | includeProject(":support-vector-drawable-demos", new File(samplesRoot, "SupportVectorDrawableDemos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 128 | includeProject(":support-v4-demos", new File(samplesRoot, "Support4Demos")) |
| 129 | includeProject(":support-v7-demos", new File(samplesRoot, "Support7Demos")) |
| 130 | includeProject(":support-v13-demos", new File(samplesRoot, "Support13Demos")) |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 131 | includeProject(":support-wear-demos", new File(samplesRoot, "SupportWearDemos")) |
Aurimas Liutikas | 15dadc5 | 2018-02-13 10:17:58 -0800 | [diff] [blame] | 132 | includeProject(":viewpager2-demos", new File(samplesRoot, "ViewPager2Demos")) |
Jason Monk | b2c4579 | 2017-12-14 17:30:21 -0500 | [diff] [blame] | 133 | |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 134 | ///////////////////////////// |
| 135 | // |
Aurimas Liutikas | 6d20a52 | 2017-03-10 17:13:03 -0800 | [diff] [blame] | 136 | // Testing libraries |
| 137 | // |
| 138 | ///////////////////////////// |
| 139 | |
Aurimas Liutikas | 67171c8 | 2018-02-27 13:10:25 -0800 | [diff] [blame] | 140 | includeProject(":internal-testutils", "testutils") |
Jake Wharton | bf04c31 | 2018-03-09 13:50:42 -0500 | [diff] [blame] | 141 | includeProject(":internal-testutils-ktx", "testutils-ktx") |
Aurimas Liutikas | 6d20a52 | 2017-03-10 17:13:03 -0800 | [diff] [blame] | 142 | |
| 143 | ///////////////////////////// |
| 144 | // |
Hyundo Moon | da9ee6b2 | 2017-07-21 14:32:12 +0900 | [diff] [blame] | 145 | // Applications and libraries for tests |
Hyundo Moon | 72e64db | 2017-07-20 14:09:13 +0900 | [diff] [blame] | 146 | // |
| 147 | ///////////////////////////// |
| 148 | |
Jake Wharton | 0efa1d5 | 2018-03-09 11:37:18 -0500 | [diff] [blame] | 149 | includeProject(":support-media-compat-test-client", "media/version-compat-tests/current/client") |
| 150 | includeProject(":support-media-compat-test-client-previous", "media/version-compat-tests/previous/client") |
| 151 | includeProject(":support-media-compat-test-service", "media/version-compat-tests/current/service") |
| 152 | includeProject(":support-media-compat-test-service-previous", "media/version-compat-tests/previous/service") |
| 153 | includeProject(":support-media-compat-test-lib", "media/version-compat-tests/lib") |
Hyundo Moon | da9ee6b2 | 2017-07-21 14:32:12 +0900 | [diff] [blame] | 154 | |
Hyundo Moon | 72e64db | 2017-07-20 14:09:13 +0900 | [diff] [blame] | 155 | ///////////////////////////// |
| 156 | // |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 157 | // External |
| 158 | // |
| 159 | ///////////////////////////// |
| 160 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 161 | apply(from: "include-composite-deps.gradle") |
| 162 | File externalRoot = new File(rootDir, "../../external") |
Alan Viverette | cc5197e | 2016-06-13 12:45:07 -0400 | [diff] [blame] | 163 | |
Jeff Gaston | cfc647a | 2018-01-29 17:19:41 -0500 | [diff] [blame] | 164 | includeProject(":noto-emoji-compat", new File(externalRoot, "noto-fonts/emoji-compat")) |
Gustav Sennton | f9916c3 | 2018-02-14 14:27:45 +0000 | [diff] [blame] | 165 | includeProject(":webview-support-interfaces", new File(externalRoot, "webview_support_interfaces")) |
Siyamed Sinir | 75b9131 | 2017-04-21 19:10:41 -0700 | [diff] [blame] | 166 | |
Yigit Boyar | 95c6a87 | 2017-03-03 10:54:49 -0800 | [diff] [blame] | 167 | ///// FLATFOOT START |
| 168 | |
Steve McKay | c01ec96 | 2017-05-23 14:32:58 -0700 | [diff] [blame] | 169 | ///// FLATFOOT END |