123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- subdirs = [
- "androidmk",
- "bpfix",
- "cmd/*",
- "fs",
- "finder",
- "jar",
- "zip",
- "third_party/zip",
- "ui/*",
- ]
- bootstrap_go_package {
- name: "soong-env",
- pkgPath: "android/soong/env",
- srcs: [
- "env/env.go",
- ],
- }
- bootstrap_go_package {
- name: "soong",
- pkgPath: "android/soong",
- deps: [
- "blueprint",
- ],
- srcs: [
- "doc.go",
- ],
- }
- bootstrap_go_package {
- name: "soong-android",
- pkgPath: "android/soong/android",
- deps: [
- "blueprint",
- "blueprint-bootstrap",
- "soong",
- "soong-env",
- ],
- srcs: [
- "android/androidmk.go",
- "android/api_levels.go",
- "android/arch.go",
- "android/config.go",
- "android/defaults.go",
- "android/defs.go",
- "android/expand.go",
- "android/hooks.go",
- "android/makevars.go",
- "android/module.go",
- "android/mutator.go",
- "android/namespace.go",
- "android/neverallow.go",
- "android/onceper.go",
- "android/package_ctx.go",
- "android/paths.go",
- "android/prebuilt.go",
- "android/proto.go",
- "android/register.go",
- "android/singleton.go",
- "android/testing.go",
- "android/util.go",
- "android/variable.go",
- "android/writedocs.go",
- // Lock down environment access last
- "android/env.go",
- ],
- testSrcs: [
- "android/config_test.go",
- "android/expand_test.go",
- "android/namespace_test.go",
- "android/paths_test.go",
- "android/prebuilt_test.go",
- "android/util_test.go",
- "android/variable_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/tidy.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_linux_bionic_host.go",
- "cc/config/x86_windows_host.go",
- ],
- testSrcs: [
- "cc/config/tidy_test.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/coverage.go",
- "cc/gen.go",
- "cc/lto.go",
- "cc/makevars.go",
- "cc/pgo.go",
- "cc/prebuilt.go",
- "cc/proto.go",
- "cc/relocation_packer.go",
- "cc/rs.go",
- "cc/sanitize.go",
- "cc/sabi.go",
- "cc/stl.go",
- "cc/strip.go",
- "cc/tidy.go",
- "cc/util.go",
- "cc/vndk.go",
- "cc/vndk_prebuilt.go",
- "cc/cmakelists.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",
- "cc/llndk_library.go",
- "cc/kernel_headers.go",
- "cc/genrule.go",
- ],
- testSrcs: [
- "cc/cc_test.go",
- "cc/gen_test.go",
- "cc/library_test.go",
- "cc/test_data_test.go",
- ],
- pluginFor: ["soong_build"],
- }
- bootstrap_go_package {
- name: "soong-genrule",
- pkgPath: "android/soong/genrule",
- deps: [
- "blueprint",
- "blueprint-pathtools",
- "soong",
- "soong-android",
- "soong-shared",
- ],
- srcs: [
- "genrule/filegroup.go",
- "genrule/genrule.go",
- ],
- pluginFor: ["soong_build"],
- }
- bootstrap_go_package {
- name: "soong-phony",
- pkgPath: "android/soong/phony",
- deps: [
- "blueprint",
- "soong-android",
- ],
- srcs: [
- "phony/phony.go",
- ],
- pluginFor: ["soong_build"],
- }
- bootstrap_go_package {
- name: "soong-java",
- pkgPath: "android/soong/java",
- deps: [
- "blueprint",
- "blueprint-pathtools",
- "soong",
- "soong-android",
- "soong-genrule",
- "soong-java-config",
- ],
- srcs: [
- "java/aapt2.go",
- "java/androidmk.go",
- "java/app_builder.go",
- "java/app.go",
- "java/builder.go",
- "java/dex.go",
- "java/gen.go",
- "java/genrule.go",
- "java/jacoco.go",
- "java/java.go",
- "java/proto.go",
- "java/resources.go",
- "java/system_modules.go",
- ],
- testSrcs: [
- "java/app_test.go",
- "java/java_test.go",
- ],
- pluginFor: ["soong_build"],
- }
- bootstrap_go_package {
- name: "soong-java-config",
- pkgPath: "android/soong/java/config",
- deps: [
- "blueprint-proptools",
- "soong-android",
- ],
- srcs: [
- "java/config/config.go",
- "java/config/error_prone.go",
- "java/config/kotlin.go",
- "java/config/makevars.go",
- ],
- }
- bootstrap_go_package {
- name: "soong-python",
- pkgPath: "android/soong/python",
- deps: [
- "blueprint",
- "soong-android",
- ],
- srcs: [
- "python/androidmk.go",
- "python/binary.go",
- "python/builder.go",
- "python/defaults.go",
- "python/installer.go",
- "python/library.go",
- "python/python.go",
- "python/test.go",
- ],
- testSrcs: [
- "python/python_test.go",
- ],
- pluginFor: ["soong_build"],
- }
- bootstrap_go_package {
- name: "soong-shared",
- pkgPath: "android/soong/shared",
- srcs: [
- "shared/paths.go",
- ],
- }
- //
- // 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,
- },
- },
- }
- //
- // C static libraries extracted from the gcc toolchain
- //
- toolchain_library {
- name: "libatomic",
- defaults: ["linux_bionic_supported"],
- vendor_available: true,
- arch: {
- arm: {
- instruction_set: "arm",
- },
- },
- }
- toolchain_library {
- name: "libgcc",
- defaults: ["linux_bionic_supported"],
- vendor_available: true,
- arch: {
- arm: {
- instruction_set: "arm",
- },
- },
- }
- toolchain_library {
- name: "libwinpthread",
- host_supported: true,
- enabled: false,
- target: {
- windows: {
- enabled: true,
- },
- },
- }
- toolchain_library {
- name: "libgcov",
- defaults: ["linux_bionic_supported"],
- arch: {
- arm: {
- instruction_set: "arm",
- },
- },
- }
- kernel_headers {
- name: "device_kernel_headers",
- vendor: true,
- }
- cc_genrule {
- name: "host_bionic_linker_asm",
- host_supported: true,
- device_supported: false,
- target: {
- linux_bionic: {
- enabled: true,
- },
- linux_glibc: {
- enabled: false,
- },
- darwin: {
- enabled: false,
- },
- },
- tools: ["extract_linker"],
- cmd: "$(location) -s $(out) $(in)",
- srcs: [":linker"],
- out: ["linker.s"],
- }
- cc_genrule {
- name: "host_bionic_linker_script",
- host_supported: true,
- device_supported: false,
- target: {
- linux_bionic: {
- enabled: true,
- },
- linux_glibc: {
- enabled: false,
- },
- darwin: {
- enabled: false,
- },
- },
- tools: ["extract_linker"],
- cmd: "$(location) -T $(out) $(in)",
- srcs: [":linker"],
- out: ["linker.script"],
- }
|