2015-01-31 09:27:36 +08:00
|
|
|
//
|
|
|
|
// 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
|
|
|
|
//
|
|
|
|
|
2016-08-16 06:02:23 +08:00
|
|
|
subdirs = [
|
|
|
|
"androidmk",
|
|
|
|
"cmd/*",
|
|
|
|
"third_party/zip",
|
|
|
|
]
|
2015-03-26 05:43:57 +08:00
|
|
|
|
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong-env",
|
|
|
|
pkgPath: "android/soong/env",
|
|
|
|
srcs: [
|
|
|
|
"env/env.go",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-03-15 05:26:32 +08:00
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong-glob",
|
|
|
|
pkgPath: "android/soong/glob",
|
|
|
|
deps: [
|
2015-01-31 09:27:36 +08:00
|
|
|
"blueprint-deptools",
|
2015-04-25 06:12:39 +08:00
|
|
|
"blueprint-pathtools",
|
2015-01-31 09:27:36 +08:00
|
|
|
],
|
2015-03-15 05:26:32 +08:00
|
|
|
srcs: [
|
2015-01-31 09:27:36 +08:00
|
|
|
"glob/glob.go",
|
|
|
|
],
|
2015-03-15 05:26:32 +08:00
|
|
|
}
|
2015-01-31 09:27:36 +08:00
|
|
|
|
2015-06-18 05:20:06 +08:00
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong",
|
|
|
|
pkgPath: "android/soong",
|
|
|
|
deps: [
|
|
|
|
"blueprint",
|
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"doc.go",
|
|
|
|
"register.go",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2015-03-15 05:26:32 +08:00
|
|
|
bootstrap_go_package {
|
2016-05-19 06:37:25 +08:00
|
|
|
name: "soong-android",
|
|
|
|
pkgPath: "android/soong/android",
|
2015-03-15 05:26:32 +08:00
|
|
|
deps: [
|
2015-01-31 09:27:36 +08:00
|
|
|
"blueprint",
|
|
|
|
"blueprint-bootstrap",
|
2015-06-18 05:20:06 +08:00
|
|
|
"soong",
|
2015-03-26 05:43:57 +08:00
|
|
|
"soong-env",
|
2015-03-15 05:26:32 +08:00
|
|
|
"soong-glob",
|
2015-01-31 09:27:36 +08:00
|
|
|
],
|
2015-03-15 05:26:32 +08:00
|
|
|
srcs: [
|
2016-05-19 06:37:25 +08:00
|
|
|
"android/androidmk.go",
|
|
|
|
"android/arch.go",
|
|
|
|
"android/config.go",
|
|
|
|
"android/defaults.go",
|
|
|
|
"android/defs.go",
|
|
|
|
"android/glob.go",
|
2016-09-14 04:42:32 +08:00
|
|
|
"android/hooks.go",
|
2016-05-19 06:37:25 +08:00
|
|
|
"android/makevars.go",
|
|
|
|
"android/module.go",
|
|
|
|
"android/mutator.go",
|
2016-08-18 06:24:12 +08:00
|
|
|
"android/onceper.go",
|
2016-05-19 06:37:25 +08:00
|
|
|
"android/package_ctx.go",
|
|
|
|
"android/paths.go",
|
|
|
|
"android/util.go",
|
|
|
|
"android/variable.go",
|
2016-05-13 10:03:10 +08:00
|
|
|
|
|
|
|
// Lock down environment access last
|
2016-05-19 06:37:25 +08:00
|
|
|
"android/env.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
],
|
2015-09-24 06:26:20 +08:00
|
|
|
testSrcs: [
|
2016-05-19 06:37:25 +08:00
|
|
|
"android/paths_test.go",
|
2015-09-24 06:26:20 +08:00
|
|
|
],
|
2015-03-15 05:26:32 +08:00
|
|
|
}
|
2015-01-31 09:27:36 +08:00
|
|
|
|
2016-07-30 04:44:28 +08:00
|
|
|
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",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2015-03-15 05:26:32 +08:00
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong-cc",
|
|
|
|
pkgPath: "android/soong/cc",
|
|
|
|
deps: [
|
2015-01-31 09:27:36 +08:00
|
|
|
"blueprint",
|
|
|
|
"blueprint-pathtools",
|
2015-06-18 05:20:06 +08:00
|
|
|
"soong",
|
2016-05-19 06:37:25 +08:00
|
|
|
"soong-android",
|
2016-07-30 04:44:28 +08:00
|
|
|
"soong-cc-config",
|
2015-03-19 04:28:46 +08:00
|
|
|
"soong-genrule",
|
2015-01-31 09:27:36 +08:00
|
|
|
],
|
2015-03-15 05:26:32 +08:00
|
|
|
srcs: [
|
2015-07-09 09:13:11 +08:00
|
|
|
"cc/androidmk.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
"cc/builder.go",
|
|
|
|
"cc/cc.go",
|
2016-05-26 05:47:21 +08:00
|
|
|
"cc/check.go",
|
2015-04-08 07:50:10 +08:00
|
|
|
"cc/gen.go",
|
2016-01-13 15:20:28 +08:00
|
|
|
"cc/makevars.go",
|
2016-01-07 06:41:07 +08:00
|
|
|
"cc/sanitize.go",
|
2016-01-05 06:34:37 +08:00
|
|
|
"cc/stl.go",
|
2016-07-30 03:48:20 +08:00
|
|
|
"cc/strip.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
"cc/util.go",
|
|
|
|
|
2016-07-30 03:48:20 +08:00
|
|
|
"cc/compiler.go",
|
|
|
|
"cc/installer.go",
|
|
|
|
"cc/linker.go",
|
|
|
|
|
|
|
|
"cc/binary.go",
|
|
|
|
"cc/library.go",
|
|
|
|
"cc/object.go",
|
|
|
|
"cc/test.go",
|
2016-07-30 08:28:03 +08:00
|
|
|
"cc/toolchain_library.go",
|
2016-07-30 03:48:20 +08:00
|
|
|
|
|
|
|
"cc/ndk_prebuilt.go",
|
2016-06-18 07:45:24 +08:00
|
|
|
"cc/ndk_headers.go",
|
|
|
|
"cc/ndk_library.go",
|
|
|
|
"cc/ndk_sysroot.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
],
|
2015-06-24 10:46:20 +08:00
|
|
|
testSrcs: [
|
|
|
|
"cc/cc_test.go",
|
|
|
|
],
|
2015-07-28 06:08:24 +08:00
|
|
|
pluginFor: ["soong_build"],
|
2015-03-15 05:26:32 +08:00
|
|
|
}
|
2015-01-31 09:27:36 +08:00
|
|
|
|
2015-03-19 04:28:46 +08:00
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong-genrule",
|
|
|
|
pkgPath: "android/soong/genrule",
|
|
|
|
deps: [
|
|
|
|
"blueprint",
|
|
|
|
"blueprint-pathtools",
|
2015-06-18 05:20:06 +08:00
|
|
|
"soong",
|
2016-05-19 06:37:25 +08:00
|
|
|
"soong-android",
|
2015-03-19 04:28:46 +08:00
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"genrule/genrule.go",
|
|
|
|
],
|
2015-07-28 06:08:24 +08:00
|
|
|
pluginFor: ["soong_build"],
|
2015-03-19 04:28:46 +08:00
|
|
|
}
|
2015-03-31 08:20:39 +08:00
|
|
|
|
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong-java",
|
|
|
|
pkgPath: "android/soong/java",
|
|
|
|
deps: [
|
|
|
|
"blueprint",
|
|
|
|
"blueprint-pathtools",
|
2015-06-18 05:20:06 +08:00
|
|
|
"soong",
|
2016-05-19 06:37:25 +08:00
|
|
|
"soong-android",
|
2015-04-29 04:28:51 +08:00
|
|
|
"soong-genrule",
|
2015-03-31 08:20:39 +08:00
|
|
|
],
|
|
|
|
srcs: [
|
2015-07-09 09:13:11 +08:00
|
|
|
"java/androidmk.go",
|
2015-04-14 04:58:27 +08:00
|
|
|
"java/app_builder.go",
|
|
|
|
"java/app.go",
|
2015-03-31 08:20:39 +08:00
|
|
|
"java/builder.go",
|
2015-04-09 04:03:43 +08:00
|
|
|
"java/gen.go",
|
2015-03-31 08:20:39 +08:00
|
|
|
"java/java.go",
|
|
|
|
"java/resources.go",
|
|
|
|
],
|
2015-07-28 06:08:24 +08:00
|
|
|
pluginFor: ["soong_build"],
|
2015-03-31 08:20:39 +08:00
|
|
|
}
|
|
|
|
|
2015-03-15 05:28:22 +08:00
|
|
|
//
|
|
|
|
// C static libraries extracted from the gcc toolchain
|
|
|
|
//
|
|
|
|
|
2015-03-15 05:26:32 +08:00
|
|
|
toolchain_library {
|
|
|
|
name: "libatomic",
|
2015-07-09 09:11:14 +08:00
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
instruction_set: "arm",
|
|
|
|
},
|
|
|
|
},
|
2015-03-15 05:26:32 +08:00
|
|
|
}
|
2015-01-31 09:27:36 +08:00
|
|
|
|
2015-03-15 05:26:32 +08:00
|
|
|
toolchain_library {
|
|
|
|
name: "libgcc",
|
2015-07-09 09:11:14 +08:00
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
instruction_set: "arm",
|
|
|
|
},
|
|
|
|
},
|
2015-03-15 05:26:32 +08:00
|
|
|
}
|
2015-01-31 09:27:36 +08:00
|
|
|
|
2015-03-15 05:26:32 +08:00
|
|
|
toolchain_library {
|
|
|
|
name: "libgcov",
|
2015-07-09 09:11:14 +08:00
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
instruction_set: "arm",
|
|
|
|
},
|
|
|
|
},
|
2015-03-15 05:26:32 +08:00
|
|
|
}
|