1// If you're looking for ART global stuff, please see build/Android.bp. 2 3package { 4 default_visibility: ["//art:__subpackages__"], 5 default_applicable_licenses: ["art_license"], 6} 7 8license { 9 name: "art_license", 10 visibility: [":__subpackages__"], 11 license_kinds: [ 12 "SPDX-license-identifier-Apache-2.0", 13 "SPDX-license-identifier-BSD", 14 ], 15 license_text: [ 16 "NOTICE", 17 ], 18} 19 20// The art-tools package depends on helpers and tools that are useful for 21// developers. Similar dependencies exist for the APEX builds for these tools 22// (see build/apex/Android.bp). 23phony { 24 name: "art-tools", 25 // If the dependencies have changed, please sync them to 26 // build/core/target/product/base_system.mk as well. 27 required: [ 28 "ahat", 29 "dexdump", 30 "hprof-conv", 31 // A subset of the tools are disabled when HOST_PREFER_32_BIT is 32 // defined as make reports that they are not supported on host 33 // (b/129323791). This is likely due to art_apex disabling host APEX 34 // builds when HOST_PREFER_32_BIT is set (b/120617876). 35 ] + select(soong_config_variable("art_module", "host_prefer_32_bit"), { 36 true: [], 37 default: [ 38 "dexlist", 39 "oatdump", 40 ], 41 }), 42} 43 44// Fake packages to ensure generation of libopenjdkd when one builds with mm/mmm/mmma. 45// 46// The library is required for starting a runtime in debug mode, but libartd does not depend on it 47// (dependency cycle otherwise). 48// 49// Note: * As the package is phony to create a dependency the package name is irrelevant. 50// * We make MULTILIB explicit to "both," just to state here that we want both libraries on 51// 64-bit systems, even if it is the default. 52phony_rule { 53 name: "art-libartd-libopenjdkd-host-dependency", 54 phony_deps: [ 55 "libopenjdkd", 56 ], 57 compile_multilib: "both", 58 enabled: select(soong_config_variable("art_module", "art_build_host_debug"), { 59 false: false, 60 default: true, 61 }), 62} 63