123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import java.nio.file.Paths
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
- plugins {
- id 'com.android.application' version '8.1.3' apply false
- id 'com.android.library' version '8.1.3' apply false
- // 不要修改kotlin版本
- id 'org.jetbrains.kotlin.android' version "1.8.0" apply false
- id 'com.google.protobuf' version "0.9.1" apply false
- }
- tasks.register('clean', Delete) {
- delete rootProject.buildDir
- }
- ext {
- configPath = "../Script/config.gradle"
- scriptPath = "$rootDir/Script/"
- launcherCode = "../Code/"
- protobufConfig = "$scriptPath/protobuf.gradle"
- protobufNanoConfig = "$scriptPath/protobuf-nano.gradle"
- frameworkJarConfig = "$scriptPath/framework.gradle"
- aidlCompile = "$scriptPath/AidlCompile.gradle"
- frameworkDependencies = "$scriptPath/frameworks_dependencies.gradle"
- def raw = Paths.get("raw")
- def frameworks = Paths.get("$raw", "frameworks")
- def base = Paths.get("$frameworks", "base")
- def frameworksLibs = Paths.get("$frameworks", "libs")
- systemUiPath = Paths.get("$base", "packages", "SystemUI")
- systemUiLibsPath = Paths.get("$frameworksLibs", "systemui")
- iconLoaderPath = Paths.get("$systemUiLibsPath", "iconloaderlib")
- windowManagerShell = Paths.get("$base", "libs", "WindowManager", "Shell")
- launcherPath = Paths.get("$raw", "packages", "apps", "Launcher3")
- frameworkAidlCommonPath = Paths.get("$base", "core", "java")
- }
- allprojects {
- gradle.projectsEvaluated {
- // 抑制编译警告
- tasks.withType(JavaCompile).configureEach {
- options.compilerArgs << "-Xlint:-unchecked"
- options.compilerArgs << "-Xlint:-deprecation"
- options.compilerArgs << "-Xlint:-dep-ann"
- }
- }
- }
|