1#!/usr/bin/env bash 2 3############### 4# Build and test targets for device target platform. 5############### 6BUILD_TARGETS=( 7 //art/... 8 //bionic/... 9 //bootable/recovery/tools/recovery_l10n/... 10 //build/... 11 //cts/... 12 //development/... 13 //external/rust/crates/rustc-demangle-capi:librustc_demangle_static 14 //frameworks/av/media/liberror:libexpectedutils_test 15 //frameworks/av/media/module/foundation:libstagefright_foundation 16 //frameworks/base:framework-javastream-protos 17 //frameworks/base/api:merge_annotation_zips_test 18 //frameworks/base/services/core:statslog-art-java-gen 19 //frameworks/base/tools/aapt2:aapt2_tests 20 //frameworks/base/tools/processors/immutability:ImmutabilityAnnotation 21 //frameworks/native/cmds/installd:run_dex2oat_test 22 //frameworks/native/libs/binder/tests:binderUtilsHostTest 23 //frameworks/native/libs/fakeservicemanager:fakeservicemanager_test 24 //hardware/... 25 //libnativehelper/... 26 //packages/modules/adb/... 27 //packages/modules/common/... 28 //packages/modules/CaptivePortalLogin/... 29 //packages/modules/NeuralNetworks/... 30 //packages/modules/Wifi/... 31 //prebuilts/clang/host/linux-x86:all 32 //prebuilts/build-tools/tests/... 33 //prebuilts/runtime/... 34 //prebuilts/rust/linux-x86/... 35 //prebuilts/tools/... 36 //platform_testing/... 37 //system/libbase:libbase 38 //system/core/libcutils:libcutils 39 //system/core/libutils:libutils 40 //system/unwinding/libunwindstack:libunwindstack 41 //tools/apksig/... 42 //tools/asuite/... 43 //tools/platform-compat/... 44 45 # TODO: b/305044271 - Fix linking error caused by fdo transition 46 -//art/libartbase:all 47 -//art/libdexfile:all 48 # TODO(b/266459895): remove these after re-enabling libunwindstack 49 -//bionic/libc/malloc_debug:libc_malloc_debug 50 -//bionic/libfdtrack:libfdtrack 51 -//frameworks/av/media/codec2/hal/hidl/1.0/utils:libcodec2_hidl@1.0 52 -//frameworks/av/media/codec2/hal/hidl/1.1/utils:libcodec2_hidl@1.1 53 -//frameworks/av/media/codec2/hal/hidl/1.2/utils:libcodec2_hidl@1.2 54 -//frameworks/av/media/module/bqhelper:libstagefright_bufferqueue_helper_novndk 55 -//frameworks/av/media/module/codecserviceregistrant:libmedia_codecserviceregistrant 56 -//frameworks/av/services/mediacodec:mediaswcodec 57 -//frameworks/native/libs/gui:libgui 58 -//frameworks/native/libs/gui:libgui_bufferqueue_static 59 -//frameworks/native/opengl/libs:libEGL 60 -//frameworks/native/opengl/libs:libGLESv2 61) 62 63DEVICE_ONLY_TARGETS=( 64 //frameworks/native/services/surfaceflinger:libSurfaceFlingerProp 65 //frameworks/base/cmds/idmap2:libidmap2_policies 66 //frameworks/base/core/res:framework-res 67 //frameworks/ex/common:android-common 68 //frameworks/native/opengl/tests/testViewport:TestViewport 69) 70 71TEST_TARGETS=( 72 //build/bazel/... 73 //prebuilts/clang/host/linux-x86:all 74 //prebuilts/sdk:toolchains_have_all_prebuilts 75) 76 77HOST_ONLY_TEST_TARGETS=( 78 //build/make/tools/aconfig:aconfig 79 //frameworks/base/tools/lint/common:AndroidCommonLint 80 //frameworks/base/tools/processors/immutability:ImmutabilityAnnotationProcessorHostLibrary 81 //frameworks/base/tools/processors/view_inspector:libview-inspector-annotation-processor 82 //tools/trebuchet:AnalyzerKt 83 //tools/metalava/metalava:metalava 84 # This is explicitly listed to prevent b/294514745 85 //packages/modules/adb:adb_test 86 # TODO (b/282953338): these tests depend on adb which is unconverted 87 -//packages/modules/adb:adb_integration_test_adb 88 -//packages/modules/adb:adb_integration_test_device 89 # TODO - b/297952899: this test is flaky in b builds 90 -//build/soong/cmd/zip2zip:zip2zip-test 91) 92 93# These targets are used to ensure that the aosp-specific rule wrappers forward 94# all providers of the underlying rule. 95EXAMPLE_WRAPPER_TARGETS=( 96 # java_import wrapper 97 //build/bazel/examples/java/com/bazel:hello_java_import 98 # java_library wrapper 99 //build/bazel/examples/java/com/bazel:hello_java_lib 100 # kt_jvm_library wrapper 101 //build/bazel/examples/java/com/bazel:some_kotlin_lib 102 # android_library wrapper 103 //build/bazel/examples/android_app/java/com/app:applib 104 # android_binary wrapper 105 //build/bazel/examples/android_app/java/com/app:app 106 # aar_import wrapper 107 //build/bazel/examples/android_app/java/com/app:import 108) 109 110# These targets are used for CI and are expected to be very 111# unlikely to become incompatible or broken. 112STABLE_BUILD_TARGETS=( 113 //packages/modules/adb/crypto/tests:adb_crypto_test 114 //packages/modules/adb/pairing_auth/tests:adb_pairing_auth_test 115 //packages/modules/adb/pairing_connection/tests:adb_pairing_connection_test 116 //packages/modules/adb/tls/tests:adb_tls_connection_test 117 //packages/modules/adb:adbd_test 118 //frameworks/base/api:api_fingerprint 119 //packages/modules/adb/apex:com.android.adbd 120 //packages/modules/NeuralNetworks/apex:com.android.neuralnetworks 121 //system/timezone/apex:com.android.tzdata 122 //packages/modules/NeuralNetworks/runtime:libneuralnetworks 123 //packages/modules/NeuralNetworks/runtime:libneuralnetworks_static 124 //system/timezone/testing/data/test1/apex:test1_com.android.tzdata 125 //system/timezone/testing/data/test3/apex:test3_com.android.tzdata 126 //packages/modules/adb/apex:test_com.android.adbd 127 //packages/modules/NeuralNetworks/apex/testing:test_com.android.neuralnetworks 128) 129