a120ec1c5e
Allow any module factory to insert a PropertyCustomizer on the module, which will be called before any other mutators. The PropertyCustomizer can append or prepend to any properties, allowing module types to extend other module types by modifying the public, stable interface provided by the properties. Change-Id: Idff02be80d939a70df1c6bbccffdd1f04ff975d2
303 lines
6.1 KiB
Text
303 lines
6.1 KiB
Text
//
|
|
// WARNING: Modifying this file will NOT automatically regenerate build.ninja.in!
|
|
//
|
|
// Before modifying this file make sure minibp is up to date:
|
|
// 1) "repo sync build/soong" to make sure you have the latest build.ninja.in
|
|
// 2) build minibp, which builds automicatically through the normal build steps. For example:
|
|
//
|
|
// After modifying this file regenerate build.ninja.in and build your changes:
|
|
// 1) In your build directory, execute "../bootstrap.bash -r" to regenerate build.ninja.in
|
|
// 2) Build again
|
|
//
|
|
|
|
subdirs = ["third_party/zip"]
|
|
|
|
bootstrap_go_binary {
|
|
name: "soong_build",
|
|
deps: [
|
|
"blueprint",
|
|
"blueprint-bootstrap",
|
|
"soong",
|
|
"soong-android",
|
|
"soong-env",
|
|
],
|
|
srcs: [
|
|
"cmd/soong_build/main.go",
|
|
],
|
|
primaryBuilder: true,
|
|
}
|
|
|
|
bootstrap_go_binary {
|
|
name: "soong_env",
|
|
deps: [
|
|
"soong-env",
|
|
],
|
|
srcs: [
|
|
"cmd/soong_env/soong_env.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-env",
|
|
pkgPath: "android/soong/env",
|
|
srcs: [
|
|
"env/env.go",
|
|
],
|
|
}
|
|
|
|
|
|
blueprint_go_binary {
|
|
name: "soong_glob",
|
|
deps: [
|
|
"soong-glob",
|
|
],
|
|
srcs: [
|
|
"cmd/soong_glob/soong_glob.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-glob",
|
|
pkgPath: "android/soong/glob",
|
|
deps: [
|
|
"blueprint-deptools",
|
|
"blueprint-pathtools",
|
|
],
|
|
srcs: [
|
|
"glob/glob.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong",
|
|
pkgPath: "android/soong",
|
|
deps: [
|
|
"blueprint",
|
|
],
|
|
srcs: [
|
|
"doc.go",
|
|
"register.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-android",
|
|
pkgPath: "android/soong/android",
|
|
deps: [
|
|
"blueprint",
|
|
"blueprint-bootstrap",
|
|
"soong",
|
|
"soong-env",
|
|
"soong-glob",
|
|
],
|
|
srcs: [
|
|
"android/androidmk.go",
|
|
"android/arch.go",
|
|
"android/config.go",
|
|
"android/customizer.go",
|
|
"android/defaults.go",
|
|
"android/defs.go",
|
|
"android/glob.go",
|
|
"android/makevars.go",
|
|
"android/module.go",
|
|
"android/mutator.go",
|
|
"android/onceper.go",
|
|
"android/package_ctx.go",
|
|
"android/paths.go",
|
|
"android/util.go",
|
|
"android/variable.go",
|
|
|
|
// Lock down environment access last
|
|
"android/env.go",
|
|
],
|
|
testSrcs: [
|
|
"android/paths_test.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-cc-config",
|
|
pkgPath: "android/soong/cc/config",
|
|
deps: [
|
|
"soong-android",
|
|
],
|
|
srcs: [
|
|
"cc/config/clang.go",
|
|
"cc/config/global.go",
|
|
"cc/config/toolchain.go",
|
|
|
|
"cc/config/arm_device.go",
|
|
"cc/config/arm64_device.go",
|
|
"cc/config/mips_device.go",
|
|
"cc/config/mips64_device.go",
|
|
"cc/config/x86_device.go",
|
|
"cc/config/x86_64_device.go",
|
|
|
|
"cc/config/x86_darwin_host.go",
|
|
"cc/config/x86_linux_host.go",
|
|
"cc/config/x86_windows_host.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-cc",
|
|
pkgPath: "android/soong/cc",
|
|
deps: [
|
|
"blueprint",
|
|
"blueprint-pathtools",
|
|
"soong",
|
|
"soong-android",
|
|
"soong-cc-config",
|
|
"soong-genrule",
|
|
],
|
|
srcs: [
|
|
"cc/androidmk.go",
|
|
"cc/builder.go",
|
|
"cc/cc.go",
|
|
"cc/check.go",
|
|
"cc/gen.go",
|
|
"cc/makevars.go",
|
|
"cc/sanitize.go",
|
|
"cc/stl.go",
|
|
"cc/strip.go",
|
|
"cc/util.go",
|
|
|
|
"cc/compiler.go",
|
|
"cc/installer.go",
|
|
"cc/linker.go",
|
|
|
|
"cc/binary.go",
|
|
"cc/library.go",
|
|
"cc/object.go",
|
|
"cc/test.go",
|
|
"cc/toolchain_library.go",
|
|
|
|
"cc/ndk_prebuilt.go",
|
|
"cc/ndk_headers.go",
|
|
"cc/ndk_library.go",
|
|
"cc/ndk_sysroot.go",
|
|
],
|
|
testSrcs: [
|
|
"cc/cc_test.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-genrule",
|
|
pkgPath: "android/soong/genrule",
|
|
deps: [
|
|
"blueprint",
|
|
"blueprint-pathtools",
|
|
"soong",
|
|
"soong-android",
|
|
],
|
|
srcs: [
|
|
"genrule/genrule.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|
|
|
|
blueprint_go_binary {
|
|
name: "zip2zip",
|
|
deps: ["android-archive-zip"],
|
|
srcs: [
|
|
"cmd/zip2zip/zip2zip.go",
|
|
],
|
|
}
|
|
|
|
blueprint_go_binary {
|
|
name: "soong_zip",
|
|
deps: ["android-archive-zip"],
|
|
srcs: [
|
|
"cmd/soong_zip/soong_zip.go",
|
|
"cmd/soong_zip/rate_limit.go",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "soong-java",
|
|
pkgPath: "android/soong/java",
|
|
deps: [
|
|
"blueprint",
|
|
"blueprint-pathtools",
|
|
"soong",
|
|
"soong-android",
|
|
"soong-genrule",
|
|
],
|
|
srcs: [
|
|
"java/androidmk.go",
|
|
"java/app_builder.go",
|
|
"java/app.go",
|
|
"java/builder.go",
|
|
"java/gen.go",
|
|
"java/java.go",
|
|
"java/resources.go",
|
|
],
|
|
pluginFor: ["soong_build"],
|
|
}
|
|
|
|
//
|
|
// androidmk Android.mk to Blueprints translator
|
|
//
|
|
|
|
blueprint_go_binary {
|
|
name: "androidmk",
|
|
srcs: [
|
|
"androidmk/cmd/androidmk/android.go",
|
|
"androidmk/cmd/androidmk/androidmk.go",
|
|
"androidmk/cmd/androidmk/values.go",
|
|
],
|
|
testSrcs: [
|
|
"androidmk/cmd/androidmk/androidmk_test.go",
|
|
],
|
|
deps: [
|
|
"androidmk-parser",
|
|
"blueprint-parser",
|
|
],
|
|
}
|
|
|
|
bootstrap_go_package {
|
|
name: "androidmk-parser",
|
|
pkgPath: "android/soong/androidmk/parser",
|
|
srcs: [
|
|
"androidmk/parser/ast.go",
|
|
"androidmk/parser/make_strings.go",
|
|
"androidmk/parser/parser.go",
|
|
"androidmk/parser/scope.go",
|
|
],
|
|
testSrcs: [
|
|
"androidmk/parser/make_strings_test.go",
|
|
],
|
|
}
|
|
|
|
//
|
|
// C static libraries extracted from the gcc toolchain
|
|
//
|
|
|
|
toolchain_library {
|
|
name: "libatomic",
|
|
arch: {
|
|
arm: {
|
|
instruction_set: "arm",
|
|
},
|
|
},
|
|
}
|
|
|
|
toolchain_library {
|
|
name: "libgcc",
|
|
arch: {
|
|
arm: {
|
|
instruction_set: "arm",
|
|
},
|
|
},
|
|
}
|
|
|
|
toolchain_library {
|
|
name: "libgcov",
|
|
arch: {
|
|
arm: {
|
|
instruction_set: "arm",
|
|
},
|
|
},
|
|
}
|