blob: 03eba382b295c84469c48ebeb3814a5731732a3e [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")
Jeff Gastoncfc647a2018-01-29 17:19:41 -050038includeProject(":car", "car")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080039includeProject(":cardview-v7", "v7/cardview")
40includeProject(":customtabs", "customtabs")
41includeProject(":exifinterface", "exifinterface")
42includeProject(":gridlayout-v7", "v7/gridlayout")
Jeff Gastona2208ae2018-01-29 17:48:21 -050043includeProject(":jetifier-core", "jetifier/jetifier/core")
44includeProject(":jetifier-gradle-plugin", "jetifier/jetifier/gradle-plugin")
45includeProject(":jetifier-standalone", "jetifier/jetifier/standalone")
46includeProject(":jetifier-preprocessor", "jetifier/jetifier/preprocessor")
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080047includeProject(":leanback-v17", "leanback")
48includeProject(":mediarouter-v7", "v7/mediarouter")
49includeProject(":palette-v7", "v7/palette")
50includeProject(":percent", "percent")
51includeProject(":preference-v7", "v7/preference")
52includeProject(":preference-v14", "v14/preference")
53includeProject(":preference-leanback-v17", "preference-leanback")
54includeProject(":recommendation", "recommendation")
55includeProject(":recyclerview-v7", "v7/recyclerview")
56includeProject(":recyclerview-selection", "recyclerview-selection")
57includeProject(":slices-core", "slices/core")
58includeProject(":slices-view", "slices/view")
59includeProject(":slices-builders", "slices/builders")
60includeProject(":support-annotations", "annotations")
61includeProject(":support-compat", "compat")
62includeProject(":support-content", "content")
63includeProject(":support-core-ui", "core-ui")
64includeProject(":support-core-utils", "core-utils")
65includeProject(":support-dynamic-animation", "dynamic-animation")
66includeProject(":support-emoji", "emoji/core")
67includeProject(":support-emoji-bundled", "emoji/bundled")
68includeProject(":support-emoji-appcompat", "emoji/appcompat")
69includeProject(":support-fragment", "fragment")
70includeProject(":support-media-compat", "media-compat")
71includeProject(":support-tv-provider", "tv-provider")
72includeProject(":support-vector-drawable", "graphics/drawable/static")
73includeProject(":support-v4", "v4")
74includeProject(":support-v13", "v13")
75includeProject(":textclassifier", "textclassifier")
76includeProject(":transition", "transition")
77includeProject(":viewpager2", "viewpager2")
78includeProject(":wear", "wear")
79includeProject(":webkit", "webkit")
80includeProject(":webkit-codegen", "webkit-codegen")
Gustav Sennton18f68e72017-12-15 12:00:40 +000081
Chris Banese17c5192016-06-01 13:36:05 +010082/////////////////////////////
83//
84// Samples
85//
86/////////////////////////////
87
Jeff Gastoncfc647a2018-01-29 17:19:41 -050088File samplesRoot = new File(rootDir, "samples")
Chris Banese17c5192016-06-01 13:36:05 +010089
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080090includeProject(":support-animation-demos", new File(samplesRoot, "SupportAnimationDemos"))
91includeProject(":support-app-navigation", new File(samplesRoot, "SupportAppNavigation"))
92includeProject(":support-car-demos", new File(samplesRoot, "SupportCarDemos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -050093includeProject(":support-content-demos", new File(samplesRoot, "SupportContentDemos"))
94includeProject(":support-design-demos", new File(samplesRoot, "SupportDesignDemos"))
Aurimas Liutikas15dadc52018-02-13 10:17:58 -080095includeProject(":support-emoji-demos", new File(samplesRoot, "SupportEmojiDemos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -050096includeProject(":support-leanback-demos", new File(samplesRoot, "SupportLeanbackDemos"))
97includeProject(":support-leanback-jank", new File(samplesRoot, "SupportLeanbackJank"))
98includeProject(":support-percent-demos", new File(samplesRoot, "SupportPercentDemos"))
99includeProject(":support-preference-demos", new File(samplesRoot, "SupportPreferenceDemos"))
Aurimas Liutikas15dadc52018-02-13 10:17:58 -0800100includeProject(":support-slices-demos", new File(samplesRoot, "SupportSliceDemos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500101includeProject(":support-transition-demos", new File(samplesRoot, "SupportTransitionDemos"))
Aurimas Liutikas15dadc52018-02-13 10:17:58 -0800102includeProject(":support-vector-drawable-demos", new File(samplesRoot, "SupportVectorDrawableDemos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500103includeProject(":support-v4-demos", new File(samplesRoot, "Support4Demos"))
104includeProject(":support-v7-demos", new File(samplesRoot, "Support7Demos"))
105includeProject(":support-v13-demos", new File(samplesRoot, "Support13Demos"))
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500106includeProject(":support-wear-demos", new File(samplesRoot, "SupportWearDemos"))
Aurimas Liutikas15dadc52018-02-13 10:17:58 -0800107includeProject(":viewpager2-demos", new File(samplesRoot, "ViewPager2Demos"))
Jason Monkb2c45792017-12-14 17:30:21 -0500108
Alan Viverettecc5197e2016-06-13 12:45:07 -0400109/////////////////////////////
110//
Aurimas Liutikas6d20a522017-03-10 17:13:03 -0800111// Testing libraries
112//
113/////////////////////////////
114
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500115includeProject(":support-testutils", "testutils")
Aurimas Liutikas6d20a522017-03-10 17:13:03 -0800116
117/////////////////////////////
118//
Hyundo Moonda9ee6b2017-07-21 14:32:12 +0900119// Applications and libraries for tests
Hyundo Moon72e64db2017-07-20 14:09:13 +0900120//
121/////////////////////////////
122
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500123includeProject(":support-media-compat-test-client", "media-compat/version-compat-tests/current/client")
124includeProject(":support-media-compat-test-client-previous", "media-compat/version-compat-tests/previous/client")
125includeProject(":support-media-compat-test-service", "media-compat/version-compat-tests/current/service")
126includeProject(":support-media-compat-test-service-previous", "media-compat/version-compat-tests/previous/service")
127includeProject(":support-media-compat-test-lib", "media-compat/version-compat-tests/lib")
Hyundo Moonda9ee6b2017-07-21 14:32:12 +0900128
Hyundo Moon72e64db2017-07-20 14:09:13 +0900129/////////////////////////////
130//
Alan Viverettecc5197e2016-06-13 12:45:07 -0400131// External
132//
133/////////////////////////////
134
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500135apply(from: "include-composite-deps.gradle")
136File externalRoot = new File(rootDir, "../../external")
Alan Viverettecc5197e2016-06-13 12:45:07 -0400137
Jeff Gastoncfc647a2018-01-29 17:19:41 -0500138includeProject(":noto-emoji-compat", new File(externalRoot, "noto-fonts/emoji-compat"))
Siyamed Sinir75b91312017-04-21 19:10:41 -0700139
Yigit Boyar95c6a872017-03-03 10:54:49 -0800140///// FLATFOOT START
141
Steve McKayc01ec962017-05-23 14:32:58 -0700142///// FLATFOOT END