blob: d8d3d356da02226769d57bdb34a57bc07ef98cd2 [file] [log] [blame]
Yigit Boyar2eb51992016-12-13 15:00:07 -08001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// If you change this file, you should also change the settings gradle inside
18// the sub project.
Yigit Boyar34e50312017-01-14 14:06:13 -080019
Yigit Boyar450ed382017-03-02 09:48:25 -080020def inAppToolkitProject = rootProject.name == "app-toolkit"
21def supportRoot
22if (inAppToolkitProject) {
23 supportRoot = new File(rootProject.projectDir, "..").getCanonicalFile()
24} else {
25 supportRoot = rootProject.projectDir
26}
Yigit Boyar34e50312017-01-14 14:06:13 -080027
Yigit Boyar450ed382017-03-02 09:48:25 -080028println "support root:${supportRoot}"
29
Yigit Boyar8205ce12017-07-09 23:07:05 -070030include ':arch:runtime'
31project(':arch:runtime').projectDir = new File(supportRoot, "app-toolkit/runtime")
32
33include ':arch:common'
34project(':arch:common').projectDir = new File(supportRoot, "app-toolkit/common")
Yigit Boyar450ed382017-03-02 09:48:25 -080035
Chris Craik9fd8e612017-06-23 14:07:04 -070036include ':paging:common'
37project(':paging:common').projectDir = new File(supportRoot, "paging/common")
38
39include ":paging:runtime"
40project(':paging:runtime').projectDir = new File(supportRoot, "paging/runtime")
41
42include ':paging:integration-tests:testapp'
43project(':paging:integration-tests:testapp').projectDir = new File(supportRoot, "paging/integration-tests/testapp")
44
Yigit Boyar64db0cc2017-04-17 13:18:56 -070045include ':arch:core-testing'
46project(':arch:core-testing').projectDir = new File(supportRoot, "app-toolkit/core-testing")
Sergey Vasilinets459caad2017-03-01 11:11:34 -080047
Yigit Boyar2eb51992016-12-13 15:00:07 -080048include ':lifecycle:extensions'
Yigit Boyar450ed382017-03-02 09:48:25 -080049project(':lifecycle:extensions').projectDir = new File(supportRoot, "lifecycle/extensions")
Yigit Boyar2eb51992016-12-13 15:00:07 -080050
Jason Neufeld5349f0e2017-02-17 11:17:55 -080051include ':lifecycle:reactivestreams'
Yigit Boyar450ed382017-03-02 09:48:25 -080052project(':lifecycle:reactivestreams').projectDir = new File(supportRoot, "lifecycle/reactivestreams")
Jason Neufeld5349f0e2017-02-17 11:17:55 -080053
Yigit Boyar2eb51992016-12-13 15:00:07 -080054include ':lifecycle:runtime'
Yigit Boyar450ed382017-03-02 09:48:25 -080055project(':lifecycle:runtime').projectDir = new File(supportRoot, "lifecycle/runtime")
Yigit Boyar2eb51992016-12-13 15:00:07 -080056
57include ':lifecycle:common'
Yigit Boyar450ed382017-03-02 09:48:25 -080058project(':lifecycle:common').projectDir = new File(supportRoot, "lifecycle/common")
Yigit Boyar2eb51992016-12-13 15:00:07 -080059
60include ':lifecycle:compiler'
Yigit Boyar450ed382017-03-02 09:48:25 -080061project(':lifecycle:compiler').projectDir = new File(supportRoot, "lifecycle/compiler")
Yigit Boyar2eb51992016-12-13 15:00:07 -080062
Ian Lake4fa94442017-03-06 14:12:53 -080063include ':lifecycle:integration-tests:testapp'
64project(':lifecycle:integration-tests:testapp').projectDir = new File(supportRoot, "lifecycle/integration-tests/testapp")
Yigit Boyar2eb51992016-12-13 15:00:07 -080065
66include ':room:common'
Yigit Boyar450ed382017-03-02 09:48:25 -080067project(':room:common').projectDir = new File(supportRoot, "room/common")
Yigit Boyar2eb51992016-12-13 15:00:07 -080068
69include ':room:runtime'
Yigit Boyar450ed382017-03-02 09:48:25 -080070project(':room:runtime').projectDir = new File(supportRoot, "room/runtime")
Yigit Boyar2eb51992016-12-13 15:00:07 -080071
72include ':room:compiler'
Yigit Boyar450ed382017-03-02 09:48:25 -080073project(':room:compiler').projectDir = new File(supportRoot, "room/compiler")
Yigit Boyar2eb51992016-12-13 15:00:07 -080074
Yigit Boyara64756a2017-03-20 17:26:17 -070075include ':room:migration'
76project(':room:migration').projectDir = new File(supportRoot, "room/migration")
77
Yigit Boyar2eb51992016-12-13 15:00:07 -080078include ':room:db'
Yigit Boyar450ed382017-03-02 09:48:25 -080079project(':room:db').projectDir = new File(supportRoot, "room/db")
Yigit Boyar2eb51992016-12-13 15:00:07 -080080
81include ":room:db-impl"
Yigit Boyar450ed382017-03-02 09:48:25 -080082project(':room:db-impl').projectDir = new File(supportRoot, "room/db-impl")
Yigit Boyar2eb51992016-12-13 15:00:07 -080083
Yigit Boyara64756a2017-03-20 17:26:17 -070084include ":room:testing"
85project(':room:testing').projectDir = new File(supportRoot, "room/testing")
86
Yigit Boyar3c592c42017-04-04 14:53:04 -070087include ":room:rxjava2"
88project(':room:rxjava2').projectDir = new File(supportRoot, "room/rxjava2")
89
Yigit Boyar2eb51992016-12-13 15:00:07 -080090include ':room:integration-tests:testapp'
Yigit Boyar450ed382017-03-02 09:48:25 -080091project(':room:integration-tests:testapp').projectDir = new File(supportRoot, "room/integration-tests/testapp")
92
93/////////////////////////////
94//
95// SupportLib
96//
97/////////////////////////////
98if (inAppToolkitProject && System.getenv("USE_SUPPORT_LIB_SOURCE")) {
99 apply from: "${supportRoot.absolutePath}/app-toolkit/settings_support_lib.gradle"
100}
Sergey Vasilinetse69e4702017-02-10 02:26:10 -0800101
102/////////////////////////////
103//
104// External
105//
106/////////////////////////////
Yigit Boyar450ed382017-03-02 09:48:25 -0800107if (inAppToolkitProject) {
108 File externalRoot = new File(supportRoot, '../../external')
Sergey Vasilinetse69e4702017-02-10 02:26:10 -0800109
Yigit Boyar450ed382017-03-02 09:48:25 -0800110 include ':doclava'
111 project(':doclava').projectDir = new File(externalRoot, 'doclava')
Sergey Vasilinetse69e4702017-02-10 02:26:10 -0800112
Yigit Boyar450ed382017-03-02 09:48:25 -0800113 include ':jdiff'
114 project(':jdiff').projectDir = new File(externalRoot, 'jdiff')
115}