2021-02-04 03:08:28 +01:00
|
|
|
package {
|
|
|
|
default_applicable_licenses: ["Android-Apache-2.0"],
|
|
|
|
}
|
|
|
|
|
2016-08-16 00:02:23 +02:00
|
|
|
subdirs = [
|
|
|
|
"androidmk",
|
2017-06-20 00:39:54 +02:00
|
|
|
"bpfix",
|
2016-08-16 00:02:23 +02:00
|
|
|
"cmd/*",
|
2017-08-10 03:25:28 +02:00
|
|
|
"fs",
|
|
|
|
"finder",
|
2017-08-22 05:13:28 +02:00
|
|
|
"jar",
|
2017-10-12 21:19:14 +02:00
|
|
|
"zip",
|
2016-08-16 00:02:23 +02:00
|
|
|
"third_party/zip",
|
Add a Go replacement for our top-level Make wrapper
Right now this mostly just copies what Make is doing in
build/core/ninja.mk and build/core/soong.mk. The only major feature it
adds is a rotating log file with some verbose logging.
There is one major functional difference -- you cannot override random
Make variables during the Make phase anymore. The environment variable
is set, and if Make uses ?= or the equivalent, it can still use those
variables. We already made this change for Kati, which also loads all of
the same code and actually does the build, so it has been half-removed
for a while.
The only "UI" this implements is what I'll call "Make Emulation" mode --
it's expected that current command lines will continue working, and
we'll explore alternate user interfaces later.
We're still using Make as a wrapper, but all it does is call into this
single Go program, it won't even load the product configuration. Once
this is default, we can start moving individual users over to using this
directly (still in Make emulation mode), skipping the Make wrapper.
Ideas for the future:
* Generating trace files showing time spent in Make/Kati/Soong/Ninja
(also importing ninja traces into the same stream). I had this working
in a previous version of this patch, but removed it to keep the size
down and focus on the current features.
* More intelligent SIGALRM handling, once we fully remove the Make
wrapper (which hides the SIGALRM)
* Reading the experimental binary output stream from Ninja, so that we
can always save the verbose log even if we're not printing it out to
the console
Test: USE_SOONG_UI=true m -j blueprint_tools
Change-Id: I884327b9a8ae24499eb6c56f6e1ad26df1cfa4e4
2016-08-22 00:17:17 +02:00
|
|
|
"ui/*",
|
2016-08-16 00:02:23 +02:00
|
|
|
]
|
2015-03-25 22:43:57 +01:00
|
|
|
|
2015-06-17 23:20:06 +02:00
|
|
|
bootstrap_go_package {
|
|
|
|
name: "soong",
|
|
|
|
pkgPath: "android/soong",
|
|
|
|
deps: [
|
|
|
|
"blueprint",
|
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"doc.go",
|
|
|
|
],
|
|
|
|
}
|
|
|
|
|
2016-11-17 09:25:59 +01:00
|
|
|
//
|
|
|
|
// Defaults to enable various configurations of host bionic
|
|
|
|
//
|
|
|
|
|
|
|
|
cc_defaults {
|
|
|
|
name: "linux_bionic_supported",
|
|
|
|
host_supported: true,
|
|
|
|
target: {
|
|
|
|
host: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
linux_bionic: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2015-03-14 22:28:22 +01:00
|
|
|
//
|
|
|
|
// C static libraries extracted from the gcc toolchain
|
|
|
|
//
|
|
|
|
|
2017-07-03 06:18:12 +02:00
|
|
|
kernel_headers {
|
|
|
|
name: "device_kernel_headers",
|
|
|
|
vendor: true,
|
2018-08-22 00:51:20 +02:00
|
|
|
recovery_available: true,
|
2022-03-04 19:45:52 +01:00
|
|
|
min_sdk_version: "apex_inherit",
|
2017-07-03 06:18:12 +02:00
|
|
|
}
|
2017-09-19 08:19:12 +02:00
|
|
|
|
|
|
|
cc_genrule {
|
|
|
|
name: "host_bionic_linker_asm",
|
|
|
|
host_supported: true,
|
|
|
|
device_supported: false,
|
|
|
|
target: {
|
|
|
|
linux_bionic: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
2022-03-30 05:46:45 +02:00
|
|
|
linux_musl: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
2017-10-02 19:41:07 +02:00
|
|
|
linux_glibc: {
|
2017-09-19 08:19:12 +02:00
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
darwin: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tools: ["extract_linker"],
|
|
|
|
cmd: "$(location) -s $(out) $(in)",
|
|
|
|
srcs: [":linker"],
|
|
|
|
out: ["linker.s"],
|
|
|
|
}
|
|
|
|
|
|
|
|
cc_genrule {
|
2021-06-12 03:02:22 +02:00
|
|
|
name: "host_bionic_linker_script",
|
2017-09-19 08:19:12 +02:00
|
|
|
host_supported: true,
|
|
|
|
device_supported: false,
|
|
|
|
target: {
|
|
|
|
linux_bionic: {
|
|
|
|
enabled: true,
|
|
|
|
},
|
2022-03-30 05:46:45 +02:00
|
|
|
linux_musl: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
2017-10-02 19:41:07 +02:00
|
|
|
linux_glibc: {
|
2017-09-19 08:19:12 +02:00
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
darwin: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tools: ["extract_linker"],
|
2021-06-12 03:02:22 +02:00
|
|
|
cmd: "$(location) -T $(out) $(in)",
|
2017-09-19 08:19:12 +02:00
|
|
|
srcs: [":linker"],
|
2021-06-12 03:02:22 +02:00
|
|
|
out: ["linker.script"],
|
2017-09-19 08:19:12 +02:00
|
|
|
}
|
2021-01-20 18:44:53 +01:00
|
|
|
|
|
|
|
// Instantiate the dex_bootjars singleton module.
|
|
|
|
dex_bootjars {
|
|
|
|
name: "dex_bootjars",
|
2024-06-05 13:25:03 +02:00
|
|
|
no_full_install: true,
|
2021-01-20 18:44:53 +01:00
|
|
|
}
|
2021-06-25 00:59:38 +02:00
|
|
|
|
|
|
|
// Pseudo-test that's run on checkbuilds to ensure that get_clang_version can
|
|
|
|
// parse cc/config/global.go.
|
|
|
|
genrule {
|
|
|
|
name: "get_clang_version_test",
|
|
|
|
cmd: "$(location get_clang_version) > $(out)",
|
|
|
|
tools: ["get_clang_version"],
|
|
|
|
srcs: ["cc/config/global.go"],
|
|
|
|
out: ["clang-prebuilts-version.txt"],
|
|
|
|
}
|
2021-09-30 11:38:19 +02:00
|
|
|
|
|
|
|
dexpreopt_systemserver_check {
|
|
|
|
name: "dexpreopt_systemserver_check",
|
|
|
|
}
|
2022-04-25 11:23:58 +02:00
|
|
|
|
|
|
|
// buildinfo.prop contains common properties for system/build.prop, like ro.build.version.*
|
|
|
|
buildinfo_prop {
|
|
|
|
name: "buildinfo.prop",
|
|
|
|
|
|
|
|
// not installable because this will be included to system/build.prop
|
|
|
|
installable: false,
|
|
|
|
|
|
|
|
// Currently, only microdroid can refer to buildinfo.prop
|
|
|
|
visibility: ["//packages/modules/Virtualization/microdroid"],
|
|
|
|
}
|
2023-10-26 22:48:02 +02:00
|
|
|
|
|
|
|
// container for apex_contributions selected using build flags
|
|
|
|
all_apex_contributions {
|
|
|
|
name: "all_apex_contributions",
|
|
|
|
}
|