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
|
|
|
|
//
|
|
|
|
|
2015-03-15 05:26:32 +08:00
|
|
|
bootstrap_go_binary {
|
|
|
|
name: "soong_build",
|
|
|
|
deps: [
|
2015-01-31 09:27:36 +08:00
|
|
|
"blueprint",
|
|
|
|
"blueprint-bootstrap",
|
2015-06-18 05:20:06 +08:00
|
|
|
"soong",
|
2015-01-31 09:27:36 +08:00
|
|
|
"soong-common",
|
2015-03-26 05:43:57 +08:00
|
|
|
"soong-env",
|
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
|
|
|
"cmd/soong_build/main.go",
|
|
|
|
],
|
2015-03-15 05:26:32 +08:00
|
|
|
primaryBuilder: true,
|
|
|
|
}
|
2015-01-31 09:27:36 +08:00
|
|
|
|
2015-03-26 05:43:57 +08:00
|
|
|
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",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-03-15 05:26:32 +08:00
|
|
|
bootstrap_go_binary {
|
|
|
|
name: "soong_glob",
|
|
|
|
deps: [
|
2015-01-31 09:27:36 +08:00
|
|
|
"soong-glob",
|
|
|
|
],
|
2015-03-15 05:26:32 +08:00
|
|
|
srcs: [
|
2015-01-31 09:27:36 +08:00
|
|
|
"cmd/soong_glob/soong_glob.go",
|
|
|
|
],
|
2015-03-15 05:26:32 +08:00
|
|
|
}
|
2015-01-31 09:27:36 +08:00
|
|
|
|
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 {
|
|
|
|
name: "soong-common",
|
|
|
|
pkgPath: "android/soong/common",
|
|
|
|
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: [
|
2015-01-31 09:27:36 +08:00
|
|
|
"common/arch.go",
|
2015-04-08 08:11:30 +08:00
|
|
|
"common/config.go",
|
2015-11-03 08:43:11 +08:00
|
|
|
"common/defaults.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
"common/defs.go",
|
2015-03-26 05:43:57 +08:00
|
|
|
"common/env.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
"common/glob.go",
|
|
|
|
"common/module.go",
|
2015-10-30 06:25:03 +08:00
|
|
|
"common/mutator.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
"common/paths.go",
|
2015-04-09 04:03:43 +08:00
|
|
|
"common/util.go",
|
2015-07-10 04:57:48 +08:00
|
|
|
"common/variable.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
],
|
2015-03-15 05:26:32 +08:00
|
|
|
}
|
2015-01-31 09:27:36 +08:00
|
|
|
|
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",
|
2015-01-31 09:27:36 +08:00
|
|
|
"soong-common",
|
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-01-31 09:27:36 +08:00
|
|
|
"cc/builder.go",
|
|
|
|
"cc/cc.go",
|
|
|
|
"cc/clang.go",
|
2015-04-08 07:50:10 +08:00
|
|
|
"cc/gen.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
"cc/toolchain.go",
|
|
|
|
"cc/util.go",
|
|
|
|
|
|
|
|
"cc/arm_device.go",
|
|
|
|
"cc/arm64_device.go",
|
|
|
|
|
2015-05-01 07:36:18 +08:00
|
|
|
"cc/x86_darwin_host.go",
|
2015-01-31 09:27:36 +08:00
|
|
|
"cc/x86_linux_host.go",
|
|
|
|
],
|
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",
|
2015-03-19 04:28:46 +08:00
|
|
|
"soong-common",
|
|
|
|
],
|
|
|
|
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_binary {
|
|
|
|
name: "soong_jar",
|
|
|
|
srcs: [
|
|
|
|
"cmd/soong_jar/soong_jar.go",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong-java",
|
|
|
|
pkgPath: "android/soong/java",
|
|
|
|
deps: [
|
|
|
|
"blueprint",
|
|
|
|
"blueprint-pathtools",
|
2015-06-18 05:20:06 +08:00
|
|
|
"soong",
|
2015-03-31 08:20:39 +08:00
|
|
|
"soong-common",
|
2015-04-29 04:28:51 +08:00
|
|
|
"soong-genrule",
|
2015-03-31 08:20:39 +08:00
|
|
|
],
|
|
|
|
srcs: [
|
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
|
|
|
//
|
|
|
|
// androidmk Android.mk to Blueprints translator
|
|
|
|
//
|
|
|
|
|
|
|
|
bootstrap_go_binary {
|
|
|
|
name: "androidmk",
|
|
|
|
srcs: [
|
|
|
|
"androidmk/cmd/androidmk/android.go",
|
|
|
|
"androidmk/cmd/androidmk/androidmk.go",
|
|
|
|
"androidmk/cmd/androidmk/values.go",
|
|
|
|
],
|
|
|
|
deps: [
|
|
|
|
"androidmk-parser",
|
|
|
|
"blueprint-parser",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap_go_package {
|
|
|
|
name: "androidmk-parser",
|
|
|
|
pkgPath: "android/soong/androidmk/parser",
|
|
|
|
srcs: [
|
|
|
|
"androidmk/parser/make_strings.go",
|
|
|
|
"androidmk/parser/makething.go",
|
|
|
|
"androidmk/parser/parser.go",
|
|
|
|
"androidmk/parser/scope.go",
|
|
|
|
],
|
2015-06-24 10:46:20 +08:00
|
|
|
testSrcs: [
|
|
|
|
"androidmk/parser/make_strings_test.go",
|
|
|
|
],
|
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
|
|
|
}
|