1// Copyright (C) 2017 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14def rootDir = file(".") 15if (!gradle.ext.has('exoplayerSettingsDir')) { 16 gradle.ext.exoplayerSettingsDir = rootDir.getCanonicalPath() 17} 18 19def modulePrefix = ':' 20if (gradle.ext.has('exoplayerModulePrefix')) { 21 modulePrefix += gradle.ext.exoplayerModulePrefix 22} 23 24include modulePrefix + 'library-common' 25project(modulePrefix + 'library-common').projectDir = new File(rootDir, 'library/common') 26 27include modulePrefix + 'extension-mediasession' 28project(modulePrefix + 'extension-mediasession').projectDir = new File(rootDir, 'extensions/mediasession') 29include modulePrefix + 'extension-media2' 30project(modulePrefix + 'extension-media2').projectDir = new File(rootDir, 'extensions/media2') 31 32include modulePrefix + 'library-core' 33project(modulePrefix + 'library-core').projectDir = new File(rootDir, 'library/core') 34include modulePrefix + 'library' 35project(modulePrefix + 'library').projectDir = new File(rootDir, 'library/all') 36include modulePrefix + 'library-dash' 37project(modulePrefix + 'library-dash').projectDir = new File(rootDir, 'library/dash') 38include modulePrefix + 'library-hls' 39project(modulePrefix + 'library-hls').projectDir = new File(rootDir, 'library/hls') 40include modulePrefix + 'library-rtsp' 41project(modulePrefix + 'library-rtsp').projectDir = new File(rootDir, 'library/rtsp') 42include modulePrefix + 'library-smoothstreaming' 43project(modulePrefix + 'library-smoothstreaming').projectDir = new File(rootDir, 'library/smoothstreaming') 44include modulePrefix + 'extension-ima' 45project(modulePrefix + 'extension-ima').projectDir = new File(rootDir, 'extensions/ima') 46include modulePrefix + 'extension-workmanager' 47project(modulePrefix + 'extension-workmanager').projectDir = new File(rootDir, 'extensions/workmanager') 48 49include modulePrefix + 'library-ui' 50project(modulePrefix + 'library-ui').projectDir = new File(rootDir, 'library/ui') 51include modulePrefix + 'extension-leanback' 52project(modulePrefix + 'extension-leanback').projectDir = new File(rootDir, 'extensions/leanback') 53 54include modulePrefix + 'library-database' 55project(modulePrefix + 'library-database').projectDir = new File(rootDir, 'library/database') 56 57include modulePrefix + 'library-datasource' 58project(modulePrefix + 'library-datasource').projectDir = new File(rootDir, 'library/datasource') 59include modulePrefix + 'extension-cronet' 60project(modulePrefix + 'extension-cronet').projectDir = new File(rootDir, 'extensions/cronet') 61include modulePrefix + 'extension-rtmp' 62project(modulePrefix + 'extension-rtmp').projectDir = new File(rootDir, 'extensions/rtmp') 63include modulePrefix + 'extension-okhttp' 64project(modulePrefix + 'extension-okhttp').projectDir = new File(rootDir, 'extensions/okhttp') 65 66include modulePrefix + 'library-decoder' 67project(modulePrefix + 'library-decoder').projectDir = new File(rootDir, 'library/decoder') 68include modulePrefix + 'extension-av1' 69project(modulePrefix + 'extension-av1').projectDir = new File(rootDir, 'extensions/av1') 70include modulePrefix + 'extension-ffmpeg' 71project(modulePrefix + 'extension-ffmpeg').projectDir = new File(rootDir, 'extensions/ffmpeg') 72include modulePrefix + 'extension-flac' 73project(modulePrefix + 'extension-flac').projectDir = new File(rootDir, 'extensions/flac') 74include modulePrefix + 'extension-opus' 75project(modulePrefix + 'extension-opus').projectDir = new File(rootDir, 'extensions/opus') 76include modulePrefix + 'extension-vp9' 77project(modulePrefix + 'extension-vp9').projectDir = new File(rootDir, 'extensions/vp9') 78 79include modulePrefix + 'library-extractor' 80project(modulePrefix + 'library-extractor').projectDir = new File(rootDir, 'library/extractor') 81 82include modulePrefix + 'extension-cast' 83project(modulePrefix + 'extension-cast').projectDir = new File(rootDir, 'extensions/cast') 84 85include modulePrefix + 'library-transformer' 86project(modulePrefix + 'library-transformer').projectDir = new File(rootDir, 'library/transformer') 87 88include modulePrefix + 'robolectricutils' 89project(modulePrefix + 'robolectricutils').projectDir = new File(rootDir, 'robolectricutils') 90include modulePrefix + 'testdata' 91project(modulePrefix + 'testdata').projectDir = new File(rootDir, 'testdata') 92include modulePrefix + 'testutils' 93project(modulePrefix + 'testutils').projectDir = new File(rootDir, 'testutils') 94