blob: a87dcfea99ce90f9f54261eb255138bf0d931139 [file] [log] [blame]
Chris Banese17c5192016-06-01 13:36:05 +01001/////////////////////////////
2//
Jeff Gastoncfc647a2018-01-29 17:19:41 -05003// 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//
17def includeProject(name, filePath) {
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080018 settings.include(name)
Jeff Gastoncfc647a2018-01-29 17:19:41 -050019
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080020 def file
21 if (filePath instanceof String) {
22 file = new File(filePath)
23 } else {
24 file = filePath
25 }
26 project(name).projectDir = file
Jeff Gastoncfc647a2018-01-29 17:19:41 -050027}
28
29
Jeff Gastoncfc647a2018-01-29 17:19:41 -050030/////////////////////////////
31//
Chris Banese17c5192016-06-01 13:36:05 +010032// Libraries
33//
34/////////////////////////////
35
Jeff Gastoncfc647a2018-01-29 17:19:41 -050036includeProject(":animated-vector-drawable", "graphics/drawable/animated")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080037includeProject(":appcompat-v7", "v7/appcompat")
Aurimas Liutikas9064fa42018-02-13 15:17:37 -080038includeProject(":asynclayoutinflater", "asynclayoutinflater")
Jeff Gastoncfc647a2018-01-29 17:19:41 -050039includeProject(":car", "car")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080040includeProject(":cardview-v7", "v7/cardview")
Jake Whartondf3c4202018-02-13 20:14:32 -050041includeProject(":collections", "collections")
Aurimas Liutikasd4219a72018-02-08 16:00:17 -080042includeProject(":coordinatorlayout", "coordinatorlayout")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080043includeProject(":customtabs", "customtabs")
Aurimas Liutikas2ffc5792018-02-09 17:17:47 -080044includeProject(":customview", "customview")
Aurimas Liutikas9d274e12018-02-13 17:57:56 -080045includeProject(":documentfile", "documentfile")
Aurimas Liutikas629ed7f2018-02-12 14:47:46 -080046includeProject(":drawerlayout", "drawerlayout")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080047includeProject(":exifinterface", "exifinterface")
48includeProject(":gridlayout-v7", "v7/gridlayout")
Chong Zhang7cabcac2018-01-25 16:18:44 -080049includeProject(":heifwriter", "heifwriter")
Aurimas Liutikas368a8e52018-02-13 09:55:20 -080050includeProject(":interpolator", "interpolator")
Jeff Gastona2208ae2018-01-29 17:48:21 -050051includeProject(":jetifier-core", "jetifier/jetifier/core")
52includeProject(":jetifier-gradle-plugin", "jetifier/jetifier/gradle-plugin")
53includeProject(":jetifier-standalone", "jetifier/jetifier/standalone")
54includeProject(":jetifier-preprocessor", "jetifier/jetifier/preprocessor")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080055includeProject(":leanback-v17", "leanback")
Aurimas Liutikas9c9c4642018-02-13 18:26:36 -080056includeProject(":localbroadcastmanager", "localbroadcastmanager")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080057includeProject(":mediarouter-v7", "v7/mediarouter")
58includeProject(":palette-v7", "v7/palette")
59includeProject(":percent", "percent")
60includeProject(":preference-v7", "v7/preference")
61includeProject(":preference-v14", "v14/preference")
62includeProject(":preference-leanback-v17", "preference-leanback")
Aurimas Liutikasa00210b2018-02-13 18:40:38 -080063includeProject(":print", "print")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080064includeProject(":recommendation", "recommendation")
65includeProject(":recyclerview-v7", "v7/recyclerview")
66includeProject(":recyclerview-selection", "recyclerview-selection")
67includeProject(":slices-core", "slices/core")
68includeProject(":slices-view", "slices/view")
69includeProject(":slices-builders", "slices/builders")
Aurimas Liutikas0888e162018-02-12 14:59:46 -080070includeProject(":slidingpanelayout", "slidingpanelayout")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080071includeProject(":support-annotations", "annotations")
72includeProject(":support-compat", "compat")
73includeProject(":support-content", "content")
74includeProject(":support-core-ui", "core-ui")
75includeProject(":support-core-utils", "core-utils")
76includeProject(":support-dynamic-animation", "dynamic-animation")
77includeProject(":support-emoji", "emoji/core")
78includeProject(":support-emoji-bundled", "emoji/bundled")
79includeProject(":support-emoji-appcompat", "emoji/appcompat")
80includeProject(":support-fragment", "fragment")
81includeProject(":support-media-compat", "media-compat")
82includeProject(":support-tv-provider", "tv-provider")
83includeProject(":support-vector-drawable", "graphics/drawable/static")
84includeProject(":support-v4", "v4")
85includeProject(":support-v13", "v13")
Aurimas Liutikas368a8e52018-02-13 09:55:20 -080086includeProject(":swiperefreshlayout", "swiperefreshlayout")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080087includeProject(":textclassifier", "textclassifier")
88includeProject(":transition", "transition")
Aurimas Liutikasf1efe442018-02-08 14:21:20 -080089includeProject(":viewpager", "viewpager")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080090includeProject(":viewpager2", "viewpager2")
91includeProject(":wear", "wear")
92includeProject(":webkit", "webkit")
93includeProject(":webkit-codegen", "webkit-codegen")
Gustav Sennton18f68e72017-12-15 12:00:40 +000094
Chris Banese17c5192016-06-01 13:36:05 +010095/////////////////////////////
96//
97// Samples
98//
99/////////////////////////////
100
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500101File samplesRoot = new File(rootDir, "samples")
Chris Banese17c5192016-06-01 13:36:05 +0100102
Aurimas Liutikas15dadc52018-02-13 10:17:58 -0800103includeProject(":support-animation-demos", new File(samplesRoot, "SupportAnimationDemos"))
104includeProject(":support-app-navigation", new File(samplesRoot, "SupportAppNavigation"))
105includeProject(":support-car-demos", new File(samplesRoot, "SupportCarDemos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500106includeProject(":support-content-demos", new File(samplesRoot, "SupportContentDemos"))
107includeProject(":support-design-demos", new File(samplesRoot, "SupportDesignDemos"))
Aurimas Liutikas15dadc52018-02-13 10:17:58 -0800108includeProject(":support-emoji-demos", new File(samplesRoot, "SupportEmojiDemos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500109includeProject(":support-leanback-demos", new File(samplesRoot, "SupportLeanbackDemos"))
110includeProject(":support-leanback-jank", new File(samplesRoot, "SupportLeanbackJank"))
111includeProject(":support-percent-demos", new File(samplesRoot, "SupportPercentDemos"))
112includeProject(":support-preference-demos", new File(samplesRoot, "SupportPreferenceDemos"))
Aurimas Liutikas15dadc52018-02-13 10:17:58 -0800113includeProject(":support-slices-demos", new File(samplesRoot, "SupportSliceDemos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500114includeProject(":support-transition-demos", new File(samplesRoot, "SupportTransitionDemos"))
Aurimas Liutikas15dadc52018-02-13 10:17:58 -0800115includeProject(":support-vector-drawable-demos", new File(samplesRoot, "SupportVectorDrawableDemos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500116includeProject(":support-v4-demos", new File(samplesRoot, "Support4Demos"))
117includeProject(":support-v7-demos", new File(samplesRoot, "Support7Demos"))
118includeProject(":support-v13-demos", new File(samplesRoot, "Support13Demos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500119includeProject(":support-wear-demos", new File(samplesRoot, "SupportWearDemos"))
Aurimas Liutikas15dadc52018-02-13 10:17:58 -0800120includeProject(":viewpager2-demos", new File(samplesRoot, "ViewPager2Demos"))
Jason Monkb2c45792017-12-14 17:30:21 -0500121
Alan Viverettecc5197e2016-06-13 12:45:07 -0400122/////////////////////////////
123//
Aurimas Liutikas6d20a522017-03-10 17:13:03 -0800124// Testing libraries
125//
126/////////////////////////////
127
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500128includeProject(":support-testutils", "testutils")
Aurimas Liutikas6d20a522017-03-10 17:13:03 -0800129
130/////////////////////////////
131//
Hyundo Moonda9ee6b2017-07-21 14:32:12 +0900132// Applications and libraries for tests
Hyundo Moon72e64db2017-07-20 14:09:13 +0900133//
134/////////////////////////////
135
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500136includeProject(":support-media-compat-test-client", "media-compat/version-compat-tests/current/client")
137includeProject(":support-media-compat-test-client-previous", "media-compat/version-compat-tests/previous/client")
138includeProject(":support-media-compat-test-service", "media-compat/version-compat-tests/current/service")
139includeProject(":support-media-compat-test-service-previous", "media-compat/version-compat-tests/previous/service")
140includeProject(":support-media-compat-test-lib", "media-compat/version-compat-tests/lib")
Hyundo Moonda9ee6b2017-07-21 14:32:12 +0900141
Hyundo Moon72e64db2017-07-20 14:09:13 +0900142/////////////////////////////
143//
Alan Viverettecc5197e2016-06-13 12:45:07 -0400144// External
145//
146/////////////////////////////
147
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500148apply(from: "include-composite-deps.gradle")
149File externalRoot = new File(rootDir, "../../external")
Alan Viverettecc5197e2016-06-13 12:45:07 -0400150
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500151includeProject(":noto-emoji-compat", new File(externalRoot, "noto-fonts/emoji-compat"))
Gustav Senntonf9916c32018-02-14 14:27:45 +0000152includeProject(":webview-support-interfaces", new File(externalRoot, "webview_support_interfaces"))
Siyamed Sinir75b91312017-04-21 19:10:41 -0700153
Yigit Boyar95c6a872017-03-03 10:54:49 -0800154///// FLATFOOT START
155
Steve McKayc01ec962017-05-23 14:32:58 -0700156///// FLATFOOT END