2015-01-31 02:27:36 +01: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-14 22:26:32 +01:00
|
|
|
bootstrap_go_binary {
|
|
|
|
name: "soong_build",
|
|
|
|
deps: [
|
2015-01-31 02:27:36 +01:00
|
|
|
"blueprint",
|
|
|
|
"blueprint-bootstrap",
|
2015-06-17 23:20:06 +02:00
|
|
|
"soong",
|
2016-05-19 00:37:25 +02:00
|
|
|
"soong-android",
|
2015-03-25 22:43:57 +01:00
|
|
|
"soong-env",
|
2015-01-31 02:27:36 +01:00
|
|
|
],
|
2015-03-14 22:26:32 +01:00
|
|
|
srcs: [
|
2015-01-31 02:27:36 +01:00
|
|
|
"cmd/soong_build/main.go",
|
|
|
|
],
|
2015-03-14 22:26:32 +01:00
|
|
|
primaryBuilder: true,
|
|
|
|
}
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-03-25 22:43:57 +01: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",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-05-27 00:13:03 +02:00
|
|
|
blueprint_go_binary {
|
2015-03-14 22:26:32 +01:00
|
|
|
name: "soong_glob",
|
|
|
|
deps: [
|
2015-01-31 02:27:36 +01:00
|
|
|
"soong-glob",
|
|
|
|
],
|
2015-03-14 22:26:32 +01:00
|
|
|
srcs: [
|
2015-01-31 02:27:36 +01:00
|
|
|
"cmd/soong_glob/soong_glob.go",
|
|
|
|
],
|
2015-03-14 22:26:32 +01:00
|
|
|
}
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-03-14 22:26:32 +01:00
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong-glob",
|
|
|
|
pkgPath: "android/soong/glob",
|
|
|
|
deps: [
|
2015-01-31 02:27:36 +01:00
|
|
|
"blueprint-deptools",
|
2015-04-25 00:12:39 +02:00
|
|
|
"blueprint-pathtools",
|
2015-01-31 02:27:36 +01:00
|
|
|
],
|
2015-03-14 22:26:32 +01:00
|
|
|
srcs: [
|
2015-01-31 02:27:36 +01:00
|
|
|
"glob/glob.go",
|
|
|
|
],
|
2015-03-14 22:26:32 +01:00
|
|
|
}
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-06-17 23:20:06 +02:00
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong",
|
|
|
|
pkgPath: "android/soong",
|
|
|
|
deps: [
|
|
|
|
"blueprint",
|
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"doc.go",
|
|
|
|
"register.go",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2015-03-14 22:26:32 +01:00
|
|
|
bootstrap_go_package {
|
2016-05-19 00:37:25 +02:00
|
|
|
name: "soong-android",
|
|
|
|
pkgPath: "android/soong/android",
|
2015-03-14 22:26:32 +01:00
|
|
|
deps: [
|
2015-01-31 02:27:36 +01:00
|
|
|
"blueprint",
|
|
|
|
"blueprint-bootstrap",
|
2015-06-17 23:20:06 +02:00
|
|
|
"soong",
|
2015-03-25 22:43:57 +01:00
|
|
|
"soong-env",
|
2015-03-14 22:26:32 +01:00
|
|
|
"soong-glob",
|
2015-01-31 02:27:36 +01:00
|
|
|
],
|
2015-03-14 22:26:32 +01:00
|
|
|
srcs: [
|
2016-05-19 00:37:25 +02:00
|
|
|
"android/androidmk.go",
|
|
|
|
"android/arch.go",
|
|
|
|
"android/config.go",
|
|
|
|
"android/defaults.go",
|
|
|
|
"android/defs.go",
|
|
|
|
"android/glob.go",
|
|
|
|
"android/makevars.go",
|
|
|
|
"android/module.go",
|
|
|
|
"android/mutator.go",
|
|
|
|
"android/package_ctx.go",
|
|
|
|
"android/paths.go",
|
|
|
|
"android/util.go",
|
|
|
|
"android/variable.go",
|
2016-05-13 04:03:10 +02:00
|
|
|
|
|
|
|
// Lock down environment access last
|
2016-05-19 00:37:25 +02:00
|
|
|
"android/env.go",
|
2015-01-31 02:27:36 +01:00
|
|
|
],
|
2015-09-24 00:26:20 +02:00
|
|
|
testSrcs: [
|
2016-05-19 00:37:25 +02:00
|
|
|
"android/paths_test.go",
|
2015-09-24 00:26:20 +02:00
|
|
|
],
|
2015-03-14 22:26:32 +01:00
|
|
|
}
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-03-14 22:26:32 +01:00
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong-cc",
|
|
|
|
pkgPath: "android/soong/cc",
|
|
|
|
deps: [
|
2015-01-31 02:27:36 +01:00
|
|
|
"blueprint",
|
|
|
|
"blueprint-pathtools",
|
2015-06-17 23:20:06 +02:00
|
|
|
"soong",
|
2016-05-19 00:37:25 +02:00
|
|
|
"soong-android",
|
2015-03-18 21:28:46 +01:00
|
|
|
"soong-genrule",
|
2015-01-31 02:27:36 +01:00
|
|
|
],
|
2015-03-14 22:26:32 +01:00
|
|
|
srcs: [
|
2015-07-09 03:13:11 +02:00
|
|
|
"cc/androidmk.go",
|
2015-01-31 02:27:36 +01:00
|
|
|
"cc/builder.go",
|
|
|
|
"cc/cc.go",
|
2016-05-25 23:47:21 +02:00
|
|
|
"cc/check.go",
|
2015-01-31 02:27:36 +01:00
|
|
|
"cc/clang.go",
|
2015-04-08 01:50:10 +02:00
|
|
|
"cc/gen.go",
|
2016-01-13 08:20:28 +01:00
|
|
|
"cc/makevars.go",
|
2016-01-06 23:41:07 +01:00
|
|
|
"cc/sanitize.go",
|
2016-01-04 23:34:37 +01:00
|
|
|
"cc/stl.go",
|
2015-01-31 02:27:36 +01:00
|
|
|
"cc/toolchain.go",
|
|
|
|
"cc/util.go",
|
|
|
|
|
|
|
|
"cc/arm_device.go",
|
|
|
|
"cc/arm64_device.go",
|
2015-11-24 01:15:10 +01:00
|
|
|
"cc/mips_device.go",
|
2015-11-24 01:28:31 +01:00
|
|
|
"cc/mips64_device.go",
|
2015-11-21 00:35:26 +01:00
|
|
|
"cc/x86_device.go",
|
2015-11-23 23:53:57 +01:00
|
|
|
"cc/x86_64_device.go",
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-05-01 01:36:18 +02:00
|
|
|
"cc/x86_darwin_host.go",
|
2015-01-31 02:27:36 +01:00
|
|
|
"cc/x86_linux_host.go",
|
2015-11-25 02:53:15 +01:00
|
|
|
"cc/x86_windows_host.go",
|
2015-01-31 02:27:36 +01:00
|
|
|
],
|
2015-06-24 04:46:20 +02:00
|
|
|
testSrcs: [
|
|
|
|
"cc/cc_test.go",
|
|
|
|
],
|
2015-07-28 00:08:24 +02:00
|
|
|
pluginFor: ["soong_build"],
|
2015-03-14 22:26:32 +01:00
|
|
|
}
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-03-18 21:28:46 +01:00
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong-genrule",
|
|
|
|
pkgPath: "android/soong/genrule",
|
|
|
|
deps: [
|
|
|
|
"blueprint",
|
|
|
|
"blueprint-pathtools",
|
2015-06-17 23:20:06 +02:00
|
|
|
"soong",
|
2016-05-19 00:37:25 +02:00
|
|
|
"soong-android",
|
2015-03-18 21:28:46 +01:00
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"genrule/genrule.go",
|
|
|
|
],
|
2015-07-28 00:08:24 +02:00
|
|
|
pluginFor: ["soong_build"],
|
2015-03-18 21:28:46 +01:00
|
|
|
}
|
2015-03-31 02:20:39 +02:00
|
|
|
|
2016-05-27 00:13:03 +02:00
|
|
|
blueprint_go_binary {
|
2015-03-31 02:20:39 +02:00
|
|
|
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-17 23:20:06 +02:00
|
|
|
"soong",
|
2016-05-19 00:37:25 +02:00
|
|
|
"soong-android",
|
2015-04-28 22:28:51 +02:00
|
|
|
"soong-genrule",
|
2015-03-31 02:20:39 +02:00
|
|
|
],
|
|
|
|
srcs: [
|
2015-07-09 03:13:11 +02:00
|
|
|
"java/androidmk.go",
|
2015-04-13 22:58:27 +02:00
|
|
|
"java/app_builder.go",
|
|
|
|
"java/app.go",
|
2015-03-31 02:20:39 +02:00
|
|
|
"java/builder.go",
|
2015-04-08 22:03:43 +02:00
|
|
|
"java/gen.go",
|
2015-03-31 02:20:39 +02:00
|
|
|
"java/java.go",
|
|
|
|
"java/resources.go",
|
|
|
|
],
|
2015-07-28 00:08:24 +02:00
|
|
|
pluginFor: ["soong_build"],
|
2015-03-31 02:20:39 +02:00
|
|
|
}
|
|
|
|
|
2015-03-14 22:28:22 +01:00
|
|
|
//
|
|
|
|
// androidmk Android.mk to Blueprints translator
|
|
|
|
//
|
|
|
|
|
2016-05-27 00:13:03 +02:00
|
|
|
blueprint_go_binary {
|
2015-03-14 22:28:22 +01:00
|
|
|
name: "androidmk",
|
|
|
|
srcs: [
|
|
|
|
"androidmk/cmd/androidmk/android.go",
|
|
|
|
"androidmk/cmd/androidmk/androidmk.go",
|
|
|
|
"androidmk/cmd/androidmk/values.go",
|
|
|
|
],
|
2016-06-02 06:37:40 +02:00
|
|
|
testSrcs: [
|
2016-06-08 00:34:59 +02:00
|
|
|
"androidmk/cmd/androidmk/androidmk_test.go",
|
2016-06-02 06:37:40 +02:00
|
|
|
],
|
2015-03-14 22:28:22 +01:00
|
|
|
deps: [
|
|
|
|
"androidmk-parser",
|
|
|
|
"blueprint-parser",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
|
|
|
bootstrap_go_package {
|
|
|
|
name: "androidmk-parser",
|
|
|
|
pkgPath: "android/soong/androidmk/parser",
|
|
|
|
srcs: [
|
2016-05-26 02:25:40 +02:00
|
|
|
"androidmk/parser/ast.go",
|
2015-03-14 22:28:22 +01:00
|
|
|
"androidmk/parser/make_strings.go",
|
|
|
|
"androidmk/parser/parser.go",
|
|
|
|
"androidmk/parser/scope.go",
|
|
|
|
],
|
2015-06-24 04:46:20 +02:00
|
|
|
testSrcs: [
|
|
|
|
"androidmk/parser/make_strings_test.go",
|
|
|
|
],
|
2015-03-14 22:28:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// C static libraries extracted from the gcc toolchain
|
|
|
|
//
|
|
|
|
|
2015-03-14 22:26:32 +01:00
|
|
|
toolchain_library {
|
|
|
|
name: "libatomic",
|
2015-07-09 03:11:14 +02:00
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
instruction_set: "arm",
|
|
|
|
},
|
|
|
|
},
|
2015-03-14 22:26:32 +01:00
|
|
|
}
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-03-14 22:26:32 +01:00
|
|
|
toolchain_library {
|
|
|
|
name: "libgcc",
|
2015-07-09 03:11:14 +02:00
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
instruction_set: "arm",
|
|
|
|
},
|
|
|
|
},
|
2015-03-14 22:26:32 +01:00
|
|
|
}
|
2015-01-31 02:27:36 +01:00
|
|
|
|
2015-03-14 22:26:32 +01:00
|
|
|
toolchain_library {
|
|
|
|
name: "libgcov",
|
2015-07-09 03:11:14 +02:00
|
|
|
arch: {
|
|
|
|
arm: {
|
|
|
|
instruction_set: "arm",
|
|
|
|
},
|
|
|
|
},
|
2015-03-14 22:26:32 +01:00
|
|
|
}
|