1// 2// Copyright (C) 2021 The Android Open Source Project 3// 4// Licensed under the Apache License, Version 2.0 (the "License"); 5// you may not use this file except in compliance with the License. 6// You may obtain a copy of the License at 7// 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// See the License for the specific language governing permissions and 14// limitations under the License. 15// 16 17package { 18 default_team: "trendy_team_framework_android_packages", 19 default_applicable_licenses: ["Android-Apache-2.0"], 20} 21 22cc_defaults { 23 name: "split_native_defaults", 24 gtest: false, 25 cflags: [ 26 "-Wall", 27 "-Werror", 28 "-Wno-unused-parameter", 29 ], 30 target: { 31 android_arm: { 32 cflags: [ 33 "-D__ANDROID_ARCH__=\"armeabi-v7a\"", 34 ], 35 }, 36 android_arm64: { 37 cflags: [ 38 "-D__ANDROID_ARCH__=\"arm64-v8a\"", 39 ], 40 }, 41 android_x86: { 42 cflags: [ 43 "-D__ANDROID_ARCH__=\"x86\"", 44 ], 45 }, 46 android_x86_64: { 47 cflags: [ 48 "-D__ANDROID_ARCH__=\"x86_64\"", 49 ], 50 }, 51 android_riscv64: { 52 cflags: [ 53 "-D__ANDROID_ARCH__=\"riscv64\"", 54 ], 55 }, 56 }, 57 sdk_version: "current", 58} 59 60cc_defaults { 61 name: "split_number_provider_defaults", 62 defaults: ["split_native_defaults"], 63 srcs: ["number_providers.cpp"], 64} 65 66cc_test_library { 67 name: "libsplitapp_number_provider_a", 68 defaults: ["split_number_provider_defaults"], 69 cflags: [ 70 "-DANDROID_SPLIT_APP_NUMBER_PROVIDER_A_SO=1", 71 ], 72} 73 74cc_test_library { 75 name: "libsplitapp_number_provider_b", 76 defaults: ["split_number_provider_defaults"], 77 cflags: [ 78 "-DANDROID_SPLIT_APP_NUMBER_PROVIDER_B_SO=1", 79 ], 80} 81 82cc_test_library { 83 name: "libsplitapp_number_proxy", 84 defaults: ["split_number_provider_defaults"], 85 cflags: [ 86 "-DANDROID_SPLIT_APP_NUMBER_PROXY_SO=1", 87 ], 88} 89 90TARGET_TEST_SUITES = [ 91 "cts", 92 "general-tests", 93] 94 95/** 96 * Non-isolated split feature 97 */ 98java_defaults { 99 name: "CtsSplitTestHelperApp_defaults", 100 certificate: ":cts-testkey1", 101 aaptflags: [ 102 "--replace-version", 103 "--version-code 100", 104 ], 105 test_suites: TARGET_TEST_SUITES, 106} 107 108java_defaults { 109 name: "CtsSplitTestHelperApp_number_provider_defaults", 110 defaults: ["CtsSplitTestHelperApp_defaults"], 111 compile_multilib: "both", 112 test_suites: TARGET_TEST_SUITES, 113} 114 115android_test_helper_app { 116 name: "CtsSplitApp_number_provider_a", 117 defaults: ["CtsSplitTestHelperApp_number_provider_defaults"], 118 manifest: "AndroidManifest_number_provider_a.xml", 119 jni_libs: ["libsplitapp_number_provider_a"], 120 test_suites: TARGET_TEST_SUITES, 121 sdk_version: "test_current", 122} 123 124android_test_helper_app { 125 name: "CtsSplitApp_number_provider_b", 126 defaults: ["CtsSplitTestHelperApp_number_provider_defaults"], 127 manifest: "AndroidManifest_number_provider_b.xml", 128 jni_libs: ["libsplitapp_number_provider_b"], 129 test_suites: TARGET_TEST_SUITES, 130 sdk_version: "test_current", 131} 132 133android_test_helper_app { 134 name: "CtsSplitApp_number_proxy", 135 defaults: ["CtsSplitTestHelperApp_number_provider_defaults"], 136 manifest: "AndroidManifest_number_proxy.xml", 137 jni_libs: ["libsplitapp_number_proxy"], 138 test_suites: TARGET_TEST_SUITES, 139 sdk_version: "test_current", 140} 141