package { default_applicable_licenses: ["prebuilts_build-tools_license"], } // Added automatically by a large-scale-change that took the approach of // 'apply every license found to every target'. While this makes sure we respect // every license restriction, it may not be entirely correct. // // e.g. GPL in an MIT project might only apply to the contrib/ directory. // // Please consider splitting the single license below into multiple licenses, // taking care not to lose any license_kind information, and overriding the // default license using the 'licenses: [...]' property on targets as needed. // // For unused files, consider creating a 'fileGroup' with "//visibility:private" // to attach the license to, and including a comment whether the files may be // used in the current project. // See: http://go/android-license-faq license { name: "prebuilts_build-tools_license", visibility: [":__subpackages__"], license_kinds: [ "SPDX-license-identifier-0BSD", "SPDX-license-identifier-Apache-2.0", "SPDX-license-identifier-BSD", "SPDX-license-identifier-MIT", "SPDX-license-identifier-PSF-2.0", "SPDX-license-identifier-Zlib", "legacy_unencumbered", ], license_text: [ "sysroots/aarch64-unknown-linux-musl/NOTICE.bionic", "sysroots/aarch64-unknown-linux-musl/NOTICE.zlib", "sysroots/arm-unknown-linux-musleabihf/NOTICE.bionic", "sysroots/arm-unknown-linux-musleabihf/NOTICE.zlib", "sysroots/i686-unknown-linux-musl/NOTICE.bionic", "sysroots/i686-unknown-linux-musl/NOTICE.zlib", "sysroots/x86_64-unknown-linux-musl/NOTICE.bionic", "sysroots/x86_64-unknown-linux-musl/NOTICE.zlib", ], } license { name: "prebuilts_build-tools_bison_license", package_name: "bison", visibility: [":__subpackages__"], license_kinds: ["SPDX-license-identifier-GPL-3.0"], license_text: ["common/bison/NOTICE"], } license { name: "prebuilts_build-tools_gnu_license", package_name: "Official GNU software", visibility: [":__subpackages__"], license_kinds: ["SPDX-license-identifier-GPL-3.0"], license_text: ["LICENSE-GPL-3.0"], } license { name: "prebuilts_build-tools_flex_license", package_name: "flex", visibility: [":__subpackages__"], license_kinds: ["SPDX-license-identifier-BSD"], license_text: ["common/flex/NOTICE"], } cc_library_headers { name: "FlexLexer", host_supported: true, vendor_available: true, // TODO(b/153609531): remove when no longer needed. native_bridge_supported: true, licenses: ["prebuilts_build-tools_flex_license"], export_include_dirs: ["common/flex"], } prebuilt_build_tool { name: "bison", deps: ["common/bison/**/*"], licenses: ["prebuilts_build-tools_bison_license"], export_to_make_var: "BISON", enabled: false, arch: { x86_64: { enabled: true, }, }, target: { darwin: { src: "darwin-x86/bin/bison", deps: ["darwin-x86/lib64/libc++.dylib"], }, linux: { src: "linux-x86/bin/bison", deps: ["linux-x86/lib64/libc++.so"], }, }, } prebuilt_build_tool { name: "flex", export_to_make_var: "LEX", enabled: false, arch: { x86_64: { enabled: true, }, }, licenses: ["prebuilts_build-tools_flex_license"], target: { darwin: { src: "darwin-x86/bin/flex", }, linux: { src: "linux-x86/bin/flex", }, }, } prebuilt_build_tool { name: "m4", export_to_make_var: "M4", enabled: false, arch: { x86_64: { enabled: true, }, }, licenses: ["prebuilts_build-tools_gnu_license"], target: { darwin: { src: "darwin-x86/bin/m4", }, linux: { src: "linux-x86/bin/m4", }, }, } prebuilt_build_tool { name: "make", enabled: false, arch: { x86_64: { enabled: true, }, }, target: { darwin: { src: "darwin-x86/bin/make", }, linux: { src: "linux-x86/bin/make", }, }, visibility: ["//vendor:__subpackages__"], } cc_prebuilt_binary { name: "py3-launcher", host_supported: true, device_supported: false, compile_multilib: "64", stl: "none", target: { glibc_x86_64: { srcs: ["linux-x86/bin/py3-launcher64"], }, musl_arm64: { srcs: ["linux_musl-arm64/bin/py3-launcher64"], }, musl_x86_64: { srcs: ["linux_musl-x86/bin/py3-launcher64"], }, darwin_x86_64: { srcs: ["darwin-x86/bin/py3-launcher64"], }, darwin_arm64: { // The darwin-x86 folder actually contains universal binaries that have both x86 and arm code srcs: ["darwin-x86/bin/py3-launcher64"], }, }, // Use the prebuilts for most branches prefer: select(soong_config_variable("cpython3", "force_build_host"), { true: false, default: true, }), } cc_prebuilt_binary { name: "py3-launcher-static", host_supported: true, device_supported: false, compile_multilib: "64", stl: "none", target: { musl_arm64: { srcs: ["linux_musl-arm64/bin/py3-launcher-static64"], }, musl_x86_64: { srcs: ["linux_musl-x86/bin/py3-launcher-static64"], }, }, // Use the prebuilts for most branches prefer: select(soong_config_variable("cpython3", "force_build_host"), { true: false, default: true, }), } cc_prebuilt_binary { name: "py3-launcher-autorun", host_supported: true, device_supported: false, compile_multilib: "64", stl: "none", target: { glibc_x86_64: { srcs: ["linux-x86/bin/py3-launcher-autorun64"], }, musl_arm64: { srcs: ["linux_musl-arm64/bin/py3-launcher-autorun64"], }, musl_x86_64: { srcs: ["linux_musl-x86/bin/py3-launcher-autorun64"], }, darwin_x86_64: { srcs: ["darwin-x86/bin/py3-launcher-autorun64"], }, darwin_arm64: { // The darwin-x86 folder actually contains universal binaries that have both x86 and arm code srcs: ["darwin-x86/bin/py3-launcher-autorun64"], }, }, // Use the prebuilts for most branches prefer: select(soong_config_variable("cpython3", "force_build_host"), { true: false, default: true, }), } cc_prebuilt_binary { name: "py3-launcher-autorun-static", host_supported: true, device_supported: false, compile_multilib: "64", stl: "none", target: { musl_arm64: { srcs: ["linux_musl-arm64/bin/py3-launcher-autorun-static64"], }, musl_x86_64: { srcs: ["linux_musl-x86/bin/py3-launcher-autorun-static64"], }, }, // Use the prebuilts for most branches prefer: select(soong_config_variable("cpython3", "force_build_host"), { true: false, default: true, }), } filegroup { name: "py3-stdlib-prebuilt-srcs", visibility: ["//visibility:private"], srcs: ["common/py3-stdlib/**/*.py"], path: "common/py3-stdlib", } python_library_host { name: "py3-stdlib-prebuilt", is_internal: true, pkg_path: "python3.11", srcs: [":py3-stdlib-prebuilt-srcs"], } dirgroup { name: "trusty_dirgroup_prebuilts_build-tools", dirs: ["."], visibility: ["//trusty/vendor/google/aosp/scripts"], }